I need to generate a TTL Step pulse with a frequency of 0.1 Hz to 5.0 KHz Really I have 2 descrete speeds at the high end of 2 KHz and 5 KHz (fast return under no load) The lower end of the spectrum I need 100 Hz to 0.1 Hz. I need less than 1% error.
I am considering using a HCT4060 Binary Ripple Counter to get into my range. I am using a Pic to generate the PWM signal. The Pic (Picaxe) generates this PWM signal based on 255 descrete steps. I am conserned about have a PWM period calculation that is not a full step. For instance, If I need a 50Hz PWM and I use a Divider of 8192 that gives me a period for my PWM function of 1.44 and that would be either a 1 or 2 and I would have a 44% to 56% error.
How can I generate an accurate PWM with a resolution of 0.1 Hz?