This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432 ADC Configuration Understanding

Hello All

Am new to Micro controller programming and have bought MSP432 development board to startup with. Am trying to understand the operation and how the configuration of 14bit ADC can be done using the MSP432. Am a bit confused with this usage as i read about Microchip ADC and was OK to understand the basics of ADC works

Below are the steps i found while configuring the PIC16F887, am trying to relate this to the datasheet for MSP432P401x but am confused

"

Step 1 - Configuring port:

  • Write logic one (1) to the corresponding bit of the TRIS register to configure it as input; and
  • Write logic one (1) to the corresponding bit of the ANSEL register to configure it as analog input.

Step 2 - Configuring ADC module:

  • Configure voltage reference in the ADCON1 register;
  • Select ADC conversion clock in the ADCON0 register;
  • Select one of input channels CH0-CH13 of the ADCON0 register;
  • Select data format using the ADFM bit of the ADCON1 register; and
  • Enable A/D converter by setting the ADON bit of the ADCON0 register.

Step 3 - Configuring ADC interrupt (optionally):

  • Clear the ADIF bit; and
  • Set the ADIE, PEIE and GIE bits.

Step 4 - Wait for the required acquisition time (approximately 20uS) to pass.

Step 5 - Start conversion by setting the GO/DONE bit of the ADCON0 register.

Step 6 - Wait for ADC conversion to complete.

  • It is necessary to check in program loop whether the GO/DONE pin is cleared or wait for an A/D interrupt (must be previously enabled).

Step 7 - Read ADC results:

  • Read the ADRESH and ADRESL registers. "

 

Please can you guys help me in understanding the concept as i really want to understand the basics before starting up some basic project.

Thanks

Kumar

**Attention** This is a public forum