J223 PCI24 2192-10422-000-000 PCI24 24-Channel Opto-Isolated Digital Inputs Board Technical Manual Product Information Full information about other Arcom products is available by visiting our WebSite at: www.arcomcontrols.com Useful Contact Information Customer Support Europe Customer Support US Tel: +44 (0)1223 412 428 Fax: +44 (0)1223 403 409 E-mail: [email protected] Tel: 816 941 7025 Fax: 816 941 7807 E-mail: [email protected] Sales Offices Sales Hotlines United Kingdom: Arcom Control Systems Ltd Clifton Road Cambridge CB1 7EA, UK Tel: 01223 411 200 Fax: 01223 410 457 United States: Arcom Control Systems Inc 13510 South Oak Street Kansas City MO 64145 USA Tel: 816 941 7025 Fax: 816 941 0343 E-mail: [email protected] E-mail: [email protected] Belgium: Groen Nummer: Tel: 0800 7 3192 Fax: 0800 7 3191 Germany: Kostenlose Infoline: Tel: 0130 824 511 Fax: 0130 824 512 France: Numero Vert Tel: 0800 90 84 06 Fax: 0800 90 84 12 Netherlands: Gratis 0800 Nummer: Tel: 0800 0221136 Fax: 0800 0221148 Italy: Numero Verde: Tel: 0800 790841 Fax: 0800 780841 Whilst Arcom’s sales team is always available to assist you in making your decision, the final choice of boards or systems is solely and wholly the responsibility of the buyer. Arcom’s entire liability in respect of the boards or systems is as set out in Arcom’s standard terms and conditions of sale. If you intend to write your own low level software, you can start with the source code on the disk which is supplied. This is example code only to illustrate use on Arcom’s products. It has not been commercially tested. No warranty is made in respect of this code and Arcom shall incur no liability whatsoever or howsoever arising from any use made of the code. © 2000 Arcom Control Systems Ltd Arcom Control Systems is a subsidiary of Fairey Group Plc. All trademarks recognised. Arcom Control Systems Ltd operate a company-wide quality management system which has been certified by the British Standards Institution (BSI) as compliant with ISO9001:1994 Page 1 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Contents Revision History .................................................................................................. 2 Preface ................................................................................................................. 3 Packaging list .......................................................................................... 3 Utility Disk................................................................................................. 3 Handling (ESD/Packaging) ...................................................................... 3 Introduction ........................................................................................................ 4 Features ................................................................................................... 4 Getting Started ................................................................................................... 4 Operation ............................................................................................................ 5 Reading or Writing to the Board................................................................ 5 Opto-isolated Inputs.................................................................................. 5 Counter/Timers......................................................................................... 6 I/O map..................................................................................................... 6 I/O Function Registers .............................................................................. 6 Special Function Registers ....................................................................... 6 Links .................................................................................................................... 7 Link and Switch position Diagram ............................................................. 7 Address Links ........................................................................................... 7 Interrupt selector....................................................................................... 7 I/O Voltage selector .................................................................................. 8 I/O line commoning................................................................................... 8 User Configuration Record Diagram ......................................................... 9 Connectors ......................................................................................................... 10 Installation for CE Compliance .......................................................................... 11 Circuit Diagrams ................................................................................................. 12 Revision History Manual Issue A Issue B Issue C Issue D PCB V1 Iss 1 V1 Iss 1 V1 Iss 1 V1 Iss 1 Comments 960722 980121 981214 000727 [ECO2684] [ECO2791] [ECO2893] Page 2 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 )5((:LQGRZV17'ULYHUV 9LVLWWKH$UFRP:HEVLWHIRUPRUHLQIRUPDWLRQ ZZZDUFRPFRQWUROVFRP Preface Contents - Packaging List This product is shipped as follows: • Board • User Manual • Utility Disk • PCbus Library Datasheet Utility Disk This product is shipped with a utility disk that contains: • PCbus library Manual • Source Code for all PCbus I/O boards • A test program called EXAMP-01.EXE Anti-Static Handling This board contains CMOS devices that could be damaged in the event of static electricity being discharged through them. At all times please observe anti-static precautions when handling the board and always unpack and install the board in an anti-static working area. Please ensure that should a board need to be returned to Arcom, it is adequately packed and if a battery is fitted, that it is isolated. Page 3 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Introduction The PCI24 is an 8-bit ISA bus add-on board providing 24 opto-isolated digital inputs and 3 16bit counter/timers. The board also provides 12V or 24V excitation for external devices from an isolated DC-DC converter. The 3 counter/timers are implemented using an 8254 device. Two of the counter/timers are cascaded to form a 32-bit counter. This is intended as a programmable interrupt generator. The output of this combined counter and that of counter 2 can be used to generate an interrupt on the PCbus. Safety , connectors, cabling, insulation and power dissipation limit the maximum input voltage to 40V relative to PC chassis GND. Features • CE compliant design • 24 opto-isolated digital inputs • Input/Output Isolation: 500V DC • Input voltage range 10 to 40V DC • Opto-isolator rise time 60 microseconds • Opto-isolator fall time 40 microseconds • Isolated 12 or 24V operation • Three 16-bit counter/timers • Link selectable interrupt options (IRQ2,3,4,5,7) • Compact I/O addressing scheme (link selectable base address) • Board access LED • User controlled LED • Operating temperature range, 0C to 55C • Power consumption 320mA @ 5V 80mA @ 12V • MTBF: = 258,346 hours using generic figures from MIL-HDBK-217F at ground benign. Getting started • Switch off PC • Install board in supplied configuration • Switch on PC • Run EXAMP-01.EXE (supplied on the utility disk) • An access/user LED should flash. If not check default link configuration. (Page 7) Page 4 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Operation Reading or Writing to the Board Control of the PCI24 is achieved by writing to a pointer register and then accessing a data register to read or write the required I/O register. The pointer register need only be written with a new value if a different register is to be accessed. The board occupies only two bytes of PCbus I/O space. Each time the board is accessed the red LED will flash momentarily. Opto-isolated Inputs There are three groups each of 8 bits connected via opto-isolators to the D connector. They are considered as a group as all eight bits are read from at the same time. When reading groups as inputs it is important to be aware of the input polarity. A current flowing through an opto-isolator’s LED makes it output turn on. This is read through an inverting buffer. The current flowing through the LED is read as a 1 by the PC for that particular bit. There are two ways to make the current flow through the LED. One is to connect the +ve side of its input pair to a +ve voltage and sink current from the -ve side. The other is to connect the -ve side to a –ve voltage and source current into the +ve side. By the use of links it is possible to connect the input’s anode (+ve) side to pin 50 of PL2. The idea behind commoning the positive sides of the inputs is that most devices being sensed by the PCI24 will be ‘open-collector’. When 00 is written to base address this sets up the pointer to the group 0 inputs. These can then be read by reading base address + 1. Page 5 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Counter/Timers Counter/timer 0 and 1 are cascaded to form a programmable timebase generator. The input clock to CT1 is 4MHz and its output is used as the input clock to CT0 whose output can be used to generate an interrupt. CT2’s clock comes from the D connector via the group 2 optoisolator and its output can also generate and interrupt. I/O map The value written to the pointer register is used to select the on-board I/O location to be accessed. This board occupies two consecutive addresses and has 7 I/O function registers and two special registers. The board must be set on an even address boundary. Address Base (180) Base+1 (181) Read/Write Write only Read/Write Register Name Pointer register Data Register Register Function On-board register Data to read/write from/to register Read/Write Read Read Read Read/Write Read/Write Read/Write Write Register Description Group 0 inputs Group 1 inputs Group 2 inputs Counter 0 Counter 1 Counter 2 Counter/timer control I/O Function Registers Pointer value 00 01 02 10 11 12 13 Register name G0 G1 G2 CT0 CT1 CT2 Control Special Function Registers The green User LED is controlled by bit 0 when the pointer register is loaded with 80h. The board identification register can be used to confirm the board is present in the system and is the correct board type. Other Pcbus I/O boards in Arcom’s range will return a different value. Pointer Value 80 Register Name User LED Read/Write Write 81 Board ident Read Comments Writing 01 switches the green LED on. Writing 00 switches it off. Page 6 Reading this register gives the value 08. Page 6 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Links Throughout this section a ‘+’ indicates a default link Link and Switch Position Diagram The default address is set to 180h Address Links Sets the base address for the board in Pcbus I/O space. Fitting a jumper corresponds to a ‘1’ bit. Link 9 +8 +7 6 5 4 3 2 1 Address Line A9 A8 A7 A6 A5 A4 A3 A2 A1 Interrupt selector IRQ2-5 & 7 Select one only from IRQ2, 3, 4, 5 or 7. If not fitted the PCI24 cannot generate interrupts. +IRQ2 IRQ3 IRQ4 IRQ5 IRQ7 Timer interrupt on IRQ2 Timer interrupt on IRQ3 Timer interrupt on IRQ4 Timer interrupt on IRQ5 Timer interrupt on IRQ7 Page 7 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 I/O Voltage selector Link 3 This selects the voltage on pin 50 of PL2. LK3A +LK3B +12V from the on-board DC-DC converter +24V from the on-board DC-DC converter Note 1: LK10-33 can also connect the anode of each input opto to pin 50. If you wish to use the DC-DC converter you must also make a connection to pin 1 of PL2. Note 2: The DC/DC converter should not be used to power external equipment. I/O line commoning Links 10 – 33 When fitted these connect the input’s anode to pin 50 of PL2 +LK10 +LK11 +LK12 +LK13 +LK14 +LK15 +LK16 +LK17 +LK18 +LK19 +LK20 +LK21 +LK22 +LK23 +LK24 +LK25 +LK26 +LK27 +LK28 +LK29 +LK30 +LK31 +LK32 +LK33 Group 0 bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 Group 1 bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 Group 2 bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 Page 8 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 User Configuration Record Diagram Link LK3A LK3B LK10 LK11 LK12 LK13 LK14 LK15 LK16 LK17 LK18 LK19 LK20 LK21 LK22 LK23 LK24 LK25 LK26 LK27 Default User Link LK28 LK29 LK30 LK31 LK32 LK33 IRQ2 IRQ3 IRQ4 IRQ5 IRQ7 Address 1 Address 2 Address 3 Address 4 Address 5 Address 6 Address 7 Address 8 Address 9 Default User Page 9 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Connectors PL2. I/O Connector Signal Title D-type Connector No. Ribbon Cable No. Common +ve line (if linked) G2.7+ G2.7 G2.6+ G2.6 G2.5+ G2.5 G2.4+ G2.4 G2.3+ G2.3 G2.2+ G2.2 G2.1+ G2.1 G2.0+ G2.0 G1.7+ G1.7 G1.6+ G1.6 G1.5+ G1.5 G1.4+ G1.4 G1.3+ G1.3 G1.2+ G1.2 G1.1+ G1.1 G1.0+ G1.0 G0.7+ G0.7 G0.6+ G0.6 G0.5+ G0.5 G0.4+ G0.4 G0.3+ G0.3 G0.2+ G0.2 G0.1+ G0.1 G0.0+ G0.0 DC-DC Converter 0V 50 17 33 49 16 32 48 15 31 47 14 30 46 13 29 45 12 28 44 11 27 43 10 26 42 9 25 41 8 24 40 7 23 39 6 22 38 5 21 37 4 20 36 3 19 35 2 18 34 1 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Page 10 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Installation for CE Compliance To maintain compliance with requirements of the EMC Directive (89/336/EEC) this product must be correctly installed. The PC in which the board is housed must be CE compliant as declared by the PC Manufacturer. The type of external I/O cable can be chosen according to the notes below. 1. Remove the cover of the PC observing any additional instructions of the PC manufacturer. 2. Locate the board in a spare ISA slot and press gently but firmly into place. 3. Ensure that the metal bracket attached to the board is fully seated. 4. Fit in the bracket clamping screw and firmly tighten this on the bracket. 5. Fit the screened I/O cable to the 50-way board connector. 6. Ensure that the jackscrews for the cable connector are tightened (use a screwdriver). 7. Replace the cover of the PC observing any additional instructions on the PC manufacturer. Cable Cable length 1 Metre or less : Ribbon cable satisfactory Cable length 1 M to 3M : Commercial screened cable gives the protection required Longer cable or noisy environment : Use fully screened cable with metal backshells e.g. Arcom CAB50CE The following standards have been applied to this product: BS EN50081-1 : 1992 Generic emissions standard, Domestic, commercial, light industry BS EN50082-1 : 1992 Generic immunity standard, Domestic, commercial, light industry BS EN55022 : ITE Emissions, Class B, Limits and methods. Page 11 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Circuit Diagrams Page 12 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Page 13 &21752/ 6<67(06 J223 PCI24 2192-10422-000-000 Page 14 &21752/ 6<67(06