Instead of using HPWM, try this:You won't need to declare/define T2CON, CCP1CON, PR2 and CCPR1L.Code:PWM PORTB.0,speed,1000
PS: I'm using MCS
Instead of using HPWM, try this:You won't need to declare/define T2CON, CCP1CON, PR2 and CCPR1L.Code:PWM PORTB.0,speed,1000
PS: I'm using MCS
Roger
Bookmarks