Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 11th February 2008, 07:15 PM   (permalink)
Default Using 2 PWM outputs

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
raj_ps is offline   Reply With Quote
Old 12th February 2008, 02:15 AM   (permalink)
Default

Hi,
Can you show your code? It will be easier
__________________
Superman returns..
bananasiong is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
60 Hz PWM for RC Servo using postscaler? ClydeCrashKop Micro Controllers 25 5th December 2007 01:43 AM
PIC PWM outputs? Andy1845c Micro Controllers 33 30th November 2007 03:06 AM
PWM using software AtoD jeremygaughan Micro Controllers 11 27th November 2007 11:11 PM
Noob Q - Analog Outputs Revolvr Micro Controllers 6 23rd December 2006 12:58 PM
Circuit design for keyfob receiver's TTL outputs for current Guerrero General Electronics Chat 6 18th April 2005 02:11 AM



All times are GMT. The time now is 07:56 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.