Power & Source of Big Ideas

M1 PWM prescaler question

Moderators: chensy, FATechsupport

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
No opinion?
Ok, so the point I missed is the prescaler enables to simulate greater frequencies that go beyond the registers capabilities (overflow).

Who is online

In total there are 49 users online :: 0 registered, 0 hidden and 49 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 49 guests