8 years, 9 months ago.

High power consumption on nRF51822

Hi,

I programmed my nrf51822 chip using the nrfgo with the mbed code. I'm using ble.waitForEvent(), but i still get a 1 mA current draw. i tried reseting the chip manuali after programming and it did not work.

Im using I2C, is that the cause?

what should i do?

Thanks!

Edit: Solution

to enable I2C NRF_TWI1->ENABLE = TWI_ENABLE_ENABLE_Enabled << TWI_ENABLE_ENABLE_Pos; NRF_TWI0->ENABLE = TWI_ENABLE_ENABLE_Enabled << TWI_ENABLE_ENABLE_Pos;

to disable I2C NRF_TWI1->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos; NRF_TWI0->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;

I2C is the problem, is there a way to disable it and than enable it when needed?

posted by Tomislav B 10 Mar 2016
Be the first to answer this question.