Hello all,
I'm using PIC16F883 to output two PWM outputs via CCp1 and CCp2 pins.
I use the same period for both of them. I convert the first analog signal into digital and output via CCP1 in the main loop. This one works.
Then, i use the External Interrupt function of RB0 pin to generate an interrupt. And in the ISR, i want to output a 50% dutycycle on CCP2 pin.
But i dont get any PWM output at CCP2. I've configured CCP2COn reg, TRIS, ANSEL, INTCON and OPTION registers.
Is there anything i'm missing here? I really appreciate your inputs.
Thanks,
Raj
I'm using PIC16F883 to output two PWM outputs via CCp1 and CCp2 pins.
I use the same period for both of them. I convert the first analog signal into digital and output via CCP1 in the main loop. This one works.
Then, i use the External Interrupt function of RB0 pin to generate an interrupt. And in the ISR, i want to output a 50% dutycycle on CCP2 pin.
But i dont get any PWM output at CCP2. I've configured CCP2COn reg, TRIS, ANSEL, INTCON and OPTION registers.
Is there anything i'm missing here? I really appreciate your inputs.
Thanks,
Raj