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.

【求助】430F5529 launchpad的DAC12怎么用?



参考了一本讲430的书的程序,但是在ccs编译不了,因为ADC12CTL0等undifined,为什么会这样?而且我不明白到底从哪个端口输出1V电压

//利用DAC12输出1.0V模拟电压

 #include <msp430.h>

int main(void)

{

WDTCTL = WDTPW+WDTHOLD;

ADC12CTL0=REF2_5V+REFON;    //内部2.5V参考电压
DAC12_0CTL=DAC12IR+DAC12AMP_5+DAC12ENC;
DAC12_0DAT=0x0666;        //1V
_BIS_SR(LPM4_bits);
}