Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: UART of MSP430F5529

$
0
0
my code is #include #include volatile unsigned int i, Adc_Data=0; int main(void) { WDTCTL = WDTPW+WDTHOLD; // Stop watchdog timer P6SEL |= 0x01; // Enable A/D channel A0 REFCTL0 &= ~REFMSTR; // Reset REFMSTR to hand over control to // ADC12_A ref control registers ADC12CTL0 = ADC12ON+ADC12SHT12+ADC12REFON+ADC12REF2_5V; // Turn on ADC12, Sampling time // On Reference Generator and set to // 2.5V ADC12CTL1 = ADC12SHP; // Use sampling timer ADC12MCTL0 = ADC12SREF_1; // Vr+=Vref+ and Vr-=AVss for ( i=0; i >8); // sending msb } } am using launch pad Here there is a ADC a i want to see digital value in CCS through UART

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>