Could anyone help please? I am trying to use both CCP1 and CCP2 to work as PWM generators. CCP1 works fine. I cannot get anything from CCP2. I attach some simple code I wrote to test it out. It works OK in that with my scope I see a square wave of the correct frequency on RC2, but RC1 obstinately stays at zero. Could someone please suggest what might be wrong, or how I might investigate further. I emphasis - PWM comes out of RC2, but not out of RC1. main ; Clock speed is 40MHz banksel PR2 movlw 0xFF ; Freq approx 10KHz with prescaler 4 movwf PR2 ; Make the CCP1 and CCP2 pins outputs banksel TRISC bcf TRISC,RC1 bcf TRISC,RC2 ; Set PWM duty cycle (50%) movlw 0x80 banksel CCPR1L movwf CCPR1L banksel CCPR2L movwf CCPR2L ; Configure the CCP modules for PWM. movlw 0xC ; LSB duty cycle bits 0 banksel CCP1CON movwf CCP1CON banksel CCP2CON movwf CCP2CON ; Set TMR2 prescaler to 4 and turn it on. movlw 0x05 banksel T2CON movwf T2CON loop goto loop -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist