![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
Hi,
Can you show your code? It will be easier
__________________
Superman returns..
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |