Does anyone have sample code to setup the PWM on a '877 to do 3khz 50% duty-cycle PWM output, for driving a pizeo driver-less element? I'm new to the PWM area and pic's in general, so any help would be greatly apreciated. - Tim Thompson - Remember, 'kill' doesn't kill processes, users kill processes. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.