This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: DAC在自己建立的工程中无法正常运行

Part Number: TMS320F28379D

我使用官方例程的DAC产生固定幅值,我给dacshadow的值是4095,即最高值,大约是3v左右,运行顺利。但是将dac的相关配置函数移植到我自己建立的工程中,同样的配置函数,但是DAC无论如何都没有运作,并未产生相应电平,请问我该如何解决或者找到问题所在呢

下方是我自己建立工程中的mydac.c中的DAC配置代码

#include "mydac.h"
#include "device.h"
#include "dac.h"

//
// Configure DAC - Setup the reference voltage and output value for the DAC
//
void configureDAC(void)
{
//
// Set VDAC as the DAC reference voltage.
// Edit here to use ADC VREF as the reference voltage.
//
DAC_setReferenceVoltage(DACA_BASE, DAC_REF_ADC_VREFHI);

//
// Enable the DAC output
//
DAC_enableOutput(DACA_BASE);
//
// Set the DAC shadow output to 0
//
DAC_setShadowValue(DACA_BASE, 4095);

//
// Delay for buffered DAC to power up
//
DEVICE_DELAY_US(10);
}