In SX Microcontrollers, SX/B Compiler and SX-Key Tool, KenM wrote: Actually, there is another thing you will need to do to port the SX18 based program to the SX28. Below is the code copied and pasted. org $07 should be org $08 and the variable locations are all off by one. See second code box. You cannot freely switch banks though. The programming technique is poor. The task is probably much easier using SX/B, which I don't use so I cannot help there. I believe there is an example of SX/B controlling a MAX7219. [code] ;-----[Define variables and constants]------------------------------ org $07 ;$07 is first free variable space Decode ds 2 ;assign 2 bytes of space for Decode - 7 & 8 ShtDn ds 2 ;assign 2 bytes of space for Shutdown - 9 & A ScnLmt ds 2 ;assign 2 bytes of space for Scan Limit - B & C Inten ds 2 ;assign 2 bytes of space for Intensity - D & E bitcnt ds 1 ;assign 1 byte of space for bit counter - F [code] ;-----[Define variables and constants]------------------------------ org $08 ;$08 is first free variable space Decode ds 2 ;assign 2 bytes of space for Decode - 8 & 9 ShtDn ds 2 ;assign 2 bytes of space for Shutdown - A & B ScnLmt ds 2 ;assign 2 bytes of space for Scan Limit - C & D Inten ds 2 ;assign 2 bytes of space for Intensity - E & F bitcnt ds 1 ;assign 1 byte of space for bit counter - 10 [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=206#m96690 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)