In SX Microcontrollers, SX/B Compiler and SX-Key Tool, mebikerider wrote: I also had a lot of trouble getting my sx52 to run properly. When I wasn't using the mode and bank commands properly, or was sticking variables into bad memory locations, the chip seemed to me to be flaky, too. But after I learned about the changed mode command usage, and the changed bank command usage, and the different memory banks as compared to the sx18 or sx28, the chip worked exactly as it should. You may actually be ok in this specific case with your use of the mode command. The sx28 is documented to reset to a value of mode #$F, which is "set IO direction" mode. I don't know whether the sx52 resets to a corresponding #$1F, but if it does, then you may (accidently) be ok either not setting mode or issuing "mode #$F", because the fifth bit would already be correctly set, even though what Peter and I said about using W to load M instead of "mode" is still what you will need to use for changing modes. So my advice would be to take it slow and make sure you've taken into account all the things people warn about before totally giving up. David ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=100433#m100630 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)