I am using this below code and it says that i can see my output on DAC0 . And i am confused about where to see the output. I mean on which pin. I Look at the data sheet and it says DAC0 at Pin 3 and Pin7. So should i look for the output at pin 3 or 7?? The chip is MSP430F6638IPZ.
#include <msp430f6638.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
// AVcc is used as reference, calibration on, DAC on
DAC12_0CTL0 = DAC12IR + DAC12SREF_1 + DAC12AMP_5 + DAC12CALON;
DAC12_0CTL0 |= DAC12ENC; // Enable DAC12
DAC12_0DAT = 0x7FF; // ~1.5V
__bis_SR_register(LPM4_bits); // Enter LPM4
}
Thanks,
Lakshmi Polusani