Mikroelektronika MIKROE-350 データシート
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 word, dim height as
word, dim fntW as word, dim DeviceAddress as byte, dim wr as
byte, dim rd as byte, dim cd as byte, dim rst as byte)
word, dim fntW as word, dim DeviceAddress as byte, dim wr as
byte, dim rd as byte, dim cd as byte, dim 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).
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 + |
+ + |
+---------------------+ /\
+ GRAPHICS PANEL #0 + |
+ + |
+ + |
+ + |
+---------------------+ | PANEL 0
+ TEXT PANEL #0 + |
+ + \/
+---------------------+ /\
+ GRAPHICS PANEL #1 + |
+ + |
+ + |
+ + |
+---------------------+ | PANEL 1
+ TEXT PANEL #2 + |
+ + |
+---------------------+ \/