CPU = 16F876 MHZ = 10 CONFIG 16254 ;*********************************************** ; http://www.basicmicro.com ; Title : lcdwrite.bas ; Author : Dale Kubin ; Date : 04/29/02 ; Lcdwrite command. Print to an LCD. Uses the ; schematic from the manual. Also show how ; modifiers can be used with the LCDwrite command ;*********************************************** Temp Var Byte Pause 500 ;Allows the LCD to initialize LCDWRITE B4\B5\B6, portb.nib0, [INITLCD1, INITLCD2, TWOLINE, CLEAR, HOME, SCR] ;after the first initialization no more inits. will need to be sent. Main Temp = 30 LCDWRITE B4\B5\B6, portb.nib0, ["Hello"] Pause 200 LCDWRITE B4\B5\B6, portb.nib0, [CLEAR, HOME, "World"] Pause 200 LCDWRITE B4\B5\B6, portb.nib0, [DEC TEMP] ;prints the decimal numbers 30 Pause 200 LCDWRITE B4\B5\B6, portb.nib0, [iHEX TEMP] ;prints the Hex value of 30 with indicator ($1E) Goto Main