LCD1602A Datasheet Download From IC-ON-LINE.CN

Precautions in use of LCD Modules. 3.General Specification. 4.Absolute Maximum Ratings. 5.Electrical Characteristics. 6.Optical Characteristics. 7.Interface Pin ...
290KB taille 81 téléchargements 279 vues
Crystalfontz America, Inc. 15611 East Washington Road

Valleyford, WA 99036

Phone: (509) 291-3514 Fax: (509) 291-3345

http://www.crystalfontz.com email: [email protected]

Crystalfontz America, Inc. CUSTOMER CFAH1602A-AGB-JP

APPROVAL

SALES BY

BY:

APPROVED BY

DATA:

CHECKED BY

 Crystalfontz America, Inc. 15611 East Washington Road Valleyford, WA 99036-9747 Phone: (509) 291-3514

m o c

. u t4

e e h s a t a

w

w

w

.d

Fax: (509) 291-3345 e-mail: [email protected] http://www.crystalfontz.com

PREPARED BY

www.DataSheet4U.com

MODEL

Crystalfontz America, Inc. 15611 East Washington Road

Valleyford, WA 99036

Phone: (509) 291-3514 Fax: (509) 291-3345

&RQWHQWV 1.Module Classification Information 2.Precautions in use of LCD Modules 3.General Specification 4.Absolute Maximum Ratings 5.Electrical Characteristics 6.Optical Characteristics 7.Interface Pin Function 8.Contour Drawing & Block Diagram 9.Function Description 10.Character Generator ROM Pattern 11.Instruction Table 12.Timing Characteristics 13.Initializing of LCM 14.Quality Assurance 15.Reliability 16.Backlight Information

http://www.crystalfontz.com email: [email protected]

Crystalfontz America, Inc. 15611 East Washington Road

Phone: (509) 291-3514 Fax: (509) 291-3345

Valleyford, WA 99036

http://www.crystalfontz.com email: [email protected]

0RGXOH&ODVVLILFDWLRQ,QIRUPDWLRQ CFA H 1 6 0 2

c d

e





A AGB

f ghi

JP

j

