In SX Microcontrollers, SX/B Compiler and SX-Key Tool, jdemeyer wrote: I have successfully used a Port B pin to wake the SX-48 after issuing SLEEP. I used the following code to set up the Port B pin 0: [code] WKED_B = 0 WKPND_B = 0 WKEN_B = %11111110 [/code] This produces the following assembly in the 3.2.3 compiler: [code] MOV W,#$1A ; WKED_B = 0 MOV M,W MOV !RB,#0 MOV W,#$19 ; WKPND_B = 0 MOV M,W MOV !RB,#0 MOV W,#$1B ; WKEN_B = %11111110 MOV M,W MOV !RB,#%11111110 [/code] I would expect that if WKEN_B is set to $FF, Port B would not produce an interrupt (Also, it uses $1B). I would try this but I'm waiting on a replacement SX-48. Also, since I am using SLEEP, the SX-48 resets upon a change on Port B and does not enter an interrupt routine. Joe ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=254052#m254090 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)