In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: Thanks gentlemen, you've cleared up a serious point of confusion. :-) That AppNote is the handiest doc I've seen in days. A few points I wish to have clarified then: - an input wakeup, then, is essentially a "soft" reset, and I can take advantage of unchanged registers and the PD and TO bits to decide what to do differently from a hard reset (if I choose), keeping in mind that some registers will be unchanged from before the sleep state (rather than undefined as they might be on powerup). - since I use SX/B for the startup and main portions of my code, and ASM for the nitty-gritty, I would presume that an input wakeup will skip the powerup portion of SX/B's startup code - in SX/B if I write: WKPND_B = %0000_00000 In my src file I see: MODE $09 ; clear pending MOV !RB,#%0000_0000 Bean, it sounds like you are saying the above is really a compound instruction, e.g.: MODE $09 MOV W, #0 ; set up W for swap MOV !RB, W ; any move into WKPND swaps WKPND and W This is done by the assembler? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=228579#m228630 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)