Positron Compiler Documentation

KS0108 Graphic LCD specific Declares.

Positron16 · Revision 1.1.3.5 · PDF pages 421–422

Declare LCD_DTPort Port Assign the port that will output the 8-bit data to the graphic LCD.

There is no default setting for this Declare and it must be used within the BASIC program.

Declare LCD_RWPin Port.Pin Assigns the Port and Pin that the graphic LCD's RW line will attach to.

There is no default setting for this Declare and it must be used within the BASIC program.

Declare LCD_ENPin Port.Pin Assigns the Port and Pin that the graphic LCD's EN line will attach to.

There is no default setting for this Declare and it must be used within the BASIC program.

Declare LCD_RSPin Port.Pin Assigns the Port and Pins that the graphic LCD's RS line will attach to.

There is no default setting for this Declare and it must be used within the BASIC program.

Declare LCD_CS1Pin Port.Pin Assigns the Port and Pin that the graphic LCD's CS1 line will attach to.

There is no default setting for this Declare and it must be used within the BASIC program.

Declare LCD_CS2Pin Port.Pin Assigns the Port and Pin that the graphic LCD's CS2 line will attach to.

There is no default setting for this Declare and it must be used within the BASIC program.

Declare GLCD_CS_Invert On - Off, 1 or 0 Some graphic LCD types have inverters on their CS lines. Which means that the LCD displays left hand data on the right side, and vice-versa. The GLCD_CS_Invert Declare, adjusts the library LCD handling library subroutines to take this into account.

View original PDF page 421Open page in PDFOriginal PDF page 421

Declare GLCD_Strobe_Delay 0 to 16383 cycles. If a noisy circuit layout is unavoidable when using a graphic LCD, then the above Declare may be used. This will create a delay between the Enable line being strobed. This can ease random data being produced on the LCD's screen.

If the Declare is not used in the program, then the cycles delay is determined by the oscillator used.

View original PDF page 422Open page in PDFOriginal PDF page 422