the only things that spring to my mind is:
1. PIC16F819 have only one PWM channel so use:
HPwm 1,n,1000
2. maybe manual configuration will have to be done for CCP1CON and CCPR1L registers
or may try to set PR2 manually
see page 71 of datasheet section 9.3.3 SETUP FOR PWM OPERATION. sometimes PicBasic will not do everything we have to setup.
datasheet there:
http://ww1.microchip.com/downloads/e...Doc/39598d.pdf
App note AN594 use CCP
http://ww1.microchip.com/downloads/e...tes/00594b.pdf
And this beauty CCP tricks 'tip
http://ww1.microchip.com/downloads/e...Doc/41214a.pdf
these should place you on the way.
many regards
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks