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
↧