Im trying to get the PWM module of this controller working, but im not getting any signal out of RB3.
Ive made sure RB3 is set as an output and ive put this into my setup routine:
anything im missing?
Ive made sure RB3 is set as an output and ive put this into my setup routine:
Code:
MOVLW 0X3D
MOVWF PR2 ;set period
BANKSEL TMR2
CLRF TMR2 ;clear timer 2
MOVLW 0X06
MOVWF CCPR1L ;set duty cycle
MOVLW 0X03
MOVWF CCP1CON ;setup for PWM
MOVLW 0X07
MOVWF T2CON ;set prescaler/postscaler and enable timer2
anything im missing?