This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf5340 PWM current consumption

Hi,

I encountered that the PWM couldn't be closed completely, it still has about 100uA  after PWM is uninitialized.

For troubleshooting purposes, I have posted my code to a  simple project and tested it on the nRF5340-DK. 

Please check the attachment, the PWM will be closed after 10 seconds).

Thanks.

0407.hello_world.zip

Parents
  • Hi,

    Sorry for the delayed response. I notice from your code that you are starting the HF crystal oscillator in PWM_Init(), but never stopping it again. Please try to call NRF_CLOCK->TASKS_HFCLKSTOP = 1; from PWM_Uninit() and see if you get the same result.

    Best regards,

    Vidar

Reply
  • Hi,

    Sorry for the delayed response. I notice from your code that you are starting the HF crystal oscillator in PWM_Init(), but never stopping it again. Please try to call NRF_CLOCK->TASKS_HFCLKSTOP = 1; from PWM_Uninit() and see if you get the same result.

    Best regards,

    Vidar

Children
No Data
Related