INFO - FAQ - CC2-Forum - CCPro-Forum |
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 |