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
  • Your question doesn't make sense!

    You ask, "How to define and use ADC and pwm without DMA?" and yet you say that you have measured the current without DMA.

    Surely, if you have measured the current without DMA, then you must already know how to do it without DMA ?!

  • 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.

Reply
  • 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.

Children
Related