arheops 0 Posted January 26, 2013 Share Posted January 26, 2013 hi for CCS code is: ADC10CTL1 = INCH_11; // AVcc/2 ADC10CTL0 = SREF_1 + ADC10SHT_2 + REFON + REF2_5V + ADC10ON + ADC10IE; ADC10CTL0 |= ENC + ADC10SC; // Sampling and conversion start __bis_SR_register(CPUOFF + GIE); // LPM0, ADC10_ISR will force exit ADC10CTL0=0x0; return ADC10MEM; Can anyone give me some direction of how to do same for energia? Quote Link to post Share on other sites
energia 485 Posted January 29, 2013 Share Posted January 29, 2013 In Energia this would be analogRead(11). This will read channel 11 which is (VCC - VSS) / 2. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.