RAiO RA8803/8822 Two Layers Text/Graphic LCD Controller Specification Version 2.1 August 4, 2005 RAiO Technology Inc. ©Copyright RAiO Technology Inc. 2004, 2005 RAiO TECHNOLOGY INC. 1/8 www.raio.com.tw RA8803/8822 Version 2.1 Two Layers Character/Graphical LCD Controller 1. General Description The RA8803/RA8822 is a Dot-Matrix LCD controller which support both text and graphics mode. It built-in two Display RAM for two layers display, and an embedded 512Kbyte character ROM that consists of Chinese, English and ASCII fonts. In text mode, the RA8803/8822 support Chinese BIG5 code or GB code. The system (MPU) does not need take a lot of time to show the Chinese font in graphics mode. The RA8803/8822 support 8080/6800 like MPU interface, and also provide 4-Bit or 8-Bit data bus. For LCD driver interface, it support the most of LCD Driver in the world. The RA8803 support maximum LCD panel is 320x240 dots, and RA8822 is 240x160 dots. If use extension mode then the RA8803 support up to 640x240(320x480) dots Panel, and RA8822support up to 480x160(240x320) dots. The embedded 10-Bit ADC and Analog Switch provide the 4-wires Touch Panel interface. The 5-Bit DAC provides the contrast control of the LCD panel. The RA8803/8822 also provide an 8x8 Key-Scan interface that reduces the loading of MPU. Except for 16x16 Chinese font size, RA8803/8822 also provides a great choice of different font sizes, such as 32x32, 48x48, or even 64x64. The embedded 512Byte SRAM allows user build their own characters or symbols for convenience. The RA8803/8822 is a high integration chip of LCD Controller. It reduce a lot of time for system develop, and save much cost for hardware system that due to it provides many features for related LCD display application. 2. Feature Support Text and Graphics Mode Built-In 512Byte SRAM for Create Font Support 2-Layers Display(AND, OR, NOR, XOR), Built-in Two 9.6K/4.8Kbyte Display Data RAM Font Size Adjustable: 32x32, 48x48 or 64x64, and V/H Mixed Mode Support Full Size(16x16) and Half Size(8x16) Mode Dual Page Support Maximum 320x240(RA8803) Or 240x160(RA8822) Dots Panel Font ROM Readable Support Align Function Extension Mode RA8803: 640x240(320x480) RA8822: 480x160(240x320) Dots Support 4 Gray Layer Display Support 4/8Bit of 6800/8080 MPU Interface Built-In 10-Bit ADC for Touch Panel Built-In 8x8 Key-Scan Circuit Built-In 5-Bit DAC for Contrast Control Support Horizontal and Vertical Scrolling Clock: 32KHz X’tal or External Clock Support 4/8Bit LCD Driver Interface Built-In a 5V to 3.3V DC-DC Converter Built-In 512KByte Font ROM, Power Supply: 2.4~5V Support Bold Font and Line Distance Setting _ RA8803/8822-T : 13,094 Traditional Chinese Fonts Package: Die,PQFP/LQPF 100Pins _ RA8803/8822-S : 7,602 Simple Chinese Fonts RAiO TECHNOLOGY INC. 2/8 www.raio.com.tw RA8803/8822 Version 2.1 Two Layers Character/Graphical LCD Controller 3. Block Diagram Figure 3-1 is the internal block diagram of RA8803. The RA8803 consists of Display RAM, 512Kbyte Font ROM, Command Registers, Analog to Digital Converter(ADC), Digital to Analog Converter(DAC), Display Timing Generator(DTG) and Microprocessor interface. Figure 3-2 is the internal block diagram of RA8822. The major different of RA8803 and RA8822 is the Display RAM size. The RA8803 built-in two 9.6Kbyte display RAM, and RA8822 built-in two 4.8Kbyte. KR[7..0] KC[7..0] 320x240x2 (Two Page) 8x8 Key Scan DISPLAY DATA SRAM (9.6KByte x 2) LP FRM 5 Bit DAC IOUT REGISTER CIRCUIT LPF XB YD DISPOFF XCK LD[7..0] 512B FONT SRAM 512KB FONT ROM PLL CIRCUIT XA DISPLAY TIMING GENERATOR CIRCUIT X1 X2 Y1 Y2 CLK_OUT OPM[0..1] SYS_FQ SYS_DB SYS_MI SYS_DW RST# BUSY DB[7..0] INT RS EN CS2 RW# CS1# SYS_NM SYSTEM CONFIGURE CIRCUIT MCU INTERFACE CIRCUIT 10 Bit ADC Figure 3-1: RA8803 Block Diagram RAiO TECHNOLOGY INC. 3/8 www.raio.com.tw RA8803/8822 Version 2.1 Two Layers Character/Graphical LCD Controller KR[7..0] KC[7..0] 240x160x2 (Two Page) 8x8 Key Scan DISPLAY DATA SRAM (4.8KByte x 2) LP FRM 5 Bit DAC IOUT LPF XB DISPOFF XCK LD[7..0] 512B FONT SRAM 512KB FONT ROM PLL CIRCUIT XA DISPLAY TIMING GENERATOR CIRCUIT REGISTER CIRCUIT YD X1 X2 Y1 Y2 CLK_OUT OPM[0..1] SYS_FQ SYS_DB SYS_MI SYS_DW RST# BUSY DB[7..0] INT RS EN CS2 RW# CS1# MCU INTERFACE CIRCUIT SYS_NM SYSTEM CONFIGURE CIRCUIT 10 Bit ADC Figure 3-2: RA8822 Block Diagram 4. Pin Definition 4.1 MPU Interface Pin Name I/O Description Data Bus DB[7..0] I/O These are data bus for data transfer between MPU and RA8803/8822. The high nibble DB[7..4] should be floating when 4-bit data bus mode is used. Enable/Read Enable EN (RD#) I When MPU I/F is 8080 series, this pin (RD#) is used as data read, active low. When MPU I/F is 6800 series, this pin (EN) is used as Enable, active high. Write/Read-Write R/W# (WR#) I When MPU I/F is 8080 series, this pin (WR#) is used as data write, active low. When MPU I/F is 6800 series, this pin(R/W#) is used as data read/write RAiO TECHNOLOGY INC. 4/8 www.raio.com.tw RA8803/8822 Version 2.1 Two Layers Character/Graphical LCD Controller control. Active high for read and active low for write. Register/Memory Select RS I The MPU will access Register when RS is Low and access Data Memory when RS is High. Usually connect to MPU address bus A0. CS1# I CS2 Chip Select The RA8803/8822 is active when CS1# is low and CS2 is high Interrupt Signal INT O This is an interrupt output to indicate the status of RA8803/88822. It could be setup active high or low. Busy Signal BUSY O This is a busy output to indicate the RA8803/88822 is in busy state. It could be setup active high or low. If setup active high, the RA8803/8822 can’t be access when BUSY pin is high. It’s should be connected to MPU I/O input. The MPU have to poll this pin before accessing RA8803/8822. 4.2 LCD Driver Interface Pin Name I/O YD O Description Start Signal of LCD Per Frame YD is the frame start signal. Control Signal of LCD AC Wave FRM O LP O XCK O DISPOFF O This signal controlt the Level Shift of LCD driver. Normally inputs a frame inversion signal. LCD Common Latch This is a latch signal for LCD driver to latch the Common data. LCD Clock This is a shift clock signal for LCD driver. LCD Display OFF This signal is used to control the LCD Display ON or OFF. LCD Driver Data Bus LD[7..0] O When 8-bit LCD driver IC is used. LD[7..0] are connected to LCD driver data bus. When 4-bit CPU is used, LD[3..0] are connected to LCD driver data bus, but LD[7..4] are non-connected. 4.3 Clock Interface Pin Name I/O LPF I RAiO TECHNOLOGY INC. Description Low Pass Filter Input This is a low pass filter input. Please refer the circuit of application note. 5/8 www.raio.com.tw RA8803/8822 Version 2.1 Two Layers Character/Graphical LCD Controller X’tal Input XA I In internal clock mode, this pin connects to external X’tal(32768Hz). In external clock mode, this is an input of external clock. XB O X’tal Output This pin connects to external X’tal(32768Hz). 4.4 Peripheral Interface Pin Name I/O RST# I X1 I X2 I Y1 I Y2 I IOUT O KR[7..0] I KC[7.0] O CLK_OUT O SYS_NM I Description Reset Signal This is a reset signal used to reset RA8803/8822. Active low. Touch Panel Input This is connecting to the left pin of 4-wire touch panel. Touch Panel Input This is connecting to the right pin of 4-wire touch panel. Touch Panel Input This is connecting to the top pin of 4-wire touch panel. Touch Panel Input This is connecting to the bottom pin of 4-wire touch panel. DAC Current Output DAC current source output used to contrast voltage control. This pin is tristate when DAC disbale. Key Pad Input These pins are keypad inputs. Key Pad Output These pins are keypad outputs. Clock Output This is system clock output pin. Test Pin This is a test pin. Normally it has to connect high. System Clock Select This pin is used to select clock source. Pull Low (0): X’tal/PLL Mode. SYS_FQ I Pull High(1) : External Clock. When SYS_FQ is Pull Low, then Internal oscillator and PLL are enable, only one external 32Khz X’tal need. When SYS_FQ is Pull High, then the system clock is from external pin “XA”. LCD Driver Data Bus Select SYS_DW I This pin is used to select data bus of LCD driver is 8-Bit or 4-Bit: Pull Low(0) : 4-Bit RAiO TECHNOLOGY INC. 6/8 www.raio.com.tw RA8803/8822 Version 2.1 Two Layers Character/Graphical LCD Controller Pull High(1) : 8-Bit When SYS_DW is Pull Low, then the LCD driver data bus Is 4-Bit. When SYS_DW is Pull High, then the LCD driver data bus is 8-Bit. MPU Type Select This pin is used to select MPU type: Pull Low(0) : I8080 Series SYS_MI I Pull High(1) : M6800 Series When SYS_MI is Pull Low, then the MPU Interface of RA8803/8822 is suppported I8080. When SYS_MI is Pull High, then the MPU Interface of RA8803/8822 is supported M6800. 8080 MPU Data Bus Select This pin is used to select data bus of 8080 MPU is 4-Bitor 8-Bit: Pull Low(0) : 4-Bit SYS_DB I Pull High(1) : 8-Bit When SYS_DB is Pull Low, then the 8080 MPU Interface of RA8803/8822 is supported 4-Bit. When SYS_DB is Pull High, then the 8080 MPU Interface of RA8803/8822 is supported 4-Bit. Operation Status of Current Command These two pins are the feedback from RA8803/8822 while MPU release a Read or Write command to RA8803/8822. The MPU could know the status of RA8803/8822. OPM0 OPM1 O OPM0 OPM1 State 1 0 MPU is reading data from RA8803/8822. 1 1 MPU is writing data to RA8803/8822. 0 X RA8803/8822 did not receive command or read a valid commend. Normally the system does not need to use these two pins. And keep floating for not use. 4.5 Power Pin Name I/O Description 5V Power VDD5 I VDD3 I/O RAiO TECHNOLOGY INC. This is the input of 5V to 3.3V DC to DC Converter. If it connects to 5V power then the pin VDD3 will generate 3.3V power for internal cells and external device. 3.3V Power If the pin VDD5 connects to 5V power then this pin will generate 3.3V 7/8 www.raio.com.tw RA8803/8822 Version 2.1 Two Layers Character/Graphical LCD Controller power for internal cells and external device. If the system uses 3.3V power only, then connect this pin to external 3.3V power directly. VDDP I I/O Power AVDD I Analog Power of ADC for Touch Panel Controller I Ground AGND I Analog Ground of ADC for Touch Panel Controller TEST I GND GNDP Test Pin This pin is for test only and don’t need to connect. 5. System Block Diagram MPU H/W Set Up LCD Driver RA8803 RA8822 LCD Panel Booster (Contrast Adj.) Touch Panel Clock 8x8 Key Scan RAiO TECHNOLOGY INC. 8/8 www.raio.com.tw