Hi Guys,
I'm looking for a bit of advice on how to get a lower frequency (higher period) out of my micro.
With my PIC18LF46K80 I am looking to control an ESC which in turn controls a brushless motor.
The ESC is controlled via PWM, with min and max duty cycles of 1ms and 2ms respectively that the ESC can take as inputs.
My issue is; from my calculations my micro, with a 40MHz clock, can offer a minimum of a 2.44kHz PWM frequency and therefore a maximum period of 409.6us.
My PWM frequency really needs to be about 250Hz with a period of 4000us (4ms).
Is there anything fancy I can do with post-scalers to get this? Or as a last resort any additional hardware I can use?
Cheers
James
I'm looking for a bit of advice on how to get a lower frequency (higher period) out of my micro.
With my PIC18LF46K80 I am looking to control an ESC which in turn controls a brushless motor.
The ESC is controlled via PWM, with min and max duty cycles of 1ms and 2ms respectively that the ESC can take as inputs.
My issue is; from my calculations my micro, with a 40MHz clock, can offer a minimum of a 2.44kHz PWM frequency and therefore a maximum period of 409.6us.
My PWM frequency really needs to be about 250Hz with a period of 4000us (4ms).
Is there anything fancy I can do with post-scalers to get this? Or as a last resort any additional hardware I can use?
Cheers
James
Last edited: