piclist 2002\03\27\165137a >
Thread: Setting up high speed PWM in a 16F877
face picon face BY : Bob Blick email (remove spam text)

> I'm just starting to experiment with the PIC16F877 using the HITECH C
> compiler. I am running the PIC at 10 Mhz and want a 50 MHz PWM period with a
> 7.5% duty cycle. However this means that I need the PR2 to be 3124 which is
> too large (max is 255 right?). Is there a way around this? am I doing
> something wrong? or do I have to use a 4MHz clock instead? or maybe create
> my own pulse using TIMER0 which would allow a prescalar of 256? Thanks in
> advance!

There is no way the PWM can be higher than the clock frequency - no way
can you get 50MHZ PWM.


http://www.piclist.com hint: To leave the PICList


In reply to: <003f01c1d5d3$32761620$0600a8c0@efplus.com>
See also: www.piclist.com/techref/microchip/ios.htm?key=pwm
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Setting up high speed PWM in a 16F877

month overview.

new search...