Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High power consumption in sleep mode with i2c and interrupt #495

Open
muhdRiz07 opened this issue Oct 14, 2022 · 0 comments
Open

High power consumption in sleep mode with i2c and interrupt #495

muhdRiz07 opened this issue Oct 14, 2022 · 0 comments

Comments

@muhdRiz07
Copy link

Hi im using nrf52832 controller and i put it into sleep mode with _wfi(). The power consumption in sleep mode is 93uA. when i initialize i2c the power consumption is 93uA, which is fine for me.

But when i add attachinterrupt the current jumps to 560uA, which is not ok. Now if i remove i2c code section then the power consumption is again 93uA. when im using both the current jumps to 560uA.

so here i disable the i2c using below code before sleep, but the power consumption is similar.
`NRF_TWI1->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;
NRF_TWI0->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;

//correct errata 89
*(volatile uint32_t *)0x40004FFC = 0;
*(volatile uint32_t *)0x40004FFC;
*(volatile uint32_t *)0x40004FFC = 1;`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant