User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
321
Epson S1D13700 Graphic Lcd Library
The mikroPascal PRO for dsPIC30/33 and PIC24 provides a library for working with Glcds based on Epson S1D13700
controller.
The S1D13700 Glcd is capable of displaying both text and graphics on an LCD panel. The S1D13700 Glcd allows
layered text and graphics, scrolling of the display in any direction, and partitioning of the display into multiple screens.
It includes 32K bytes of embedded SRAM display memory which is used to store text, character codes, and bit-mapped
graphics.
The S1D13700 Glcd handles display controller functions including :
- Transferring data from the controlling microprocessor to the buffer memory
- Reading memory data, converting data to display pixels
- Generating timing signals for the LCD panel
The S1D13700 Glcd is designed with an internal character generator which supports 160, 5x7 pixel characters in
internal mask ROM (CGROM) and 64, 8x8 pixel characters incharacter generator RAM (CGRAM).
When the CGROM is not used, up to 256, 8x16 pixel characters are supported in CGRAM.
External dependencies of the Epson S1D13700 Graphic Lcd Library
The following variables must
be dened in all projects using
S1D13700 Graphic Lcd library:
Description: Example:
var S1D13700_DATA : byte;
sfr; external;
System data bus.
var S1D13700_DATA at PORTD;
var S1D13700_WR : sbit; sfr;
external;
Write signal.
var S1D13700_WR : sbit at LATC2_bit;
var S1D13700_RD : sbit; sfr;
external;
Read signal.
var S1D13700_RD : sbit at LATC1_bit;
var S1D13700_A0 : sbit; sfr;
external;
System Address pin.
var S1D13700_A0 : sbit at LATC0_bit;
var S1D13700_RES : sbit; sfr;
external;
Reset signal.
var S1D13700_RES : sbit at LATC3_bit;
var S1D13700_CS : sbit; sfr;
external;
Chip select.
var S1D13700_CS : sbit at LATC4_bit;
var S1D13700_DATA_Direction
: byte; sfr; external;
Direction of the system data bus
pins.
var S1D13700_DATA_Direction sbit at
PORTD;
var S1D13700_WR_Direction :
sbit; sfr; external;
Direction of the Write pin.
var S1D13700_WR_Direction : sbit at
TRISC2_bit;
var S1D13700_RD_Direction :
sbit; sfr; external;
Direction of the Read pin.
var S1D13700_RD_Direction : sbit at
TRISC1_bit;
var S1D13700_A0_Direction :
sbit; sfr; external;
Direction of the System Address
pin.
var S1D13700_A0_Direction : sbit at
TRISC0_bit;
var S1D13700_RES_Direction :
sbit; sfr; external;
Direction of the Reset pin.
var S1D13700_RES_Direction : sbit at
TRISC3_bit;
var S1D13700_CS_Direction :
sbit; sfr; external;
Direction of the Chip select pin.
var S1D13700_CS_Direction : sbit at
TRISC4_bit;