Hi Dilan, This document covers the PWM module and much more in some detail, along with example assembler code (although not for the exact frequency you require): http://www.microchip.com/10/lit/pline/picmicro/refernce/midrange/midsect/index.htm I suggest you download a copy, as the information it contains will be invaluable to you if you continue to experiment with the midrange PIC family. Regards, Simon p.s. rtfm -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body