Hi Gary, Even though PWM is 10 bits, the registers to control it are only 8 bits. You write the highest 8 bits to CCPR1L and the lowest 2 bits squeeze into bits 4 and 5 of CCP1CON. You already know about CCP1CON since you had to set bits 2 and 3 to enable PWM, just remember not to clear them when you are writing the low PWM bits. Usually what I do is SWAPF the pwm value, then OR it with 0x0F, then write that to CCP1CON. If you only need 8 bit PWM then don't worry about it and write straight to CCPR1L and only write 8 bit values! Cheerful regards, Bob Blick -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads