Sobakava
Full Member level 6
pwm - pic18f
I'm trying to produce %50 duty cycle pwm output from RC1/CCP2 on PIC18F8720 and I can do it, I can see with oscilloscope.
but,
when I do that
setup_ccp2(CCP_PWM);
I see my LCD connected to PORTB becomes crazy. I think there is something wrong with RB3/CCP2. I already assigned CCP2 to RC1 usign CONFIG3 register but I see some strange signal (low freq. pulses) on RB3 which is connected to LCD_RS... If I turn off the PΨM, it becomes normal....
any idea about what is wrong?
regards
I'm trying to produce %50 duty cycle pwm output from RC1/CCP2 on PIC18F8720 and I can do it, I can see with oscilloscope.
but,
when I do that
setup_ccp2(CCP_PWM);
I see my LCD connected to PORTB becomes crazy. I think there is something wrong with RB3/CCP2. I already assigned CCP2 to RC1 usign CONFIG3 register but I see some strange signal (low freq. pulses) on RB3 which is connected to LCD_RS... If I turn off the PΨM, it becomes normal....
any idea about what is wrong?
regards