/ / / , DOCNO: SG J REV11-2 -

Similar documents
/ / / LED DOCNO: SG D REV11-2 -

untitled

untitled

untitled

untitled

12232A LED LED LED EL EL CCFL EL CCF

Microsoft Word - GTC doc

() () () () () () () () DDRAM () II

2 12

TSINGTEK DISPLAY CO.,LTD LCD CONTROLLER & DRIVER ST7920 OR EQUIVALENT (f) 639 2A f B1

CA24064B LED LED LED EL EL CCFL EL CCF /

GH1220 Hall Switch

51 C 51 isp 10 C PCB C C C C KEIL

Current Sensing Chip Resistor

untitled

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

T stg -40 to 125 C V cc 3.8V V dc RH 0 to 100 %RH T a -40 to +125 C -0.3 to 3.6V V -0.3 to VDD+0.3 V -10 to +10 ma = 25 = 3V) VDD

JLX

6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C C C51 C51 ANSI C MCS-51 C51 ANSI C C C51 bit Byte bit sbit

FM1935X智能非接触读写器芯片

TSI 8384/8385/8386 Manual

HC20131_2010

HC50246_2009

Tel:

目录

a b c d e f g C2 C1 2

逢 甲 大 學

αlpha-res1000 / αlpha-res1000 / Eutech Eutech Eutech Instruments Pte Ltd EUTECH INSTRUMENTS PTE LTD Blk 55 Ayer Rajah Crescent, #04-16/24, S

Microsoft Word - LD5515_5V1.5A-DB-01 Demo Board Manual

ICD ICD ICD ICD ICD

. Land Patterns for Reflow Soldering.Recommended Reflow Soldering Conditions (For Lead Free) TYPE PID0703 PID0704 PID1204 PID1205 PID1207 PID1209 L(mm

PIC16F F MPLAB 08 16F LED 15 LED

Microsoft Word - LR1122B-B.doc

mm420£±£±-ÐÂ

MT5V4Borchure.cdr

HC70044_2008

1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F B. 1(VCC/GND) SH79F6431 C. VDDIO SH79F6431 P4 P5 P0.6 P0.7 VDDIO VDDIO=5V D. 2 V 1.0

!!

a) Rating and Characteristics Disk Type 05D *Rated Rated Peak Varistor Clamping Typ. cap. Series Part No. Rated Voltage Energy Rated Power Current(8 2

Microsoft Word - 301E高温样本封面.doc

OVLFx3C7_Series_A3_bgry-KB.pub

SRD-N/TRD-N DIMENSIONS 規格尺寸 SRD-N SRD-N + PF08A + FH- 2 UNIT :mm TRD-N TRD-N + 8PFA 101 SRD-N/TRD-N POWER OPERATION 操作方式 4

αlpha-do1000 / αlpha-do1000 / EUTECH Eutech Eutech Eutech Instruments Pte Ltd Eutech Eutech Instruments (S) Pte Ltd Blk 55 Ayer Rajah Cresce

操作指导手册

bingdian001.com

<4D F736F F D20B9F9B0EABBCDBBAFAB48DEB3B4C1A5BDB3F8A7692E646F63>

M162SD13AA.pdf

» n ¹ú KS0108 x ÍÍÙ q n KS0108 KS KS0107 KS0108 KS *32 128*64 192*64 KS0108 KS0108 KS0107 KS =4096 RAM RAM LCD 2 KS

untitled

1 TPIS TPIS 2 2

Chroma 61500/ bit / RMS RMS VA ()61500 DSP THD /61508/61507/61609/61608/ (61500 ) Chroma STEP PULSE : LISTLIST 100 AC DC

General Description: Preliminary TTP916 Consumer IC VCD/DVD LCD Green mode Stand-by mode( 1W ) Features: 2.2V-5.5V LCD RAM read condition 2.6V-5.5V RC

Microsoft Word - FM12232C.doc

Microsoft Word - BL5372_UMAN_V1.1.doc


untitled

邏輯分析儀的概念與原理-展示版

A (QFP-48-12x ) RANGE IF70K AL-OUT AL-SIG VSS CLKFREQ-SEL HR-SET MIN-SET AM/FM-SEL AL-DISP A AL-

Microsoft Word - AP1515V02

untitled


Cube20S small, speedy, safe Eextremely modular Up to 64 modules per bus node Quick reaction time: up to 20 µs Cube20S A new Member of the Cube Family

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

Microsoft Word - HC20138_2010.doc

中文手册

MODEL 62000H SERIES 5KW / 10KW / 15KW 0 ~ 375A 0 ~ 1000V/2000V( ) : 200/220Vac, 380/400Vac, 440/480Vac 3U/15KW / & 150KW / ( 10 ms ~ 99 hours)

C PICC C++ C++ C C #include<pic.h> C static volatile unsigned char 0x01; static volatile unsigned char 0x02; static volatile unsigned cha

ISO h.PDF

Model P53 pH-ORP Analyzer CH.doc

HD61202 HD HD61203 HD61202, HY HY HD61202 HD61202 HD61203 HD =4096 RAMRAM LCD 2HD HD HD /32--

Comp-AC ACS to 2.2 kw

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2

SDP

ATMEL AT90S8515 AVR CPU AVR AVR AVR ATMEL RISC 32 8 r0 r X Y Z R0 R1 R2 R13 R14 R15 R16 R17 R26 R27 R28 R29 R30 R31 0x00 0x

Microsoft Word - LM1095R-AppNote-V0.3.doc

(Microsoft Word W Technical document for \300\366\304\313.doc)

LK110_ck

逢甲大學

!"#!$ %!$"" %%$&&''!(!)!*+,,!%*& -./ *##)' * %$" ',!*+/!*+ / - 0,1 #$*#2 #$*#2'' *($#3 *($#3'' -. 45,67!&$#6)*$ , ' 189

安 全 指 南 : 必 须 遵 守 所 有 的 警 告 事 项, 以 确 保 自 己 和 他 人 的 安 全 以 及 保 护 产 品 和 连 接 装 置 这 些 警 告 事 项 都 按 警 示 程 度 明 示 出 等 级 有 资 格 的 人 员 : YO-YO 只 能 进 行 与 手 册 有 关 的

规格说明

Microsoft Word - SDL600-zh-CN_V1.5.doc

HC20093A_2008

untitled

HC70245_2008

Table of Contents A. Product Outline.. 3 B. Features.. 4 C. Block Diagram... 5 D. Pin Assignments. 6 E. Physical Specifications... 7 F. DC Characteris

untitled

untitled

Microsoft Word - SP-DM13A-A.003.doc

IEC A( ) B C D II

Datasheet SHT1x (SHT10, SHT11, SHT15) SMD SHT1x ( SHT10, SHT11 SHT15) Sensirion SHT1x CMOSens SHT1X LCC 14 A/D SHT7X PCB SHTA ± ±

HCD0174_2008

蓄电池维护指南新OK.PDF

52C

DPJJX1.DOC

Microsoft Word - c

Thin Film Precision Temperature Chip Resistor TPT 2013.xls

Microsoft Word - SWRH-B series of Shielded SMD Power Inductor.doc

Transcription:

SG240128-01J LCD Version11 LED VDD SG240128SYD-01JSYE STN 80 50V 50V SG240128FPD-01JSWE FSTN 80 50V 50V SG240128SBD-01JSWE STN 80 50V 50V SG240128-01J 1 33V 2 LCM LCD 3 LED 4 1 LCD 2 3 : 010-80750102 /03 /04-010-80750108-624 WWWSCH-LCDCN 010-80750102 /03 /04-512 QQ 982140376 DOCNO: SG240128-01J REV11-1 -

1 2009-05-04 / / / 2 2009-06-02 10 18 19 12, DOCNO: SG240128-01J REV11-2 -

1 4 2-4 3-5 4-5 5-5 6-6 7-7 8-8 9 16 10 LCD -16 11-17 12-18 13-20 14 21 15 23 DOCNO: SG240128-01J REV11-3 -

1,,,,, STN :,, FSTN : 6 O clock or 12 O clock (LED*) 14400( ) 10400( ) 1300( ) mm 11400( ) 6400( ) mm (LED*) 13320( ) 8000( ) 1300( ) mm 240 128 040( ) 040( ) mm 045( ) 045( ) mm 1/128 1/12 SAP1024B or RA6963 (E*) -20~+70 (E*) -30~+80 LED:,80 33~5V, DC/DC V 50,000 : LED*: LED E*: 2 21 Vss=0V Item Symbol Min Max Unit Note Vdd-Vss 0 70 V LCD Vdd-Vo 0 200 V I/O Vi 0 Vdd V 22 Item Symbol Min Max Unit T0-20 +70 Ts -30 +80 85 %RH DOCNO: SG240128-01J REV11-4 -

3 31 Vss=0V Item Symbol Condition Min Typ Max Unit Vdd - 45 50 5 5 V LCD Vdd-Vo - 155 198 V VIH - Vdd-22 Vdd V VIL - 0 08 V FELM Vdd=5V 65 78 85 Hz 32 LED Color Item Symbol Min Typ Max Unit Condition Vf 28 30 32 V If=115mA Vf 28 30 32 V If=115mA Vf 28 30 32 V If=115mA 4 STN TYPE Ta=25 Item Symbol Condition Min Typ Max Unit Reference Viewing angle K 20 =0 40 deg Contrast ration K =5 =0 5 Response time(rise) Tr =5 =0 110 165 ms Response time(fall) Tf =5 =0 110 165 ms 5 Definition of Optical Response Time Non-select Signal Select Signal Non-select Signal Brightness Time r Rise Time In case of Negative type, wave from of changing brightness becomes reverse (Non Select Signals:0%,Select Signals:100% Decay Time d DOCNO: SG240128-01J REV11-5 -

Definition of Contrast Ratio(CR) Brightness B1: Brightness In Select Signal B2: Brightness In Non-Select Signal Driving Voltage Brightness In Non-Select Signal CR= Brightness In Select Signal (Positive Type) Driving Voltage Brightness In Select Signal CR= Brightness In Non-Select Signal (Negative Type) Definition of Viewing Angle z = 0 90 and 180 0 6 270 CE WR RD RAM RST C/D DB0 DB7 FS T6963C COM1 COM64 LCD PANEL COMMON DRIVER SEG1 SEG240 CONTROLLER SEGMENT DRIVERS DOCNO: SG240128-01J REV11-6 -

7 71 AC CHARACTERISTICS Characteristic Symbol Min Max Unit C/D set up time tcds 100 ns C/D hold time tcdh 10 ns CE, RD, WR pulse width tce, trd, twr 80 ns Data set up time tds 80 ns Data hold time tdh 40 ns Access time tacc 150 ns Output hold time toh 10 50 ns 72 TIMING CHARACTERISTICS DOCNO: SG240128-01J REV11-7 -

8 81 T6963C RD L WR H CE L C/D H D0-D7 Status word T6963C MSB STA7 STA6 STA5 STA4 STA3 STA2 STA1 D7 D6 D5 D4 D3 D2 D1 LSB STA0 D0 STA0 0 : Disable 1 : Enable STA1 0 : Disable 1 : Enable STA2 0 : Disable 1 : Enable STA3 0 : Disable 1 : Enable STA4 STA5 0 : Disable 1 : Enable STA6 ( ) 0 : 1 : STA7 0 : 1 : 1 : STA0 STA1, 2 : STA0 STA1 3 : STA2/STA3 STA0/STA1 DOCNO: SG240128-01J REV11-8 -

AUTO MODE STATUS STATUS STA0=1 STA1=1 YES RETURN NO STA2=1 (STA3=1) YES RETURN NO 4 : MSB0 82 1 1 data 2 2 data 2 data 2 data DOCNO: SG240128-01J REV11-9 -

83 Command Code 00100001 00100010 00100100 01000000 01000001 01000010 01000011 1000x000 1000x001 1000x011 1000x100 10000xxx 10001xxx 10010000 1001xx10 1001xx11 100101xx 100110xx 100111xx 10100000 10100001 10100010 10100011 10100100 10100101 10100110 10100111 10110000 / 10110001 10110010 11000000 11000001 / 11000010 11000011 11000100 11000101 D1 1 D2 2 Function X Y 00H 00H 00H " " " " " " " CG ROM CG RAM,,,,, 1 2 3 4 5 6 7 8 Data Data Data & 1 & 1 & 1 & 1 & & 11100000 DOCNO: SG240128-01J REV11-10 -

11101000 / 11110xxx 11111xxx 1111x000 1111x001 1111x010 1111x011 1111x100 1111x101 1111x110 1111x111 bit 0 bit 1 bit 0 (LSB) bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 (MSB) 84 84-1 X ADRS, Y ADRS 1 X ADRS 00~4FH Y ADRS 00H~0FH 2 X ADRS 00~4FH Y ADRS 00H~0FH Upper screen Y ADRS 10H~1FH Lower screen 842 RAM T6963C 16 MSB LSB ad15 ad14 ad13 Ad12 ad11 ad10 ad9 Ad8 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 5 8 (ad10 ad3) 3 D1 (data) 5 lower 5 bit DOCNO: SG240128-01J REV11-11 -

RAM CG RAM HEX ( - ) 00000 0000-07FFH 00001 0800-0FFFH 00010 1000-17FFH 11100 E000-E7FFH 11101 E800-EFFFH 11110 F000-F7FFH 11111 F800-FFFFH 84-3 RAM 8 8 Address pointer set command send 24H 84-4 / Code Hex Function Operand 10110000 B0H 10110001 B1H 10110010 B2H / / + 1 / DOCNO: SG240128-01J REV11-12 -

/ (STA2,STA3) (STA2,STA3) / LOWER ADDRESS DATA STA0=1, STA1=1? NO UPPER ADDRESS DATA YES 24H B0H B2H STA2=1,READ (STA3=1)?,WRITE YES NO DOCNO: SG240128-01J REV11-13 -

84-5 Code Hex Function Operan d 1100000 0 C0H & 1 Data 1100000 1 C1H & 1 1100001 0 C2H & 1 Data 1100001 1 C3H & 1 1100010 C4H & Data 0 1100010 1 C5H & MPU RAM 1 1 8 8 C1H END 24H C0H DOCNO: SG240128-01J REV11-14 -

84-6 / Code Function Operand 11110xxx bit 11111xxx bit 1111x000 bit 0 (LSB) 1111x001 bit 1 1111x010 bit 2 1111x011 bit 3 1111x100 bit 4 1111x101 bit 5 1111x110 bit 6 1111x111 bit 7 (MSB) / RAM / 8 8 24H / DOCNO: SG240128-01J REV11-15 -

9 10 LCD VDD +5V CONVERTER VO Vout 5V VSS VR=10K~20K DOCNO: SG240128-01J REV11-16 -

11 Vdd=5V Ta=25 Test Item Content of Test Test Condition Applicable Standard High temperature Endurance test applying the high 60 C storage storage temperature for a long time 200 hrs Low temperature Endurance test applying the low -10 C storage storage temperature for a long time 200 hrs High temperature Endurance test applying the electric 50 C operation stress (Voltage & Current) and the 200 hrs thermal stress to the element for a long time Low temperature Endurance test applying the electric 0 C operation stress under low temperature for a 200 hrs long time High temperature / Endurance test applying the high 60 C, 90 %RH MIL-202E-103B Humidity storage temperature and high humidity 96 hrs JIS-C5023 storage for a long time High temperature / Humidity operation Temperature cycle Vibration test Endurance test applying the electric stress (Voltage & Current) and temperature / humidity stress to the element for a long time Endurance test applying the low and high temperature cycle Endurance test applying the vibration during transportation and using Shock test Constructional and mechanical endurance test applying the shock during transportation Atmospheric pressure test Static electricity test Endurance test applying the atmospheric pressure during transportation by air Endurance test applying the electric stress to the terminal 40 C, 90 %RH 96 hrs -10 C / 60 C 10 cycles 10 22Hz 15mmp-p 22 500Hz 15G Total 05hrs 50G half sign wave 1l msedc 3 times of each direction 115 mbar 40 hrs VS=800V, RS=15 kω CS=100 pf 1 time MIL-202E-103B JIS-C5023 MIL-202E-201 A JIS-C5025 JIS-C7022-A-10 MIL-202E-213B MIL-202E-105C MIL-883B-3015 1 Supply voltage for logic system = 5V Supply voltage for LCD system = Operating voltage at 25 C DOCNO: SG240128-01J REV11-17 -

12 J1 Pin No Symbol Level Function 1 FG 0V LCD LCD 2 VSS 0V 3 VDD 50V 4 VO NC LCD 10 5 /WR L-H 6 /RD L-H 7 /CS L LCD 8 C/D H/L :, 9 /RST L 10 DB0 H/L 11 DB1 H/L 12 DB2 H/L 13 DB3 H/L 14 DB4 H/L 15 DB5 H/L 16 DB6 H/L 17 DB7 H/L 8 18 FS H/L ( H : 6 x 8 dots, L : 8 x 8 dots ) 19 LED + 50V 20 LED - 0V 1 J1 LCM LCD 4 VO 2 19 LED+ 20 LED- JA1 JA3 JK1 JA2 3 JA JA4 19 LED+ 20 LED- DOCNO: SG240128-01J REV11-18 -

J2 Pin No Symbol Level Function 1 FG 0V LCD LCD 2 VSS 0V 3 VDD 50V 4 V0 NC LCD 10 5 /WR L-H 6 /RD L-H 7 /CS L LCD 8 C/D H/L :, 9 /RST L 10 DB0 H/L 11 DB1 H/L 12 DB2 H/L 13 DB3 H/L 14 DB4 H/L 15 DB5 H/L 16 DB6 H/L 17 DB7 H/L 18 FS H/L ( H : 6 x 8 dots, L : 8 x 8 dots ) 19 LED + 50V 20 LED - 0V 8 21 VOUT NC -16V LCD DC/DC 10 1 J2 LCM LCD 4 VO 21 VOUT 2 19 LED+ 20 LED- JA1 JA3 JK1 JA2 3 JA JA4 19 LED+ 20 LED- DOCNO: SG240128-01J REV11-19 -

13 9 10 11 12 13 14 15 16 17 18 19 20 1 2 3 4 5 6 7 8 DETAIL A SCALE 10X X J1 9 10 11 12 13 14 15 16 17 18 19 20 1 2 3 4 5 6 7 8 STN FSTN 1/128DUTY,1/12BAIS 156V 6:00 DETAIL A 21 SAP1024B OR RA6963L2NA LCM SG240128-01J -20 -+70 SCH-RD-USER-09016-SPEC -30 -+80 20090501 FG VSS VDD V0(NC) WR RD CS C/D RST DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 FS LED + LED - FG VSS VDD V0(NC) WR RD CS C/D RST DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 FS LED + LED - VOUT(NC) 10 1:1 mm 1/1 J2 1 21 10 09-02-10 DOCNO: SG240128-01J REV11-20 -

14 141, : (1) (2), (3) (4) ( / ), (5),,, CMOS,,, CMOS IC (1),,, (2),,,,, (3),, (4),,, (5),,, (6), LCD,, (7) : 50~60%RH : : / (1) : : 280 10 : 3-4S DOCNO: SG240128-01J REV11-21 -

:,,, (2) :,,, 3 :, :, ;, (1) (2),, (3), : 0 ~35,,, 142 (1), (2) (3) (4) (5) (6), (7), 40, 60% (8),,,, DOCNO: SG240128-01J REV11-22 -

15 /******************************************************************/ //6963c //8X8 //RAM 32K 0 7FFF // /******************************************************************/ #include <reg52h> #include <intrinsh> /******************************************************************/ sbit ce=p1^0; /* chip enable */ sbit d_i=p1^3; /* command or data select H command L:data*/ sbit r_d=p1^4; /* rd EQU P14 */ sbit w_r=p1^5; /* wr EQU P15 */ sbit rst=p1^6; /* RESET EQU P15 */ sbit sbit sbit sta0_bit=p2^0; sta1_bit=p2^1; sta3_bit=p2^3; unsigned char *p; unsigned char *q; unsigned char *r; unsigned char *s; // unsigned int size_lie=240 ; //LCD, 240128 240 unsigned int size_hang=128 ; //LCD, 240128 128 unsigned int textsize; //LCD text unsigned int graphicsize;//lcd graphic unsigned char textsize_h; //textsize unsigned char textsize_l; // unsigned char graphicsize_h;//graphic unsigned char graphicsize_l;//graphic DOCNO: SG240128-01J REV11-23 -

unsigned int text_startaddr;//text unsigned char text_startaddr_h;// unsigned char text_startaddr_l;// unsigned int graphic_startaddr;//graphic unsigned char graphic_startaddr_h; unsigned char graphic_startaddr_l; unsigned char *p;// unsigned char *q; unsigned char *r; unsigned char *s; unsigned char bdata flag; #define nop() _nop_(); unsigned char code h8o[3]=0x18,0x28,0x79; unsigned char code graphich8o[24]= 0x0e,0x11,0x11,0x0e,0x11,0x11,0x0e,0x00,// 0x11,0x11,0x11,0x1f,0x11,0x11,0x11,0x00,// 0x0a,0x00,0x0e,0x11,0x11,0x11,0x0e,0x00// ; unsigned char code sch[1920]= ; unsigned char code tableindex[48]=// 0,0,0,0,0,0,0,1,2,0,0,0,// 24 0,3,4,5,6,7,0,8,6,9,10,11,// 0,6,12,13,14,15,0,16,17,18,19,20,// 0,21,22,23,24,25,0,26,27,28,29,30;// // =8 //=============== :" "16*16=============== unsigned char code CGTAB[992]=// 30, 32, 960, : : -12 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* */0x42,0x21,0x21,0x07,0x00,0x00,0xEF,0x20,0x21,0x21,0x22,0x24,0x20,0x50,0x8F,0x00, DOCNO: SG240128-01J REV11-24 -

0x20,0x20,0x40,0xF8,0x80,0x80,0xFC,0x80,0x40,0x20,0x10,0x10,0x00,0x00,0xFE,0x00, /* */0x00,0x3F,0x21,0x21,0x21,0x3F,0x29,0x08,0x7F,0x09,0x11,0x11,0x21,0x27,0x42,0x80, 0x04,0x04,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x04,0x04,0x04,0x1C,0x08, /* */0x00,0x7F,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00, 0x04,0xFE,0x00,0x00,0x00,0xC0,0x60,0x30,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* */0x00,0x3F,0x00,0x08,0x08,0x08,0x08,0x0F,0x00,0x00,0x7F,0x00,0x00,0x00,0x00,0x00, 0x00,0xE0,0x20,0x20,0x20,0x20,0x20,0xFC,0x04,0x04,0xF4,0x04,0x04,0x34,0x08,0x00, /* */0x20,0x20,0x20,0x3D,0x45,0x4A,0x94,0x10,0x10,0x10,0x10,0x11,0x15,0x1A,0x14,0x00, 0x80,0x80,0x80,0xFE,0x04,0x48,0x40,0x40,0x40,0xA0,0xA0,0x10,0x08,0x0E,0x04,0x00, /* */0x00,0x3F,0x02,0x02,0xFF,0x04,0x04,0x3F,0x04,0x08,0x1F,0x18,0x28,0x48,0x8F,0x08, 0x00,0xF8,0x08,0x08,0xFE,0x08,0x08,0xF8,0x08,0x00,0xF8,0x08,0x08,0x08,0xF8,0x08, /* */0x40,0x2F,0x21,0x01,0x97,0x55,0x15,0x25,0x25,0x26,0xC4,0x47,0x44,0x47,0x44,0x00, 0x00,0xFE,0x20,0x20,0xFC,0x24,0x24,0x24,0x24,0x3C,0x04,0xFC,0x04,0xFC,0x04,0x00, /* */0x10,0x0B,0x08,0x20,0x20,0x27,0x24,0x24,0x24,0x27,0x20,0x20,0x20,0x20,0x20,0x20, 0x00,0xFC,0x04,0x04,0x04,0xE4,0x24,0x24,0x24,0xE4,0x04,0x04,0x04,0x04,0x14,0x08, /* */0x08,0x0C,0x1B,0x10,0x30,0x27,0x64,0xA4,0x24,0x27,0x24,0x20,0x20,0x20,0x20,0x00, 0x00,0x00,0xFE,0x08,0x08,0xC8,0x48,0x48,0x48,0xC8,0x48,0x08,0x08,0x28,0x10,0x00, /* */0x0E,0x70,0x40,0x40,0x7C,0x44,0x44,0x44,0x7C,0x40,0x41,0x41,0x42,0x42,0x84,0x08, 0x1E,0xE0,0x80,0x80,0x80,0xFE,0x88,0x88,0x88,0x88,0x08,0x08,0x08,0x08,0x08,0x08, /* */0x02,0x01,0x00,0x7F,0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x18,0x28,0xE7,0x40,0x00, 0x00,0x00,0x88,0xFC,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0xFE,0x00, /* */0x02,0x01,0x7F,0x00,0x00,0x1F,0x00,0x1F,0x00,0x00,0x1F,0x10,0x10,0x10,0x1F,0x10, 0x00,0x00,0xFE,0x00,0x00,0xF0,0x00,0xF0,0x00,0x00,0xF0,0x10,0x10,0x10,0xF0,0x10, /* */0x00,0x7F,0x01,0x01,0x01,0x01,0x03,0x05,0x09,0x11,0x21,0x41,0x01,0x01,0x01,0x00, 0x04,0xFE,0x80,0x00,0x00,0x00,0x60,0x30,0x18,0x0C,0x08,0x00,0x00,0x00,0x00,0x00, /* */0x13,0x1A,0x23,0x4A,0x8B,0x10,0x13,0x30,0x50,0x97,0x10,0x11,0x11,0x11,0x10,0x10, 0xF8,0x08,0xF8,0x08,0xF8,0x00,0xFE,0x10,0x10,0xFE,0x10,0x10,0x10,0x10,0x50,0x20, /* */0x01,0x3F,0x08,0x04,0xFF,0x00,0x1F,0x12,0x11,0x1F,0x00,0x29,0x28,0x68,0x07,0x00, 0x00,0xFC,0x20,0x40,0xFE,0x00,0xF0,0x10,0x10,0xF0,0x00,0x08,0x84,0x14,0xF0,0x00, /* */0x08,0x08,0x0B,0x48,0x48,0x48,0x48,0x49,0x48,0x48,0x48,0x08,0x10,0x13,0x20,0x40, 0x00,0x00,0xFC,0x04,0x04,0x04,0x04,0xFC,0x04,0x04,0x04,0x04,0x04,0xFC,0x00,0x00, /* */0x00,0x7F,0x48,0x48,0x48,0x7F,0x41,0x41,0x7F,0x48,0x48,0x48,0x48,0x7F,0x00,0x00, 0x40,0x40,0x40,0x40,0x40,0x60,0x50,0x4C,0x46,0x42,0x40,0x40,0x40,0x40,0x40,0x00, /* */0x01,0x01,0xFF,0x01,0x02,0x3F,0x24,0x22,0x2F,0x21,0x3F,0x21,0x21,0x21,0x21,0x00, 0x00,0x04,0xFE,0x00,0x00,0xFC,0x24,0x44,0xF4,0x04,0xFC,0x04,0x04,0x14,0x08,0x00, /* */0x01,0x01,0x01,0x01,0x01,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x7F,0x20,0x00, 0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0xFC,0x04,0x00, /* */0x78,0x4B,0x50,0x57,0x61,0x51,0x49,0x4F,0x49,0x69,0x51,0x47,0x40,0x40,0x43,0x40, 0x3C,0xC0,0x40,0xFE,0x50,0x50,0x50,0xFE,0x50,0x50,0x50,0xFE,0x40,0x40,0xFC,0x00, /* */0x10,0x1B,0x12,0x22,0x22,0x73,0xA2,0x22,0x22,0x23,0x22,0x22,0x20,0x2F,0x20,0x00, 0x00,0xF8,0x08,0x08,0x08,0xF8,0x08,0x08,0x08,0xF8,0x08,0x00,0x00,0xFE,0x00,0x00, /* */0x01,0x01,0x01,0x3F,0x01,0x01,0x01,0x01,0x7F,0x02,0x06,0x08,0x10,0x3F,0x10,0x00, 0x00,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0x20,0x10,0xF8,0x10,0x00, DOCNO: SG240128-01J REV11-25 -

/* */0x04,0x04,0x7F,0x04,0x1F,0x10,0x1F,0x10,0x1F,0x01,0xFF,0x02,0x04,0x08,0x10,0x60, 0x20,0x20,0xFE,0x20,0xF0,0x10,0xF0,0x10,0xF0,0x00,0xFE,0x80,0x40,0x20,0x1C,0x08, /* */0x08,0x0F,0x10,0x2F,0x48,0x0F,0x08,0x0F,0x04,0x07,0x0C,0x12,0x21,0x06,0x18,0x60, 0x00,0xFC,0x00,0xF8,0x08,0xF8,0x08,0xF8,0x00,0xF8,0x10,0x60,0x80,0x60,0x1E,0x04, /* */0x10,0x0B,0x40,0x40,0x5F,0x44,0x47,0x44,0x47,0x44,0x44,0x5F,0x40,0x40,0x40,0x40, 0x00,0xFC,0x04,0x04,0xF4,0x44,0xC4,0x44,0xC4,0x44,0xF4,0x44,0x44,0x44,0x54,0x08, /* */0x02,0x02,0x04,0x3F,0x20,0x20,0x20,0x20,0x3F,0x20,0x20,0x20,0x20,0x3F,0x20,0x00, 0x00,0x00,0x00,0xF8,0x08,0x08,0x08,0x08,0xF8,0x08,0x08,0x08,0x08,0xF8,0x08,0x00, /* */0x00,0x00,0x3F,0x00,0x00,0x00,0xFF,0x03,0x07,0x06,0x0C,0x18,0x31,0x7F,0x20,0x00, 0x00,0x30,0xF8,0x00,0x00,0x0C,0xFE,0x00,0x00,0x40,0x20,0x10,0xF8,0x0C,0x08,0x00, /* */0x00,0x3F,0x01,0x01,0x01,0x01,0x7F,0x01,0x02,0x02,0x04,0x08,0x10,0x20,0xC0,0x00, 0x00,0xFC,0x00,0x00,0x00,0x00,0xFE,0x80,0x80,0x80,0x80,0x80,0x82,0x82,0x7E,0x00, /* */0x00,0x1F,0x10,0x10,0x1F,0x10,0x10,0x10,0x26,0x21,0x40,0x84,0x03,0x01,0x00,0x00, 0x00,0xF8,0x08,0x08,0xF8,0x80,0x80,0x40,0x20,0x98,0x8E,0x04,0x00,0x80,0x80,0x00, /* */0x00,0x00,0x7C,0x44,0x47,0x44,0x7C,0x45,0x44,0x44,0x7C,0x00,0x00,0x00,0x00,0x00, 0x10,0x10,0x10,0x10,0xFE,0x10,0x10,0x10,0x90,0x90,0x10,0x10,0x10,0x10,0x50,0x20, ; //Write Data void wdata(unsigned char com) //PR14 ce=0;// d_i=0;// r_d=1; w_r=0;// nop(); P2=com;// nop(); w_r=1; // void wcom(unsigned char dat) //wdata ce=0; d_i=1;// r_d=1; w_r=0;// nop(); DOCNO: SG240128-01J REV11-26 -

P2=dat; nop(); w_r=1; // 0 1 void check_sta01(void) unsigned char temp; w_r=1; d_i=1; ce=0; while(1) P2=0XFF; r_d=0; nop(); temp=p2; nop(); r_d=1; if((temp&0x03)==0x03)//sta0 AND STA1 return; // check_sta3 void check_sta3(void) unsigned char temp; w_r=1; d_i=1;// ce=0; while(1) P2=0XFF; r_d=0; temp=p2; nop(); r_d=1; DOCNO: SG240128-01J REV11-27 -

if((temp&0x08)==0x08) return; // void double_byte_parameter(unsigned char coma,unsigned char comb,unsigned char data_b) check_sta01(); wdata(coma); check_sta01(); wdata(comb); check_sta01(); wcom(data_b); // void no_parameter(unsigned char com) check_sta01(); wcom(com); // //state=0,text vlaue 0 value 0xff void all_display(unsigned char state,unsigned char vlue) unsigned int i; if(state==0) double_byte_parameter(text_startaddr_l,text_startaddr_h,0x24); no_parameter(0xb0); for(i=textsize;i>0;i--) wdata(vlue); DOCNO: SG240128-01J REV11-28 -

else wcom(0xb2); double_byte_parameter(graphic_startaddr_l,graphic_startaddr_h,0x24); no_parameter(0xb0); for(i=graphicsize;i>0;i--) wdata(vlue); wcom(0xb2); //TEXT 8X8 //hang:1-size_hang/8 //lie:1-size_lie/8 void display_ascii(unsigned char *addr,unsigned char hang,unsigned char lie) unsigned int temp;// unsigned char low; unsigned char high; temp=(size_lie/8)*(hang-1)+(lie-1); //TEXT TEXT size_hang/8 size_lie/8 8X8 // 0 size_hang/8-1), 0 size_lie/8 1 // hang lie 1 low=temp&0x00ff; high=(temp>>8)&0x00ff; double_byte_parameter(low,high,0x24); no_parameter(0xb0);// wdata(*addr);//addr CGRAM OR CGROM wcom(0xb2);// // DOCNO: SG240128-01J REV11-29 -

//graphic size_hang size_lie/8 void display_map(unsigned char *p) unsigned char m,n; double_byte_parameter(graphic_startaddr_l,graphic_startaddr_h,0x24); no_parameter(0xb0); for(m=size_hang;m>0;m--)// size_hang for(n=(size_lie/8);n>0;n--)//size_lie/8 wdata(*p++); wcom(0xb2); void display8hotext(void)//text CGROM unsigned int hang;// unsigned int lie;// for(hang=1;hang<=((size_hang*3/8)/8);hang++)//3/8 8 for(lie=1;lie<=(size_lie/8);lie++) display_ascii( &h8o,hang, lie ); for(hang=(((size_hang*3/8)/8)+1);hang<=(((size_hang*3/8)/8)+2);hang++)//2/8 H for(lie=1;lie<=(size_lie/8);lie++) display_ascii( &h8o+1,hang, lie ); for(hang=(((size_hang*3/8)/8)+3);hang<=(((size_hang*3/8)/8)+5);hang++)//3/8 O for(lie=1;lie<=(size_lie/8);lie++) display_ascii( &h8o+2,hang, lie ); // //hang 1 size_hang/16, lie 1-size_lie/16 DOCNO: SG240128-01J REV11-30 -

//addr CGRAM // 8X8 16X16 void displayhz_at_xyaddr(unsigned char addr,unsigned char hang,unsigned char lie) unsigned int temp; unsigned char low; unsigned char high; temp=(size_lie/8)*2*(hang-1)+2*(lie-1); //TEXT TEXT size_hang/8 size_lie/8 8X8 // 0 size_hang/8-1), 0 size_lie/8 1 // hang lie 1 16X16 low=temp&0x00ff; high=(temp>>8)&0x00ff; double_byte_parameter(low,high,0x24); no_parameter(0xb0); wdata(addr);// wdata(addr+2);// wcom(0xb2); temp=(size_lie/8)*2*(hang-1)+(size_lie/8)+2*(lie-1);// (size_lie/8) low=temp&0x00ff; high=(temp>>8)&0x00ff; double_byte_parameter(low,high,0x24); no_parameter(0xb0); wdata(addr+1); wdata(addr+3); wcom(0xb2); void displayhz() unsigned char j; for(j=1;j<=6;j++) DOCNO: SG240128-01J REV11-31 -

displayhz_at_xyaddr(0x80+tableindex[j-1+24]*4,2,j); displayhz_at_xyaddr(0x80+tableindex[j-1+24+6]*4,3,j); //graphic 8HO void display_8ho(unsigned char *q)// 3:2:3 unsigned int count_byte,count_row,count_page,page; for(count_row=7;count_row>3;count_row--)// double_byte_parameter(graphic_startaddr_l,graphic_startaddr_h,0x24);// GRAPHIC no_parameter(0xb0);// for(page=1;page<=((size_hang*3/8)/8);page++)// 3/8 s=q; for(count_byte=8;count_byte>0;count_byte--)// 8 8 X 8 for(count_page=(size_lie/8);count_page>0;count_page--)// (size_lie/8) wdata(*s); s++; for(page=1;page<=((size_hang*2/8)/8);page++)// 2/8 s=q; s=s+8; for(count_byte=8;count_byte>0;count_byte--)// 8 8 X 8 for(count_page=(size_lie/8);count_page>0;count_page--)//30x8 wdata(*s); s++; DOCNO: SG240128-01J REV11-32 -

for(page=1;page<=((size_hang*3/8)/8);page++)// 3/8 s=q; s=s+16; for(count_byte=8;count_byte>0;count_byte--)// 8 8 X 8 for(count_page=(size_lie/8);count_page>0;count_page--)//30x8 wdata(*s); s++; wcom(0xb2);// void CGRAM(void) unsigned int m=0; double_byte_parameter(0x07,0x00,0x22); double_byte_parameter(0x00,0x3c,0x24); // no_parameter(0xb0); for(m=0;m<992;m++) wdata(cgtab[m]); wcom(0xb2); void delay1s(void) unsigned int i; unsigned int j; for(i=0;i<1000;i++) // 1K CGRAM DOCNO: SG240128-01J REV11-33 -

for(j=0;j<100;j++) j=j; void main(void) rst=0; nop(); nop(); nop(); rst=1; textsize=graphicsize=size_lie/8*size_hang;// textsize_l=textsize;// textsize_h=textsize>>8;// graphicsize_h=graphicsize>>8; graphicsize_l=graphicsize; text_startaddr=0x0000; text_startaddr_h=text_startaddr>>8;// text_startaddr_l=text_startaddr; graphic_startaddr=text_startaddr+textsize;// graphic_startaddr_h=graphic_startaddr>>8;// graphic_startaddr_l=graphic_startaddr; double_byte_parameter(text_startaddr_l,text_startaddr_h,0x40);//text double_byte_parameter((size_lie/8),0x00,0x41); double_byte_parameter(graphic_startaddr_l,graphic_startaddr_h,0x42); double_byte_parameter((size_lie/8),0x00,0x43); no_parameter(0x80);//text OR GRAPHIC no_parameter(0xa3);// CGRAM(); while(1) all_display(1,0x00); no_parameter(0x98);//text OFF,GRAPHIC ON DOCNO: SG240128-01J REV11-34 -

display_map(&sch); delay1s(); display_8ho(&graphich8o); delay1s(); no_parameter(0x94); //TEXT ON,GRAPHIC OFF all_display(0,0x00); displayhz(); delay1s(); all_display(0,0x00); display8hotext(); delay1s(); DOCNO: SG240128-01J REV11-35 -