User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
307
Epson S1D13700 Graphic Lcd Library
The mikroC PRO for PIC32 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:
extern sfr char S1D13700_DATA;
System data bus.
char S1D13700_DATA at PORTD;
extern sfr sbit S1D13700_WR;
Write signal.
sbit S1D13700_WR at LATC2_bit;
extern sfr sbit S1D13700_RD;
Read signal.
sbit S1D13700_RD at LATC1_bit;
extern sfr sbit S1D13700_A0;
System Address pin.
sbit S1D13700_A0 at LATC0_bit;
extern sfr sbit S1D13700_RES;
Reset signal.
sbit S1D13700_RES at LATC4_bit;
extern sfr sbit S1D13700_CS;
Chip select.
sbit S1D13700_CS at LATC4_bit;
extern sfr sbit S1D13700_DATA_
Direction;
Direction of the system data bus
pins.
sbit S1D13700_DATA_Direction at
TRISD;
extern sfr sbit S1D13700_WR_
Direction;
Direction of the Write pin.
sbit S1D13700_WR_Direction at TRISC2_
bit;
extern sfr sbit S1D13700_RD_
Direction;
Direction of the Read pin.
sbit S1D13700_RD_Direction at TRISC1_
bit;
extern sfr sbit S1D13700_A0_
Direction;
Direction of the System Address
pin.
sbit S1D13700_A0_Direction at TRISC2_
bit;
extern sfr sbit S1D13700_RES_
Direction;
Direction of the Reset pin.
sbit S1D13700_RES_Direction at
TRISC0_bit;
extern sfr sbit S1D13700_CS_
Direction;
Direction of the Chip select pin.
sbit S1D13700_CS_Direction at TRISC4_
bit;