This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Detecting presence of nRF52 DC-DC circuitry

Hi,

I'm developing some firmware that will hopefully run on a few different kinds of nRF52 device.

Is there a way of detecting if the DC-DC converter's inductor/capacitor is present when my software is initialising, so that I can call sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE) if it is?

Something like:

DCDCEN=1;
int timeout = 100000;
while (!DCDCREADY && --timeout);
bool ok = DCDCREADY;
DCDCEN=0;
if (ok) sd_power_dcdc_mode_set(NRF_POWER_DCDC_MODE_AUTOMATIC)

I can't seem to find a 'ready' register though, and I'm not 100% sure if I can do this with the softdevice either?

thanks!

Related