Hi C,
If you recall there is a bug on Oshonsoft PWM, it does not clear the CCPRxL reg correctly, it was reported to Vlad.
You and I have used this ASM in dozens of programs already, I don't see a problem with using it again.??
E
hcw: ' clock wise
Hserin dutyhcw 'duty 0 thru FFh
ASM: bcf CCP1CON,DC1B0
ASM: bcf ccp1con,dc1b1
ASM: movlw 0x00
ASM: movwf ccpr1l
PWMduty 2, dutyhcw
Goto main
hacw: ' anti clock wise
Hserin dutyhacw 'duty 0 thru FFh
ASM: bcf CCP2CON,DC2B0
ASM: bcf ccp2con,dc2b1
ASM: movlw 0x00
ASM: movwf ccpr2l
PWMduty 1, dutyhacw
Goto main