In SX Microcontrollers, SX/B Compiler and SX-Key Tool, fsafstrom wrote: Just a quick thought, haven't tried this... Use RA for the data part, on a SX 28, this is port is four bits but I think all 8 bits are available internally... Change, [code] Send_Text: LCD.4 = Char.4 ' Send High Nibble LCD.5 = Char.5 ' Send High Nibble LCD.6 = Char.6 ' Send High Nibble LCD.7 = Char.7 ' Send High Nibble PULSOUT E,3 GOSUB Wait_Busyflag LCD.4 = Char.0 ' Send Low Nibble LCD.5 = Char.1 ' Send Low Nibble LCD.6 = Char.2 ' Send Low Nibble LCD.7 = Char.3 ' Send Low Nibble PULSOUT E,3 GOSUB Wait_Busyflag RETURN [/code] To: [code] Send_Text: RA = Char SWAP RA 'High Nibble first PULSOUT E,3 GOSUB Wait_Busyflag SWAP RA 'Then low nibble... PULSOUT E,3 GOSUB Wait_Busyflag RETURN [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=161442#m161547 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)