Hi, Try these links http://www.rentron.com/Infrared_Communication.htm The above sets up PWM 38khz for a f877, but I had no trouble converting it for a f628 in CCS C, just get the data sheet from www.microchip.com. http://www.rentron.com/remote.htm The above is good stuff on ir. Good Luck, Kevin >On Fri, 30 Nov 2001, Attila Lorincz wrote: > >> Hello >> >> I use PIC16f628, how can I set the PWM mode for 38 kHz? >> The PWM mode work in SLEEP mode? > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads