Hallo,
wie kann ich für LCD 162C richtig initialisieren?
Ich möchte, dass LCD 2. Zeile anzeigen. Also Buchstabe 'M' in der 1. Postion.
Programm: AVR Studio 4.06, PonyProg2000 2.05Beta
Baustein: ATMEGA8-16PI
LCD: 162C 2x16 Zeichen Controller LSI KS0070B
ISP-Adapter vorhanden
Code:.include "m8def.inc" .def temp1 = r16 .def temp2 = r17 .def temp3 = r18 ldi temp1, LOW(RAMEND) ; LOW-Byte der obersten RAM-Adresse out SPL, temp1 ldi temp1, HIGH(RAMEND) ; HIGH-Byte der obersten RAM-Adresse out SPH, temp1 ldi temp1, 0xFF ;Port D = Ausgang out DDRD, temp1 rcall lcd_init ;Display initialisieren rcall lcd_clear ;Display löschen lcd_move: ldi temp1, 'M'+64 rcall lcd_command ret loop: rjmp loop .include "lcd-routines.asm" ;LCD-Routinen werden hier eingefügt
Lesezeichen