In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Bennettdan, You can use SX/B. Look up the TIMER command in the help file. Basically you will use "TIMER1 PWM, value, 2778" value can be from 0 to 2778. 2778 = 50MHz / 18KHz. Remember that timer1 uses pin RB.6 for output and timer2 uses pin RC.2 for output. Also remember to make the pin an output. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=192079#m192140 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)