SDK: V6.0 HW: PCA10001 APP: s110/ble_app_hrs Question: If use "twi_master_init()" with "twi_hw_master.c", the current consumption is added 1m A. But if use with "twi_sw_master.c", it is only added a few uA. The "twi_master" used is link text
SDK: V6.0 HW: PCA10001 APP: s110/ble_app_hrs Question: If use "twi_master_init()" with "twi_hw_master.c", the current consumption is added 1m A. But if use with "twi_sw_master.c", it is only added a few uA. The "twi_master" used is link text
Hello,
I had the same problem and I fixed it by enabling the twi hardware only when I need it and disabling it after I'm done..
NRF_TWI1->ENABLE = TWI_ENABLE_ENABLE_Enabled << TWI_ENABLE_ENABLE_Pos;
// do your I2C stuff here
NRF_TWI1->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;
hope it helps
Hello,
I had the same problem and I fixed it by enabling the twi hardware only when I need it and disabling it after I'm done..
NRF_TWI1->ENABLE = TWI_ENABLE_ENABLE_Enabled << TWI_ENABLE_ENABLE_Pos;
// do your I2C stuff here
NRF_TWI1->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;
hope it helps