In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: The FREQ directive lets the compiler know what the "expected" frequency of the clock will be. This can affect code (it depends on the code of course). The SX itself doesn't care what the FREQ directive is -- it will be clocked at whatever the frequency is of the connected resonator/crystal/clock (or the clock generated from the SX-Key). So, I could put FREQ 4_000_000 and hook up a 20MHZ resonator and the SX will run at 20MHZ. BUT if there is timing (i.e. clock) dependent code in the application, things may not work as expected. Higher-level SX/B commands like PULSIN, PULSOUT, SERIN, SEROUT, etc. will be especially susceptible to incorrect FREQ settings. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270637#m272133 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)