Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
SPI_T6963C_Config
422
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure SPI_T6963C_Config(dim width as worddim height as
word
dim fntW as worddim DeviceAddress as bytedim wr as
byte
dim rd as bytedim cd as bytedim rst as byte)
Returns
Nothing.
Description
Initalizes the Graphic Lcd controller.
Parameters : 
width:
width of the Glcd panel 
height:
height of the Glcd panel 
fntW:
font width 
DeviceAddress:
SPI expander hardware address, see schematic at the 
bottom of this page 
wr:
write signal pin on Glcd control port 
rd:
read signal pin on Glcd control port 
cd:
command/data signal pin on Glcd control port 
rst:
reset signal pin on Glcd control port 
Display RAM organization:
The library cuts RAM into panels : a complete panel is one graphics panel fol-
lowed by a text panel (see schematic below). 
schematic:
+---------------------+ /\
+ GRAPHICS PANEL #0   +  |
+                     +  |
+                     +  |
+                     +  |
+---------------------+  | PANEL 0
+ TEXT PANEL #0       +  |
+                     + \/
+---------------------+ /\
+ GRAPHICS PANEL #1   +  |
+                     +  |
+                     +  |
+                     +  |
+---------------------+  | PANEL 1
+ TEXT PANEL #2       +  |
+                     +  |
+---------------------+ \/