• Keine Ergebnisse gefunden

How to control – LCD 162C LED:

N/A
N/A
Protected

Academic year: 2022

Aktie "How to control – LCD 162C LED:"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Marcel Meinersen

Handout: LCD-Ansteuerung

6.5.2013, Berlin

How to control – LCD 162C LED:

LCD-Anschlüsse:

– Üblich: 16 / 14 Pins (mit/ohne Backlight) , beginnend von links gezählt – Steuerleitungen: RS = register select (0=Befehl, 1=Daten), RW= read/write

(1=lesen,0=schreiben), E=enable(signalisiert,Daten können vom LCD übernommen werden) – Datenleitungen: DB0-DB7

– Stromversorgungsleitungen: VSS=GND, VCC=5V, V0=VEE=GND über Kontrastpoti

Control und Display-Commands:

– wichtige Grundbefehle: clear display, cursor home, entry mode set, display on/off control, cursor display shift, function set

– brauchen eine gewisse Verarbeitungszeit (!)

– steuern die gewünschten Einstellungen des Displays

– Cursorbasiertes Schreiben am Display (Cursor ist beliebig setzbar => über Commands) Initialisierung und Betriebsmodus:

– mögliche Betriebsmodi: 8 / 4 Bit Übertragung (4 Bit: zuerst höherwertiges Nibble, dann niederwertiges Nibble übertragen, nach der Aktivierung des Modus)

– Initialisierung nach jeder Inbetriebnahme (!)=>Wahl des Betriebsmodus direkt im Anschluss 3 x den Soft-Reset Befehl mit jeweils circa 5 ms warten, danach beliebige Einstellungen

Soft-Reset:

AVR-GCC-Wiederholung:

– Bitoperationen: << >> Links/Rechts schieben, | binäres Oder, & binäres Und, ^ binäres XOr – IO-Register: DDRx (1=Ausgang, 0= Eingang), PINx (Eingangsregister), PORTx

(Ausgangsregister)

– Definition von Konstanten: #define LCD_CLEAR_DISPLAY, const int 42 Häufige Probleme:

– Initialisierungszeiten des LCD-Controllers beachtet ?

– Enable, RS, RW Leitung gesetzt? Control und Display Commands Ausführungszeiten beachtet?

– BusyFlag regelmäßig überprüft ?

– Cursor nach der Initialisierung richtig eingestellt (Ort, sichtbar, etc.) Quellenangabe:

– http://www.mikrocontroller.net/articles/AVR-GCC-Tutorial/LCD-Ansteuerung – http://www.rn-wissen.de/index.php/LCD-Modul_am_AVR (sehr gut Übersicht) – Projektlaboreinführung in Mikrocontroller

http://de.wikipedia.org/wiki/Flussigkristallanzeige

TU-Berlin Projektlabor SS 2013 FEAR (4.Gewinnt)

Referenzen

ÄHNLICHE DOKUMENTE

Model No.Supply Voltage (V) Current Consumption Operating Standby (Halt) Clock frequency (Hz) Memory (bit) ROM RAMInputOutput Input/ Output Instructions I/O Port

SED1065 built in, SoundGenerator, SupplyVoltageDetection Watchdog, 10bit A/D Converter, HighSpeedOperation, no access to ext. 16bit timer) SoundGenerator, Display Memory, Clock

The Mask Data Checker MDC623E is a software tool which checks the program data (C23EXXXH.HEX and C23EXXXL.HEX) and option data (C23EXXXF.DOC) created by the user and creates the

The Cross Assembler ASM6247 will assemble the program source files which have been input by the user's editor and will generate an object file in Intel-Hex format and assembly

Contents of program area a1 to a2 are displayed Content of data area a1 to a2 are displayed Data d is set in addresses a1 to a2 (program area) Data d is set in addresses a1 to a2

ICE Control Software batch file ICE Control Software execution file ICE Control Software parameter file Mask Data Checker execution file Segment Option Generator execution file..

A label is an index for referencing a location in the program, and can be used as an operand that specifies a memory address as immediate data in an instruction.. For example, a

Save contents of memory to program file Save contents of memory to data file Load ICE6200 set condition from file Save ICE6200 set condition to file Load melody data from file