11.07.2015 Views

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PICBASIC</strong> <strong>PLUS</strong> Compiler5.36. LCDWRITE. “NOT AVAILABLE IN THE <strong>LITE</strong> VERSION”.Syntax : LCDWRITE Line number , Xpos , [ Value ,{ Value etc…} ]Overview :Operators :Example :Notes :Write a byte to a graphic LCD.Line Number may be a constant, variable or expression within therange of 0 to 7. This corresponds to the line number of the LCD, with0 being the top row.Xpos may be a constant, variable or expression within the value of 0to 127. This corresponds to the X position of the LCD, with 0 beingthe far left column.Value may be a constant, variable, or expression, within the range of0 to 255 (byte).‘Display a line on the top row of the LCDDEVICE 16F877DECLARE LCD_TYPE Graphic ‘ Target a graphic LCDDIM Xpos as BYTECLS‘ Clear the LCDFOR Xpos = 0 TO 127 ‘ Create a loop of 128LCDWRITE 0 , Xpos, [%00001111 ] ‘ Write to the LCD’s top lineDELAYMS 100NEXTSTOPThe graphic LCDs that are compatible with <strong>PICBASIC</strong> <strong>PLUS</strong> are nonintelligenttypes based on the Samsung S6B0108 chipset. Thesehave a pixel resolution of 64 x 128. The 64 being the Y axis, made upof 8 lines each having 8-bits. The 128 being the X axis, made up of128 positions. See below: -The diagram illustratesthe position of one byte atposition 0,0 on the LCDscreen. The least significantbit is located at thetop. The byte displayedhas a value of 149(10010101).Ypos 0 - 63lsbmsbXpos 0 - 127Line 0Line 1Line 2Line 3See also :LCDREAD, PLOT, UNPLOT, see PRINT for LCD connections.73Copyright Crownhill 2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!