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?




Bookmarks