ICOM® 200/201/241
About this manual 1 ICOM-200 / 201 2 ICOM-241 3 Advice and support 4 Register 5
Copyright © by Wilke Technology GmbH Krefelder Str. 147 52070 Aachen / Germany manual version 1.4 This manual, together with the hardware and software which it describes, is copyrighted and may not be in any way copied, translated or redered in any other form without the express written consent of Wilke Technology GmbH. Note The editors, translators and authors of this publication have taken great care with the texts, illustrations and programs. Nevertheless, errors cannot be completely excluded.
Contents Contents 1 2 About this manual 1-1 Typographic conventions and symbols 1-2 ICOM-200 / 201 2-1 Versions Differences between ICOM-200 and ICOM-201 First steps Power supply PC mode RUN mode Program download SLEEP mode Keyboard LC display Serial Interface RS232 RS485 Opto inputs Power outputs Analog inputs Analog inputs Configuration 0...5V Configuration 0…10V Configuration 0...20mA Setting the amplification MF-2 Keyboard TINY-Tiger® Pins Pin layout 37-ch.
Contents Opto inputs Power outputs Serial interface RS232 RS 485 Analog inputs Pin layout 25-pin D-Sub connector Technical data ICOM 241 – 24V Connection to PC Technical data 4 3-4 3-6 3-7 3-7 3-8 3-11 3-14 3-15 3-16 3-17 3-17 Hints and help ® 5 BASIC-Tiger Service Hotline: 4-1 Register 5-1 . ii 4-1 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
General 1 About this manual 1 This manual does introduce you into the control of the ICOM industry computer family for a fast and easy use. The ICOM industry computer family combines the performance of BASIC/TINY-Tiger® Computers with steadily needed I/O peripherals in an elegant aluminum chassis. For programming the ICOM industry computers a BASIC-Tiger® development system is needed. This manual only describes the usage of the ICOM industry computers.
ICOM-manual 1 Typographic conventions and symbols Following fonts and symbols are used for fast identification of important informations: Element Meaning KEY Key description, e.g. RETURN Program listing Tiger-BASIC® program listing Instruction Tiger-BASIC® instruction Variable Variables or constants you have to enter according to your application. [ ] Elements which can be entered optional. ! Tip 1-2 Important remark: Please note! Tipps and hints simplifying your work.
ICOM-200 / 201 2 ICOM-200 / 201 Versions 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.
ICOM-manual First steps Power supply 2 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.
ICOM-200 / 201 RUN mode 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.
ICOM-manual SLEEP mode 2 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® are buffered through a Goldcap. The power consumption of clock and SRAM is approx. 70µA, with a fully loaded Goldcap this is enough for about 3 hours.
ICOM-200 / 201 2 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® „Device driver“ manual. 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.
ICOM-manual Keyboard 2 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.
ICOM-200 / 201 '-------------------------------------------------------------------'----- ICOM_KEYB.TIG '-------------------------------------------------------------------- #define keyb 20 ' keyboard device nummer #include define_a.inc user_var_strict TASK Main word x,n,i string a$ user_eport lastladr,10h user_eport physoffs, 0f0h Dir_port 8,0 INSTALL DEVICE #lcd,"LCD2.TDD",0,0,0EEH,1,150,11H' LCD-1=128x64, 150 KB/s Install device #keyb, "LCD1.
ICOM-manual LC display 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.
ICOM-200 / 201 Serial Interface 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® „Device driver“ manual.
ICOM-manual The pins of serial port 0 are located on the DB-37 connector: 2 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.
ICOM-200 / 201 Opto inputs 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.
ICOM-manual '-------------------------------------------------------------------'----- ICOM200_OPTOIN.TIG '-------------------------------------------------------------------#include define_a.inc user_var_strict TASK Main 2 BYTE wert USER_EPORT lastladr,10h USER_EPORT physoffs, 0f0h DIR_PORT 8,0 DIR_PORT 7,0 INSTALL_DEVICE #lcd,"LCD2.
ICOM-200 / 201 Power outputs The power outputs of the ICOM-200/201 are extended outputs of the TinyTiger®, which are equiped with a driver IC type TD62083 or compatible. The 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.
ICOM-manual '-------------------------------------------------------------------'----- ICOM200_OUTPUTS.TIG '-------------------------------------------------------------------- 2 #include define_a.inc user_var_strict TASK Main WORD i USER_EPORT lastladr,10h USER_EPORT physoffs, 0f0h DIR_PORT 8,0 INSTALL_DEVICE #lcd,"LCD2.
ICOM-200 / 201 Analog inputs 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 „Device driver“ manual. ® To allow the universal use of Tiny-Tiger analog inputs, each channel is 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.
ICOM-manual 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. 2 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.
ICOM-200 / 201 Configuration 0…10V 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.
ICOM-manual Setting the amplification 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. 2 Backside of board The shematic below shows the input circuit available for each analog channel. The diodes protect the Tiny-Tiger® pins against negative voltages and voltage peaks. 2-18 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.
ICOM-200 / 201 '-------------------------------------------------------------------'----- ICOM200_AD.TIG '-------------------------------------------------------------------#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.
ICOM-manual MF-2 Keyboard 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. 2 For the connection of a MF2 keyboard two pins of the Tiny-Tiger® are needed. For the ICOM-200/201 those are pins P84 and P85 of the Tiny-Tiger® module. These pins are directly lead to the MF2 plug on the left side of the ICOM. 2-20 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
ICOM-200 / 201 '-------------------------------------------------------------------'----- ICOM200_MF2.TIG '-------------------------------------------------------------------USER_VAR_STRICT #project_model pm_min #include mf2_tr.
ICOM-manual 2 CALL SetLcdOutputPos( LCD, 9, 0 ) PRINT_USING #LCD, wKey BITAND 0ffh CALL SetLcdOutputPos( LCD, 9, 1 ) PRINT_USING #LCD, ( wKey SHR 8 ) BITAND 0ffh '' Check whether a control key is pressed CALL SetLcdOutputPos( LCD, 11, 2 ) CALL CheckKeybFlags(__KF_SHIFTRIGHT_DOWN,lKeybExtFlags1,bIsActive) IF bIsActive = TRUE THEN PRINT #LCD, "Shift_R" ENDIF CALL CheckKeybFlags(__KF_SHIFTLEFT_DOWN,lKeybExtFlags1,bIsActive) IF bIsActive = TRUE THEN PRINT #LCD, "Shift_L" ENDIF CALL CheckKeybFlags(__KMT_CTRLRI
ICOM-200 / 201 ENDIF ENDWHILE END SUB SetLcdOutputPos( WORD wDevId; BYTE Column, Row ) PRINT #wDevId, "<1BH>A";CHR$( Column );CHR$( Row );"<0F0H>"; END 2 Task p8 BYTE ever for ever = 0 to 0 step 0 out 8,00010000b, 0 next END Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
ICOM-manual TINY-Tiger® Pins The ICOM-200/201 has, in addition to the extended I/O pins with optocouplers and transistors, some standard pins of the TINY-Tiger®. 2 At the DB37 connector the pins P71, P72 and P73 are lead out. Tiny-Tiger pin DB37 connector P71 12 P72 31 P73 13 Pin layout 37-ch. D-Sub connector The 37-ch. D-Sub connector carries all available I/O pins except for serial port 1. 2-24 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
ICOM-200 / 201 Technical data LCD: Graphical display with 128 x 64 pixel and LED backlight. Keyboard: Keyboard matrix with 20 keys and additional connection for MF2 keyboard Sound: Beeper, e.g. as keyboard click. Interface: 1x 1x Analog In: Settable to 4 x 0...5V resp. 0...10V or 0...20mA Input amplifier: 1 < V < 10 Resolution 10 bit. Inputs: 8 x opto in 5 to 12V (higher range possible through external resistor). Outputs: 8 x Darlington, with protective diode.
ICOM-241 3 ICOM-241 The ICOM-241 is the most cost effective solution of the ICOM family. The processor used is a Tiny-Tiger® Economy. 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.
ICOM-manual First steps Power supply 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. 3 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.
ICOM-241 RUN mode 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.
ICOM-manual Opto inputs 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. 3 The internal resistance is 680 Ohm / 0,25 W.
ICOM-241 '-------------------------------------------------------------------'----- ICOM241_OPTOIN.TIG '-------------------------------------------------------------------#include define_a.inc user_var_strict TASK Main BYTE wert DIR_PORT 8,0fh ' low nibble als Input INSTALL_DEVICE #SER, "SER1B_K1.
ICOM-manual Power outputs 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. 3 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.
ICOM-241 Serial interface 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.
ICOM-manual 3 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.
ICOM-241 ! Placing or removing of the ICs is only allowed without power supply. RS485 Pin DB25 socket TXD0 (A) 18 RXD0 (B) 17 Layout of DB25 socket (RS485) 3 Attention: Never place IC3 and IC6 at the same time, as this could lead to destruction of the serial port or the driver ICs ! The following sample program receives serial data through serial port 0. Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
ICOM-manual '-------------------------------------------------------------------'----- ICOM200_RS232.TIG '-------------------------------------------------------------------#include define_a.inc user_var_strict TASK Main BYTE i,k DIR_PORT 8,0 3 INSTALL DEVICE #lcd,"LCD2.TDD",0,0,0EEH,1,150,11H' LCD-1=128x64, 150 KB/s INSTALL DEVICE #SER, "SER1B_K1.
ICOM-241 Analog inputs 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.
ICOM-manual 3 Circuit of analog inputs 3-12 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
ICOM-241 '-------------------------------------------------------------------'----- ICOM200_AD.TIG '-------------------------------------------------------------------- #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.
ICOM-manual Pin layout 25-pin D-Sub connector The 25-pin D-Sub connector carries all available I/O pins (except for serial port 0) of the ICOM-241. 3 3-14 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
ICOM-241 Technical data Interface: 1x 1x RS232 RS232/RS485 selectable. Analog In: 4 x 0...5V with input amplifier 1 < V < 10 Resolution 10 bit. Inputs: 4 x opto in 5 to 12V DC Outputs: 8 x Darlington, with protective diode. max 50V/500mA @ 1 chanel, duty = 10% 50mA @ 8 chanels, duty = 100% Supply: 8...12V DC, 90mA Size: approx. 106 x 88,5 x 40mm(LxBxH) Connections: RS232 with DB9 All other with DB25 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
ICOM-manual ICOM 241 – 24V 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. 3 3-16 seriel port 1 / download DB-9 Connector (male) TXD 3 RXD 2 GND 5 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
ICOM-241 Connection to PC For programme download, debugging and other communication with a PC use a crosslinked cable (null modem) Technical data Interface: 1x 1x RS232 RS232/RS485 selectable. Analog In: 4 x 0...5V with input amplifier 1 < V < 10 Resolution 10 bit. Inputs: 4 x opto in 5 to 12V DC Outputs: 8 x Darlington, with protective diode. max 50V/500mA @ 1 chanel, duty = 10% 50mA @ 8 chanels, duty = 100% Supply: 14...24V DC, 95mA Size: approx.
Hints and Help 4 Hints and help 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.
ICOM-manual 4 4-2 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.
Index 5 Register Amplification 2-18 analog inputs 2-15, 3-12 Display 2-8 Goldcap 2-4 I/O pins 2-24 ICOM-241 3-1 LC display 2-8 Loading time 2-5 Matrix keyboard 2-6 MF2 keyboard 2-20 Opto inputs 2-11, 3-4 PC mode 2-2 Power outputs 2-13, 3-6 Power supply 2-2, 3-2 Program download 2-3 RS232 interface 2-9, 3-8 RS485 interface 2-10, 3-9 RUN mode 2-3 Technical data 2-25, 3-16 5 Wilke Technology GmbH • 0241 / 918 900 • http://www.wilke.de/ • support@wilke.