Hello Everyone,
I am a beginner to MSP430 and CCS v4 so please pardon my knowledge if i did not understand or ask basic concepts.
I am using the following code for implementation of DAC unit for MSP430F6638 using CCSv4.
#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
}
I would be happy if you please explain about the usage of 0x7FF value in the DAC register.For viewing the analog output I am using the Pin 6.0 and Pin7.6 in the target board pf MSP430F6638. Though I debugged and ran the project successfully I am unable to find the signal with a maximum amplitude in the oscilloscope.I would be happy if anyone could help me with this issue.
Thanks in Advance.