Hi DevZone,
Here's my setup:
Using NRF5 SDK 15.2.0, custom board based on NRF52840
- Battery powered device with 3.6V battery.
- Supply voltage stepped down to 1.8V using buck converter, meaning the MCU runs on 1.8V
- There is a secondary I2C-based buck/boost converter in the circuit which can output voltages between 2.6V and 5V depending on I2C commands. The voltage output from this converter is VCC_AUX (see image)
Challenge:
I need to setup the ADC peripheral to sample ADC_VCC_3V8 (which sits on AIN2) and ADC_BATT, (which sits on AIN1). There are voltage dividers on both voltage outputs.
- I'm not quite sure how to configure the ADC channels.
- How do I convert the ADC values back to the actual voltages?
Any suggestions are appreciated
Thanks
Tim