ETC OSD2002-2

One Stop Displays
310 Genius Drive
Winter Park, FL 32789
407-629-0500
[email protected]
OSD2002-2
PLED 20x2 Character Module Specifications
PLED 20x2 Character Module OSD2002-2 Specification
1.
Features
1.
2.
3.
4.
5.
6.
7.
8.
2 lines of 20 characters of 5x8 (dots)
Low power consumption
High contrast ratio and wide viewing angle
Compatible with LCD 20x2 type
Controller is compatible with HD44780
4-bits or 8-bit MPU interface
High speed MPU interface:2 MHz(VDD=5V)
80x8 bit Display RAM(80 characters max.)
2. Absolute maximum ratings
Symbol
VDD
Topr
Tstg
Vbt
Tsolder
Pd
Parameter
Supply voltage for Logic
Operating temperature
Storage temperature
Brightness control voltage
Soldering Temperature
Module power consumption
@Vbt=3V VDD=5V
Item
Ambient
Temperature
Humidity
Corrosive gas
Operating
Min.
Max.
-20oC 60oC
Min
4.5
-20
-30
Typ
5.0
25
Max
5.5
60
70
Unit
V
o
C
o
C
V
3
260 for 5 seconds
50
80
130 mW
Storage
Min.
Max.
-30oC
70oC
40oC 90%RH
40oC 90%RH
Not Acceptable Not Acceptable
3
Electrical Characteristics
3.1 DC Electrical Characteristics
(Ta= -20C to 50C)
Item
Power supply voltage
Brightness control voltage
Power supply current
High level input voltage
Low level input voltage
Leakage current
Symbol
Condition
VDD
VBT
Icc
VDD=5V, (Logical only )
Vih
Vil
Il
Min
4.5
Typ
3
0.35
0.7VDD
-0.3
-1
Max
5.5
0.6
VDD
0.55
1
3.2 AC Electrical Characteristics
(Ta= -20C to 50C)
Write operation
Item
Enable Cycle Time
Enable Pulse Width (High level)
Enable Rise/ Fall Time
Address Set-up Time
Address Hold Time
Data Set-up Time
Data Hold Time
Symbol
Tcyc
Pweh
tEf, tEr
tAS
tAH
tDSW
tH
Min
500
230
Symbol
Tcyc
Pweh
tEf, tEr
tAS
tAH
tDDR
tH
Min
500
230
Typ
Max
20
40
10
80
10
Unit
ns
ns
ns
ns
ns
ns
ns
Read operation
Item
Enable Cycle Time
Enable Pulse Width (High level)
Enable Rise/ Fall Time
Address Set-up Time
Address Hold Time
Data Delay Time
Data Hold Time
Typ
Max
20
40
10
160
5
Unit
ns
ns
ns
ns
ns
ns
ns
Unit
V
V
mA
V
V
uA
3.3 Timing Chart
Write operation
RS
tAS
Pweh
tAH
R/W
tEf
tH
E
tDSW
tEr
D0~D7
Tcyc
Read operation
RS
tAS
Pweh
tAH
R/W
tEf
tH
E
tEr
tDDR
D0~D7
Tcyc
3.4 Display Data RAM (DDRAM)
The Display Data RAM (DDRAM) is used to store the Display Data that is represented
as 8-bit character code. The Display Data RAM supports an extended capacity of 80 x
8-bits or 80 characters.
00 01 02 03 04 05 …… 22 23 24 25 26 27
DDRAM
Address (Hex) 40 41 42 43 44 45 …… 62 63 64 65 66 67
To illustrate, for 2-line x 20 characters display, the relationship between the DDRAM
address and position of the PLED panel is shown below.
Display 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Position
DDRAM 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13
Address 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53
For shift left
DDRAM 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14
Address 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54
For shift right
DDRAM 27 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 50 51 52
Address 67 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 50 51 52 53
3.5 Correspondence between character codes and char patterns
Standard Font Table
Optional Cyrillic Font Table
3.6 Instruction set
Instruction
Code
Description
Execution
time
1
Clear entire display. Sets DDRAM
address 0 into address counter
1.52ms
I/D
S
Sets cursor move direction and
specifies display shift
37us
C
B
37us
S/C R/L
X
X
Sets entire display (D) On/Off
Sets cursor (C) On/Off
Sets Blinking (B) of cursor position
character
Moves cursor & shifts display without
changing DDRAM contents
N
X
X
RS R/ D7
W
D6 D5 D4 D3 D2 D1 D0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
D
0
0
0
0
0
1
0
0
0
0
1
DL
Set CGRAM 0
address
0
0
Set DDRAM 0
address
0
1
0
1
BF
1
0
1
1
Clear
Display
Entry mode
set
Display
On/Off
control
Cursor/displ
ay shift
Function set
Read busy
flag &
address
Write data
into the
CGRAM or
DDRAM
Read data
into the
CGRAM or
DDRAM
Sets interface data length (DL)
Sets number of display lines (N)
Sets character font (F)
1
ACG ACG ACG ACG ACG ACG Sets CGRAM address.
CGRAM data is sent and received
after this setting.
ADD ADD ADD ADD ADD ADD ADD Sets DDRAM address.
The DDRAM data bus sent and
received after this setting
37us
AC
Reads busy flag (BF) indicating that
internal operation is being performed
Reads address counter contents
0us
Write data
Write data into the CGRAM or
DDRAM
37us
Read data
Read data from the CGRAM or
DDRAM
37us
AC
AC
AC
F
37us
AC
AC
AC
I/D =1: Increment
I/F=0:Decrement
S =1: Display shift on
D =1: Display on
C =1: Cursor display on
B =1: Cursor blink on
S/C =1: Shift display
S/C=0: Move cursor
R/L =1: Shift right
R/L=0:Shift left
DL =1: 8-bit
DL=0:4-bit
N =1:Dual line
N =0:Single line
F =1:5x10 dots
F =0:5x8 dots
BF =1:Internal operation
BF =0:Ready for instruction
DDRAM: Display Data RAM
CGRAM: Character Generator RAM
ACG: Character Generator RAM
Address
ADD: Display Data RAM Address
AC: Address Counter
37us
37us
3.7 Initialization via Instruction
8-BIT INTERFACE
The following procedures are followed during the initialization of an 8-bit MPU
Power ON
WAIT FOR MORE THAN
15ms AFTER THE VDD RISES TO 4.5V
RS R/W
0
0
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
0
0
1
1
*
*
*
*
BF CANNOT BE CHECKED BEFORE THIS
INSTRUCTION.
FUNCTION SET (INTERFACE IS 8 BITS
WAIT FOR MORE THAN 4.1ms
RS R/W
0
0
LONG)
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
0
0
1
1
*
*
*
*
BF CANNOT BE CHECKED BEFORE THIS
INSTRUCTION.
FUNCTION SET (INTERFACE IS 8 BITS
WAIT FOR MORE THAN 100 us
RS R/W
0
0
LONG)
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
0
0
1
1
*
*
*
*
BF CANNOT BE CHECKED BEFORE THIS
INSTRUCTION.
FUNCTION SET (INTERFACE IS 8 BITS
LONG)
BF CAN BE CHECKED AFTER THE
FOLLOWING INSTRUCTIONS. WHEN BF IS
NOT CHECKED, THE WAITING TIME
BETWEEN THE INSTRUCTIONS IS
LONGER THAN THE EXECUTION TIME OF
THE INSTRUCTION
RS R/W
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
END OF INITIALIZATION
0
0
0
0
1
1
N
F
*
*
FUNCTION SET (INTERFACE IS 8 BITS
0
0
0
0
0
0
1
0
0
0
LONG) SPECIFY THE NUMBER OF
0
0
0
0
0
0
0
0
0
1
DISPLAY LINES AND CHARACTER FONT)
0
0
0
0
0
0
0
1
I/D
S
THE NUMBER OF CHARACTER LINES AND
CHARACTER FONT CANNOT BE
CHANGED AFTER THIS POINT.
DISPLAY OFF
END OF INITIALIZATION
DISPLAY CLEAR
ENTRY MODE
4-BIT INTERFACE
The following procedures are followed during the initialization of a 4-bit MPU
Power ON
WAIT FOR MORE THAN 15ms AFTER
THE VDD RISES TO 4.5V
RS
R/W
DB7
DB6
DB5
DB4
0
0
0
0
1
1
BF CANNOT BE CHECKED BEFORE THIS INSTRUCTION.
FUNCTION SET (INTERFACE IS 8 BITS LONG.)
WAIT FOR MORE THAN 4.1ms
RS
R/W
DB7
DB6
DB5
DB4
0
0
0
0
1
1
BF CANNOT BE CHECKED BEFORE THIS INSTRUCTION.
FUNCTION SET (INTERFACE IS 8 BITS LONG.)
WAIT FOR MORE THAN 100 us
RS
R/W
DB7
DB6
DB5
DB4
BF CANNOT BE CHECKED BEFORE THIS INSTRUCTION.
0
0
0
0
1
1
RS
R/W
DB7
DB6
DB5
DB4
BF CAN BE CHECKED AFTER THE FOLLOWING INSTRUCTIONS.
0
0
0
0
1
0
WHEN THE BF IS NOT CHECKED, THE WAITING TIME BETWEEN
0
0
0
0
1
0
THE INSTRUCTIONS IS LONGER THAN THE TIME IT TAKES FOR
0
0
N
F
*
*
THE INSTRUCTION TO BE EXECUTED.
0
0
0
0
0
0
0
0
1
0
0
0
INTERFACE IS 8 BITS LONG
0
0
0
0
0
0
FUNCTION SET (INTERFACE IS 4 BIT LONG. SPECIFY THE
0
0
0
0
0
1
NUMBEROF DISPLAY LINES AND CHARACTER FONT).
0
0
0
0
0
0
THE NUMBER OF DISPLAY LINES AND CHARACTER FONT
0
0
0
1
I/D
S
CANNOT BE CHANGED AFTER THIS POINT.
FUNCTION SET (INTERFACE IS 8 BITS LONG.)
FUNCTION SET (SET INTERFACE IS 4 BIT LONG)
DISPLAY OFF
DISPLAY CLEAR
END OF INITIALIZATION
END OF INITIALIZATION ENTRY MODE SET
3.8 Block Diagram
VDD
PLED PANEL
16
VSS
20Char x 2Line
VBT
RS
Controller
&
Driver
R/W
40
60
E
D0~D7
4
Driver
Interface Pin Function
Pin
No.
1
2
3
Symbol
I/O
VSS
VDD
VBT
I
I
I
4
RS
I
5
R/W
I
6
7
8
9
10
11
12
13
14
E
D0
D1
D2
D3
D4
D5
D6
D7
I
I
I
I
I
I
I
I
I
Function
Ground
Power supply for logic
Brightness adjustment
H: Data
L: Instruction code
H: Read
L: Write
HL: Enable
Data bus
6
Physical specifications
6.1 Mechanical specifications
NO.
Item
1 Active display area
2 Viewing area
3 Module dimension
4 Dot size
5 Weight
Specification
73.45x11.4
79.0x17.0
113.0x41.4x9.6
0.5x0.65
34
6.2 Drawing
7
Optical specifications
Item
Response time
Contrast ratio
Viewing angle
Brightness
Color
Condition Min.
Rise
Fall
100 lux
100
Top
Bottom
Left
right
With
30
polarizer
-
Note 1. YG.= yellow green
Typ. Max. Unit
10 us
10 us
80
- deg
80
- deg
80
- deg
80
- deg
40
50 nits
YG1
-
Unit
mm
mm
mm
mm
g
8
Reliability test items
Test items
NO.
1 High temperature storage
2 Low temperature storage
3 High temperature
operation
4 Low temperature
operation
5 High temperature and
high humidity storage test
6 Thermal shock test
9
Application Note
(1) Ref. Circuit
Conditions
70 oC , 240 hrs
-30 oC,240 hrs
60 oC,240 hrs
-20 oC, 240 hrs
40oC, 90% RH, 240 hrs
-20 oC → 60 oC
, 20 cycles
(2) Ref. Programming
'--------------------------------------------------------------------------------'It is an OSD2002-2 pattern program and shows A,B,C….on module.
'Here use BASCOM-AVR compile.
'--------------------------------------------------------------------------------' Project name : 20x2 character module
' file name
: demo2002.bas
' MCU
: AVR AT90S8515
' Xtal
: 8MHz
' Panel I/F
:
RS, RW, Enable, BTV
' Writer
:
Cheng-Nan Yeh
' Date
:
Dec.26, 2002 rev:A
'----------------------------------------------' DB0=PA0: DB1=PA1: DB2=PA2: DB3=PA3
' DB4=PA4: DB5=PA5: DB6=PA6: DB7=PA7
' RS=PB2: RW=PB1: Enable=PB0
'----------------------------------------------'-------------initial setting
$regfile = "8515DEF.DAT"
Config Porta = Output
Config Portb = Output
Dim J As Integer , Cara As Byte , I As Byte
Dim Command_diable As Byte, Command_enable As Byte
Dim Command_write_data As Byte , Command_clear_display As Byte
Dim Command_move_right As Byte , Command_display_on As Byte
Dim Command_line2_char5x7 As Byte , Command_ddram_&H00 As Byte
Dim Command_ddram_&H40 As Byte , Write_char As Byte
'--------Command_diable = &H00
Command_enable = &H01
Command_clear_display = &H01
Command_move_right = &H1D
Command_display_on = &H0C
Command_line2_char5x7 = &H38
Command_ddram_&H00 = &H80
Command_ddram_&H40 = &HC0
Command_write_data = &H05
Write_char = &H40
'--------C=1
I=0
'-------------clear module display and cursor back home
Portb = Command_enable
'RS=0, RW=0, Enable=1
Porta = Command_clear_display
Waitus 500
'wait 500uS for MCU internal delay time
Portb = Command_diable
'You need to set PB0=0 after PB0=1 for MCU.
'-------------setting S/C, R/L, I/D, S
Portb = Command_enable
Porta = Command_move_right
'S/C=1 ,R/L=1 ,I/D=0, S=1
Waitus 500
Portb = Command_diable
'--------------display on / off
Portb = Command_enable
Porta = Command_display_on
'D=1, C=0, B=0
Waitus 500
Portb = Command_diable
'--------------setting 5x7 Char. 2-Line
Portb = Command_enable
Porta = Command_line2_char5x7
'DL=1, N=1, F=0
Waitus 500
Portb = Command_diable
'----------------------------------------------''--------fill in any data to module
''--------------setting DDRAM address &H00
For J = 1 To 20 Step 1
Portb = Command_enable
Porta = Command_ddram_&H00 + I
Waitms 10
Portb = Command_diable
'-------write data up
Portb = Command_write_data
Porta = Write_char + C
Waitms 10
Portb = Command_diable
Cara = Cara + 1
'--------------setting DDRAM address &H40
Portb = Command_enable
Porta = Command_ddram_&H40 + I
Waitms 10
Portb = Command_diable
'-------write data down
Portb = Command_write_data
Porta = Write_char + C
Waitms 10
Portb = Command_diable
'--------C=C+1
I=I+1
If I = 20 Then I = 0
If C = 40 Then C = 0
Next J
'---------------end program
End
'
'set address is &H00
and next one
'write Char. is "A" and next one.
'
'set address is &H40
and next one
'write Char. is "B" and next one.
'if DDRAM address is end then come back &H00.
Download free BASCOM-AVR DEMO compiler from http://www.mcselec.com/
10 Precaution in Design
(1) Please do not put mechanical stress on the module. Mechanical stress will cause
damage to the metal, plastic, and PLED panel.
(2) The polarizer is easily scratched and should be carefully handled. Please do not touch
the polarizer with hard materials, such as tweezers, pencil lead and glass. Please do not
touch it by.
(3) This module is easily damaged by static discharge, please be cautious of static electricity
and insure human body grounding.
(4) The Half-Brightness Decay Life will be longer than 10K hours when the module is
operated at room temp.