How to use 8 Mhz clock to generate slow PWM Frequencies
Posted: Mon Aug 30, 2010 1:30 pm
Hi,
I am using the PIC18F2480 and one of the goals of my project is to output PWM signals with slow frequencies (between 10 - 100 Hz). I know how to accomplish this through setting the internal oscillator frequency much lower (125Khz or 250Khz); however, I would like to be able to use the normal 8 Mhz clock frequency or somewhere in the Mhz range.
Would it be possible to hook up a slow external crystal or oscillator for the timer to use to generate the PWM signals, but to run the main program from the internal 8 Mhz clock? Or are there any other ways to accomplish this?
Thanks.
Here's some sample code I'm using to generate, if it helps:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum