Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
GRAPHIC LCD LIBRARY
The mikroPascal PRO for AVR provides a library for operating Graphic Lcd 128x64
(with commonly used Samsung KS108/KS107 controller).
For creating a custom set of Glcd images use Glcd Bitmap Editor Tool.
External dependencies of Graphic Lcd Library
234
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
The following variables
must be defined in all
projects using Sound
Library:
Description: 
Example : 
var GLCD_DataPort :
byte; 
sfr; external;
Glcd Data Port.
var GLCD_DataPort :
byte at PORTC;
varGLCD_DataPort_Direc
tion : byte; 
sfr;
external;
Direction of the Glcd Data
Port.
var
GLCD_DataPort_Direction
: byte 
at DDRC;
var GLCD_CS1 : sbit;
sfr; external;
Chip Select 1 line.
var GLCD_CS1 : sbit at
PORTD.B2;
var GLCD_CS2 : sbit;
sfr; external;
Chip Select 2 line.
var GLCD_CS2 : sbit at
PORTD.B3;
var GLCD_RS : sbit;
sfr; external;
Register select line.
var GLCD_RS : sbit at
PORTD.B4;
var GLCD_RW : sbit;
sfr; external;
Read/Write line.
var GLCD_RW : sbit at
PORTD.B5;
var GLCD_EN : sbit;
sfr; external;
Enable line.
var GLCD_EN : sbit at
PORTD.B6;
var GLCD_RST : sbit;
sfr; external;
Reset line.
var GLCD_RST : sbit at
PORTD.B7;
var
GLCD_CS1_Direction :
sbit; sfr; external;
Direction of the Chip
Select 1 pin.
var GLCD_CS1_Direction
sbit at DDRD.B2;
var
GLCD_CS2_Direction :
sbit; sfr; external;
Direction of the Chip
Select 2 pin.
var GLCD_CS2_Direction
sbit at DDRD.B3;
var GLCD_RS_Direction
sbit; sfr; external;
Direction of the Register
select pin.
var GLCD_RS_Direction
sbit at DDRD.B4;
var GLCD_RW_Direction
sbit; sfr; external;
Direction of the
Read/Write pin.
var GLCD_RW_Direction
sbit at DDRD.B5;
var GLCD_EN_Direction
: sbit; sfr; external;
Direction of the Enable pin.
var GLCD_EN_Direction
sbit at DDRD.B6;
var GLCD_RST_Direction
sbit; sfr; external;
Direction of the Reset pin.
var GLCD_RST_Direction
sbit at DDRD.B7;