Skip to content

Commit 2fa3aaa

Browse files
committed
Power optimization - enable the DC/DC regulator.
The DC/DC regulator reduce the power consumption of the MCU compared to the default LDO regulator. The DC/DC regulator needs additional HW that is mounted on the PineTime. This change reduces the power usage by 380µA during fast advertising, by 200µA during slow advertising and by 186µA when BLE is disabled.
1 parent a48d4e0 commit 2fa3aaa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,12 @@ void calibrate_lf_clock_rc(nrf_drv_clock_evt_type_t /*event*/) {
304304
nrf_drv_clock_calibration_start(16, calibrate_lf_clock_rc);
305305
}
306306

307+
void enable_dcdc_regulator() {
308+
NRF_POWER->DCDCEN = 1;
309+
}
310+
307311
int main() {
312+
enable_dcdc_regulator();
308313
logger.Init();
309314

310315
nrf_drv_clock_init();

0 commit comments

Comments
 (0)