In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote: John, The port B interrupts are edge detecting, so you won't have retriggering until you get a valid transition. And yes, you can do what you want in SX/B; for example: INTERRUPT ISR_Start: WKPND_B = rbStatus ' get bits that changed IF rbStatus.0 = 1 THEN INC secs IF secs = 60 THEN secs = 0 mins = mins + 1 IF mins = 60 THEN mins = 0 hours = hours + 1 ENDIF ENDIF ENDIF IF rbStatus.1 = 1 THEN INC rain ENDIF ISR_Exit: WKEN_B = %00000000 ' reload RETURNINT ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92178#m92342 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)