In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ellizard wrote: HI, [quote="Bean"]TIMER1 PWM, duty, 1667 ' Generate 30KHz PWM with 50MHz clock; duty=0 to 1667[/quote] if i read correctly the data sheet, duty is Register 1 and 1667 is Register 2 thus to obtain a fixed frequency I should increase duty while decreasing 1667 ? let me know Saluti Stefano ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=170635#m171201 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)