Datasheet
Technische Beschreibung myAVR LCD Add-On 2.3 Seite: 11/12
www.myAVR.de © Laser & Co. Solutions GmbH - 07/2007 www.myAVR.com
Programmierung des Displays
/
Programming of the display
Beispiele und Vorlagen für die Programmierung des myAVR LCD Add-On finden Sie unter www.myAVR.de im
Downloadbereich. / Examples and submittals for the programming of the myAVR LCD Add-On you find on our
homepage www.myAVR.com under „Downloads“.
START
RET
Register
sichern
LCD init 4 Bit
Register wieder
hestellen
LCD 2x16 konfig
LCD_enable wait5ms
set Entry-Mode
LCD_cmd LCD_off LCD_clear
LCD_cmd LCD_on
wait50ms
PowerUp
LCD-PortD
initialisieren
LCD reset
LCD reset
LCD reset
wait100µs
LCD_enable
LCD_enable
wait5ms
LCD_enable
BASCOM Beispiel
/
BASCOM Example
$regfile = "m8def.dat"
$crystal = 3686400
Config Lcdpin = Pin, Db4 = Portd.4, Db5 = Portd.5, Db6 = Portd.6, Db7 = Portd.7,
E = Portd.3, Rs = Portd.2
Config Lcd = 16 * 2
Config Portd = Output
Do
Waitms 1000
Cls
Lcd "myAVR mit LCD"
Loop
END
Das myAVR LCD Add-On ist für den 4Bit M
odus über Port D
konfiguriert.
The myAVR LCD Add-On is configured for the 4 Bit mode
across port D.
Warte mindestens 50 ms nach Power-ON.
Wait as many as 50 ms according to Power-ON
Das
Display wird durch das dreimalige senden von 0b0011xxxx
(Soft-Reset) in den Initialisierungsmodus versetzt, dabei muss
RS = 0 sein.
The display will be shifted into the initialisation mode according
to send 0b0011xxxx (soft-reset) three times thereby RS = 0.
Betriebsmodus /
Operating mode:
- 4 Bit, 0b00100000
- 2 Zeilen /
lines, 5x7 Punktmatrix /dot matrix, 0b00101000
- Einfügemodus/ Infix mode, 0b00000110
- OFF, 0b00001000
- CLEAR, 0b00000001
- ON, 0b00001110