PBP's HPWM command is limited to 32767 Hz, but you can easily get 100khz (and much higher) from the CCP module.
You just need to set the registers manually.
PBP's HPWM command is limited to 32767 Hz, but you can easily get 100khz (and much higher) from the CCP module.
You just need to set the registers manually.
DT
Not sure how to use the ccp yet - never needed to use it so far.
Is there a ccp tutorial with pbp sample code anywhere? A quick search dosent reveil too much.
Heads off to locate the manual.
Bruce has a good explanation here.
It's for 38khz, but you just change the numbers for higher freqs. ...Using The PIC Microcontroller Hardware PWM Feature & Infrared CommunicationsAnd for easy PWM calculations ...
http://www.rentron.com/Infrared_Communication.htmmister_e's PicMultiCalc.<br>
http://www.picbasic.co.uk/forum/atta...achmentid=2957
DT
If you look at the "special use" label about 3/4 of the way down in this program, you can see how it is done.
http://www.picbasic.co.uk/forum/show...onitor+program
Charles Linquist
Bookmarks