Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: LCD EA DIP204-4 an CControl1 v2.0 Kategorie: C-Control I V1.2/2.0 (von DIE HARD - 29.06.2005 20:11)
 Als Antwort auf Re: LCD EA DIP204-4 an CControl1 v2.0 von alina - 29.06.2005 18:15

Hallo......

Das LCD benötigt offensichtlich ein spezielles Kommando für den
4-Zeilenmodus und hat ausserdem  eine andere Memorymap,
als die HD44780 Kompatiblen.
Aber versuch mal dieses Programm laufen zu lassen, und sag
mir, was passiert:
ciao........

'--------------------------
'------ I/O PORTS ---------
'--------------------------
define LCDPORT     byteport[2]
'--------------------------
'---- SYSTEM MEMORY -------
'--------------------------
define OUTBYTE     byte[1]
define LCDDATA     byte[2]


print "#ON_LCD#";"#INIT#";
LCDDATA=&h09:gosub LCD_WRITECMD:pause 2
print"#L101#";"Z1";
print"#L133#";"Z2";
print"#L165#";"Z3";
print"#L197#";"Z4";
#lp
goto lp

'--------- ------WRITE HI NIBBLE LCD COMMAND ------------
#LCD_WRITECMD
OUTBYTE=(LCDDATA shr 4)
LCDPORT=OUTBYTE or &B01000000:LCDPORT=OUTBYTE and &B10111111
'--------------- WRITE LO NIBBLE ------------------------
OUTBYTE=(LCDDATA and &H0F)
LCDPORT=OUTBYTE or &B01000000:LCDPORT=OUTBYTE and &B10111111
return
'-------------------------------------------------------

 Antwort schreiben

Bisherige Antworten:

Re: LCD EA DIP204-4 an CControl1 v2.0 (von alina - 30.06.2005 11:30)
    Re: LCD EA DIP204-4 an CControl1 v2.0 (von Dr.InSide - 25.12.2005 18:51)
    Re: LCD EA DIP204-4 an CControl1 v2.0 (von Robert - 29.09.2005 22:53)
    Re: LCD EA DIP204-4 an CControl1 v2.0 (von DIE HARD - 30.06.2005 12:14)
        Re: LCD EA DIP204-4 an CControl1 v2.0 (von alina - 30.06.2005 13:01)
        Re: LCD EA DIP204-4 an CControl1 v2.0 (von DIE HARD - 30.06.2005 12:55)
            Re: LCD EA DIP204-4 an CControl1 v2.0 (von alina - 2.07.2005 1:25)
Re: LCD EA DIP204-4 an CControl1 v2.0 (von alina - 30.06.2005 4:53)
Re: LCD EA DIP204-4 an CControl1 v2.0 (von alina - 30.06.2005 4:48)