In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: If you're using SX/B the compiler will do the dirty work for you. If you divide 5.12us into 1 you get 195,312.5. To have SX/B take care of the OPTION register for you start the INTERRUPT section with: INTERRUPT NOPRESERVE 195_313 That way, if you change the clock frequency you'll still have the same rate without worrying about recalculating the OPTION register value. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=386944#m387156 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)