Couldn't find it documented anywhere.
Couldn't find it documented anywhere.
Hi,
The system will use DCDC when it is effective to use it, and automatically switch between LDO operation and DCDC, as described in the POWER chapter of the datasheet:
https://docs.nordicsemi.com/bundle/ps_nrf52810/page/power.html
CPU will use DCDC for instance:
Kind regards,
Håkon
In my case ADC performance worsens when DCDC is enabled, but I'm unsure if it's because DCDC is starting/stopping and the noise from it. I thought I could optimise by forcing DCDC on all the time (using previously supplied code) when I know which peripherals are active and using it.
In my case ADC performance worsens when DCDC is enabled, but I'm unsure if it's because DCDC is starting/stopping and the noise from it. I thought I could optimise by forcing DCDC on all the time (using previously supplied code) when I know which peripherals are active and using it.
Looked everywhere and can't find it, could I ask for the code which forces DCDC on all the time?
Hi,
The DCDC is controlled via hardware. Once enabled in its NRF_POWER->DCDCEN register, the hardware will control the different power states based on consumption.
Here's the place where its set in NCS:
https://github.com/nrfconnect/sdk-zephyr/blob/v4.0.99-ncs1/soc/nordic/nrf52/soc.c#L37
Here's how to set up DCDC in device tree:
® { regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; };
And LDO:
® { regulator-initial-mode = <NRF5X_REG_MODE_LDO>; };
PS: You can set the register on/off at runtime if desired.
Kind regards,
Håkon