User manual
548
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
SPI_T6963C_cong
Prototype
sub procedure SPI_T6963C_cong(dim width, height, fntW as word, dim
DeviceAddress as byte, dim wr, rd, cd, rst as byte)
Description Initializes T6963C Graphic Lcd controller.
Display RAM organization:
The library cuts 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
- 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
Returns Nothing.
Requires Global variables:
- SPExpanderCS: Chip Select line
- SPExpanderRST: Reset line
- SPExpanderCS_Direction: Direction of the Chip Select pin
- SPExpanderRST_Direction: Direction of the Reset pin
must be dened before using this function.
The SPI module needs to be initialized. See the SPIx_Init and SPIx_Init_Advanced routines.