In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Mike_W wrote: I have been trying to send strings and numbers to a Parallax 2X16 (#27976) with the code below but it only transmits the first letter (M) what am I missing. Mike W ' ------------------------------------------------------------------------- ' Device Settings ' ------------------------------------------------------------------------- DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX FREQ 4_000_000 ' ------------------------------------------------------------------------- ' IO Pins ' ------------------------------------------------------------------------- Lcd VAR RA.2 ' ------------------------------------------------------------------------- ' Constants ' ------------------------------------------------------------------------- Baud CON "T19200" LcdOn1 CON $18 ' LCD on; cursor off, blink off LcdCls CON $0C ' clear the LCD LcdBkLtOn CON $11 ' Back Light On LcdBkLtOff CON $12 ' Back Light Off LcdLine1 CON $80 ' CLS and move to 0,0 ' ------------------------------------------------------------------------- ' Variables ' ------------------------------------------------------------------------- ' ========================================================================= PROGRAM Start ' ========================================================================= Pgm_ID: DATA "SX/B Lcd", 0 Start: PLP_A = %0100 ' enable pull-up PLP_B = %00000000 ' resistors except PLP_C = %00000000 ' RA.2 HIGH Lcd ' make serial output pin high PAUSE 750 ' pause to initialize LCD SEROUT Lcd, Baud, LcdCls PAUSE 10 Customize: SEROUT Lcd, Baud, LcdOn1 PAUSE 10 SEROUT Lcd, Baud, LcdBkLtOn PAUSE 10 ' ------------------------------------------------------------------------- ' Program Code ' ------------------------------------------------------------------------- Main: SEROUT Lcd, Baud, LcdLine1 PAUSE 10 SEROUT Lcd, Baud, "Mike" PAUSE 10 GOTO Main ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=98502 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)