In SX Microcontrollers, SX/B Compiler and SX-Key Tool, TheBandit wrote: Is there anything special I need to do in the programming of the SX when switching from the internal 4mhz oscillator to an external 50mhz oscillator? Do I need to change the "DEVICE" directive or the "FREQ" directive or both or neither? I am reading an incremental encoder with an interrupt routine and found that sometimes if I move the encoder too fast, the SX fails to count appropriately. This is what my SX/B code looks like at the beginning. [code] DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX, PROTECT, BOR22 FREQ 4_000_000 [/code] And I also have [code] OPTION = $88 'interrupt, no prescaler [/code] Thanks for any input ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=279040 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)