C Control I Unit-M 2.0 BASIC 5 Vdc Inputs / outputs 16 x digital I/Os/8 x analog or digital I/Os/2 x analogue outputs (s 198822 Datenbogen
Produktcode
198822
print"#L233#";"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
-------------------------------------------------------------------
BACKLIGHT
-------------------------------------------------------------------
If you have an unused DA-port you can connect it with port16 for
the backlight brightnes control.
It is important that port16 is deactivated after LCD setup:
LCD.INIT ( bzw. print"#ON_LCD#";"#INIT#";)
DEACT LIGHT
#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
-------------------------------------------------------------------
BACKLIGHT
-------------------------------------------------------------------
If you have an unused DA-port you can connect it with port16 for
the backlight brightnes control.
It is important that port16 is deactivated after LCD setup:
LCD.INIT ( bzw. print"#ON_LCD#";"#INIT#";)
DEACT LIGHT
Seite 2 von 2
14.06.2006
http://www.c-control-support.net/downloads/xlcdinfo.txt