Mikroelektronika MIKROE-724 データシート

ページ / 726
350
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
External dependencies of Graphic Lcd Library
The following variables must be defined in all 
projects using Graphic Lcd Library:
Description:
Example:
dim GLCD_D0 as sbit sfr external
Data 0 line.
dim GLCD_D0 as sbit at RB0_bit
dim GLCD_D1 as sbit sfr external
Data 1 line.
dim GLCD_D1 as sbit at RB1_bit
dim GLCD_D2 as sbit sfr external
Data 2 line.
dim GLCD_D2 as sbit at RB2_bit
dim GLCD_D3 as sbit sfr external
Data 3 line.
dim GLCD_D3 as sbit at RB3_bit
dim GLCD_D4 as sbit sfr external
Data 4 line.
dim GLCD_D4 as sbit at RD0_bit
dim GLCD_D5 as sbit sfr external
Data 5 line.
dim GLCD_D5 as sbit at RD1_bit
dim GLCD_D6 as sbit sfr external
Data 6 line.
dim GLCD_D6 as sbit at RD2_bit
dim GLCD_D7 as sbit sfr external
Data 7 line.
dim GLCD_D7 as sbit at RD3_bit
dim GLCD_CS1 as sbit sfr external
Chip Select 1 line.
dim GLCD_CS1 as sbit at LATB4_bit
dim GLCD_CS2 as sbit sfr external
Chip Select 2 line.
dim GLCD_CS2 as sbit at LATB5_bit
dim GLCD_RS as sbit sfr external
Register select line.
dim GLCD_RS as sbit at LATF0_bit
dim GLCD_RW as sbit sfr external
Read/Write line.
dim GLCD_RW as sbit at LATF1_bit
dim GLCD_EN as sbit sfr external
Enable line.
dim GLCD_EN as sbit at LATF4_bit
dim GLCD_RST as sbit sfr external
Reset line.
dim GLCD_RST as sbit at RB5_bit
dim  GLCD_D0_Direction  as  sbit  sfr 
external
Direction of the Data 0 pin.
dim  GLCD_D0_Direction  as  sbit  at 
TRISB0_bit
dim  GLCD_D1_Direction  as  sbit  sfr 
external
Direction of the Data 1 pin.
dim  GLCD_D1_Direction  as  sbit  at 
TRISB1_bit
dim  GLCD_D2_Direction  as  sbit 
sfr external
Direction of the Data 2 pin.
dim GLCD_D2_Direction as sbit at 
TRISF2_bit
dim  GLCD_D3_Direction  as  sbit  sfr 
external
Direction of the Data 3 pin.
dim  GLCD_D3_Direction  as  sbit  at 
TRISF3_bit
dim  GLCD_D4_Direction  as  sbit  sfr 
external
Direction of the Data 4 pin.
dim  GLCD_D4_Direction  as  sbit  at 
TRISD0_bit
dim  GLCD_D5_Direction  as  sbit  sfr 
external
Direction of the Data 5 pin.
dim  GLCD_D5_Direction  as  sbit  at 
TRISD1_bit
dim  GLCD_D6_Direction  as  sbit  sfr 
external
Direction of the Data 6 pin.
dim  GLCD_D6_Direction  as  sbit  at 
TRISD2_bit
dim  GLCD_D7_Direction  as  sbit  sfr 
external
Direction of the Data 7 pin.
dim  GLCD_D7_Direction  as  sbit  at 
TRISD3_bit
dim  GLCD_CS1_Direction  as  sbit  sfr 
external
Direction of the Chip Select 
1 pin.
dim  GLCD_CS1_Direction  as  sbit  at 
TRISB4_bit
dim  GLCD_CS2_Direction  as  sbit  sfr 
external
Direction of the Chip Select 
2 pin.
dim  GLCD_CS2_Direction  as  sbit  at 
TRISB5_bit
dim  GLCD_RS_Direction  as  sbit  sfr 
external
Direction  of  the  Register 
select pin.
dim  GLCD_RS_Direction  as  sbit  at 
TRISF0_bit
dim  GLCD_RW_Direction  as  sbit  sfr 
external
Direction of the Read/Write 
pin.
dim  GLCD_RW_Direction  as  sbit  at 
TRISF1_bit
dim  GLCD_EN_Direction  as  sbit  sfr 
external
Direction of the Enable pin.
dim  GLCD_EN_Direction  as  sbit  at 
TRISF4_bit
dim  GLCD_RST_Direction  as  sbit  sfr 
external
Direction of the Reset pin.
dim  GLCD_RST_Direction  as  sbit  at 
TRISF5_bit