RAiO RA8802/8820 Character/Graphic LCD Controller Specification Version 1.4 July 12, 2011 RAiO Technology Inc. ©Copyright RAiO Technology Inc. RAiO TECHNOLOGY INC. 1/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller Update History Version 1.2 1.3 1.4 Date April 26, 2004 February 2, 2005 December 1, 2006 July 12, 2011 RAiO TECHNOLOGY INC. Description First Release Version Update Figure10-3 Modify REG [30h} and REG[40] full name of Page-13 Modify Ch2 : Operating Voltage 2/45 www.raio.com.tw RA8802/8820 Version 1.4 Chapter Character/Graphic LCD Controller Table of Contents Page 1. General Description............................................................................................................5 2. Feature.................................................................................................................................5 3. Block Diagram.....................................................................................................................6 4. Pin Definition.......................................................................................................................7 4.1 MCU Interface ...............................................................................................................................................7 4.2 Driver Interface .............................................................................................................................................7 4.3 Clock Interface..............................................................................................................................................8 4.4 Power Signal.................................................................................................................................................9 4.5 Misc. Signal...................................................................................................................................................9 5. Register Description.........................................................................................................10 5.1 Register List Table .................................................................................................................................... 10 5.2 Register Description ................................................................................................................................. 10 6. Function Description ........................................................................................................19 6.1 MCU Interface ............................................................................................................................................ 19 6.2 Command/Decoder register circuit ......................................................................................................... 19 6.3 Display Data RAM (DDRAM)..................................................................................................................... 20 6.4 Display Timing Generator......................................................................................................................... 20 6.5 LCD Display ............................................................................................................................................... 20 6.6 ROM ............................................................................................................................................................ 21 6.7 PLL/OSC Circuit ........................................................................................................................................ 21 6.8 DAC............................................................................................................................................................. 22 6.9 ADC............................................................................................................................................................. 22 6.10 Interrupt and Busy Flag .......................................................................................................................... 23 6.11 Power Saving Mode ................................................................................................................................ 23 6.12 ASCII Block Selection ............................................................................................................................. 23 7. Function Application ........................................................................................................24 7.1 Character Mode ......................................................................................................................................... 24 7.2 Characteristic Bold Display Function ..................................................................................................... 25 7.3 Graphics Display Function....................................................................................................................... 25 7.4 Blinking Display ........................................................................................................................................ 26 7.5 Black-White Display .................................................................................................................................. 26 7.6 Align the Chinese/English Font ............................................................................................................... 28 7.7 Cursor......................................................................................................................................................... 29 7.7.1 Cursor Position and Shift ..................................................................................................................... 29 7.7.2 Cursor Display and Blinking................................................................................................................. 29 7.7.3 Cursor Width and Height ..................................................................................................................... 30 7.8 Display Window and Active Window ...................................................................................................... 30 8. Interfacing to the Driver ...................................................................................................32 RAiO TECHNOLOGY INC. 3/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 9. Electrical Characteristics .................................................................................................33 9.1 Absolute Maximum Ratings ..................................................................................................................... 33 9.2 DC Characteristic ...................................................................................................................................... 33 10. PAD Diagram ...................................................................................................................34 10.1 Bonding Pad ............................................................................................................................................ 34 10.2 Pad X/Y Coordinate ................................................................................................................................. 35 10.3. Package Diagram ................................................................................................................................... 36 10.3.1 PQFP-100Pin..................................................................................................................................... 36 10.3.2 LQFP-100Pin(12x12)......................................................................................................................... 37 10.4 RA8802/8820 Package Leap frame ........................................................................................................ 38 10.4.1 PQFP-100 Pin.................................................................................................................................... 38 10.4.2 LQFP-100 Pin(Body Siz:14x20 mm) ................................................................................................. 39 10.4.3 LQFP-100 Pin(Body Siz:12x12 mm) ................................................................................................. 40 Appendix A. Built-in ASCII Block ........................................................................................42 RAiO TECHNOLOGY INC. 4/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 1. General Description The RA8802/8820 is a Character/Graphic dot-matrix liquid crystal display controller (LCD) with embedded 512K Byte Font ROM. The RA8802 supports up to 320x240 LCD panel size and RA8820 supports up to 240x160. In tradition, users need a graphic LCM to display Chinese characters. Now Chinese character’s display of RA8802/8820 presents a revolution. The RA8802/8820, instead of a MCU, can directly deal with the access of Chinese/English fonts that consist of BIG5 or GB, and ASCII code. The RA8802/8820 have some main functions as following. It’s equipped with 8-bit ADC, supporting touch panel interface. DAC is 5-bit, providing the brightness control of the LCD panel. The RA8802/8820 built in PLL/OSC two circuits provides user choice to generate system clock. The interface of RA8802/8820 fits both of 8080/6800 series’ MCU and 4/8-bit data bus. Besides that, the interface of LCD driver is compatible with many types of LCD drivers on the market. 2. Feature Dot matrix liquid crystal display controller supporting the display of Character/Graphic. Fast Character/Graphical Mode for ASCII & Chinese (Big5 Code and GB Code) support. Display Control Capacity Æ RA8802: 320×240 dots (Max), 20×15 full-size character or 40×15 half-size character RA8820: 240x160 dots (Max), 15x10 full-size character or 30x10 half-size character Display of 16x16 dot for full-size fonts consisting of Chinese, 8x16 dots for half-size fonts of alphanumeric characters and symbols in the same display. Clock source: RC Oscillator or 32K crystal for PLL (External 32KHz Crystal need). Built-in 9.6Kbyte/4.8Kbyte Display Data RAM High-speed 4/8-bit MCU interface allowing direct connection to both the 8080 and 6800. LCD interface: LCD driver compatible for data bus 4/8 bit supports. Built in 8-Bit ADC and 5-Bit DAC. RAiO TECHNOLOGY INC. 5/45 Embedded 512KByte Font ROM and provide 512KByte Font ROM Interface. BIG5: --Includes standard font: 13094 Chinese words --Includes special font: 408 Chinese words --Includes two set ASCII codes GB: --Total font: 7602 Chinese words Various instruction functions --White black inversion, cursor on/off/blink/bold/cursor height and cursorwidth. --Define the Work/ Display window address. Low Power Consumption Operating Voltage Æ _ RA8802: 2.7~4.0V _ RA8820: 2.7~4.0V Package: DIE, PQFP 100, LQFP 100 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller MA0 MA1 MA19 MD0 MCS# MD1 MD2 MD3 MD4 MD5 MD6 MD7 3. Block Diagram LP COMMAND DECODER / REGISTER CIRCUIT FRM YD DISPOFF XCK 512KB FONT ROM LPF RA RB XA DISPLAY TIMING GENERATOR CIRCUIT 5 Bit DAC Iout DISPLAY DATA SRAM LD7 LD6 LD5 LD4 LD3 LD2 PLL/OSC CIRCUIT LD1 LD0 XB X1 X2 8 Bit ADC Y1 Y2 DB0 RST# DB1 Vref DB2 DB3 DB4 DB5 DB6 DB7 BUSY INT EN RS RW# CS2 CS1# MCU INTERFACE CIRCUIT Figure 3-1 : Function Block of RA8802/8820 LCD Driver MCU LCD Panel RA8802 RA8820 Contrast Circuit Extendible Font ROM Hardware Pin Initial Setup Touch Panel Clock Figure 3-2 : System Block RAiO TECHNOLOGY INC. 6/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 4. Pin Definition 4.1 MCU Interface Pin name I/O DB[7..0] I/O RD# (EN) I WR# (R/W#) I RS I CS1# CS2 I INT O BUSY O Description Bi-direction 8 bit data bus connected to MCU data bus. The high nibble DB[7..4] should be connected to GND when 4 bit data bus mode is used. Active low RD# signal when 8080 MCU is used. Active high EN signal when 6800 series MCU are used. Active low WR# signal when 8080 MCU is used. The data are latched at the rising edge of the WR# signal. Connected to 6800 series MCU R/W# pin when 6800 MCU is used. The MCU data will be read from RA8802/8820 when R/W# is high and will be written to RA8802/8820 when R/W# is low. Register/Data select pin. Usually connect to MCU address bus A0. The MCU will access Instruction Register when RS is high and access Data Register when RS is low. Chip select pin. The RA8802/8820 is active when CS1# is low and CS2 is high Interrupt signal Active high or low Interrupt signal Active high or low busy signal. The RA8802/8820 can’t be access when BUSY pin is high. It’s should be connected to MCU I/O input. The MCU have to poll this pin before accessing RA8802/8820. 4.2 Driver Interface Pin name I/O YD O FRM O LP O XCK O DISPOFF O RAiO TECHNOLOGY INC. Description LCD Driver control signal YD will produce a pulse at the starting address of each Frame. AC-converting signal input for LCD driver waveform. Normally inputs a frame inversion signal The LCD driver output pin’s output voltage level can be set to the line latch output signal and the FR signal For Column: Latch pulse input pin for display data Data is latched on the falling edge of the clock pulse. For Row: Bi-directional shift register shift clock pulse input pin Data is shift on the falling edge of the clock pulse. Shift clock signal for LCD driver IC. Data is shifted on the falling edge of the XCK. Display off control signal used to control LCD power supply or backlight. The pin is controlled by LCR bit 2. The status of this pin is the same as LCR bit 2. 7/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller LD7 SYS_MI I/O LD6 SYS_DB I/O LD5 SYS_FQ I/O LD4 I/O LD3 SYS_LD I/O LD2 SYS_PLR I/O LD1 OPM1 I/O LD0 OPM0 I/O Alternative function pin LD7/SYS_MI. It’s connected to LCD driver IC D7, when 8-bit LCD driver IC is used. SYS_MI is for MCU type selection. It’s active on reset period. Non-Pull when 6800 MCU is used. Pull low when 8080 MCU series are used. Alternative function pin LD6/SYS_DB. It’s connected to LCD driver IC D6, when 8-bit LCD driver IC is used. SYS_DB is for MCU data bit selection. Non-Pull when 8-bit MCU is used. Pull low when 4-bit MCU is used. The high nibble data bus DB[7..4] Should tied to GND When 4-bit MCU is used. Alternative function pin LD5/SYS_FQ. It’s connected to LCD driver IC D5, when 8-bit LCD driver IC is used. SYS_FQ is for RA8802/8820 clock source selection. Non-Pull will enable internal PLL circuit and X’tal will be the clock source of RA8802/8820. Pull low when RC oscillator is used and it will disable internal PLL. LD4 It’s connected to LCD driver IC D4. When 8 bit LCD driver IC is used. Alternative function pin LD3/SYS_LD. This pin is connected to D3 pin of LCD driver IC. SYS_LD is for LCD driver data bus selection. Non-Pull when 8-bit LCD driver is used. Pull low when 4-bit LCD driver is used. It’s connected to LCD driver IC D2. SYS_PLR is polarity select. It’s connected to LCD driver IC D2. SYS_PLR is for RS polarity selection. When Non-Pull, then “RS” = 0 means Register Access Cycle, and “RS” = 1 means Data Access Cycle. When Pull Low, then “RS” = 1 means Register Access Cycle, and “RS” = 0 means Data Access Cycle. Alternative function pin LD1/OPM1. It’s connected to LCD driver IC D1. OPM1 and OPM0 are used to choose the test model of RA8802/8820. Do not Pull-Low for this pin. Alternative function pin LD0/OPM0. It’s connected to LCD driver IC D0. OPM1 and OPM0 are used to choose the test model of RA8802/8820. Do not Pull-Low for this pin. 4.3 Clock Interface Pin name I/O Description Oscillator Input. XA I This is the input signal of internal oscillator. Normally it connects to a 32768Hz X’tal. The XA, XB and LPF are used for X’tal and internal PLL. If in RC_OSC mode, then XA, XB and LPF should be Floating. Oscillator Output. XB O RAiO TECHNOLOGY INC. This is the output signal of internal oscillator. Normally it connects to a 32768Hz X’tal. 8/45 www.raio.com.tw RA8802/8820 Version 1.4 LPF Character/Graphic LCD Controller I LPF (Low Pass Filter) Input. This input is used for internal PLL circuit. Connect Resistance. RA I The RA, RB are used for RC-Oscillator mode. If in X’tal/PLL mode then RA and RB should be Floating. RB I Connect Resistance. 4.4 Power Signal Pin name VDD GND AVDD AGND I/O I I I I Description Power supply Power ground Analog power supply signal. Analog ground. 4.5 Misc. Signal Pin name I/O RST# I X1 X2 Y1 Y2 Iout Vref I I I I O O MA[19..0] O MCS# O MD[7..0] I SEL0 SEL1 I I RAiO TECHNOLOGY INC. Description Active low reset signal. (The reset pulse do not less than 100mS after MCU stable) Normally connected to touch panel Left pin XL. Normally connected to touch panel Right pin XR. Normally connected to touch panel Top pin YU. Normally connected to touch panel Bottom pin YD. DAC current source output used to contrast voltage control. ADC voltage reference signal. 20-bit Address Bus connected to the address bus of external character pattern ROM. Note: MA0 need to be Pulled High (10K) If do not use the external Font ROM, the MA[7:0] should tied to VDD to reduce the power consumption. Character pattern ROM chip select and output enable 8-bit Data Bus connected to the data bus of external character pattern ROM. Note: If do not use the external Font ROM, the MD[7:0] should tied to VDD to reduce the power consumption. Test pin must be tied to GND for normal use. Test pin must be tied to VDD for normal use. 9/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 5. Register Description 5.1 Register List Table Table 5-1 Reg. No 00h 08h 10h 18h 20h 28h 30h 38h 40h 48h 50h 58h 60h 70h 80h 90h A0h B0h B8h C0h C8h D0h E0h F0h Reg. Name LCR MIR CCR CSCR AWRR DWRR AWBR DWBR AWLR DWLR AWTR DWTR CPXR CPYR BTR SCCR INTR INTX INTY TPCR TPDR LCCR PDR FCR R/W D7 D6 D5 D4 D3 D2 D1 D0 R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R R/W R/W R/W PW1 ABP ARI CR3 --Y7 B7 --SC7 D7 -RC7 BT7 CK7 BSY -IY7 AZEN TP7 DZEN FD7 TNS PW2 CKN ALG CR2 --Y6 B6---SC6 D6 -RC6 BT6 CK6 INA -IY6 AZOE TP6 DZWE FD6 BNK SR DISP WDI CR1 X5 A5 Y5 B5 SS5 C5 SC5 D5 RS5 RC5 BT5 CK5 INX IX5 IY5 -TP5 DRST FD5 RM1 RTM PLR WBC CR0 X4 A4 Y4 B4 SS4 C4 SC4 D4 RS4 RC4 BT4 CK4 INY IX4 IY4 ADET TP4 DAC4 FD4 RM0 CG -AIX DY3 X3 A3 Y3 B3 SS3 C3 SC3 D3 RS3 RC3 BT3 CK3 MSZ IX3 IY3 AS3 TP3 DAC3 FD3 FDA DP -CP DY2 X2 A2 Y2 B2 SS2 C2 SC2 D2 RS2 RC2 BT2 CK2 MSA IX2 IY2 AS2 TP2 DAC2 FD2 ASC DK CKB1 CK DY1 X1 A1 Y1 B1 SS1 C1 SC1 D1 RS1 RC1 BT1 CK1 MSX IX1 IY1 AS1 TP1 DAC1 FD1 ABS1 DV CKB0 CSD DY0 X0 A0 Y0 B0 SS0 C0 SC0 D0 RS0 RC0 BT0 CK0 MSY IX0 IY0 AS0 TP0 DAC0 FD0 ABS0 5.2 Register Description REG [00h] LCD Controller Register (LCR) Bit Description Text/Graph Default Access Power Mode 11: Normal Mode 10: Standby Mode 01: Sleep Mode 7-6 00: Off Mode -- 11h R/W Normal mode: When RA8802/8820 is in normal mode it can execute full functions include RAM read/write, register read/write, LCD display valid signal. RAiO TECHNOLOGY INC. 10/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller Standby mode: When RA8802/8820 is in standby mode, except DDRAM/ROM access function is prohibited, others are working and so does LCD display function. Sleeping mode: When RA8802/8820 is in sleeping mode, the DDRAM/ROM access and LCD display are prohibited, but register access is permitted. Off mode: When RA8802/8820 is in off mode, all above functions enter power-off mode, except the wake-up trigger block. If wake-up event occurred, RA8802/8820 would wake-up and return to Normal mode. Software Reset: 5 1: Reset all registers except flushing RAM -- 0h R/W -- 0h R/W -- 1h R/W Text/Graph 0h R/W Text/Graph 0h R/W Text/Graph 1h R/W 0: Normal operation Set Auto_reset function 4 When the bit is Enable, if RA8802/8820 doesn’t get a full command or data within 2msec, then RA8802/8820 will ignore it. 1: Enable Auto_reset function 0: Disable Auto_reset function Display mode selection 1: Character mode 3 The written data will be treated as a GB/BIG/ASCII code. 0: Graphical mode The written data will be treated as a bit-map pattern. Set Display on or off. The bit can control LCD Driver Interface signals 2 DISP_OFF signal control 1: DISP_OFF pin output high 0: DISP_OFF pin output low. Blink mode selection 1 0: Normal display 1: Blink full screen. The blink time is set by CBTR. Inverse mode selection 0 1: Normal display 0: Inverse full screen. It will cause all data stored in DDRAM inversed. RAiO TECHNOLOGY INC. 11/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller REG [10h] Cursor Control Register (CCR) Bit Description Text/Graph Default Access Auto Increase Cursor Position in reading DDRAM operation. 7 1: Enable Text/Graph 1h R Text 1h R/W Text 1h R/W Text/Graph 1h R/W Text/Graph 0h R/W Text/Graph 0h R/W Text/Graph 0h R/W Text 0h R/W Default Access 0: Disable Chinese/English character alignment 1: Enable 6 0: Disable The bit only valid in character mode, that can align full-size and half-size mixed font Store Current Data to DDRAM 5 1: Store Current Data to DDRAM directly 0: Store Current Data to DDRAM Inversely Set Bold font (character mode only) 4 1: Store Data shift 1 + origin data (Black Font) 0: Store Data Normality (origin Font) Auto Increase Cursor Position in writing DDRAM operation. 3 1: Enable 0: Disable Cursor display control 2 1: Set cursor on 0: Set cursor off Cursor blink control 1 1: blink Cursor. The blink time is determined by register[80h] BTR 0: Normal Set Cursor width 0 1: Cursor width is auto adjust by input data 0: Cursor is fixed at one byte width REG [20h] Active Window Right Register (AWRR) Bit Description 7-6 Reserved 0h R 5-0 Active window right position Æ Segment-Right xxh R/W Note: REG [20h, 30h, 40h, 50h] are used for the function of change line and page. Users can use these four Registers to set a block as an active window. When data goes beyond the right boundary of active window (The value is set by REG [20h, 30h, 40h, 50h]), then the cursor will automatically change the line and write in data continuously. It means the cursor will move to the left boundary of active window, which is set by REG [40h]. When the data comes to the bottom line of the right side (set by REG [20h and 30h]), then the cursor RAiO TECHNOLOGY INC. 12/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller will be moved to the first line of the left side automatically and continue to put in data. (set by REG [40h, 50h]). REG [30h] Active Window Bottom Register (AWBR) Bit 7-0 Description Active window bottom position Æ Common-Bottom Default Access xxh R/W Default Access REG [40h] Active Window Left Register (AWLR) Bit Description 7-6 Reserved 0h R 5-0 Active window left position Æ Segment-Left 0h R/W Default Access 0h R/W REG [50h] Active Window Top Register (AWTR) Bit Description 7-0 Active window top position Æ Common-Top REG [60h] Cursor Position X Register (CPXR) Bit Description Default Access 7-6 Reserved 0h R 5-0 Set the cursor Segment address 0h R/W Default Access 0h R/W Text/Graph Default Access Text/Graph 23h R/W Default Access -- R/W REG [70h] Cursor Position Y Register (CPYR) Bit 7-0 Description Set the cursor Common address REG [80h] Cursor Blink Time Register (BTR) Bit 7-0 Description The Blink one unit time scale is the frame rate scale Blinking time = BTR Bit [7..0] x (1/Frame_Rate) Frame Rate setup depends on the LCD panel. REG [90h] Shift Clock Control Register (SCCR) Bit Description Setup the XCK signal cycle 7-0 SCCR = (SCLK*4)/(Column*Row*FRS) SCLK: System Clock (Hz) DBW: 4(Bit) RAiO TECHNOLOGY INC. 13/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller Column: Column of Display Screen (Pixel) Row: Row of Display Screen (Pixel) FRS: Frame Rate/Sec REG [A0h] Interrupt Setup & Status Register (INTR) Bit Description Default Access 0h R 0h R 0h R 0h R 0h R/W 0h R/W 0h R/W 0h R/W Default Access 0h R 27h R/W Busy Status 7 1: RA8802/8820 is busy. The MCU have to wait until Busy Status is released 0: RA8802/8820 is idle ready for MCU access. Touch Panel detect 6 1: Touch Panel touched 0: Touch Panel untouched Cursor Column status 5 1: The Cursor Column is equal to INTX 0: The Cursor Column is not equal to INTX Cursor Row status 4 1: The Cursor Row is equal to INTY 0: The Cursor Row is not equal to INTY Busy interrupt mask 3 1: Enable Busy to generate Interrupt output 0: Disable Busy to generate Interrupt output Touch Panel interrupt mask 2 1: Generate interrupt output if touch panel was detected. 0: Don’t generate interrupt output if touch panel was detected. INTX event occur INT or not 1 1: Enable INTX Interrupt 0: Disable INTX Interrupt Set INTY occur INT or not 0 1: Enable INTY Interrupt 0: Disable INTY Interrupt REG [B0h] Interrupt Column Setup Register (INTX) Bit 7-6 5-0 Description Reserved Setup Interrupt Column Address If Cursor Position X Register (CPXR)=INTX, a interrupt has occurred RAiO TECHNOLOGY INC. 14/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller REG [B8h] Interrupt Row Setup Register (INTY) Bit 7-0 Description Setup Interrupt Row Address If Cursor Position Y Register (CPYR)=INTY, a interrupt has occurred Default Access EFh R/W Default Access 1h R/W 1h R/W 0h R/W 1h R Fig 6-6 R/W Default Access 0h R Default Access 1h R/W 1h R/W 1h R/W REG [C0h] Touch Panel Control Register (TPCR) Bit Description Touch Panel function active 7 1: Disable 0: Enable Touch Panel Data Output 6 1: Disable the Touch Panel Data Output 0: Enable the Touch Panel Data Output 5 Reserved Touch Event status. 4 1: No Touch Event. 0: Touch Event occur Touch Panel control bit The operation flowchart shown as Fig 6-6 3-0 Bit3 = 0 Æ Switch SW3 OFF, Bit3 = 1 Æ Switch SW3 ON Bit2 = 0 Æ Switch SW2 OFF, Bit2 = 1 Æ Switch SW2 ON Bit1 = 0 Æ Switch SW1 OFF, Bit1 = 1 Æ Switch SW1 ON Bit0 = 0 Æ Switch SW0 OFF, Bit0 = 1 Æ Switch SW0 ON REG [C8h] Touch Panel Data Register (TPDR) Bit 7-0 Description This register keeps the touch panel active position (Column, Row) REG [D0] LCD Contrast Control Register (LCCR) Bit Description LCD contrast control 7 1: Disable 0: Enable LCD contrast control DAC write enable 6 1: Don’t allow MCU to write data to DAC Bit [4~0] 0: Allow MCU to write data to DAC Bit [4~0] 5 Reset LCD contrast control function 1: Normal operation RAiO TECHNOLOGY INC. 15/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 0: DAC is reset. Set the Iout to 0 uA Set the LCD Brightness Control Iout Value (DAC Bit [4~0] ) 00000b Æ 0µA (Min. Current) 4-0 : 0h R/W Text/Graph Default Access Graph 0h R/W : 11111b Æ 1uA (Max. Current) REG [E0h] Pattern Data Register (PDR) Bit Description Setup the Pattern Data 7-0 When REG[F0h] bit3 is ‘1’, it will read the data from Register [E0h] and fill the whole DDRAM. After the movement of filling the Active window, REG [F0h] bit3 will become “0”. REG [F0h] Font Control Register (FCR) Bit Description Text/Graph Default Access Character ROM Convert Control 7 1: Enable. -- 1h R/W -- 0h R/W -- 00h R/W Graph 0h R/W -- 0h R/W -- 00h R/W 0: Disable. ROM BANK Selection 6 1: External Font ROM select 0: Internal Font ROM select Set Font ROM Translate 5-4 01: Support BIG5 font ROM 10: Support GB font ROM Fill Data to DDRAM 3 1: Fill Data to DDRAM Enable 0: no action Font ROM range select 1: Enable 2 0: Disable When the bit is ‘1’, input data is ASCII code then output as symbol When the bit is ‘0’, input data is GB/BIG5 code then output as character. ASCII Block Select bit 1~0 1-0 0 0: Map to ASCII block 0 0 1: Map to ASCII block 1 RAiO TECHNOLOGY INC. 16/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 1 0: Map to ASCII block 2 1 1: Map to ASCII block 3 REG [08h] Misc. Register (MIR) Bit 7 Description Default Access 1h R 1h R/W 0h R/W 0h R/W 0h R Text/Graph Default Access Reserved Enable CLK_OUT 6 1: Enable CLK_OUT 0: Disable CLK_OUT Window Mode Select 5 1: Active_ window 0: Display_ window Set INT and Busy Polarity 4 1: Set High_ Active mode 0: Set Low_ Active mode 3-2 Reserved Clock speed selection 0 0:1MHz 1-0 0 1:2MHz 1 0:4MHz 1 1:8MHz REG [18h] Cursor Size Control Register (CSCR) Bit Description 7-4 Setup the height of cursor (default value is 2) Text 0010h R/W 3-0 Setup the distance of row to row Text 0010h R/W Default Access 0h R/W xxh R/W REG [28h] Display Window Right Register (DWRR) Bit 7-6 Description Reserved Set Display Window Right position Æ Segment-Right Segment-Right = ( Segment Number / 8) – 1 5-0 RA8802: If LCD panel size is 320x240, the value of the register is: ( 320 / 8 ) - 1 = 39 = 27h RA8820: If LCD panel size is 240x160, the value of the register is: ( 240 / 8 ) - 1 = 29 = 1Dh RAiO TECHNOLOGY INC. 17/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller Note: REG[28h, 38h, 48h, 58h] is used to set Display Window。Users can set the viewing scope of Display RAM. For RA8802, the Column Address can be set between 0~39, and Row Address can be set between 0~239. For RA8820, the Column Address can be set between 0~29, and Row Address can be set between 0~159. Users can set start and end address first, and then by adding shift function to present the effect of rolling. REG [38] Display Window Bottom Register (DWBR) Bit Description Default Access xxh R/W Default Access 0h R/W Default Access 0h R/W Display Window Bottom position Æ Common-Bottom Common_ Bottom = LCD Common Number –1 7-0 RA8802 : If LCD Panel is 320x240, the value of the register is: 240 – 1 = 239 = EFh RA8820 : If LCD Panel is 240x160, the value of the register is: 160 – 1 = 159 = 9Fh REG [48] Display Window Left Register (DWLR) Bit 7-0 Description Display Window Left position Æ Segment-Left Usually set “00h”. REG [58] Display Window Top Register (DWTR) Bit 7-0 Description Display Window Top position Æ Common-Top Usually set “00h”. Note: Please look at this example of how to set the default value of the Register. 1. AWRR≧CPXR≧AWBR, AWRR≧INTX≧AWBR 2. AWLR≧CPYR≧AWTR, AWLR≧INTY≧AWTR RAiO TECHNOLOGY INC. 18/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 6. Function Description 6.1 MCU Interface The RA8802/8820’s MCU interface support Intel (8080) or Motorola (6800) 4/8 bits data bus. Users could use SYS_MI to control. Non-Pull when 6800 MCU is used. Pull low when 8080 MCU series are used. 8080 MCU RA8802 RS A0 A1-A7 IORQ Decoder CS1 CS2 SYS_MI D0-D3 (D0-D7) D0-D3(D0-D7) RD RD WR WR RES RST Figure 6-1:8080 (4/8-bit) MCU Interface Diagram 6800 MCU RA8802 RS A0 A1-A7 VMA VDD Decoder CS1 CS2 SYS_MI D0-D3 (D0-D7) D0-D3(D0-D7) EN EN R/W R/W RES RST Figure 6-2:6800 (4/8-bit) MCU Interface Diagram 6.2 Command/Decoder Register Circuit This circuit store and implement the command from MCU Interface. The Register [00h, 08h, 10h] treats the whole chip and cursor setup. The Register [20h, 30h, 40h, 50h] can setup the work range maximum RAiO TECHNOLOGY INC. 19/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller and minimum limit. When appreciate setup with Register [10h] bit3, [F0h] bit3 and [60h, 70h] the RA8802/8820 can offer powerful variety meet various application. The Register [28h, 38h, 48h, 58h] of RA8802 can satisfy various LCD display from (0,0)~(320,240) pixels. The Register [28h, 38h, 48h, 58h] of RA8820 can satisfy various LCD display from (0,0)~(240,160) pixels. Powerful INT via Register [A0h, B0h, B8h] reduce MCU polling cycle to Interrupt interactive utility. Therefore we can use low end MCU to cost down and help the whole system reduce BOM cost. 6.3 Display Data RAM (DDRAM) Display data RAM (DDRAM) stores bit mapping pixel data and display attribute codes for displaying data. A full-size font is displayed using two bytes, and a half-size font is displayed using one byte. DDRAM displays only that data stored within the range corresponding to the DDRAM. Data stored outside the range is ignored. Refer to combined display of full-size and half-size characters for details on character codes stored in DDRAM. The display data RAM stores pixel data for LCD. For RA8802, it is a 320 column by 240 row addressable array maximum. For RA8820, it is a 240 column by 160 rows. The time required to transfer data is very short. The microprocessor writes and reads data to/from the RAM through data bus. As the LCD controller operates independently, data can be written into the RAM at the same time as the data is being displayed, without the LCD to flicker. If apply to the character/graphical mix mode. RA8802/8820 can easy store and display the data/picture which user desired. Segment D7 D6 D5 D4 D3 D2 D1 D0 1 1 1 0 0 1 1 0 1 2 3 4 5 6 7 ….. 0 Display Data RAM Display On LCD Figure 6-3 : Display data to LCD Map 6.4 Display Timing Generator The main function is to generate Frame (FRM), Latch Pulse (LP), YD and Data Bus signals for external LCD driver IC. RA8802/8820 could both support 4-bit and 8-bit LCD driver interface. SYS_LD is for LCD driver data bus selection. Non-Pull when 8-bit LCD driver is used. Pull low when 4-bit LCD driver is used. 6.5 LCD Display The RA8802 supports up to 320x240 LCD Panel, and RA8802 supports up to 240x160. Users could RAiO TECHNOLOGY INC. 20/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller setup the Register to change the size of the Display Panel. 6.6 ROM RA8802/8820 embedded 512KByte Font ROM also provide external 512KByte Font ROM Interface can use put the standard and special fonts of BIG5, GB, and ASCII code. It can support the display 16x16 dot for full-size fonts consisting of Chinese, 8x16 dots for half-size fonts of alphanumeric characters and symbols in the same display. For example, when MCU sends Big5 code (2 Bytes), RA8802/8820 will read Font code (32 Bytes) from ROM, which is matching with Big5 code, and then deliver them to DDRAM. 6.7 PLL/OSC Circuit The internal system clock of RA8802/8820 is generated from the following way: Use an external 32768Hz X’tal and internal PLL circuit Use an external Resistor for internal RC-Oscillator The pin SYS_FQ is for RA8802/8820 clock source selection. Non-Pull will enable internal PLL circuit and X’tal will be the clock source of RA8802/8820. Pull low when RC oscillator is used and it will disable internal PLL. The Figure 6-4 is the application circuit of clock. If select RC Oscillator mode, then pin XA, XB and LPF should be floating. If X’tal and PLL mode is selected, then RA and RB should be floating. RA8802/8820 0.22 u 0.022u 2.7K 32768Hz 20p 20p RA8802/8820 LPF RA XA Rf RB XB LPF XA XB RA RB (1) Use X’tal and PLL (2) Use RC-Oscillator Figure 6-4 : PLL & RC OSC Application Circuit Note: The oscillator frequency can be adjusted by an oscillator resistor(Rf). If Rf is increased or power supply voltage is decreased, the oscillator frequency decreases. RAiO TECHNOLOGY INC. 21/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 6.8 DAC RA8802/8820 is built-in one 5-bit fixed current type Digital-to-Analog Converter (D/A). Because DAC will generate different current output, users can make use of it to control external boost circuit and let the voltage level which supply to LCD Panel will be changed by different setup of DAC. Then users can use program to control the brightness of LCD through MCU. 6.9 ADC The RA8802/8820 built in 8 Bit ADC and control circuits to easily interface to 4-write analog resistive touch screens. The RA8802/8820 continually monitors the screen waiting for a touch. When the screen is touched, the RA8802/8820 performs analog to digital conversion to determine the location of the touch, stores the X and Y locations in the registers, and can issues an interrupt. RA8802 RA8820 Touch Panel X1 XL X2 XR Y1 YU Y2 YD Iref VREF 30pF 2.3K 20pF Figure 6-5 : Application Circuit of Touch Panel VCC SW2 YU Resistor-Y XL XR VCC SW0 SW1 Resistor-X YD SW3 GND Figure 6-6: Touch Panel and Detection Switch RAiO TECHNOLOGY INC. 22/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 6.10 Interrupt and Busy Flag RA8802/8820 provides an Interrupt signal (INT) to indicate three possible interrupts: If Cursor Position X Register (CPXR)=INTX, a interrupt has occurred If Cursor Position Y Register (CPYR)=INTY, a interrupt has occurred Interrupt occurs when Touch Panel is touched These three interrupts can be enabled or disabled respectively. REG [A0h] INTR controls the setup of Interrupts. RA8802/8820 provides a Busy signal. When BUSY Flag is “1”, which means RA8802/8820 is in busy status, so RA8802/8820 couldn’t access data of DDRAM but still accept the commands from registers. This BUSY pin should be connected to MCU I/O input, and then MCU have to poll this pin before accessing RA8802/8820. 6.11 Power Saving Mode The RA8802/8820 has four operation mode Æ Normal Mode, Standby Mode, Sleep Mode and Off Mode. Please refer to the register [00h] LCR of Chapter 5.2. 6.12 ASCII Block Selection The RA8802/8820 built-in four blocks of ASCII Font. It is including many special symbols that for users display. This feature is set by Bit[1:0] of Register [F0h]. If user want to create their special symbol or picture then it’s possible to make new ROM Code. RAiO TECHNOLOGY INC. 23/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 7. Function Application 7.1 Character Mode The Figure 7-1 shows the ability of RA8802/8820 to show Full-Size and Half-Size Characters 中文16x16 Chinese 16x16 英文16x16 8x16 English Figure 7-1:Full size and Half Size Character Figure 7-2 : Combined Display of Full-Size and Half-Size Characters Table 7-1 is the character code of Full-Size and Half-Size showed in Figure 7-1. Display Character Table 7-1 : Character Code comparison table (BIG5) Display Display Character Code Character Code Character Character 瑞 佑 科 技 股 份 有 限 RAiO TECHNOLOGY INC. B7E7 A6F6 ACEC A7DE AAD1 A5F7 A6B3 ADAD E C H N L G Y . 45 43 48 4E 4C 47 59 2E 24/45 o c m t 電 話 8 6 Character Code 6F 63 6D 74 20B7 71B8 38 36 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 公 司 R A I O T A4BD A571 52 41 49 4F 45 BAF4 ADB6 3A 77 72 61 69 網 頁 : w r a i 3 5 7 傳 真 33 35 37 20B6 C7AF 7.2 Characteristic Bold Display Function The Figure 7-3 is character bold display and Register setup. 1. Set REG [10h] bit4=1 2. Write in Big5 or GB code. Figure 7-3 : Character Bold Display 7.3 Graphics Display Function Figure7-4 shows the function and the value that register need be set under graphics display. 1. Set the REG [00h] bit3=1 2. Using bit-map to fill in the data Figure 7-4 : Graphics Display RAiO TECHNOLOGY INC. 25/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 7.4 Blinking Display Figure7-5 shows the function and the value that register need to be set under blinking display. 1. Set the REG [00h] bit1=1 2. Set the REG [00h] bit1=0 Figure 7-5 : Blinking Display 7.5 Black-White Display Figure7-6 shows the function and the value that register need to be set under black-white display. RAiO TECHNOLOGY INC. 26/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller (a) (b) (c) (d) Figure 7-6 : Blinking Display (a) 1. Set REG [10h] bit5=0 2. Write in the Big5 code of "瑞佑科技股份有限公司" then it will show up "瑞佑科技股份有限公司" (b) 3. Hold on (a) 4. Set REG [10h] bit5=1 5. Write in the Big5 code of "RAIO TECHNOLOGY INC." then it will show up " RAIO TECHNOLOGY INC." (c) 6. Hold on (a), (b) 7. Set REG [10h] bit5=0 8. Write in the Big5 code of "網頁" then it will show up "網頁" (d) 9. Hold on (a), (b) and (c) 10. Set REG [10h] bit5=1 11. Write in the Big5 code of ": www.raio.com.tw" then it will show up ": www.raio.com.tw" RAiO TECHNOLOGY INC. 27/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 7.6 Align the Chinese/English Font Figure7-7 shows the function and the value that register need to be set under aligning the Chinese/English Font. 1. Set REG [10h] bit6=1 2. Write in the Big5 code of " 瑞佑科技股份有 限公司 RAIO 中文 LCD 控制器 " then it will show up " 瑞佑科技股份有限公司 RAIO 中文 LCD 控制器" Figure 7-7 : Align the Chinese/English Font Figure 7-8 shows the function and the value that register need to be set under Non_Align the Chinese / English Font. 1. Set REG [10h] bit6=0 2. Write in the Big5 code of " 瑞佑科技股份有 限公司 RAIO 中文 LCD 控制器 " then it will show up " 瑞佑科技股份有限公司 RAIO 中文 LCD 控制器" Figure 7-8 : Non_Align the Chinese/English Font RAiO TECHNOLOGY INC. 28/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 7.7 Cursor 7.7.1 Cursor Position and Shift The moving unit for segment of cursor is one byte(or one pixel). But the moving unit for common is pixel. For example, if user want to show “制” at third location of upper-left, then the Register value are CPXR = 04h, CPYR = 00h. If user want to show “器” at first position of second line, the register value are CPXR = 00h,CPYR = 10h. Please refer to Figure 7-9. The cursor position is controlled by Register CPXR and CPYR for both text and graphics mode. You can also setup the Auto-Increase mode for write to DDRAM or read data DDRAM. The boundary depends on active window. 00 01 02 03 00 : : : 10h : : : 20h : : : : : : : : : : : : EFh 04 05 ....……….............……………………......... 39 320(Segment) x 240(Common) Figure 7-9 : Example of RA8802 Cursor Position 7.7.2 Cursor Display and Blinking The user could control cursor On/Off or Blinking. The register [80h] BTR is used to set up the blinking time. Blinking Time = BTR[80h] Bit[7..0] x (1/Frame_Rate) RAiO TECHNOLOGY INC. 29/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 7.7.3 Cursor Width and Height The cursor height is controlled by register CSCR Bit[7..4] from 1~16pixel. It does depend on user’s requirement. 1 Pixel 2 Pixel 3 Pixel 16 Pixel Figure 7-10 : Cursor Height In text mode, RA8802/8820 provide two widths for selection. If Register CCR bit0 -- CSD = 0, the cursor width fixed to one byte(8 pixel). If CSD =1, the cursor width is depend on the character. If user sends a full size Chinese character, then the cursor width will become 2byte width(16 pixel). If user shows a half size character then the cursor width will change to one byte(8 pixel). 7.8 Display Window and Active Window The RA8802/8820 provides two windows for real application -- Display Window and Active Window. The Display Window is the actual size of LCD panel. Active is a sub-window in Display Window. The boundary of cursor shift depends on the active window. For RA8802, if LCD panel is 320x240 pixel then the display window size is 320x240. We can create an active window in the display window like Figure 7-11. This figure show the display size is 320x240, and a 160x160 active window is on the upper-middle. RAiO TECHNOLOGY INC. 30/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 320 0 1 2 …………79 80……………………………...239 240.………319 0 1 2 : : : : : : : 159 160 : : : 239 80 Active Window 160 x 160 80 240 Display Window 320 x 240 80 Figure 7-11 : RA8802 Display Window and Active Window For RA8820, if LCD panel is 240x160 pixel then the display window size is 240x160. We can create an active window in the display window like Figure 7-12. This figure show the display size is 240x160, and a 120x120 active window is on the upper-left. 240 0 1 2 ………………………. 119 120 ……………………… 239 0 1 2 : : : : : : : 119 120 : : : 159 Active Window 120 x 120 160 Display Window 240 x 160 Figure 7-12 : RA8820 Display Window and Active Window RAiO TECHNOLOGY INC. 31/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 8. Interfacing to the Driver Total 240 LP for one frame FRM YD LP XCK DATA COM1 Period FRM YD LP XCK DATA D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D37 D38 D39 D1 D2 COM (N) Period FRM YD LP XCK DATA DN-5 DN-4 DN-3 DN-2 DN-1 DN D1 D2 Figure 8-1 : RA8802/8820 to Driver Waveforms RAiO TECHNOLOGY INC. 32/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 9. Electrical Characteristics 9.1 Absolute Maximum Ratings Table 9-1 Parameter Supply voltage range Input voltage range Operation temperature range Storage temperature Symbol VDD VIN TOPR TST Rating -0.3 to 4.0 -0.3 to VDD+0.3 -20 to 80 -45 to 125 Unit V V ℃ ℃ 9.2 DC Characteristic Parameter Symbol Min. Table 9-2 Typ. Operating Voltage VDD 2.7 3.3 4.0 V Input High Voltage Input Low Voltage Output High Voltage Output Low Voltage Input leakage current 1 Input leakage current 2 VIH VIL VOH VOL IIH IIL 0.8°VDD VSS 0.8°VDD VSS --- ------- VDD 0.2°VDD VDD 0.2°VDD +1 -1 V V V V μA μA Standby Mode current Unit -- 2.07 -- mA Normal Mode Current INORMAL -Display Mode Current IDISPLAY -Off Mode IOFF -VDD=2.7 to 4.0V, Vss=0V, Ta=-20 to 80℃ 2.07 2.07 1 ---- mA mA μA RAiO TECHNOLOGY INC. ISB Max. 33/45 Condition CLK_OUT: OFF LCD I/F: ON No MCU I/F Access VDD=3.3V, CLK=8MHz REG[90h] SCCR=08 Segment=320, Common=240 TA=25℃ The same as above The same as above The same as above www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 10. PAD Diagram 10.1 Bonding Pad RS GND VDD RW# EN DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 RB RA LPF XA XB RST# CK_OUT MA19 VDD GND MCS# MA18 MA17 MA16 MA15 MA14 MA13 MA12 MA11 MA10 MA9 MA8 MA7 MA6 MA5 MA4 GND VDD MA3 MA2 MA1 MA0 MD7 MD6 MD5 MD4 MD3 MD2 MD1 MD0 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 Logo 31 30 29 55 28 56 27 57 26 58 25 59 24 60 23 61 22 62 21 63 20 64 19 65 18 66 17 67 16 68 15 69 14 70 13 71 12 72 11 73 10 74 9 75 8 76 7 77 6 78 5 79 4 80 3 81 2 82 1 CS2 CS1# X1 Y1 X2 Y2 Iout AVDD Vref AGND INT BUSY VDD GND FRM LP YD XCK DISPOFF LD7 LD6 LD5 LD4 LD3 LD2 LD1 LD0 SEL1 SEL0 Figure 10-1:Bonding Pad RAiO TECHNOLOGY INC. 34/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 10.2 Pad X/Y Coordinate Pad No. Pad Name 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 SEL0 SEL1 LD0 LD1 LD2 LD3 LD4 LD5 LD6 LD7 DISPOFF XCK YD LP FRM GND VDD BUSY INT AGND Vref AVDD Iout Y2 X2 Y1 X1 CS1# CS2 RS GND VDD RW# EN DB0 DB1 DB2 DB3 DB4 DB5 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 X Y Coordinate Coordinate RAiO TECHNOLOGY INC. 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1958.53 1423.48 1323.48 1223.48 1123.48 1023.48 923.48 823.48 723.48 623.48 523.48 423.48 -1455.34 -1355.34 -1255.34 -1155.34 -1055.34 -955.34 -855.34 -755.34 -655.34 -555.34 -455.34 -355.34 -255.34 -155.34 -55.34 44.66 144.66 244.66 344.66 453.98 564.54 675.04 785.69 890.69 995.69 1100.69 1205.69 1305.69 1405.69 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 35/45 DB6 DB7 RB RA LPF XA XB RST# CK_OUT MA19 VDD GND MCS# MA18 MA17 MA16 MA15 MA14 MA13 MA12 MA11 MA10 MA9 MA8 MA7 MA6 MA5 MA4 GND VDD MA3 MA2 MA1 MA0 MD7 MD6 MD5 MD4 MD3 MD2 MD1 MD0 323.48 223.48 -642.17 -742.17 -842.17 -942.17 -1042.17 -1142.17 -1242.17 -1342.17 -1442.17 -1542.17 -1642.17 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 -1958.52 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1467.81 1344.66 1244.66 1144.66 1044.66 944.66 844.66 744.66 644.66 544.66 444.66 344.66 244.66 144.66 44.66 -55.34 -155.34 -255.34 -355.34 -455.34 -555.34 -655.34 -755.34 -855.34 -955.34 -1055.34 -1155.34 -1255.34 -1355.34 -1455.34 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 10.3. Package Diagram MD0 80 70 75 65 60 MACS# 55 GND MA18 MA17 MA16 MA15 MA14 MA13 MA12 MA11 MA10 MA9 MA8 MA7 MA6 MA5 MA4 VDD GND MA3 MA2 MA1 MA0 MD7 MD6 MD5 MD4 MD3 MD2 MD1 10.3.1 PQFP-100Pin 50 NC NC NC RST# RAiO RA8802(S/T) 85 NC NC NC NC NC NC CK_OUT TM NC 90 NC XB 45 LPF RB DB7 40 DB3 DB2 95 02 XX NC NC NC 35 DB1 DB0 EN Date Code ( 西元 2002 年) NC RW# VDD GND RS CS2 CS1# 30 X1 Y1 X2 Y2 Iout 25 AVDD Vref AGND INT BUSY 20 VDD FRM GND LP YD 15 XCK LD7 LD6 LD5 10 LD4 LD3 LD2 LD1 LD0 5 DISPOFF 100 SEL1 Pin #1 DB6 DB5 DB4 NC SEL0 XA RA NC NC VDD MA19 Figure 10-2:PQFP-100Pin Package Diagram RA8802/8820-S:Stands for Simplified Chinese Characters RA8802/8820-T:Stands for Traditional Chinese Characters The Package diagram of LQFP-100Pin(12x12) is same as PQFP-100Pin. RAiO TECHNOLOGY INC. 36/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 70 75 65 60 MA18 MA17 MA16 MA15 MA14 MA13 MA12 MA11 MA10 MA9 MA8 MA7 MA6 MA5 MA4 GND VDD MA3 MA2 MA1 MA0 MD6 MD7 MD4 MD5 10.3.2 LQFP-100Pin(12x12) 55 MD3 MD2 50 GND MD1 VDD MD0 NC MA19 80 CK_OUT TM NC NC NC 85 NC NC NC NC NC 45 RAiO RA8802-(S/T) NC NC 90 XA LPF RA 40 DB6 DB5 DB4 NC DB1 DB0 95 EN Date Code (西元2005年) NC DB3 DB2 05 XX NC RB DB7 35 NC RST# XB NC NC MACS# 30 NC RW# VDD SEL0 GND SEL1 RS 100 CS2 X1 Y1 X2 Y2 AVDD Vref AGND CS1# 25 20 INT BUSY VDD GND FRM LP XCK LD7 DISPOFF LD6 LD5 LD4 LD3 LD2 LD1 Pin #1 15 Iout 10 5 YD LD0 Figure 10-3:LQFP-100Pin(12x12) Package Diagram RAiO TECHNOLOGY INC. 37/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 10.4 RA8802/8820 Package Leap frame 10.4.1 PQFP-100 Pin PIN 1 INDEX b D TM D1 RAiO 02XX RA8802 S/T e E1 E A A2 C A1 L Figure 10-4:PQFP-100Pin Mechanical Symbols A A1 A2 b C E E1 D D1 e L Table 10-1 Dimensions in Millimeters Min. Typ. Max. Dimensions in Inches Min. Typ. Max. -0.25 2.54 0.23 0.13 16.94 13.89 22.96 19.89 -0.66 -0.010 0.100 0.009 0.005 0.667 0.547 0.904 0.783 -0.026 RAiO TECHNOLOGY INC. --2.79 -0.15 17.20 13.99 23.22 19.99 0.65 0.79 3.40 -3.05 0.38 0.20 17.45 14.10 23.44 20.09 -0.94 38/45 --0.110 -0.006 0.667 0.551 0.914 0.787 0.0256 0.031 0.134 -0.120 0.015 0.008 0.687 0.555 0.923 0.791 -0.037 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 10.4.2 LQFP-100 Pin(Body Siz:14x20 mm) Symbols A A1 A2 b C E E1 D D1 e L Table 10-2 Dimensions in Millimeters Min. Typ. Max. Min. -0.05 1.35 0.22 0.09 15.90 13.90 21.90 19.90 -0.45 -0.002 0.053 0.009 0.004 0.626 0.547 0.862 0.783 -0.018 RAiO TECHNOLOGY INC. -0.10 1.40 0.32 -16.00 14.00 22.00 20.00 0.65 0.60 1.60 0.15 1.45 0.38 0.20 16.10 14.10 22.10 20.10 -0.75 39/45 Dimensions in Inches Typ. Max. -0.004 0.055 0.013 -0.630 0.551 0.866 0.787 0.026 0.024 0.063 0.006 0.057 0.015 0.008 0.634 0.555 0.870 0.791 -0.030 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller 10.4.3 LQFP-100 Pin(Body Siz:12x12 mm) Figure 10-5:LQFP-100Pin(12x12 mm) Mechanical(1) Figure 10-6:LQFP-100Pin(12x12 mm) Mechanical(2) RAiO TECHNOLOGY INC. 40/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller Table 10-3 MILLIMETER SYMBOL MIN. NOM. MAX. A --1.60 A1 0.05 -0.15 A2 1.35 1.40 1.45 D 14.00 BSC. D1 12.00 BSC. E 14.00 BSC. E1 12.00 BSC. R2 0.08 -0.20 R1 0.08 --o o o 0 3.5 7 θ 0o --θ1 11o 12o 13o θ2 11o 12o 13o θ3 c 0.09 -0.20 L 0.45 0.60 0.75 L1 1.00 REF S 0.20 --Dimensions are in millimeters. MIN. -0.002 0.053 0.003 0.003 0o 0o 11o 11o 0.004 0.018 0.008 INCH NOM. --0.055 0.551 BSC. 0.472 BSC. 0.551 BSC. 0.472 BSC. --3.5o -12o 12o -0.024 0.039 REF -- MAX. 0.063 0.006 0.057 0.008 -7o -13o 13o 0.008 0.030 -- Table 10-4 80L SYMBOL b e D2 E2 aaa bbb ccc ddd 100L MILLIMEETR INCH MILLIMEETER INCH MIN. NOM. MAX. MIN. NOM. MAX. MIN. NOM. MAX. MIN. NOM. MAX. 0.17 0.20 0.27 0.007 0.008 0.011 0.13 0.16 0.23 0.005 0.006 0.009 0.50 BSC. 0.020 BSC. 0.40 BSC. 0.016 BSC. 9.50 0.374 9.60 0.378 9.50 0.374 9.60 0.378 TOLERANCES OF FORM AND POSITION 0.20 0.008 0.20 0.008 0.20 0.008 0.20 0.008 0.08 0.003 0.08 0.003 0.08 0.003 0.07 0.003 RAiO TECHNOLOGY INC. 41/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller Appendix A. Built-in ASCII Block b3-b0 b7-b4 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Figure A-1:ASCII Block 0 RAiO TECHNOLOGY INC. 42/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller b3-b0 b7-b4 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Figure A-2:ASCII Block 1 RAiO TECHNOLOGY INC. 43/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller b3-b0 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 b7-b4 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Figure A-3:ASCII Block 2 RAiO TECHNOLOGY INC. 44/45 www.raio.com.tw RA8802/8820 Version 1.4 Character/Graphic LCD Controller b3-b0 b7-b4 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Figure A-4:ASCII Block 3 RAiO TECHNOLOGY INC. 45/45 www.raio.com.tw