Which chip are you currently using? Can you switch to another if a more suitable solution exists?
/Henrik.
Which chip are you currently using? Can you switch to another if a more suitable solution exists?
/Henrik.
I am using 16F88, at this point I am able to view all options...
ken
some people mentioned by other post to play around with capture mode CCP OSC, But the bandwidth is very small, Altering with parameters changes another.. ending up where I started !!
K
Hi,
If you run the PIC at 1MHz and set the TMR2 prescaler to 1:16 then the lowest possible frequency, ie with PR2=255, would (if my calcs are correct) be around 24Hz, 1/(256*4*2.5us*16). If you run that thru an external flip-flop you'll get a divide by 2 ratio so you're down to 12Hz AND you'll get your 50% dutycycle for free - without having to change the dutycycle registers when you change frequency. You should be able to reach 1200Hz with this setup, ie PR2=1 the PWM frequency would be 3125Hz which, after the external 1:2 divider would give you 1562.5Hz. However, the granularity or resolution at the top end will be far from great.
What else, except generating this frequency, is the chip going to do?
/Henrik.
With no experience in PWM, could DT-INT clock be used for this?
Robert
Why not easily generate 1000 - 25000 Hz ( straight with PBP ...) and use a , say, CD 4518 or 74LS390 as a 100 divider on the output ...
as duty cycle is supposed to always be 50% ... no problem then !
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
If you can't make your pic16f88 work. The pic18f2431 with a 4mhz clock can output a pwm about 2hz using the power control pwm module. I know you said simple, but simple isn't always easy.
Bookmarks