RobMaker 0 Posted July 24, 2021 Share Posted July 24, 2021 Hi, using the MSP430FR2433 I can measure the supply voltage with the following code in Energia upto 3V successfully: #define ANALOG_HALFVCC_INPUT A11 void setup() { analogReference(INTERNAL1V5); data = analogRead(ANALOG_HALFVCC_INPUT); data = (int)map(data, 0, 1023, 0, 3000); Serial.println(data); } However when using Quote analogReference(INTERNAL2V5); there is an error saying INTERNAL2V5 is not declared. Is there a way to read voltages above 3V for this board too? Many thanks in advance, Robert Quote Link to post Share on other sites
RobMaker 0 Posted August 3, 2021 Author Share Posted August 3, 2021 Looking at the MSP430FR2433 datasheet it seems there is no the internal voltage reference other than 1.5V; so I think we can close this topic. Thanks & Bye 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.