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 alina - 30.06.2005 4:53)
 Als Antwort auf Re: LCD EA DIP204-4 an CControl1 v2.0 von DIE HARD - 29.06.2005 20:11
alina nutzt:  CC1-M-Unit V1.2/2.0

>
> 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
> '-------------------------------------------------------


sorry, noch schnell ein nachtrag!
ist der bug mit dem byteport[2]=... in V2.02 noch zu beachten?

 Antwort schreiben

Bisherige Antworten: