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 Scheda Tecnica
Codici prodotto
198822
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
Hints for using LCDs together with the Units M 2.0 / M 1.2
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
-----------------------------------------------------------------
PIN ASSIGNMENT
-----------------------------------------------------------------
The LCD for the units is a standard LCD 2x16 and is fixed
connected to the Applicationboard 2.0
This connection reference is valid for lager LCDs too.
PIN 1 - GND
PIN 2 - 5V
PIN 3 - KONTRAST
PIN 4 - RS (PORT 14)
PIN 5 - RW (PORT 13)
PIN 6 - E (PORT 15)
PIN 7 - D0
PIN 8 - D1
PIN 9 - D2
PIN 10 - D3
PIN 11 - D4 (PORT 9)
PIN 12 - D5 (PORT 10)
PIN 13 - D6 (PORT 11)
PIN 14 - D7 (PORT 12)
NOTE:
Port 9 and 10 is used by the IIC-Bus but common usage is
possible without problems.
Port 16 is used for swithing the backlight at the application
board.
-----------------------------------------------------------------
OPERATION WITH LCD 4x16 / 4x20 (Controller HD44780)
-----------------------------------------------------------------
The operating system supports 2 line LCDs but 4 line LCDs can
be operated easily using the LCD line set commands
For a 4x20 LCD (and for a 4x16 LCD) is valid:
L101 - Zeile 1, Pos 1
L201 - Zeile 2, Pos 1
L121 - Zeile 3, Pos 1
L221 - Zeile 4, Pos 1
Die Zeilen 3 u. 4 werden behandelt wie Zeile 1 u. 2 jedoch mit einem
Offset von 20. L230 schreibt also an Zeile 4, Pos 10
-----------------------------------------------------------------
LCD with KS0073 (almost HD44780 compatibel)
-----------------------------------------------------------------
LCDs with KS0073 Controller (z.B. DIP204-4) need a special upset when
operated in 4 line mode and have a different memory map
define LCDPORT byteport[2]
define OUTBYTE byte[1]
define LCDDATA byte[2]
print "#ON_LCD#";"#INIT#";
LCDDATA=&h24:gosub LCD_WRITECMD:pause 2
LCDDATA=&h09:gosub LCD_WRITECMD:pause 2
LCDDATA=&h20:gosub LCD_WRITECMD:pause 2
print"#L101#";"Z1";
print"#L133#";"Z2";
print"#L165#";"Z3";
Hints for using LCDs together with the Units M 2.0 / M 1.2
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
-----------------------------------------------------------------
PIN ASSIGNMENT
-----------------------------------------------------------------
The LCD for the units is a standard LCD 2x16 and is fixed
connected to the Applicationboard 2.0
This connection reference is valid for lager LCDs too.
PIN 1 - GND
PIN 2 - 5V
PIN 3 - KONTRAST
PIN 4 - RS (PORT 14)
PIN 5 - RW (PORT 13)
PIN 6 - E (PORT 15)
PIN 7 - D0
PIN 8 - D1
PIN 9 - D2
PIN 10 - D3
PIN 11 - D4 (PORT 9)
PIN 12 - D5 (PORT 10)
PIN 13 - D6 (PORT 11)
PIN 14 - D7 (PORT 12)
NOTE:
Port 9 and 10 is used by the IIC-Bus but common usage is
possible without problems.
Port 16 is used for swithing the backlight at the application
board.
-----------------------------------------------------------------
OPERATION WITH LCD 4x16 / 4x20 (Controller HD44780)
-----------------------------------------------------------------
The operating system supports 2 line LCDs but 4 line LCDs can
be operated easily using the LCD line set commands
For a 4x20 LCD (and for a 4x16 LCD) is valid:
L101 - Zeile 1, Pos 1
L201 - Zeile 2, Pos 1
L121 - Zeile 3, Pos 1
L221 - Zeile 4, Pos 1
Die Zeilen 3 u. 4 werden behandelt wie Zeile 1 u. 2 jedoch mit einem
Offset von 20. L230 schreibt also an Zeile 4, Pos 10
-----------------------------------------------------------------
LCD with KS0073 (almost HD44780 compatibel)
-----------------------------------------------------------------
LCDs with KS0073 Controller (z.B. DIP204-4) need a special upset when
operated in 4 line mode and have a different memory map
define LCDPORT byteport[2]
define OUTBYTE byte[1]
define LCDDATA byte[2]
print "#ON_LCD#";"#INIT#";
LCDDATA=&h24:gosub LCD_WRITECMD:pause 2
LCDDATA=&h09:gosub LCD_WRITECMD:pause 2
LCDDATA=&h20:gosub LCD_WRITECMD:pause 2
print"#L101#";"Z1";
print"#L133#";"Z2";
print"#L165#";"Z3";
Seite 1 von 2
14.06.2006
http://www.c-control-support.net/downloads/xlcdinfo.txt