User manual
376
mikoC PRO for dsPIC
MikroElektronika
Requires - GLCD_EN : Enable signal pin
- GLCD_RST : Reset signal pin
- GLCD_D0_Direction : Direction of the Data pin 0
- GLCD_D1_Direction : Direction of the Data pin 1
- GLCD_D2_Direction : Direction of the Data pin 2
- GLCD_D3_Direction : Direction of the Data pin 3
- GLCD_D4_Direction : Direction of the Data pin 4
- GLCD_D5_Direction : Direction of the Data pin 5
- GLCD_D6_Direction : Direction of the Data pin 6
- GLCD_D7_Direction : Direction of the Data pin 7
- GLCD_CS1_Direction : Direction of the Chip select 1 pin
- GLCD_CS2_Direction : Direction of the Chip select 2 pin
- GLCD_RS_Direction : Direction of the Register select signal pin
- GLCD_RW_Direction : Direction of the Read/Write signal pin
- GLCD_EN_Direction : Direction of the Enable signal pin
- GLCD_RST_Direction : Direction of the Reset signal pin
must be dened before using this function.
Example
// Glcd pinout settings
sbit GLCD_D0 at RB0_bit;
sbit GLCD_D1 at RB1_bit;
sbit GLCD_D2 at RB2_bit;
sbit GLCD_D3 at RB3_bit;
sbit GLCD_D4 at RD0_bit;
sbit GLCD_D5 at RD1_bit;
sbit GLCD_D6 at RD2_bit;
sbit GLCD_D7 at RD3_bit;
sbit GLCD_CS1 at RB0_bit;
sbit GLCD_CS2 at RB1_bit;
sbit GLCD_RS at RB2_bit;
sbit GLCD_RW at RB3_bit;
sbit GLCD_EN at RB4_bit;
sbit GLCD_RST at RB5_bit;
sbit GLCD_D0_Direction at TRISB0_bit;
sbit GLCD_D1_Direction at TRISB1_bit;
sbit GLCD_D2_Direction at TRISB2_bit;
sbit GLCD_D3_Direction at TRISB3_bit;
sbit GLCD_D4_Direction at TRISD0_bit;
sbit GLCD_D5_Direction at TRISD1_bit;
sbit GLCD_D6_Direction at TRISD2_bit;
sbit GLCD_D7_Direction at TRISD3_bit;
sbit GLCD_CS1_Direction at TRISB0_bit;
sbit GLCD_CS2_Direction at TRISB1_bit;
sbit GLCD_RS_Direction at TRISB2_bit;
sbit GLCD_RW_Direction at TRISB3_bit;
sbit GLCD_EN_Direction at TRISB4_bit;
sbit GLCD_RST_Direction at TRISB5_bit;
...
Glcd_Init();
Notes None.