In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Eric, It depends on what resolution you need. 8 Bits = 256 clocks = 50MHz / 256 = 195.3125KHz PWM Frequency 10 Bits = 1024 clocks = 50MHz / 1024 = 48.828125KHz PWM Frequency In SX/B you can simply use "TIMER1 PWM, value, 256" for 8 bit or "TIMER1 PWM, value, 1024" for 10 bit. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=167048#m167094 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)