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? I don't know, never tried. > How I can simulate the PWM mode in MPLAB? difficult, you can't simulate in real time, just to see the output pin is changing value > If you have an example with PWM settings please send me. PWM module is the same like 877 has ( only just one module ) http://www.geocities.com/vsurducan/PIC/lib.html hardpwm.jal or music.jal, the assemblerm algorithm is the same regards, Vasile -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads