RAiO RA8806 - RAiO Technology Inc.

RAiO
RA8806
Evalution-Kit
User Guide
Preliminary Version 1.0
January 19, 2009
RAiO Technology Inc.
©Copyright RAiO Technology Inc. 2008
RAiO TECHNOLOGY INC.
1/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Chapter
Evalution Kit User Guide
Contains
Page
1. Overview....................................................................................................3
2. RA8806 Evaluation Board ........................................................................7
2-1 RA8806_TQ Evaluation Board .............................................................................7
2-2 RA8806_LQ Evaluation Board .............................................................................9
3. Interface Descriptions ............................................................................11
3-1 Power Supply ......................................................................................................11
3-2 8051 MCU.............................................................................................................12
3-3 ISP Interface (In-System Programming) ...........................................................13
3-4 RA8806 Types .....................................................................................................14
3-5 System Clock ......................................................................................................15
3-6 Booster ................................................................................................................16
3-7 Interface Selection..............................................................................................17
3-8 LCD Driver Interface ...........................................................................................18
3-8-1 LCD Drivers Supported by RA8806 ................................................................................... 19
3-8-2 LCD Modules Supported by RA8806................................................................................. 20
3-9 PWM Applications ..............................................................................................21
3-10 Smart Key Board Connector ............................................................................22
4. Demo Program ........................................................................................23
RAiO TECHNOLOGY INC.
2/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
1. Overview
RA8806 is a two layers Character/Graphic STN LCD controller which supports 320x240 or up to
640x240 pixels 4 gray scale display. This chip has embedded 512KB font ROM (includes English,
European, Chinese and Japanese characters) and a intergrated touch screen controller; more powerful
features such as smart key scan, font rotation and contrast control are all included in this single chip.
RAiO provides the RA8806 evaluation kit to assist customers easy to evaluate the controller and
intergrate the LCD display with embedded system development. The kit offers an easy and lower cost
path for user to create graphic user interface on the LCD display in a short time.
RA8806 supports any STN LCD panel up to QVGA size. A RA8806 LCD controller chip and an 8051
MCU are already mounted on the board. User can display data or images on their own LCD panel by
downloading graphics from personal computer to the onboard 8051 MCU and commented source code
for the RA8806. Another onboard MCU interface is also available for user to connect to selected MCU
for their system applciations.
LCD
LCD
Driver
Driver
PC
PC
System
System
Memory
Memory
LCD
LCD
Driver
Driver
8051
8051
MCU
MCU RA8806
RA8806
LCD
LCD Panel
Panel
128x64
128x64 ~~ 320x240
320x240
(640x240/320x480)
(640x240/320x480)
Touch
Touch Screen
Screen
Key-Matrix
Key-Matrix
CPU
CPU
The RA8806 Control Board in System Block Diagram
Figure 1-1 : Evaluation Board Circumstance
RA8806 LCD Controller Evaluation Kit includes :
‹ Evaluation Board: RA8806_TQ or RA8806_LQ contains:
1.
2.
3.
4.
5.
6.
7.
8.
An onboard 8051 MCU(embedded 64K Flash) ,with RS232 download interface to PC
LCD panel interface connectors
4/8 bit 6800/8080 MPU interface
4/8 bit LCD driver interface
8X8 or 4X8 key-pad interface
Touchscreen Interface
3.3V/5V Regulators
LCD Driving Voltage V+ or V- for driver of LCD module
‹ CD contains Development Software: Includes RA8806 datasheet, PCB Layout, component
Library, Schematics, Demo Program ,Example code.
‹ Power connectors and DC 9-12V adapter power supply
‹ User Quide
‹ RS232 Cable、USB/RS232 Adapter and Download Cable (Sold separately)
‹ 3.8” STN LCD Module (Sold separately)
RAiO TECHNOLOGY INC.
3/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
Figure 1-2 shows the block disgram of RA8806 Evaluation board, the details of each block will be
introduced in Chapter 3. Figure 1-3 indicates Evaluation Circumstance. For software programming and
developing the RA232 cable and download cable will be needed. If there is not a RS232 interface at
user PC, antoher USB/RS232 adapter will be required for connecting PC with the evaluation board.
User can use any standard STN LCD module (not build-in LCD controller) from STN LCD suppliers and
connect the RA8806 evaluation board with LCD module through the onboard LCD interface, or user can
purchase the RA8806 evaluation kit B for a whole demo kit that’s included a 3.8” LCD panel.
MCU
Interface
8051 MCU
Key Pad
Interface
RA8806
RS232 Interface
To PC
Interface to
LCD Module
VLCD +
VLCD -
Power
Connectors
Regulator
The RA8806 Control Board
Figure 1-2 : Block Diagram of RA8806 Evaluation Board
Figure 1-3 : Evaluation Circumstance
RAiO TECHNOLOGY INC.
4/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
Evaluation Kit-A
Evaluation Board
RA8806-TQ
Or
RA8806-LQ
DC 9-12V adapter power
supply
User Guide
CD
Price Each
RAiO TECHNOLOGY INC.
USD 50.- from the second kit
5/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
Evaluation Kit-B
Evaluation Board
RA8806-TQ
Or
RA8806-LQ
DC 9-12V adapter power
supply
User Guide
CD
RS232 Cable
USB RS232 Adapter
Download Cable
3.8” STN LCD
Module
Price Each
RAiO TECHNOLOGY INC.
USD 80.- for the whole kit
6/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
2. RA8806 Evaluation Board
2-1 RA8806_TQ Evaluation Board
Figure 2-1-1 : RA8806_TQ Bare Board
Figure 2-1-2 : RA8806_TQ Evaluation Board
RAiO TECHNOLOGY INC.
7/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
There are two types of RA8806 evaluation boards: the RA8806_TQ (use RA8806T1N in TQFP
package) and the RA8806_LQ (use RA8806L2N in LQFP package). The PCB layout and
components Library are included in the CD attached with the kit. Enables user to easily intergrate
with new design system and main board development.
The circuit drawing of RA8806_TQ evaluation board is shown as figure below.The details of each
part of schematic will be introduced in next chapters. User can use other software such as “Protel”
to open the schematic files in the attached CD to view and edit.
Figure 2-1-3 : Schematic of RA8806_TQ Evaluation Board
RAiO TECHNOLOGY INC.
8/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
2-2 RA8806_LQ Evaluation Board
Figure 2-2-1 : RA8806_LQ Bare Board
Figure 2-2-2 : RA8806_LQ Evaluation Board
RAiO TECHNOLOGY INC.
9/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
Another type of evaluation board is RA8806_TQ that use RA8806P2N chip in LQFP package as
controller. The PCB Layout and components Library are included in the CD attached with the kit.
The circuit drawing of the PCB is shown as below.
Figure 2-2-3 : Schematic of RA8806_LQ Evaluation Board
The difference of RA8806_TQ and RA8806_LQ Evaluation Board are shown as below:
1. Use different RA8806 package type
RA8806_TQ : RA8806T1N in TQFP-80P (10x10mm)
RA8806_LQ : RA8806L2N in LQFP-100P (14x20mm)
(Please refer to chapter 3-4 in this user guide or RA8806 datasheet).
2. Difference with Interface Selection (Please refer to chapter 3-7 in this user guide).
RAiO TECHNOLOGY INC.
10/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3. Interface Descriptions
3-1 Power Supply
Figure 3-1-1 : Schematic of Power Supply
U1(MC7805BT):3-Terminal Positive Voltage Regulator. (7.0Vdc ≦ Vin ≦ 20.0Vdc ; Vout : 5V ;
Package : TO-220)
U2(LD1117AL):3-Terminal Positive Voltage Regulator. (Vin : 5V ; Vout : 3.3V ; Package : TO-220)
DC1:The DC jack (DC1) is connected to external DC Adaptor(the range is 7V~20V )
R5 & R6:Define which operating voltage, 3.3V with R6 or 5V with R5, is used for 8051.
L1 & L2 & L3 & L4:Define chip RA8806 and I/O port operating voltage.
RA8806 Evaluation board can be used with 3V~5V displays. User can connect the board with any
STN LCD module that works with 3V or 5V by switching over the 2 Regulators on the board to
select appropriated operating voltage. The selections are shown in table 3-1-1.
Table 3-1-1
Mode
VIN
L1
L2
L3
L4
VDD5
VDD3
VREG
1 *1
VCC
1 *2
0 *2
1
0
VCC
NA
VCC
2
VDD
0
1
0
1
NA
VDD
VDD
3
VCC
VDD
1
0
0
1
VCC
NA
VDD
4
VCC
VDD
0
1
1
0
NA
VDD
VCC
Note :
1. This table shows the original settings of the Evaluation board.
2. “1” means On,“0” means Off。
RAiO TECHNOLOGY INC.
11/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3-2 8051 MCU
Figure 3-2-1 : Schematic of 8051 MCU Circuitry
U3 : MX10E8050IQC (PLCC-44), Standard 80C51 MCU core, our recommend frequency is
18.432MHz.
There is a 8051 base MCU set in the PLCC-44Pin IC socket that already intergrated in RA8806
evaluation board, part number is MX10E80511 or W78E516B40PL. User can program and edit on
this MCU by PC, and download the program into Flash Memory through USB-RA232 adapter or
RS232 interface after tool transmitted . A test Demo Program is already store in the Flash of
onboard MCU with the evaluation board. The demo program is wrote in C language that user can
test and review in the CD attached with the kit.
For details information of MX10E80511 or W78E516B40PL MCU please refer to official websites of
MXiC/Winbond (www.mxic.com.tw / www.winbond.com.tw ). There are many compatible MCU that
user can select for own applications, however the onboard IC socket is not universal
The software of Keil C is not included in the RA8806 Evaluation Kit, user can purchase software
such as “Keil C51” or visit website at www.keil.com/demo/ for details.
RAiO TECHNOLOGY INC.
12/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
Figure 3-2-2 : Schematic of MCU Interface Circuitry
MCU1 and MCU2 : These two headers are extended ports from U3 for users use or measure easily.
If user wants to use other CPU to control RA8806, just need to remove the U3 8051 MCU from
PLCC-44Pin IC socket, and connec the CPU signals through Headers of MCU1 and MCU2.
3-3 ISP Interface (In-System Programming)
Figure 3-3-1 : ISP Interface for MX10E8050IQC MCU
User can download their programming from PC to the Flash Memory in 8051MCU. The download
cable can be purchased separately, please contact RAiO sales representative for details.
RAiO TECHNOLOGY INC.
13/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3-4 RA8806 Types
Figure 3-4-1 : Schematic of RA8806T1N Circuitry of RA8806_TQ
Figure 3-4-2 : Schematic of RA8806L2N Circuitry of RA8806_LQ
RAiO offers 2 types of RA8806 Evaluation board, the RA8806_TQ and RA8806_LQ base on
different package types of the controller chip. Please refer to Chapter 2-1 and 2-2 in this guide and
RA8806 data sheet.
RAiO TECHNOLOGY INC.
14/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
The Figure 3-4-1 and 3-4-2 indicates connection of RA8806 evaluation board ‘s MCU interface with
each I/O Port of 8051 MCU. Please refer to the table below or the “RA8806.h” file in RA8806 Demo
Program.
Table 3-4-1 : Interface and Connection of 8051 MCU and RA8806
8051
Pin Name
P0.7
P0.6
P0.5
P0.4
P0.3
P0.2
P0.1
P0.0
P3.4
P3.5
P3.6
P3.7
P4.0
P4.1
P3.2
P3.3
RA8806
MCU I/F
DATA7
DATA6
DATA5
DATA4
DATA3
DATA2
DATA1
DATA0
ZCS1
CS2
ZWR
ZRD
RS
ZRST
INT
BUSY
3-5 System Clock
Figure 3-5-1 : System Clock of RA8806
Y2:Tuning Fork type Crystal.
Y3:Dip type Crystal.
The evaluation board supports 2 types of X’ral with operating frequency 4MHZ~12MHZ.
RAiO TECHNOLOGY INC.
15/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3-6 Booster
Figure 3-6-1 : Booster for +VLCD of LCD Driver
U5:Micro-power Step-Up DC/DC Converter (Package : SOT23-5)
*G511-T11 use for positive LCD bias
Figure 3-6-2 : Booster for –VLCD of LCD Driver
U6:Micro-power Inverting DC/DC Converter (Package : SOIC)
* AIC1652 use for Negative LCD bias
Most of the STN LCD panel are required booster to drive the LCD, some LCD modules have
intergrated the booster but but some are not, also the requirement to booster differs from +VLCD
or –VLCD for LCD drivers. RA8806 evaluation board contains booster for both +VLCD and –VLCD
to work with various LCD modules.
RAiO TECHNOLOGY INC.
16/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3-7 Interface Selection
Figure 3-7-1 : Interface Selection for RA8806_TQ Board
Figure 3-7-2 : Interface Selection for RA8806_ LQ Board
S1-1 : This Interface selection is used for switching RA8806 8-Bit or 4 Bit Data Bus to CPU.
S1-2 : This Intreface selection is used for switching RA8806 8080 or 6800 read/write interface to
CPU.
S1-3 : This Interface selection is used for switching the RA8806 Data Bus 8-Bit or 4-Bit to Drivers
on STN LCD displays. Please note, the Driver Data Bus on RA8806T1N is fixed at 4-Bit,
therefore it’s not applicable on RA8806-TQ board.
Table 3-7-1
Selection
SYS_DB
(CPU I/F Data Bus)
SYS_MI
(CPU Mode)
SYS_LD
(Driver I/F Data Bus)
RA8806_TQ
H
L
RA8806_LQ
H
L
8bit *
4bit
8bit *
4bit
6800
8080 *
6800
8080 *
8bit
4bit *
Not Support
The table 3-7-1 shows original settings of the evaluation board. Due to the RA8806 evaluation boad
uses 8051 MCU I/O Port to send command and control data read/write to RA8806, therefore the
CPU data bus is 8 bit or 4 bit, and CPU Mode is 8080 or 6800. Except the interface selection of S1,
users need to operate in coordination to software settings. Refer to the “userdef.h” file of RA8806
Domo Program.
RAiO TECHNOLOGY INC.
17/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3-8 LCD Driver Interface
Figure 3-8-1 : Driver Interface to LCD Panel
LCD1 : The LCD interface offers singnals from RA8806 to LCD panel, it also includes +VLCD or
-VLCD driving voltage and the touch panel interface to connect to touch screen.
User can use any of the standard STN LCD module (without controller) from LCD supplier and
connect with RA8806 evaluation board through this Driver interface. Due to the definition of Driver
IC I/F is differ from each LCD supplier that sometimes caused confusion on the signals, therefore a
reference quide is provided as table 3-8-1.
Table 3-8-1 : Definition of RA8806 Driver and LCD Module
RA8806 Driver I/F
Driver IC I/F Name
LP
LP
LOAD
CL1
CP
XCK
SCP
CL2
HSCP
FLM
YD
FR
FRAME
CDATA
FRM
DF(M)
LD[7:0]
D[7:0]
/DISPOFF
/D.OFF
DISP
ZDOFF
RAiO TECHNOLOGY INC.
Definition of Driver IC I/F
Data Latch Clock
Latch Pulse in one line
Latch Pulse of display data
Data Latch Pulse
Data Shift Clock
Clock Pulse for Segment shift register
Shift Clock Pulse for X-Drivers
Data Shift Pulse
Shift Clock Pulse
Scan Start-up Signal
First Line Marker
Frame Pulse
Frame start signal(First line mark of common
signal)
Synchronous Data
Switch signal to convert LCD drive waveform
into AC
LCD Data Bus
Display OFF
Display OFF
Display OFF
18/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3-8-1 LCD Drivers Supported by RA8806
Table 3-8-2
Company
Novatek
Sitronix
Elan
Toshiba
Sanyo
IST
Avant
Neotec
Sunplus
Driver Part.
Driver capacity
Support
NT7701
160-dot SEG/COM driver
▲
NT7702, NT7704
240-dot SEG/COM driver
▲
NT7703
160-dot SEG/COM driver
▲
NT7705
160-dot SEG/COM driver
▲
NT7706
240-dot SEG/COM driver
▲
ST8008
80-channel Segment driver
▲
ST8009
90-dot SEG/COM driver
▲
ST8011
120-channel Segment driver
▲
ST8012
120-dot SEG/COM driver
▲
ST8016
160-dot SEG/COM driver
▲
ST8024
240-dot SEG/COM driver
▲
EK7010
160 SEG/COM driver
▲
EK7011
240 SEG/COM driver
▲
EK7102
120 COM drver
▲
EK7103
240 SEG driver
▲
EK7104
320 SEG Hi-Fas driver
▲
EK7105
240 COM Hi-Fas driver
▲
EK7106
240 SEG Hi-Fas driver
▲
T6A39
80-channel Segment driver
▲
T6A40
68-channel Common driver
▲
LC79430KNE
80-dot Common driver
▲
LC79401KNE
80-dot Segment driver
▲
LC7940KD
80-dot Segment driver
▲
LC7941KDR
64-dot Segment driver
▲
LC7942KD
64-dot Common driver
▲
LC79431KNE
80-dot Common driver
▲
IST3025, IST3226
160 SEG/COM driver
▲
IST3026, IST3226
240 SEG/COM driver
▲
IST3028
120 COM drver
▲
IST3029
240 SEG driver
▲
IST3031
320 SEG Hi-Fas driver
▲
IST3032
240 COM Hi-Fas driver
▲
IST3033
320 SEG Hi-Fas driver
▲
SDN8080G
80-dot SEG/COM driver
▲
SCN6400G
64-Common Driver
▲
SCN0080G
80-Segment driver
▲
SDN8000G
80-Common driver
▲
SDN0080G
80-Segment driver
▲
SEN6A40G
68-Common driver
▲
SEN6A39G
80-Segment driver
▲
NT7086, NT7086E
80-dot SEG/COM driver
▲
SPLC0086A
80-dot SEG/COM driver
▲
SPLC560
160 SEG/COM driver
▲
SPLC562
240 SEG/COM driver
▲
SPLC563
320 SEG driver
▲
SPLC564
240 COM driver
▲
Note: RA8806 can support most of STN LCD Driver. For LCD Drivers didn’t show in
above table,please contact to RAiO for suggestions。
RAiO TECHNOLOGY INC.
19/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3-8-2 LCD Modules Supported by RA8806
Table 3-8-3
Company
Winstar
BOLYMIN
EDT
Ampire
Sunlink
Powertip
Microtips
Tianma
Topway
Jinghua Displays
Goworld
Clover Display
Sunson
TCC LCD
Module Models
Resolution
Support
WG160160A
160x160
▲
WG240128F
240x128
▲
WG320240A
320X240(5.7”)
▲
BG160160A
160X160
▲
BG240128E
240X128
▲
BG320240A
320X240(5.7”)
▲
EW16H00
160X160
▲
EW24H00
240X160
▲
EW32F10
320X240(5.7”)
▲
EW32F90
320X240(3.8”)
▲
AT24064T
240x64
▲
SG320240
320x240
▲
SG160160C
160x160
▲
SG24064E
240x64
▲
PG320240-C
320x240
▲
MTG-32240J
320x240
▲
MTG-16160B
160x160
▲
MTG-24160B
240x160
▲
MTG-32240
320x240
▲
TM320240BCCWVSWA
320x240 (4.7”,1/4VGA)
▲
TM320240ACCWGWSA
320x240 (3.8”,1/4VGA)
▲
LM2028-6
320x240 (5.7",1/4VGA)
▲
LM2068N-2
320x240 (3.8",1/4VGA)
▲
LM240128NCC
240x128
▲
JCG320240D
320x240
▲
JCG320160A01-02
320 x160
▲
JCG240160A26-01
240 x160
▲
GWMSC965
320x240
▲
GWMSC773
320x240
▲
GWMSE820
240 x160
▲
CV320240D
320x240
▲
CV240160B
240x160
▲
CV160160A
160x160
▲
CA320240Q3
320x240 (3.8",1/4VGA)
▲
CA320240F
320x240 (5.7",1/4VGA)
▲
CA320240D
320x240
▲
SYT320240BV10
320x240 (5.7",1/4VGA)
▲
SYM320240A
320x240 (5.7",1/4VGA)
▲
SYM50174B
320x240 (5.7",1/4VGA)
▲
Note :
1. RA8806 evaluation kit can support any STN LCD panel without built-in
controller up to QVGA size. For LCD model that didn’t show in above table,
please contact to RAiO for suggestions .
2. STN LCD display can be purchased separately . Please contact to RAiO sales
representative for details.
RAiO TECHNOLOGY INC.
20/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3-9 PWM Applications
Figure 3-9-1 : PWM Circuitry
Table 3-9-1
Component
Value
R3
0
RC2
Reserve
CP1
Reserve
RA8806 supports a PWM output signal to control and adjust the external Booster for back light
control. The output signal from PWM to +VLCD or –VLCD Booster of LCD Driver.
(Please refer to figure 3-6-1 and 3-6-2) to connect to driving voltage for controlling LCD module.
RAiO TECHNOLOGY INC.
21/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
3-10 Smart Key Board Connector
Figure 3-10-1 : Key Board Interface
KO[7:0]:Key pad Output.
KIN[7:0]:Key pad Input
KEY1 : Header for Dot-Matrix Keyboard
RA8806 has intergrated a 8x8 smart key scan control, users can connect a key pad through the
Header of KEY1. Please refer to RA8806 datasheet for details. ( Complied RA8806 data sheet is
included in the CD attached with the Evaluation Kit)
RAiO TECHNOLOGY INC.
22/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
4. Demo Program
The RA8806 Demo Program is saved in the Flash of onboard MCU. The Demo Program was wrote
by “C Language”, users can obtain the original demo code,
or download the RA8806 Demo
Program : “”320x240_Win_EV.rar” from RAiO member center. This program is operated under
W78E516B40PL(8051) MCU is applied, main program is “Demo.c”. The breif explaination can be
found in the ”Readme.txt”. User can refer to the Sub-Routine In the “RA8806.c” as the examples
while product development.
If user purchase the RA8806 development kit A that included a LCD panel, the demo program will
display 4 screen as following picture shows.
Picture 4-1 : Characters demo display
Picture 4-2 : Graphic display demo
RAiO TECHNOLOGY INC.
23/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
Picture 4-3 : 90° Text Rotation demo
Picture 4-4 : Touch panel function demo
RAiO TECHNOLOGY INC.
24/25
www.raio.com.tw
RA8806
Preliminary Version 1.0
Evalution Kit User Guide
/******************************************************************************/
/*Main program area
*/
/******************************************************************************/
void main(void)
{
:
:
:
:
AUXR = B0000_0011; //Enable MOVX for external interface
LCD_Reset();
LCD_Initial();
LCD_CmdWrite(MISC);
LCD_DataWrite(XCK_FREQUENCY);
LCD_CmdWrite(ITCR);
LCD_DataWrite(IDLE_TIME);
LCD_ON();
while(1)
{
LCD_Clear();
switch(state)
{
case 0x00:
Display_Text();
break;
// Picture 4-1 : Characters display demo
case 0x01:
Display_Picture();
break;
// Picture 4-2 : Graphic display demo
case 0x02:
Display_Ratate_90();
break;
// Picture 4-3 : 90° Text Rotation demo
case 0x03:
Display_Touch();
break;
// Picture 4-4 : Touch panel function display
}
if(state == 0x03) state = 0;
else
{
Delay100ms(20);
state++;
}
}
}
RAiO TECHNOLOGY INC.
25/25
www.raio.com.tw