Page 1 of 1

M1 PWM prescaler question

Posted: Wed Sep 14, 2016 4:30 am
by MarkL
Hi,

I want to tinker with the PWM pin on a M1.
I wish I make things right though.

In the datasheet, it is noted that I can change values in the PWM_CH0_PERIOD.
The clock speed is 24MHz.

PWM_CH0_ENT_CYS is the total cycles (LOW and HIGH) and PWM_CH0_ENT_ACT_CYS is the HIGH cycles number.
I find it easy to modulate those two values as the granularity is very high.

If I can play with this ratio, why should I need a prescaler at all? What does a prescaler bring in term of electrical efficiency?

Thank

Re: M1 PWM prescaler question

Posted: Thu Sep 15, 2016 7:23 pm
by MarkL
No opinion?

Re: M1 PWM prescaler question

Posted: Sun Sep 18, 2016 8:53 am
by MarkL
Ok, so the point I missed is the prescaler enables to simulate greater frequencies that go beyond the registers capabilities (overflow).