M1 PWM prescaler question
Posted: Wed Sep 14, 2016 4:30 am
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
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