This manual does introduce you into the control of the ICOM industry
computer family for a fast and easy use.
1
The ICOM industry computer family combines the performance of
BASIC/TINY-Tiger
elegant aluminum chassis. For programming the ICOM industry
computers a BASIC-Tiger
This manual only describes the usage of the ICOM industry computers.
You can read about the progamming of Tiny-Tigers
®
user manuals.
Tiger
®
Computers with steadily needed I/O peripherals in an
This manual describes the ICOM200 and ICOM201 til version V1.3. Newer
versions are described in separate data sheets. At ICOM versions V1.4 or
newer, the version number is printed on the right hand side of the device.
Differences between ICOM-200 and ICOM-201
The ICOM-201 is a special version of the ICOM-200. The following decription
shows where the differences between the ICOM-200 and ICOM-201 are.
Feature ICOM-200 ICOM 201
Graphic LCD
20 key matrix keyboard
Serial interfaces
RS232 / RS485
MF2 keyboard
connector
Eight opto inputs
Four analog inputs
Eight power outputs
Battery backup
Sleep function Optional Optional
• -
• -
• •
• •
• •
• •
• •
• •
2
Note: The sleep function is available if the ICOM contains a TINY-Tiger® with
real time clock. It is not available, if internally e.g. a TINY-Tiger® TNN-R/4 is
used.
The ICOM-200/201 uses a power supply with 8-12 VDC, 1A. Minus is placed
on the pin of the power supply connector. The current consumption is,
depending on the application, up to 400mA.
PC mode
After a reset or power-down the Tiny-Tiger® inside the ICOM-200/201 is
testing if the PC mode pin is „low“. In this case, the ICOM switches to PC
mode/Debug mode. Is the pin „high“, the ICOM starts in run mode. The time
between power-on and first activity on the I/O pins is approx. 230 msec.
To set the ICOM-200/201 to PC mode, a reset or power-down is needed.
Setting the DIP switch to PC mode while in run mode is not sufficient.
If the DIP-switch “PC/Run” is in position “Run”, the program in the ICOM200/201 is executed immediately after a reset. Debugging is not possible in
this mode.
Program download
A program created with the Tiger software is downloaded into ICOM-200/201
through the 9-pin Sub-D connector. To download the following has to be done:
Connect a power supply 8-12 V DC (Polarity: Inner contact = minus,
outer contact = plus)
Connect ICOM-200/201 and PC with 9-pin D-Sub cable
Set DIP switch of ICOM-200/201 to PC mode
Set the reset DIP switch to „Reset“ and back to original position
Start download at the PC.
The ICOM-200/201 can be put into sleep mode if the Tiny-Tiger® inside has a
real time clock. In sleep mode the power consumption of the ICOM-200/201 is
descreased significantly to just approx. 25mA. While in sleep mode, no BASIC
program is executed by the ICOM-200/201.
Sleep circuit
®
The internal clock and SRAM of the Tiny-Tiger
Goldcap. The power consumption of clock and SRAM is approx. 70µA, with a
fully loaded Goldcap this is enough for about 3 hours.
To use the SLEEP mode of the ICOM-200/201 Jumper J9, which is located
under the LC display, has to be drawn. On delivery the jumper is inserted, so
SLEEP mode is disabled.
To put the ICOM-200/201 into sleep mode, the alarm time for the Tiny-Tiger
clock has to be set. Following that the ICOM-200/201 falls into sleep mode
and wakes up again at alarm time. More detailled information on how to set
the alarm time can be found in the BASIC-Tiger
If jumper J9 has been drawn and the Goldcap is unloaded, it takes about
30 seconds from connecting the power supply before the ICOM-200/201
switches on.
The ICOM-200 has a 20 key matrix keyboard. The keyboard is devided into
two blocks. The first block has four vertically arranged keys placed directly on
the right side of the LC display. Those keys can e.g. be assigned to a menu
on the LC display. The second block consists of 16 labeled keys.
Reading the keyboard is done with the device driver „LCD1.TDD“. The
following example scans the keyboard and gives back a numeric code for the
pressed key. Additionally a character can be assigned to the numeric code.
Read the „Device driver“ manual of the BASIC-Tiger
®
on how it is done.
With a physical offset of –10h the keyboard culumns are at the addresses 19h
to 27h. In order to scan the keyboard, the following settings have to be
implemented into the program.
print #keyb,& ' Definiert alle Scan-Spalten
"<1BH>D<16><1><1><1><0><0><0><0>& ' als Tastaturtasten
<0><0><0><0><0><0><0><0><0><0F0H>";
print #keyb,&
"<1Bh>k<18h><19h><1ah><1bh><1ch>& ' Legt die Tastaturadresse fest
<1dh><1eh><1fh><20h><21h><22h>&
<23h><24h><25h><26h><27h><0f0h>";
keys:
USING "UD<2><1> 0.0.0.0.2UH<2><2> 0.0.0.0.2" ' Format-String
FOR X=0 TO 0 STEP 0 ' Endlosschleife
FOR N=0 TO 0 STEP 0 ' Endlosschleife bis N=1(GET!)
RELEASE_TASK ' Rest der Task-Zeit freigeben
GET #keyb, #0, #1, 1, N ' N=Zeichen in Tastatur-Buffer
NEXT ' Ende Endlosschleife
GET #keyb, 1, A$ ' Tastatur-Buffer auslesen
PRINT #lcd, "<2><10>Key-No.="; ' Ausgabe auf LC-Display
PRINT USING #1, ASC(A$);"($";ASC(A$);")" ' zeige Tasten-Nr
NEXT
goto keys
end
The ICOM-200 has a graphic LC display with a resolution of 128 x 64 pixel.
There’s a special device driver to control this display. By using this device
driver it is possible to control the LC display with simple BASIC commands.
2
Detailled information about usage of this device driver „LCD-6963.TDD“ is part
of the „Device driver“ manual of the BASIC-Tiger
®
.
The LC display has LED backlight. The backlight’s power consumption is
approx. 250mA. Power supply is 5V. To save energy backlight can be turned
off by software. For this Tiger pin P86 is used. Setting the pin to „1“ activates
the backlight, when set to „0“ backlight is off.
As a standard the ICOM-200 and ICOM-201 have two serial interfaces. From
these the port Ser0 can by choice be configured as RS232 or RS485
interface. The port Ser1 always is a RS232 interface. In PC mode this port is
used for downloading the program into the ICOM 200/201. In Run mode it can
be used as a usual RS232 interface.
Detailled information about the serial interfaces can be read after in the
BASIC-Tiger
RS232
Serial port 0 can be configured as RS232 interface with three easy steps:
Remove IC12 from its socket
Please IC3 (MAX232) into the appropriate socket
Set the 4-channel DIP switch S1 to RS232.
®
„Device driver“ manual.
2
Attention: Never place IC3 and IC12 at the same time, as this could
The pins of serial port 0 are located on the DB-37 connector:
RS232 DB-37
TXD0 (Output) 16
RXD0 (Input) 17
RTS0 36
CTS0 35
RS485
The configuration of port 0 as RS485 interface is done by removing the IC3
(MAX232) and placing the IC12 (SN75176) into the 8-channel DIL socket. The
DIP switch on the left side plate of the ICOM-200/201 has to be set to RS485.
Removing or placing the ICs is only allowed without power supply.
Never place both ICs at the same time, this could lead to the destruction
of the ICOM-200/201.
The ICOM-200/201 has eight optocoupler inputs suited for an input voltage
range of 5...12 VDC. To use higher input voltages, as 24V for example, an
additional serial resistor in the input line is used. The resistor value is selected
in accordance to 4...50mA input current needed for the logical “1” level.
The internal resistance is 680 Ohm / 0,25 W. If now another input voltage is
needed, the totally required resistance can be calculated with the following
formula:
2
= (UE-1,3V)/I
R
ges
I
R
Example:
Is e.g. an input voltage of 24 V with a current of 10 mA wanted, you get
from the above formula R
680 Ohm resistor has be replaced with a 2200 Ohm resistor (rounded to
norm value), or a resistor of 1500 Ohm has to be connected in series.
The optocoupled inputs are realized as extended inputs of the Tiny Tiger.
They can be accessed under logical port address 11h (physical 1).
Both USER_EPORT instructions in the sample program are urgent.
The power outputs of the ICOM-200/201 are extended outputs of the Tiny-
®
, which are equiped with a driver IC type TD62083 or compatible. The
Tiger
outputs have the physical address 00h and can be (with an offset of –10h)
accessed with the port address 10h by the software.
The power outputs are lead to the 37-ch. Sub-D connector. The pin OVCC is
connected to a internal protector diode, so the outputs are secured against
overvoltage. This pin normally should have the same voltage potential as the
voltage to be switched.
Power outputs DB-37 Pin
Out 0 23
Out 1 4
Out 2 22
Out 3 3
Out 4 21
Out 5 2
Out 6 20
Out 7 1
OVCC 5
DIR_PORT 8,0
INSTALL_DEVICE #lcd,"LCD2.TDD",0,0,0EEH,1,150,11H' LCD-1=128x64, 150
KB/s
OUT 8,11111111b,11011111b ' set CTRL-Pins of T6963C
OUT 8,10000000b,255 ' Buzzer aus !
- FOR i = 0 to 7 ' 8 Pins
OUT 10h,mask (i),255 ' Pin auf "1" setzen
WAIT_DURATION 1000 ' 1 sec warten
OUT 10h,mask (i),0 ' Pin auf "0" setzen
WAIT_DURATION 1000 ' 1 sec warten
NEXT
END
The analog inputs have a hardware resolution of 10 bit, nevertheless by
software interpolation a resolution of 12 bit can be achieved. More detailled
information can be found in the BASIC-Tiger
To allow the universal use of Tiny-Tiger
equiped with an OpAmp. With this circuitry not only an amplification factor can
be set, but also a different configuration of the inputs is possible. Three
different configurations can be set:
The configuration is done with jumpers on the backside of the board (see
picture). To alter the configuration it is neccessary to open the device. This
should only be done by a qualified person. How the jumpers have to be
placed for the specific configurations is shown in the following table and
pictures.
Backside of board
Configuration 0...5V
On delivery of the ICOM-200/201 the analog inputs are configured for input
voltages of up to 5V. The placement of the jumpers is shown in the picture
below.
Please pay attention that the keys are free and may fall out while
opening the case. Please open it buttom side up !
To use the analog inputs with voltages of up to 10V DC, it is neccessary to
change the jumper configuration. Please pay attention that the keys are free and
may fall out while opening the case. To avoid this, place the device keys down on the
table and then gently pull the board out of the case.
Following the jumper configuration for input voltages of up to 10 V.
The analog inputs of the ICOM-200 / 201 have an adjustable input amplifier.
The amplification can be set to a factor between 1 and 10. This is done
continuously with potentiometers on the backside of the board.
Backside of board
The shematic below shows the input circuit available for each analog channel.
The diodes protect the Tiny-Tiger
peaks.
#include define_a.inc
user_var_strict
TASK Main
BYTE k
ARRAY Value(4) OF WORD
DIR_PORT 8,0
DIR_PORT 7,0
INSTALL_DEVICE #lcd,"LCD2.TDD",0,0,0EEH,1,150,11H' LCD-1=128x64, 150
KB/s
INSTALL_DEVICE #4, "ANALOG1.TDD" ' Analog-Inputs installieren
OUT 8,11111111b,11011111b ' set CTRL-Pins of T6963C
OUT 8,10000000b,255
LOOP 99999
FOR K = 0 TO 3 ' 4 Kanaele
GET #4, #K, 2, Value(K) ' Wert aus AD-Wandler lesen
NEXT ' naechster Kanal
PRINT #lcd, "<1>"; ' Bildschirm loeschen
FOR K = 0 TO 3 ' 4 Kanaele
PRINT #lcd, "AD"; K; ":"; ' Kanal-Nr. anzeigen
PRINT #lcd, Value(K) ' Wert auf LC-Display ausgeben
NEXT ' naechster Kanal
WAIT_DURATION 100 ' 100 ms warten
ENDLOOP
END
The ICOM-200 and ICOM-201 both have a connector for a MF2 keyboard.
With this it is possible to connect a common PC keyboard to the ICOM.
For the connection of a MF2 keyboard two pins of the Tiny-Tiger
For the ICOM-200/201 those are pins P84 and P85 of the Tiny-Tiger
These pins are directly lead to the MF2 plug on the left side of the ICOM.
#include mf2_tr.inc '' subroutines of the Transport Layer
#define LCD 1
#define KEYB1 20
'' Set of Keyboard Variables;
WORD wKeybDevId1 '' Keyboard Device Number
LONG lKeybExtFlags1 '' Keyboard Flags
BYTE bKeybActLang1 '' Keyboard Layout( Language )
TASK Main
WORD wKey
BYTE bIsActive
LONG lComplexMask
The ICOM-241 is the most cost effective solution of the ICOM family. The
processor used is a Tiny-Tiger
The ICOM-241 has eight transistor outputs and four optocoupler inputs. From
both serial ports, port 0 can be configured as RS485 interface as well.
For measurement of analog signals the ICOM-241 possesses four analog
inputs with a hardware resolution of 10 bit (12 bit by software interpolation).
The maximum input voltage for the analog inputs is 5V DC.
The ICOM-200/201 uses a power supply with 8-12 VDC, 1A. Minus is placed
on the pin of the power supply connector. The current consumption is,
depending on the application, up to 400mA.
PC-Mode
After a reset or power-down the Tiny-Tiger® Economy inside the ICOM-241 is
testing if the PC mode pin is „low“. In this case, the ICOM switches to PC
mode/Debug mode. Is the pin „high“, the ICOM starts in run mode. The time
between power-on and first activity on the I/O pins is approx. 230 msec.
To set the ICOM-241 to PC mode, a reset or power-down is needed. Setting
the DIP switch to PC mode while in run mode is not sufficient.
If the DIP-switch “PC/Run” is in position “Run”, the program in the ICOM-241
is executed immediately after a reset. Debugging is not possible in this mode.
Program download
A program created with the Tiger software is downloaded into ICOM-241
through the 9-pin Sub-D connector. To download the following has to be done:
Connect a power supply 8-12 V DC (Polarity: Inner contact = minus,
outer contact = plus)
Connect ICOM-241 and PC with 9-pin D-Sub cable
Set DIP switch of ICOM-241 to PC mode
Set the reset DIP switch to „Reset“ and back to original position
Start download at the PC.
The ICOM-241 has eight optocoupler inputs suited for an input voltage range
of 5...12 VDC. To use higher input voltages, as 24V for example, an additional
serial resistor in the input line is used. The resistor value is selected in
accordance to 4...50mA input current needed for the logical “1” level.
The internal resistance is 680 Ohm / 0,25 W. If now another input voltage is
needed, the totally required resistance can be calculated with the following
formula:
3
= (UE-1,3V)/I
R
ges
I
R
Example:
Is e.g. an input voltage of 24 V with a current of 10 mA wanted, you get from
the above formula Rges = 2270 Ohm. This means either the internal 680 Ohm
resistor has be replaced with a 2200 Ohm resistor (rounded to norm value), or
a resistor of 1590 Ohm has to be connected in series.
Attention:
When calculating the protective resistance the maximum dissipation of the
resistor has to be considered!
OP:
IN 8,wert ' Optokoppler Inputs einlesen
wert = wert & 00001111b ' High nibble ausblenden
put #ser, #0, wert ' Wert auf Ser 0 ausgeben
GOTO op ' Sprung nach "OP"
END
The power outputs of the ICOM-241 are extended outputs of the Tiny-Tiger®
Economy, which are equiped with a driver IC type TD62083 or compatible.
This IC has got eight open collector outputs.
The power outputs are lead to the 25-ch. Sub-D connector. The pin OVCC is
connected to a internal protector diode, so the outputs are secured against
overvoltage. This pin normally should have the same voltage potential as the
voltage to be switched.
3
Tiny-Tiger® Port Power-Outputs DB-25 Pin
P60 Out 0 12
P61 Out 1 11
P62 Out 2 10
P63 Out 3 9
P64 Out 4 8
P65 Out 5 7
P66 Out 6 6
P67 Out 7 5
OVCC 13
As a standard the ICOM-241 has two serial interfaces. From these the port
Ser0 can by choice be configured as RSR232 or RS485 interface. The port
Ser1 always is a RS232 interface. In PC mode this port is used for
downloading the program into the ICOM 241. In Run mode it can be used as a
usual RS232 interface.
Detailled information about the serial interfaces can be read after in the
BASIC-Tiger
®
„Device driver“ manual.
RS232
To configure port Ser0 as RS232 interface, the IC3 (MAX232) must be placed
into the appropriate socket and IC6 ( SN75176) has to removed from its
socket. After that the DIP switch at the left side of the chassis has to be
switched to RS232. It is recommended to place the IC 6 (SN75176) into the
dummy socket, so it’s always available when needed again.
The pins of serial port Ser0 are located on the DB25 connector. The pin layout
is shown in the table below:
RS232 Pin DB25 socket
TxD0 18
RxD0 17
CTS0 19
RTS0 20
Layout of DB25 connector (RS232)
RS 485
The configuration of port Ser0 as RS485 interface is done by placing the IC6
(SN75176) into the 8 pin DIL socket. The IC3 (MAX232) has to be removed
and placed into the dummy socket. The DIP switch on the left side of the
chassis has to be switched to RS485 position.
OUT 8,11111111b,11011111b ' set CTRL-Pins of T6963C
OUT 8,10000000b,255 ' Buzzer off !
LOOP 999999999 ' Endlosschleife
GET #ser,#0,#1,1,i ' Eingangsbufferfüllstand
IF I > 0 THEN
GET #ser,#0,1,k ' Seriellen Eingangsbuffer lesen
PRINT #lcd,"Taste = "; chr$(k) ' Ausgabe auf dem LCD
ENDIF
ENDLOOP
END
The analog inputs of the ICOM-241 have an input range from 0...5V DC. The
hardware resolution is 10 bit and can be raised to 12 bit by software
interpolation when needed. To be able to measure small signals each analog
input is equipped with an OpAmp. The amplification can be set to a value
between 1 and 10 by potis.
3
View of components side with potis of analog amplifiers
#include define_a.inc
user_var_strict
TASK Main
BYTE k
ARRAY Value(4) OF WORD
DIR_PORT 8,0
DIR_PORT 7,0
INSTALL_DEVICE #lcd,"LCD2.TDD",0,0,0EEH,1,150,11H' LCD-1=128x64, 150
KB/s
INSTALL_DEVICE #4, "ANALOG1.TDD" ' Analog-Inputs installieren
OUT 8,11111111b,11011111b ' set CTRL-Pins of T6963C
OUT 8,10000000b,255
LOOP 99999
FOR K = 0 TO 3 ' 4 Kanaele
GET #4, #K, 2, Value(K) ' Wert aus AD-Wandler lesen
NEXT ' naechster Kanal
PRINT #lcd, "<1>"; ' Bildschirm loeschen
FOR K = 0 TO 3 ' 4 Kanaele
PRINT #lcd, "AD"; K; ":"; ' Kanal-Nr. anzeigen
PRINT #lcd, Value(K) ' Wert auf LC-Display ausgeben
NEXT ' naechster Kanal
WAIT_DURATION 100 ' 100 ms warten
ENDLOOP
END
The ICOM-241 – 24V is a variant of the ICOM 241. It needs a supply voltage
between 14V and 24V DC. The serial port SER1 is realized with a male 9 pol.
Sub D Connector.
When you have problems with a Tiger-BASIC® program:
Try to reduce the problem to a short and simple sample program.
Maximum should be one page, mostly a view lines will do.
Which version of the compiler do you use (see About... in menue
Help)?
Which versions have the device drivers involved (see Device driver
list in menue View)?
Describe the faultive situaltion as detailled as possible. In what context does the error occur? Does the error occur always or only occasionally? Include all your communication numbers as Fax, Phone etc. in your
request, so we can help you as fast as possible.
BASIC-Tiger® Service Hotline:
+49 (0)241 / 15 15 99
4
Wilke Technology GmbH
Krefelder Str. 147
P.O. Box 1727