Mikroelektronika MIKROE-442 Datenbogen
570
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
T6963C_init
Prototype
sub procedure T6963C_init(dim width, height, fntW as word, dim byref data
as word, dim byref cntrl as word, dim wr, rd, cd, rst as word)
Description Initalizes the Graphic Lcd controller.
Display RAM organization:
The library cuts the RAM into panels: a complete panel is one graphics panel followed by a text panel
(see schematic below).
+---------------------+ /\
+ GRAPHICS PANEL #0 + |
+ + |
+ + |
+ + |
+---------------------+ | PANEL 0
+ TEXT PANEL #0 + |
+ + \/
+---------------------+ /\
+ GRAPHICS PANEL #1 + |
+ + |
+ + |
+ + |
+---------------------+ | PANEL 1
+ TEXT PANEL #1 + |
+ + |
+---------------------+ \/
Parameters -
width
: width of the Glcd panel
-
height
: height of the Glcd panel
-
fntW
: font width
Returns
Nothing.
Requires
Global variables:
-
T6963C_dataPort
: Data Port
-
T6963C_ctrlwr
: Write signal pin
-
T6963C_ctrlrd
: Read signal pin
-
T6963C_ctrlcd
: Command/Data signal pin
-
T6963C_ctrlrst
: Reset signal pin
-
T6963C_ctrlwr_Direction
: Direction of Write signal pin
-
T6963C_ctrlrd_Direction
: Direction of Read signal pin
-
T6963C_ctrlcd_Direction
: Direction of Command/Data signal pin
-
T6963C_ctrlrst_Direction
: Direction of Reset signal pin
must be defined before using this function.