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> Compilerremains the same as for the alphanumeric type, so this will requirechanging.If the DECLARE is not used in the program, then the default Port andPin is PortB.2.DECLARE LCD_RSPIN PORT . PINAssigns the Port and Pins that the LCD’s RS line will attach to. Thisalso assigns the graphic LCD’s RS pin, however, the default valueremains the same as for the alphanumeric type, so this will requirechanging.If the DECLARE is not used in the program, then the default Port andPin is PortB.3.DECLARE LCD_INTERFACE 4 or 8Inform the compiler as to whether a 4-line or 8-line interface is requiredby the LCD.If the DECLARE is not used in the program, then the default interfaceis a 4-line type.DECLARE LCD_LINES 1 , 2 , or 4Inform the compiler as to how many lines the LCD has.LCD’s come in a range of sizes, the most popular being the 2 line by16 character types. However, there are 4-line types as well. Simplyplace the number of lines that the particular LCD has into the declare.If the DECLARE is not used in the program, then the default numberof lines is 2.GRAPHIC LCD Declares. NOT AVAILABLE IN THE <strong>LITE</strong> VERSION.DECLARE LCD_TYPE 1 or 0 , GRAPHIC or ALPHAInform the compiler as to the type of LCD that the PRINT commandwill output to. If GRAPHIC or 1 is chosen then any output by thePRINT command will be directed to a graphic LCD based on theSamsung S6B0108 chipset. A value of 0 or ALPHA, or if the DE-CLARE is not issued will target the standard alphanumeric LCD typeTargeting the graphic LCD will also enable commands such as PLOT,UNPLOT, LCDGET, and LCDPUT.DECLARE LCD_DTPORT PORTAssign the port that will output the 8-bit data to the graphic LCD.If the DECLARE is not used, then the default port is PORTB.45Copyright Crownhill 2001

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

Saved successfully!

Ooh no, something went wrong!