1.2006
EA DIP204-6
LCD- MODUL 4x20 - 6.45mm
INCL. CONTROLLER KS0073
ting
un
mo d
ore uire
no m req
EA DIP204B-6NLW
EA DIP204J-6NLW:
Dimension 75 x 46 mm
FEATURES
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
HIGH-CONTRAST LCD-SUPERTWIST DISPLAY
BLUE BACKGROUD WITH WHITE CHARACTERS
BLACK&WHITE FSTN
EXTREME COMPACT WITH 75mm WIDTH
BUILT-IN CONTROLLER KS0073 (VERY SIMILAR TO HD44780)
4- AND 8-BIT INTERFACE FOR DATABUS
SERIAL SPI-INTERFACE (SID, SOD, SCLK, CS)
POWER SUPPLY
+3.3..5.0V
/ TYP. 4mA (w./o. B./L.)
OPERATING TEMP. RANGE -20..+70°C
AUTOMATIC TEMPERATURE COMPENSATION BUILT-IN
LED-BACKLIGHT WHITE, max. 75mA@+25°C
U
f(LED)
= 3.0~3.6V
16 ICONS (BATTERY, ARROWS ETC.) AT THE TOP EDGE
NO MONTING IS REQUIRED: JUST SOLDER INTO PCB
SINGLE ROW SOCKET AVAILABLE: EA B254-12 (1 PC.)
128x64 GRAPHIC WITH SAME DIMENSION AND SAME PINOUT: EA DIP128
ORDERING INFORMATION
LCD-MODULE 4x20 - 6.45mm WITH LED-B./L. BLUE
FSTN BLACK ON WHITE
SOCKET 4.5mm HEIGHT, 12 POSITIONS (1 PC.)
EA DIP204B-6NLW
EA DIP204J-6NLW
EA B254-12
LOCHHAMER SCHLAG 17 · D- 82166 GRÄFELFING
Phone +49-89-8541991· FAX +49-89-8541721· http://www.lcd-module.de
EA DIP204-6
PINOUT
4-/8-Bit Mode (Factory Set)
Pin Symbol Function
1
2
3
4
5
6
7
8
9
10
11
12
VSS
VDD
VCI
RES
RS
R/W
E
Power Supply 0V (GND)
Power Supply +5V
Contrast Adjustment
L: Reset
H=Data; L=Command
H=Read, L=Write
Enable
not connected
not connected
not connected
not connected
not connected
SPI Mode (Solder link changed to "SPI")
Pin Symbol Function
1
2
3
4
5
6
7
8
9
10
11
12
VSS
VDD
VCI
RES
CS
SID
SCLK
Power Supply 0V (GND)
Power Supply +5V
Contrast Adjustment
L: Reset
Chip Select
Data In
Shift Clock
not connected
not connected
not connected
not connected
not connected
Pin Symbol Function
13
14
15
16
17
18
19
20
21
22
23
24
VSS
D0
D1
D2
D3
D4 (D0)
D5 (D1)
D6 (D2)
D7 (D3)
A
C
not connected
Power Supply 0V (GND)
Display Data, LSB
Display Data D1
Display Data D2
Display Data D3
Display Data D4
Display Data D5
Display Data D6
Display Data, MSB
LED-B/L + (ext. Resistor requ)
LED-B/L -
Pin Symbol Funktion
13
14
15
16
17
18
19
20
21
22
23
24
A
C
VSS
SOD
not connected
Power Supply 0V (GND)
Data Out
not connected
not connected
not connected
not connected
not connected
not connected
not connected
LED-B/L + (ext. Resistor requ)
LED-B/L -
BACKLIGHT
Using the LED backlight requires an current source or external current-limiting resistor. Forward
voltage for white LED backlight is 3.0~3.6V. Please take care of derating for T
a
>+25°C
Attention: Do never drive backlight directly to 5V; this may damage backlight immediately !
The blue display cannot be read without backlight. For direct sunlight we suggest to use the J-type.
TABEL OF COMAND (KS0073, IE=HIGH)
C ode
Instruction
Clear Display
RE
DB DB DB DB DB DB DB DB
RS
R/W
Bit
7
6
5
4
3
2
1
0
Description
Clears all display and returns the cursor to the
Returns the Cursor to the home position (Address
0). Also returns the display being shifted to the
original position. DD RAM contents remain
unchanged.
Set Power down mode bit.
Execute
Time
(270kHz)
1.53ms
*
0
0
0
0
0
0
0
0
0
1
home position (Address 0).
*
Cursor At Home
0
0
0
0
0
0
0
0
0
1
1.53ms
Power Down
Mode
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
0
0
0
0
1
0
1
1
D
1
PD
PD=0: powerdown mode disable
PD=1: powerdown mode enable
Cursor moving direction (I/D=0: dec; I/D=1: inc)
shift enable bit (S=0: disable; S=1: enable shift)
Segment bidirectional function
(BID=0: Seg1->Seg60; BID=1: Seg60->Seg1)
D=0: display off; D=1: display on
39µs
39µs
39µs
39µs
I/D S
1 BID
C
Entry Mode Set
0
Display On/Off
Control
extended
Function Set
Cursor / Display
Shift
Scroll Enable
0
B
C=0: cursor off; C=1: cursor on
B=0: blink off; B=1: blink on
FW=0: 5-dot font width; FW=1: 6-dot font width
1
0
0
0
0
0
0
1 FW BW NW
BW=0: normal cursor; BW=1: inverting cursor
NW=0: 1- or 2-line (see N); NW=1: 4-line display
Moves the Cursor or shifts the display
39µs
0
1
0
0
0
0
0
0
0
0
0
0
1
S/C R/L
1
*
*
S/C=0: cursor Shift; S/C=1: display shift
R/L=0: shift to left; R/L=1: shift to right
39µs
39µs
H4 H3 H2 H1
Determine the line for horizontal scroll
sets interface data length (DL=0:4-bit; DL=1:8-bit)
number of display lines (N=0: 1-line; N=1: 2-line)
RE DH
REV
extension register (RE= 0/1)
scroll/shift (DH=0: dot scroll; DH=1: display shift)
reverse bit (REV=0:normal; REV=1:inverse display)
CG-/SEG-RAM blink (BE=0: disable; BE=1:
0
Function Set
1
CG RAM
Address Set
SEG RAM
Address Set
DD RAM
Address Set
Set Scroll
Quantity
Busy Flag /
Address Read
Write Data
Read Data
0
1
0
1
0
0
0
0
1
DL N
39µs
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
1
1
1
DL N RE BE LP
enable)
LP=0: normal mode; LP=1: low power mode
39µs
39µs
39µs
39µs
39µs
AC
*
Sets the CG RAM address. CG RAM data is sent
and received after this setting.
*
AC
AC
Sets the SEG RAM address. SEG RAM data is
sent and received after this setting.
Sets the DD RAM address. DD RAM data is sent
and received after this setting.
Sets the quantity of horizontal dot scroll (DH=0)
Reads Busy flag (BF) indicating internal operation
is being performed and reads address counter
contents.
Writes data into internal RAM
(DD RAM / CG RAM / SEGRAM)
Reads data from internal RAM
(DD RAM / CG RAM / SEGRAM)
*
SQ
AC
Write Data
Read Data
*
*
*
0
1
1
1
0
1
BF
-
43µs
43µs
2
EA DIP204-6
Example of initialisation, 8 bit mode
Command
Function Set
Entry Mode Set
Function Set
ext. Function Set
Set SEGRAM adr
16 x
Write Data
Function Set
Display ON/OFF
Clear Display
RE
Bit
0
0
0
1
1
1
1
0
0
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Hex
0
0
0
0
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
0
1
0
0
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
0
0
1
0
0
0
1
0
0
1
1
0
0
0
0
1
0
0
1
1
0
0
0
0
1
0
0
0
0
1
0
0
0
1
1
Note
$30 8 bit data length, extension bit RE=0
$06 Cursor Auto-Increment
$36 8 bit data length, RE =1, blink enable BE =1
$09 4 line mode
$40 Icon RAM adress: $00
$00
to clear all icons:
write 16x $00
Adress:
1st. line
2nd. line
3rd. line
4th. line
$00..$13
$20..$33
$40..$53
$60..$73
$30 8 bit data length, bit RE =0
$0F Display on, Cursor on, Cursor blink
$01 Clear display, place cursor to 1st. col. /1st. row
Please make shure that software
will check busy-flag before
writing any command !
CHARACTER SET
Beside there's a copy of built.in character set. In
addition to that up to 8 individual character can
be created.
CONTRAST ADJUSTMENT
Contrast will be set by pin 3 (VCI).
Module EA DIP204 comes with built-in
temperature compensation for -20..+70°C as a
standard; any contrast adjustment while
operation is no longer required.
VDD (5V)
VDD (3,3V)
VCI
470
W
1k
VCI
2,5k
W
3.3V operation
5V operation
CREATING YOUR OWN CHARACTERS
All these character display modules got the feature to create 8 own characters (ASCII Codes 0..7) in
addition to the 240 ROM fixed codes.
Set CG RAM Address
Data
1.) The command "CG RAM Address Set"
Bit
Adresse
Hex
Hex
defines the ASCII code (Bit 3,4,5) and
7 6 5 4 3 2 1 0
the dot line (Bit 0,1,2) of the new
0 0 0 $40
0 0 1 0 0 $04
character. Example demonstrates
0 0 1 $41
0 0 1 0 0 $04
0 1 0 $42
0 0 1 0 0 $04
creating ASCII code $00.
0 0 1 0 0 $04
2.) Doing 8 times the write command "Data
0 1 0 0 0 0 1 1 $43
X X X
1 0 0 $44
1 0 1 0 1 $15
Write" defines line by line the new
1 0 1 $45
0 1 1 1 0 $0E
character. 8th. byte stands for the cursor
1 1 0 $46
0 0 1 0 0 $04
line.
1 1 1 $47
0 0 0 0 0 $00
3.) The new defined character can be used
as a "normal" ASCII code (0..7); use with "DD RAM Address Set" and "Data Write".
000
00000000000000000000000000000000000000
000000000000
3
EA DIP204-6
DIMENSIONS
41,0
75,0
-0,3
61,0 (VA)
56,33 (AA)
34,0
A
+0,0
3,0
10,8
±0,2
45,8
±0,2
38,0 (VA)
33,67 (AA)
R0,5
Backlight 5x white LED
C
Pin 1
2,50
0
15,0
38,5
67,0
11- 2,54
24- 0,5
63,5
±0,1
24- 0,5
7,97
6,45
0,78
0,81
0,48
0,45
2,37
2,84
all dimensions are in mm
DRIVING THE SYMBOLS
After power-on symbols will be set accidental. To switch off them all please refer to the example of
initializing on page 3. To
Example program to display an icon (8 bit mode interface)
RE
display an individual
Command
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Hex
Note
Bit
perhaps store current DDRAM adress: read AC
symbol have a look at the
Busy-Flag /
0
0
1
BF
AC
Address read
and save as LASTADR=AC
program example at the
Function Set
$36 Set to 8 bit data length, RE=1, Blink enable BE=1
0
0
0
0
0
1
1
0
1
1
0
Set SEGRAM adr
1
0
0
0
1
0
0
0
0
1
0
$42 Set Icon-RAM adress to $02 (letter symbol)
right.
1
1
0
0
0
0
1
0
0
0
0
$10 Write $10 to display symbol
Each symbol can be
Write Data
Function Set
1
0
0
0
0
1
1
0
0
0
0
$30 Set to 8 bit data length, extension bit RE=0
displayed in normal (so-
Set DDRAM adr
0 0 0 1
$80 Restore DDRAM adress
LASTADR
lid) and blinking style.
Icon - Symbols
SEGRAM address
data solid
data blink (BE=1!)
$00 $01 $02 $03 $04 $05 $06 $07 $08 $09 $0A $0B $0C $0D $0E $0F $0F $0F $0F $0F
$10 $10 $10 $10 $10 $10 $10 $10 $10 $10 $10 $10 $10 $10 $10 $1F $1E $1C $18 $10
$50 $50 $50 $50 $50 $50 $50 $50 $50 $50 $50 $50 $50 $50 $50
$50
SERIAL MODE SPI
Factory set for interface is parallel with 4 bit or 8 bit data bus. Alternative module can be programmes
with serial data stream. For that solder link
4/8
has to be opened and closed to
SPI
side. Harware
specification for serial operation mode is written down in user manual for KS0073:
http://www.lcd-
module.de/eng/pdf/zubehoer/ks0073.pdf.
Software for initialisation and programming keeps the
same.
LOCHHAMER SCHLAG 17 · D- 82166 GRÄFELFING
Phone +49-89-8541991· FAX +49-89-8541721· http://www.lcd-module.de
0,81
13
24
ELECTRONIC ASSEMBLY
EA DIP204B-6NLW
4x20 / 6,5mm
KS0073
KS0073
-20..+70°C
-20..+70°C
SPI 4/8
J1
12
1