In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: Thanks to both of you for the clarifications. Yes, I'm using SX/B for calculating the ISR rate, initializing vars and ports, main program and functions; the ISR and some of the bulkier parts of the main program are ASM. I don't think there's a need to post the code -- it's all doing what I expect, I've just been trying to go through some of the generated assembly and see why certain things are happening. Getting at the guts, as it were. In my case, one part of the ISR checks the state of a detector while running some counters and such, and the detector doesn't quite settle on power-up before the ISR kicks in. On reset it's OK. I started to do my own startup code in ASM to get the initialization order the way I wanted it and learn my M modes, but to be honest, I stopped (for now) because SX/B is just *so* dang convenient and error-free for that kind of work. On the port map registers for SX28 -- sounds like these are software maintained pin bitmaps so that the program's own changes to the ports can be recorded (for use in subsequent bitmasks when writing to the pins). Super clever. I need to look at the generated list file more closely :-) ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=226665#m226730 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)