Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SPI_T6963C_Config
431
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure SPI_T6963C_Config(width : word; height : word; fntW :word;
DeviceAddress : byte; wr : byte; rd : byte; cd : byte; rst : 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 bot-
tom 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       +  |
+                     +  |
+---------------------+ \/