Hello I use PIC16f628, how can I set the PWM mode for 38 kHz? The PWM mode work in SLEEP mode? How I can simulate the PWM mode in MPLAB? If you have an example with PWM settings please send me. Thank You ______________________________________________________________________ Do you want a free e-mail for life ? Get it at http://www.personal.ro/ -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.