c Brand: CRYSTALFONTZ AMERICA, INCORPORATED d Display Type: H(Character Type, G(Graphic Type e Display’s logical dimensions: 16 columns by 02 lines f Model serials no. g Backlight Type: N(Without backlight h LCD Mode: i LCD Polarizer Type, Temperature range, Viewing direction:

j Special Code: 

( ( ( ( ( ( ( ( ( ( ( ( ( ( (

(LED, Yellow Green (LED, Amber (LED, Red (LED, Orange (LED, Green (STN Negative, Blue (FSTN Positive (FSTN Negative H(Transflective, W.T,6:00 K(Transflective, W.T,12:00 C(Transmissive, N.T,6:00 F(Transmissive, N.T,12:00 I(Transmissive, W. T, 6:00 L(Transmissive, W.T,12:00 Y A R O G M F T

B EL, Blue green D EL, Green W EL, White F CCFL, White B TN Positive, Gray N TN Negative, G STN Positive, Gray Y STN Positive, Yellow Green A Reflective, N.T, 6:00 D Reflective, N.T, 12:00 G Reflective, W. T, 6:00 J Reflective, W. T, 12:00 B Transflective, N.T,6:00 E Transflective, N.T.12:00 JP English and Japanese standard font

Crystalfontz America, Inc. 15611 East Washington Road

Valleyford, WA 99036

Phone: (509) 291-3514 Fax: (509) 291-3345

http://www.crystalfontz.com email: [email protected]

3UHFDXWLRQVLQXVHRI/&'0RGXOHV (1)Avoid applying excessive shocks to the module or making any alterations or modifications to it. (2)Don’t make extra holes on the printed circuit board, modify its shape or change the components of LCD module. (3)Don’t disassemble the LCM. (4)Don’t operate it above the absolute maximum rating. (5)Don’t drop, bend or twist LCM. (6)Soldering: only to the I/O terminals. (7)Storage: please storage in anti-static electricity container and clean environment.

*HQHUDO6SHFLILFDWLRQ Item

Dimension 16 characters x 2 Lines



84.0 x 44.0 x 13.5(MAX)

mm

View area

66.0 x 17.0

mm

Active area

56.20 x 11.5

mm

Dot size

0.55 x 0.65

mm

Dot pitch

0.60 x 0.70

mm

Character size

2.95 x 5.55

mm

Character pitch

3.55 x 5.95

mm

Number of Characters Module dimension



Unit

LCD type

STN, Positive, Transflective, Gray

Duty

1/16

View direction

6 o’clock

Backlight Type

LED Amber

Crystalfontz America, Inc. 15611 East Washington Road

Phone: (509) 291-3514 Fax: (509) 291-3345

Valleyford, WA 99036

http://www.crystalfontz.com email: [email protected]

$EVROXWH0D[LPXP5DWLQJV Item

Symbol

Min

Operating Temperature

TOP

0

Storage Temperature

TST

-10

Input Voltage

VI

VSS

Supply Voltage For Logic

VDD-VSS

-0.3

Supply Voltage For LCD

VDD-V0

-0.3

Typ

    

Max +50 +60

Unit

: :

VDD

V

7

V

13

V

Max

Unit

5.5

V

4.2

 

V

VDD

V

0.6

V

(OHFWULFDO&KDUDFWHULVWLFV Item Supply Voltage For Logic

Symbol VDD-VSS

Condition



Input High Volt.

VIH

Input Low Volt.

VIL

Output High Volt.

VOH

Output Low Volt.

VOL

: Ta=25: Ta=50:    

Supply Current

IDD

VDD=5V

Ta=0

Supply Voltage For LCD



VDD-V0

Min 4.5

 

3.6 2.2



2.4

 

Typ

 

3.8

    

1.2

V V



V

0.4

V



mA

Crystalfontz America, Inc. 15611 East Washington Road

Phone: (509) 291-3514 Fax: (509) 291-3345

Valleyford, WA 99036

http://www.crystalfontz.com email: [email protected]

2SWLFDO&KDUDFWHULVWLFV Item

Symbol

Condition

ð (H)ý

2 CR 2   

(V)

View Angle Contrast Ratio

T rise Response Time T fall

Definition of Operation Voltage (Vop)

Intensity 100

8

Non-selected Wave

Max

Unit

105

deg

30

deg

3





150

200

ms

150

200

ms

 

-30

  

Definition of Response Time ( Tr , Tf ) Non-selected Conition

Selected Wave

Typ

10

CR

CR

Min

Selected Conition

Non-selected Conition

Intensity

8

10

Cr Max

8

8

Cr = Lon / Loff

90

100

Vop

Tr

Driving Voltage(V)

[positive type]

Tf

[positive type]

Conditions :

ð”ý) : 0H” 0H

Operating Voltage : Vop

Viewing Angle(

Frame Frequency : 64 HZ

Driving Waveform : 1/N duty , 1/a bias



Definition of viewing angle(CR 2)

ðf ðl ý= 270H

ðb

ý= 180H

ðr

ý= 90H ý = 0H

Crystalfontz America, Inc. 15611 East Washington Road

Phone: (509) 291-3514 Fax: (509) 291-3345

Valleyford, WA 99036

http://www.crystalfontz.com email: [email protected]

,QWHUIDFH3LQ)XQFWLRQ Pin No. Symbol



Level

Description

1

VSS

0V

Ground

2

VDD

5.0V

3

VO

4

RS

H/L

H: DATA, L: Instruction code

5

R/W

H/L

H: Read(MPU Module) L: Write(MPU Module)

6

E

H,H L

7

DB0

H/L

Data bit 0

8

DB1

H/L

Data bit 1

9

DB2

H/L

Data bit 2

10

DB3

H/L

Data bit 3

11

DB4

H/L

Data bit 4

12

DB5

H/L

Data bit 5

13

DB6

H/L

Data bit 6

14

DB7

H/L

Data bit 7

15

A

16

K

Supply Voltage for logic

(Variable) Operating voltage for LCD

(

 

(

Chip enable signal

LED +



LED

(

Crystalfontz America, Inc. 15611 East Washington Road

Phone: (509) 291-3514 Fax: (509) 291-3345

Valleyford, WA 99036

http://www.crystalfontz.com email: [email protected]

&RQWRXU'UDZLQJ %ORFN'LDJUDP 84.0 0.5 71.2 66.0(VA) 56.2(AA)

9.0 13.9 2.5

1.5 2-R1.25 2-R2.5

2.5

Vss Vdd Vo RS R/W E DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 A/Vee K

The non-specified tolerance of dimension is

0.3mm.

H1 max H2

36.0

7.0 15.0

A

44.0 0.5 26.2 17.0(VA) 11.5(AA)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

16.9 12.9 20.4

7.3

11.9 14.65 4.0

6.4

K 16- 1.0 PTH

14

1 16 15

6- 1.0 PTH 6- 2.0 PAD 1.6

2.5

1.8 10.2

P2.54*15=38.1 76.0

4.0

2- 2.5 PTH 2- 5.0 PAD

3.55 2.95

LED-H/L B/L High Low H1 13.5

12.1

H2 8.9

7.5

0.6

0.4

5.95 5.55 0.7 0.65

0.6 0.55

VR 10K~20K

16X2 LCD

LED B/L Drive Method Drive from pin15, pin16

Vdd Vo Vss

Vee External contrast adjustment.

Character located DDRAM address DDRAM address

Com1~16

Controller/Com Driver HD44780 or Equivalent

Bias and Power Circuit

80 series or 68 series

RS R/W E DB0~DB7

N.V. Generator

MPU

DOT SIZE

R

Seg1~40 Seg41~80

D M CL1 CL2 Vdd,Vss,V1~V5

Optional

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F

Seg Driver

R

A B/L K

LCM (Will never get Vee output from pi

Crystalfontz America, Inc. 15611 East Washington Road

Valleyford, WA 99036

Phone: (509) 291-3514 Fax: (509) 291-3345

http://www.crystalfontz.com email: [email protected]

)XQFWLRQ'HVFULSWLRQ The LCD display Module is built in a LSI controller, the controller has two 8-bit registers, an instruction register (IR) and a data register (DR). The IR stores instruction codes, such as display clear and cursor shift, and address information for display data RAM (DDRAM) and character generator (CGRAM). The IR can only be written from the MPU. The DR temporarily stores data to be written or read from DDRAM or CGRAM. When address information is written into the IR, then data is stored into the DR from DDRAM or CGRAM. By the register selector (RS) signal, these two registers can be selected. RS

R/W

Operation

0

0

IR write as an internal operation (display clear, etc.)

0

1

Read busy flag (DB7) and address counter (DB0 to DB7)

1

0

Write data to DDRAM or CGRAM (DR to DDRAM or CGRAM)

1

1

Read data from DDRAM or CGRAM (DDRAM or CGRAM to DR)

Busy Flag (BF) When the busy flag is 1, the controller LSI is in the internal operation mode, and the next instruction will not be accepted. When RS=0 and R/W=1, the busy flag is output to DB7. The next instruction must be written after ensuring that the busy flag is 0. Address Counter (AC) The address counter (AC) assigns addresses to both DDRAM and CGRAM

Crystalfontz America, Inc. 15611 East Washington Road

Phone: (509) 291-3514 Fax: (509) 291-3345

Valleyford, WA 99036

http://www.crystalfontz.com email: [email protected]

Display Data RAM (DDRAM) This DDRAM is used to store the display data represented in 8-bit character codes. Its extended capacity is 80 8 bits or 80 characters. Below figure is the relationships between DDRAM



addresses and positions on the liquid crystal display. High bits

Low bits Example: DDRAM addresses 4E

AC (hexadecimal)

1

AC6 AC5 AC4 AC3 AC2 AC1 AC0

0

0

1

1

1

0

Display position DDRAM address 1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 2-Line by 16-Character Display

Character Generator ROM (CGROM) The CGROM generate 5 8 dot or 5 10 dot character patterns from 8-bit character codes. See





Table 2. Character Generator RAM (CGRAM) In CGRAM, the user can rewrite character by program. For 5 8 dots, eight character patterns can be written, and for 5 10 dots, four character patterns can be written.





Write into DDRAM the character code at the addresses shown as the left column of table 1. To show the character patterns stored in CGRAM.

Crystalfontz America, Inc. 15611 East Washington Road

Phone: (509) 291-3514 Fax: (509) 291-3345

Valleyford, WA 99036

http://www.crystalfontz.com email: [email protected]

Relationship between CGRAM Addresses, Character Codes (DDRAM) and Character patterns Table 1. F o r 5 * 8 d o t c h a r a c t e r p a t te r n s C h a ra c te r C o d e s ( D D R A M d a ta ) 7

6

5

4

3

H ig h

0

0

0

0

0

0

0

0

0

2

1

0

Low

0

0

0

* 0

* 0

*

1

C h a ra c te r P a tte rn s ( C G R A M d a ta )

C G R A M A dd ress 5

4

3

2

1

0

7

Low 0 0 0 0 0 1 0 1 0 0 0 1 0 1 0 1 1 1 1 0 0 0 0 0 1 0 1 0 0 1 1 0 1 0 1 1 1 1 0 0 0 0

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

* * * * * * * * * * * * * * * * *

H ig h

0

0

1

0

1

1

1

1

1

1 1 1 1

0 0 1 1

0 1 0 1

*

6

5

H ig h * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

*

4 3

2

1

0

Low 0 0 0

0

0 0

0 0 0 0 0

0 0 0 0 0

0

0 0 0

0 0 0

C h a ra c te r p a tt e r n ( 1 )

0 0 0

0

C u r s o r p a t te r n

0

0

0

0

0

0 0 0

0 0 0

0 0 0

0 0 0

0

C h a ra c te r p a tt e r n ( 2 )

C u r s o r p a t te r n

*

F o r 5 * 1 0 d o t c h a ra c te r p a tte rn s C h a ra c te r C o d e s ( D D R A M d a ta ) 7

6

5

4

H ig h

0

0

0

3

2

1

0

Low

0

* 0

0

C h a ra c te r P a tte rn s ( C G R A M d a ta )

C G R A M A dd ress 5

4

3

H ig h

0

: " H ig h "

0

2

1

0

7

Low

0

6

5

4

3

1

0

0 0

0 0

0 0 0

0 0

0 0 0

0 0 0

H ig h

2 Low

0 0 0 0 0 0 0 0 1 1 1

0 0 0 0 1 1 1 1 0 0 0

0 0 1 1 0 0 1 1 0 0 1

0 1 0 1 0 1 0 1 0 1 0

* * * * * * * * * * *

* * * * * * * * * * *

* 0 * 0 * * * * * * * * * 0

0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0 0

1

1

1

1

*

*

*

*

*

*

*

*

C h a ra c te r p a tt e r n

C u r s o r p a t te r n

Crystalfontz America, Inc. 15611 East Washington Road

Valleyford, WA 99036

Phone: (509) 291-3514 Fax: (509) 291-3345

http://www.crystalfontz.com email: [email protected]

&KDUDFWHU*HQHUDWRU5203DWWHUQ Table.2 Upper 4 bit Lower 4 bit

LLLL LLLH LLHL LLHH LHLL LHLH LHHL LHHH HLLL HLLH HLHL HLHH HHLL HHLH HHHL HHHH

LLLL

CG RAM (1)

LLLH

(2)

LLHL

(3)

LLHH

(4)

LHLL

(5)

LHLH

(6)

LHHL

(7)

LHHH

(8)

HLLL

(1)

HLLH

(2)

HLHL

(3)

HLHH

(4)

HHLL

(5)

HHLH

(6)

HHHL

(7)

HHHH

(8)

Crystalfontz America, Inc. 15611 East Washington Road

Phone: (509) 291-3514 Fax: (509) 291-3345

Valleyford, WA 99036

http://www.crystalfontz.com email: [email protected]

,QVWUXFWLRQ7DEOH

Instruction Code Description

Instruction

Clear Display

RS

R/W

0

0

Execution time (fosc=270Khz)

DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0

0

0

0

0

0

0

Return Home

0

0

0

0

0

0

0

0

Entry Mode Set

0

0

0

0

0

0

0

1

Display ON/OFF Control

0

0

0

0

0

0

1

D

Cursor or Display Shift

0

0

0

0

0

1

Function Set

0

0

0

0

1

DL

S/C R/L

N

F

0

Write “00H” to DDRAM and set 1 DDRAM address to “00H” from AC

1.53ms

1

Set DDRAM address to “00H” from AC and return cursor to its original position if shifted. The contents of DDRAM are not changed.

1.53ms



Assign cursor moving direction I/D SH and enable the shift of entire display.

C

Set display (D), cursor (C ), and B blinking of cursor (B) on/off control bit.

   

Set cursor moving and display shift control bit, and the direction, without changing of DDRAM data. Set interface data length (DL:8-bit/4-bit), numbers of display line (N:2-line/1-line)and, display font type (F:5 11 dots/5 8 dots)





Set CGRAM address in address counter.

ôs

39

ôs

39

ô

39 s

ô

39 s

ôs

Set CGRAM Address

0

0

Set DDRAM Address

0

0

Read Busy Flag and Address

0

1

Write Data to RAM

1

0

D7 D6 D5 D4 D3 D2 D1 D0

Write data into internal RAM (DDRAM/CGRAM).

43

Read Data from RAM

1

1

D7 D6 D5 D4 D3 D2 D1 D0

Read data from internal RAM (DDRAM/CGRAM).

43

0

1 AC5 AC4 AC3 AC2 AC1 AC0

Set DDRAM address in address counter. Whether during internal operation or not can be known by reading BF AC6 AC5 AC4 AC3 AC2 AC1 AC0 BF. The contents of address counter can also be read. 1

AC6 AC5 AC4 AC3 AC2 AC1 AC0

39

ôs

39

ô

0 s

ôs ôs

à ””šdon’t care

Crystalfontz America, Inc. 15611 East Washington Road

Valleyford, WA 99036

Phone: (509) 291-3514 Fax: (509) 291-3345

http://www.crystalfontz.com email: [email protected]

7LPLQJ&KDUDFWHULVWLFV 12.1 Write Operation RS

VIH1 VIL1 tsu1

R/W

th1

VIL1

VIL1 th1

tw

tf

E

VIH1 VIL1 tr VIH1 VIL1

DB0~DB7

VIH1 VIL1 tsu2

VIL1 th2 VIH1 VIL1

Valid Data tc

(VDD=4.5V~5.5V , Ta=-30~+85 Mode

Characteristic E cycle Time

Symbol

Min.

tc

500

tR, tF



tw

230

R/W and RS Setup Time

tsu1

40

R/W and RS Hold Time

tH1

10

Data Setup Time

tsu2

80

Data Hold Time

tH2

10

E Rise/Fall Time E Pulse Width (High, Low) Write Mode

Typ.

  

   

Max.



:* Unit

20

    

ns

Crystalfontz America, Inc. 15611 East Washington Road

Phone: (509) 291-3514 Fax: (509) 291-3345

Valleyford, WA 99036

http://www.crystalfontz.com email: [email protected]

12.2 Read Operation

RS

VIH1 VIL1 tsu

R/W

th

VIH1

VIH1 th

tw

tf

E

VIH1 VIL1

VIH1 VIL1

tr VIH1 VIL1

DB0~DB7

VIL1

tD

tDH VOH1 VOL1

Valid Data tc

(VDD=4.5V~5.5V , Ta=-30~+85 Mode

Characteristic E cycle Time

Symbol

Min.

tc

500

tR, tF



tw

230

R/W and RS Setup Time

tsu

40

R/W and RS Hold Time

tH

10

Data Output Delay Time

tD



Data Hold Time

tDH

5

E Rise/Fall Time E Pulse Width (High, Low) Read Mode

Typ.

  

   

Max.



Unit

20

   120



:*

ns

Crystalfontz America, Inc. 15611 East Washington Road

Valleyford, WA 99036

Phone: (509) 291-3514 Fax: (509) 291-3345

http://www.crystalfontz.com email: [email protected]

,QLWLDOL]LQJRI/&0

Power on

Wait for more than 15 ms after V CC rises to 4.5 V

BF can not be checked before this instruction.

RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Function set ( Interface is 8 bits long. ) 0 0 0 0 1 1 * * * *

Wait for more than 4.1 ms

BF can not be checked before this instruction.

RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Function set ( Interface is 8 bits long. ) 0 0 1 * * * * 0 0 1

Wait for more than 100 µs

BF can not be checked before this instruction.

RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Function set ( Interface is 8 bits long. ) 0 0 1 * * * * 0 0 1

BF can be checked after the following instructions. W hen BF is not checked , the waiting time between instructions is longer than execution instruction time.

RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 1 N F * * 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 S I/D

Initialization ends

8-Bit Ineterface

Function set ( Interface is 8 bits long. Specify the number of display lines and font. ) The number of display lines and character font can not be changed after this point. Display off Display clear Entry mode set

Crystalfontz America, Inc. 15611 East Washington Road

Valleyford, WA 99036

Phone: (509) 291-3514 Fax: (509) 291-3345

http://www.crystalfontz.com email: [email protected]

Power on

Wait for more than 15 ms after V CC rises to 4.5 V

BF can not be checked before this instruction.

RS R/W DB7 DB6 DB5 DB4 0 0 0 0 1 1

Function set ( Interface is 8 bits long. )

Wait for more than 4.1 ms

BF can not be checked before this instruction.

RS R/W DB7 DB6 DB5 DB4 0 0 0 1 1 0

Function set ( Interface is 8 bits long. )

Wait for more than 100 µs

BF can not be checked before this instruction.

RS R/W DB7 DB6 DB5 DB4 0 0 0 0 1 1

RS R/W DB7 DB6 DB5 DB4 0 0 1 0 0 0 0 0 0 0 1 0 0 0 N F * * 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 I/D S

Initialization ends

4-Bit Ineterface

Function set ( Interface is 8 bits long. )

BF can be checked after the following instructions. When BF is not checked , the waiting time between instructions is longer than execution instruction time. Function set ( Set interface to be 4 bits long. ) Interface is 8 bits in length. Function set ( Interface is 4 bits long. Specify the number of display lines and character font. ) The number of display lines and character font can not be changed after this point. Display off Display clear Entry mode set

Crystalfontz America, Inc. 15611 East Washington Road

Valleyford, WA 99036

Phone: (509) 291-3514 Fax: (509) 291-3345

http://www.crystalfontz.com email: [email protected]

4XDOLW\$VVXUDQFH Screen Cosmetic Criteria Item

Defect

Judgment Criterion A)Clear Acceptable Qty in active area Size: d mm Disregard d 0.1 0.1