Hey, I am using twi_hw_master.c and twi_master.h libraries for twi and want to disable i2c to save power when not in use. I use the following two lines to disable the i2c:
NRF_TWI1->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;
NRF_TWI1->POWER = 0;
but it still works. What other steps do I need to take in order to disable the twi peripheral? I'm using nrf51822 on a custom board with sdk9.0. Thanks, Vandita
Code files: main.c latch_i2c.c