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

7 ビュー (過去 30 日間)
Balrog
Balrog 2017 年 1 月 7 日
回答済み: Ashwini Venkatappa 2017 年 1 月 9 日
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.

回答 (1 件)

Ashwini Venkatappa
Ashwini Venkatappa 2017 年 1 月 9 日
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