Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
323
Epson S1D13700 Graphic Lcd Library
The mikroBasic 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 defined 
in all projects using S1D13700 Graphic 
Lcd library:
Description:
Example:
dim  S1D13700_DATA  as  byte  sfr 
external
System data bus.
dim S1D13700_DATA at PORTD
dim  S1D13700_WR  as  sbit  sfr 
external
Write signal.
dim S1D13700_WR as sbit at LATC2_bit
dim  S1D13700_RD  as  sbit  sfr 
external
Read signal.
dim S1D13700_RD as sbit at LATC1_bit
dim  S1D13700_A0  as  sbit  sfr 
external
System Address pin.
dim S1D13700_A0 as sbit at LATC0_bit
dim  S1D13700_RES  as  sbit  sfr 
external
Reset signal.
dim S1D13700_RES as sbit at LATC4_bit
dim  S1D13700_CS  as  sbit  sfr 
external
Chip select.
dim S1D13700_CS as sbit at LATC4_bit
dim  S1D13700_DATA_Direction  as 
byte sfr external
Direction of the system data bus 
pins.
dim  S1D13700_DATA_Direction  sbit  at 
TRISD
dim  S1D13700_WR_Direction  as 
sbit sfr external
Direction of the Write pin.
dim S1D13700_WR_Direction as sbit at 
TRISC2_bit
dim  S1D13700_RD_Direction  as 
sbit sfr external
Direction of the Read pin.
dim S1D13700_RD_Direction as sbit at 
TRISC1_bit
dim  S1D13700_A0_Direction  as 
sbit sfr external
Direction  of  the  System Address 
pin.
dim S1D13700_A0_Direction as sbit at 
TRISC2_bit
dim  S1D13700_RES_Direction  as 
sbit sfr external
Direction of the Reset pin.
dim  S1D13700_RES_Direction  as  sbit 
at TRISC0_bit
dim  S1D13700_CS_Direction  as 
sbit sfr external
Direction of the Chip select pin.
dim S1D13700_CS_Direction as sbit at 
TRISC4_bit