This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 LPCOMP abnormal power consumption?

Calling of nrf_drv_lpcomp_enable() increases custom device's power consumption from less than 50 uA to 600 uA.

Parents
  • After discovering this issue - no, because this code is for sleep mode. I exclude all other parts of code by placing if(1) instead of function that checks if sleep mode needs, so, the code for nrf_drv_gpiote_init() doesn't exist completely (watched it in the debugger). But I don't know if GPIOTE is used by SPI or other nrf driver funcs. CS pin for SPI set and cleared manually in my code without GPIOTE.

    ps. this was an answer on using GPIOTE then (that was in up comment before)

Reply
  • After discovering this issue - no, because this code is for sleep mode. I exclude all other parts of code by placing if(1) instead of function that checks if sleep mode needs, so, the code for nrf_drv_gpiote_init() doesn't exist completely (watched it in the debugger). But I don't know if GPIOTE is used by SPI or other nrf driver funcs. CS pin for SPI set and cleared manually in my code without GPIOTE.

    ps. this was an answer on using GPIOTE then (that was in up comment before)

Children
No Data
Related