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