Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 months ago.
KL05 low power PWM
I would like to generate a PWM waveform on the KL05Z for a short period of time and wake up using the WakeUp library. I think the normal sleep() instruction only reduces current to a couple of mA. Is it possible to reduce it further and still operate the PWM?
Thanks, Tom
I assume it is possible, but you are going to need quite some direct programming of the hardware, and it will of course increase the power consumption compared to normal deepsleep. First questions: Which frequency clock do you need for your PWM? (Lets say you want at least 8-bit resolution a 1kHz, that means you need at least a 256kHz clock).
posted by Erik - 07 Mar 2015I had planned on 1MHz clock, but 256kHz is fast enough.
posted by Tom Russell 09 Mar 2015