Hi I'm having problems getting the PWM to work in Full Bridge mode I want to use all four pins that this mode produces, but when simulating it in MPLAB SIM the PWM works in its normal mode (ie. only RB3 has PWM pulses on it instead of RB2 or RB3 and RB6 or RB7 being high during this time) I followed the instructions in the data sheets. If it will help here is a simplified version of my program(with irrelevant bits removed) I have labelled it according to the steps that are used in the 18C1220 data sheet movlw b'11111111' ;###STEP 1:Configure PWM Pins as inputs movwf TRISB movlw d'255' ;###STEP 2: Set PWM Period movwf PR2 movlw CCPREG ;###STEP 3: Set ECCP Mode to Full Bridge movwf CCP1CON movlw d'2' movwf CCPR1L ;###STEP 4: Set PWM Duty Cycle Note: Steps 5-7 are to do with automatic shutdown and other things like that so I figure it is okay to leave it out. clrf PIR1,1 ;###STEP 8: Configure & Start PWM movlw TMR2REG movwf T2CON T2OVRFLW btfss PIR1,1 goto T2OVRFLW ;###STEP 9: Wait for TMR2 Overflow and change PWM ports to outputs movlw TRISPB movwf TRISB I hope this is understandable :) Thanks Chris -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads