Jump to content

How to set ADC14 Conversion- MSP432 14 bit ADC functioning as 10 bit

Recommended Posts

MSP432P401R, Energia 16, Windows 7 64-bit



I am using MSP432 in Energia and my analog input can only take a value between 0 and 1023 (10 bit) but the ADC should be 14 bit. How do I change this? In the MSP432 user manual table 20-1 shows different ADC14 Conversion Result Formats but I am struggling to convert this into Energia code.


Link to post
Share on other sites

Hi @@muus.  It isn't documented I don't think but in Energia try using analogReadResolution(14)

// MSP-EXP432P401R LaunchPad

int sensorPin = 2;              // input pin for the potentiometer

void setup() {
  analogReadResolution(14);     // analog resolution - can use 10, 12, 14

void loop()
  int sensorValue = analogRead(sensorPin);    
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...