Hello Unregistered ,
Originally Posted by richard its not supported, no need to resort to asm though simply set the required sfr registers yourself eg Code: CCP2CON = 001100 ;enh pwm complementary output CCPTMRS = CCPTMRS & 110011 ;tmr2 for ccp2 T2CON = 000101 PWM2CON = 10 ;dead time ccpr2l = 128 In looking at the code I think the CCP2CON would have to be 01xx1100 for forward or 11xx1100 for reverse. I think that is what I got from the manual. Thanks again.
CCP2CON = 001100 ;enh pwm complementary output CCPTMRS = CCPTMRS & 110011 ;tmr2 for ccp2 T2CON = 000101 PWM2CON = 10 ;dead time ccpr2l = 128
View Tag Cloud
Forum Rules
Bookmarks