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

How to define and use ADC and pwm without DMA on nrf52832 ?

When test the current in the WFE state.

If not use the DMA, the current  is not exceed 0.1mA.
And when have used the DMA, the comsumption is very high , the current is about 2.1mA.

Parents Reply Children
  • Sorry, I didn't express myself clearly. And thanks you for your reply.

    I means that if I havn't use the any DMA function (include ADC, PWM), only a while(1) and WFE in the main process. The current is very low (not exceed 0.1mA).

    If I have used the ADC with DMA, after initialized the ADC fuction , and going into WFE state (the ADC is running), the current is 3mA.

    But next step, I stopped the ADC and going into WFE state , The current is still 2.1mA. (I hope the current is uA level at this time)

    So I think that If a ADC without DMA can achieve this goal.

  • Hi,

    The SAADC and PWM peripherals does not have any option to not use DMA. The best way to reduce the power consumption is probably to disable the peripheral when it is not in use (not sampling).

Related