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

nRF52832 not able to go to low power mode

Hi All,

I am developing an application in which i am interfacing the nRF52832 with an ADC via SPI. 

I am doing channel multiplexing (2 channels) such that when i get data from 2 sensors, i am putting the micro in low power mode for 2 seconds and the process repeats. 

Now, when i am just using single channel,  micro goes to low power mode as programmed. But, with 2 channels, it is not able to. Any idea on what can be causing the micro to wake up? For SPI, i am using SPI transaction manager.

Any leads will be useful. Thank you!

Parents Reply Children
  • It doesn't get stuck anywhere actually.

    change_mux_channel() is just sending commands to configure registers on ADC for channel switching. 

    This is how the flow is supposed to be working: 

    1. gets data from pH channel (default configuration)

    2. Change channel to configure for Temperature

    3. Go to low power mode till timer 2 is not expired 

    4. gets data from temperature channel 

    5. Change channel to configure for pH 

    6. go to low power mode till timer 2 expires 

    7. repeat 1-6

    During this channel switching, problem lies. There is some event or INTR thats keeping it up and now allowing to go to low power mode.

Related