fuhr3r,
since you are new to the forum you should have a look at THIS
fuhr3r,
since you are new to the forum you should have a look at THIS
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Hi, the code is very big, almost 8k and commented in portugueese
This PIC have 2 pins for CCP2, selected with the fuses, so does it need the DEFINES?
DEFINE CCP2_REG PORTB ' Hpwm 2 pin port
DEFINE CCP2_BIT 3 ' Hpwm 2 pin bit
Now HPWM 2 works, but HPWM3 still not working.
I tryed DEFINE CCP3_REG PORTB and CCP2_BIT 5, but did not work. (only CCP has 2 choices of pins).
Tomorrow i will try simulate with MPLAB or put a LCD showing CCP3CON.
Nobody ever used 3 HPWMs?
http://www.picbasic.co.uk/forum/showthread.php?t=1770
"Nope. The HPWM command only supports 2 channels. CCP1 & CCP2. You
would need to modify the 16F library to support CCP3. It's much easier to
just configure hardware PWM manually."
Problem solved....
Bookmarks