In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dkemppai wrote: [2] Hi all, Hypothetical situation. On an SX-28 can you disable interrupts on an input pin (port B) when you have a high frequency (1/2 or 1/3 Clock) signal on the input that has edge detect interrupts enabled? (The Mode register is not restored on the SX28 on RETI) Example, let's say you enable interrupts on a pin that has a 1/3 clock frequency signal on it and you try to disable the interrupts on this pin. To disable the interrupts, you need to set the mode register, and then move the new WKEN_D value to the register. The only problem is that interrupts occur between setting the mode register and moving the value to WKEN_D. What is the highest frequency signal (asynchronous to SX clock, with SX Clock = 50Mhz) that you can have on a pin and still be able to disable interrupts on port b? Brain teaser that crossed my mind last night! -Dan [/2] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=91209 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)