How to use a GPIO as a DAC output in a F28035 using Embedded Coder

5 visualizzazioni (ultimi 30 giorni)
I would like to send a signal to watch it through a oscilloscope through a DAC output. There is a specific ADC block in Simulink to program a ADC but couldn't find a block which can be used to program a GPIO as a DAC. Is there a method of getting a signal out though the micro-controller board through a DAC. Micro-controller board is TI Piccolo F28035 experimenter's kit. MATLAB 2015a.

Risposte (1)

Ashwini Venkatappa
Ashwini Venkatappa il 9 Gen 2017
DACs do not come out to a pin on F2802x devices, but are instead inputs to comparators 1 and 2. We could make use of PWM Module as DAC. You can thus use this feature with DSP2802x_Comp.h file to extract the DAC value from DACVAL register.
This would be a useful link https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/376436

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by