In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Yes if you don't want the interrupt happening at startup. You will have to calculate the rate manually and set the OPTION register and the RETURNINT value like Jon suggested. The TRIS shadow locations are needed because on the SX28 you cannot read the TRIS hardware registers. They are write-only. So you cannot set or clear a single bit on them. By storing the TRIS value in ram (nothing special about those addresses, just the last address in RAM) allows you to set or clear bits. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=226665#m226717 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)