Datasheet

BlueLine Dotmatrix
Seite 3
Technische Änderung vorbehalten.
Wir übernehmen keine Haftung für
Druckfehler und Applikationsbeispiele.
BEFEHLSSATZ DES HD44780
Instruction
Code
Description
Execute
Time
(max.)
RS
R/W
DB
7
DB
6
DB
5
DB
4
DB
3
DB
2
DB
1
DB
0
Clear Display 0 0 0 0 0 0 0 0 0 1
Clears all display and returns the cursor
to the home position (Address 0).
1.64ms
Cursor At Home 0 0 0 0 0 0 0 0 1 *
Returns the Cursor to the home position
(Address 0). Also returns the display
being shifted to the original position. DD
RAM contents remain unchanged.
1.64ms
Entry Mode Set 0 0 0 0 0 0 0 1 I/D S
Sets the Cursor move direction and
specifies or not to shift the display.
These operation are performed during
data write and read.
40µs
Display On/Off
Control
0 0 0 0 0 0 1 D C B
Sets ON/OFF of all display (D) cursor
ON/OFF (C), and blink of cursor position
character (B).
40µs
Cursor / Display
Shift
0 0 0 0 0 1
S/C R/L
* *
Moves the Cursor and shifts the display
without changing DD RAM contents.
40µs
Function Set 0 0 0 0 1 DL N F * *
Sets interface data length (DL) number
of display lines (N) and character font
(F).
40µs
CG RAM Address
Set
0 0 0 1 ACG
Sets the CG RAM address. CG RAM
data is sent and received after this
setting.
40µs
DD RAM Address
Set
0 0 1 ADD
Sets the DD RAM address. DD RAM
data is sent and received after this
setting.
40µs
Busy Flag / Address
Read
0 1 BF AC
Reads Busy flag (BF) indicating internal
operation is being performed and reads
address counter contents.
-
CG RAM / DD RAM
Data write
1 0 Write Data
Writes data into DD RAM or CG RAM
40µs
CG RAM / DD RAM
Data Read
1 1 Read Data
Reads data from DD RAM or CG RAM
40µs
Zeichenerklärung:
I/D 1: DD-RAM Adresse automatisch inkrementieren 0: DD-RAM Adresse automatisch dekrementieren
S 1: Display schieben nach Schreib-/Leseoperation 0: Cursor bewegen nach Schreib-/Leseoperation
D 1: Display ein 0: Display aus
C 1: Cursor wird angezeigt 0: Cursor wird nicht angezeigt
B 1: Zeichen an der Cursorstelle blinkt 0: kein blinken
S/C 1: Display einmal schieben (abhängig von R/L) 0: Cursor einmal schieben
R/L 1: nach rechts schieben 0: nach links schieben
DL 1: Interface: 8-Bit Datenbus (DB0..7) 0: Interface: 4-Bit Datenbus (DB4..7)
N 1: zweizeiliges Display (auch 8+8) 0: einzeiliges Display
F 1: 5x10 Dot Display 0: 5x7 Dot Display
BF 1: Kontroller ist beschäftigt 0: Kontroller kann weitere Daten aufnehmen
Displaytyp
Anfangs - Endadresse (HEX)
Bemerkung
1.Zeile 2.Zeile 3.Zeile 4.Zeile
1x8 $00-$07
1x16 $00-$0F MUX 1:8
1x16(8+8)
$00-$07 MUX 1:16 (linke lfte)
$40-$47
(rechte Hälfte)
1x20 $00-$13
1x40 $00-$27
2x8 $00-$07 $40-$47
2x12 $00-$0B $40-$4B
2x16 $00-$0F $40-$4F
2x20 $00-$13 $40-$53
2x24 $00-$17 $40-$57
2x40 $00-$27 $40-$67
4x16 $00-$0F $40-$4F $10-$1F $50-$5F
4x20
$00-$13 $40-$53 $14-$27 $54-$67 Kontroller HD44780
$00-$13 $20-$33 $40-$53 $60-$73 Kontroller KS0073
4x40
$00-$27 $40-$67 - - 1. Kontroller (Enable 1)
- - $00-$27 $40-$67 2. Kontroller (Enable 2)
ZUORDNUNG DD-RAM ADRESSE ZU ZEICHENSTELLE IM DISPLAY
Hinweis
Die in der Tabelle angegebenen Ausführungszeiten gelten nur bei Abfrage des Busy Flags; d.h. vor jedem
Schreib- und Lesezugriff muß das Busy Flag BF auf 0 abgefragt werden. Wird das Busy Flag nicht
abgefragt, so sind die Ausführungszeiten zum Teil wesentlich länger als angegeben. Im 4-Bit Mode ist die
Busy-Abfrage vor jedem Bytezugriff notwendig.