Other Parts Discussed in Thread: MSP430F1611,
Hello
I am trying to replace the old MSP430F1611 with a MSP430F2618.
I am using ImageCraft IDE for ICC430 with NoICE430.
From the old code i was using seems everything to work as intended after small modifications but i can't get to work the DAC12_0DAT It's compyling but the level doesn't change.
I reduced my code to leave only the DAC12_0DAT part of it and it's still not working.
I am now trying to get this code to work :
#include <msp430x26x.h> // MSP430F155 Bibliothek int main(void) { WDTCTL = WDTPW + WDTHOLD; // Watchdog ausschalten BCSCTL1 = CALBC1_16MHZ; DCOCTL = CALDCO_16MHZ; ADC12CTL0 = REF2_5V + REFON; // Interne 2.5V Referenz ein DAC12_0CTL = DAC12IR + DAC12AMP_5 + DAC12ENC; // Interne Referenz Verstärkung = 1 DAC12_0DAT = 1500; while(1) { if(DAC12_0DAT>4000) { DAC12_0DAT=0; } DAC12_0DAT=DAC12_0DAT+1; } return 0; }
But the only thing i get is a 2,355 V output.
Thanks,
Simon