Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Using 2 PWM outputs

Status
Not open for further replies.

raj_ps

New Member
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
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top