Hello to all that have been replying, in particular to Nigel. Nigel, you are correct in your statements and I apologize for making it seem you were wrong. You see, when you had posted your answer back I would look at my actual code in MPLAB. Hence I had left one important line of code out in the example. It should have been as follows: SetTrickel: 1 ;1, set the period register. 2 MOVFF TRICKEL_FREQ_PERIOD,PR2 3 ;2. Write the duty cycle 4 MOVFF TRICKEL_DUTY_H,CCPR1L 5 MOVLW B'11001111' 6 ANDWF CCP1CON,W,A 7 IORWF TRICKEL_DUTY_L,W,BANKED 8 MOVWF CCP1CON,A 9 ;3. Set prescale 10 MOVLW B'00000011' 11 ANDLW 0X03 ;Prescale bit for 16 ;Replaces real code ANDWF TRICKEL_PRESCALE,F,A 12 MOVWF TEMP .. 12A MOVLW 0XFC ;Strip bit 0 and 1 from T2CON. 12B ANDWF T2CON,W,A 12C IORWF TEMP,W 12D MOVWF T2CON,A .. 13 ANDWF T2CON,F,A 14 ; BCF T2CON,T2CKPS0,A 15 ; BSF T2CON,T2CKPS1,A 16 ;4. Turn timer 2 on and configure for PWM mode. 17 BSF T2CON,TMR2ON,A 18 RETURN I had left out some vary import lines of code. My mistake. However, this is the real segment that my real code contains. MOVLW 0X03 ANDWF TRICKEL_PRESCALE,F,BANKED MOVLW 0XFC ANDWF T2CON,W,A IORWF TRICKEL_PRESCALE,W,BANKED MOVWF T2CON,F,A This still does not work in the real running code though. Regards, James P.S. I decided to use a different email client just for the PIC so that the reply is left out. Otherwise I use my normal Outlook mail client for normal mail in with I desire to leave the reply address set. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads