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> CompilerDECLARE LCD_RWPIN PORT . PINAssigns the Port and Pin that the graphic LCD’s RW line will attach to.If the DECLARE is not used in the program, then the default Port andPin is PortC.0.DECLARE LCD_CS1PIN PORT . PINAssigns the Port and Pin that the graphic LCD’s CS1 line will attachto.If the DECLARE is not used in the program, then the default Port andPin is PortC.0.DECLARE LCD_CS2PIN PORT . PINAssigns the Port and Pin that the graphic LCD’s CS2 line will attachto.If the DECLARE is not used in the program, then the default Port andPin is PortC.0.DECLARE INTERNAL_FONT ON - OFF, 1 or 0The graphic LCD’s that are compatible with <strong>PICBASIC</strong> <strong>PLUS</strong> are nonintelligenttypes, therefore, a separate character set is required. Thismay be in one of two places, either externally, in an I 2 C eeprom, or internallyin a CDATA table.If an external font is chosen, the I 2 C eeprom must be connected to thespecified SDA and SCL pins (as dictated by DECLARE SDA and DE-CLARE SCL).If an internal font is chosen, it must be on a PIC device that has selfmodifying code features, such as the 16F87X range.The CDATA table that contains the font must have a label, namedFONT: preceding it. For example: -FONT: CDATA $7E , $11 , $11 , $11 , $7E , $0CDATA $7F , $49 , $49 , $49 , $36 , $0{ rest of font table }‘ Chr “A”‘ Chr “B”The font table may be anywhere in memory, however, it is best placedafter the main program code.If the DECLARE is omitted from the program, then an external font isthe default setting.46Copyright Crownhill 2001

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

Saved successfully!

Ooh no, something went wrong!