User manual
572
mikoC PRO for dsPIC
MikroElektronika
SPI_Lcd8_Cmd
Prototype
void SPI_T6963C_cong(unsigned int width, unsigned char height, unsigned
char fntW, char DeviceAddress, unsigned char wr, unsigned char rd, unsigned
char cd, unsigned char rst);
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.