PCI-1753 96-channel Digital I/O Card PCI-1753E 96-channel Extension Card for PCI-1753 User Manual
Copyright This documentation and the software included with this product are copyrighted 2005 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable.
Product Warranty (2 years) Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for two years from the date of purchase. This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech, or which have been subject to misuse, abuse, accident or improper installation.
Technical Support and Assistance Step 1. Visit the Advantech web site at www.advantech.com/support where you can find the latest information about the product. Step 2. Contact your distributor, sales representative, or Advantech's customer service center for technical support if you need additional assistance.
Contents Chapter 1.1 1.2 1.3 1.4 1.5 1.6 1 General Information ....................................... 2 Introduction ................................................................................. Features........................................................................................ Applications................................................................................. Specifications............................................................................... Pin Assignments ..........
Figure 3.2: Interrupt sources .................................................. 23 3.3.4 Interrupt Source Control ......................................................... 24 Table 3.3: Interrupt mode bit values ..................................... 24 3.3.5 Interrupt Triggering Edge Control ......................................... 25 Table 3.4: Triggering edge control bit values ....................... 25 3.3.6 Interrupt Flag Bit ....................................................................
1 CHAPTER 2 General Information
Chapter 1 General Information 1.1 Introduction The PCI-1753 is a 96-bit digital I/O card for the PCI bus, which can be extended to 192 digital I/O channels by connecting with its extension board, PCI-1753E. The card emulates mode 0 of the 8255 PPI chip, but the buffered circuits offer a higher driving capability than the 8255. The 96 I/O lines are divided into twelve 8-bit I/O ports: A0, B0, C0, A1, B1, C1, A2, B2, C2, A3, B3 and C3. Users can configure each port as input or output via software.
Interrupt Functions Ensure Faster System Response Two lines of each port C (i.e., ports C0, C1, C2 and C3) are connected to an interrupt circuit. The “Interrupt Control Register” of the PCI-1753/ PCI-1753E controls how these signals generate an interrupt. More than one interrupt request signals can be generated at the same time, and then the software can process these request signals by ISR. The multiple interrupt sources provide the card with more capability and flexibility.
1.2 Features • 96/192 TTL digital I/O lines • Emulates mode 0 of 8255 PPI • Buffered circuits for higher driving capacity than 8255 • Multiple-source interrupt handling • Output status read-back • “Pattern match” and “Change of state” interrupt functions for critical I/ O monitoring • Keeps I/O setting and digital output values when hot system reset • Supports dry contact and wet contact • High-density 100-pin SCSI connector • BoardID switch 1.
1.4 Specifications I/O Channels 96 digital I/O lines (PCI-1753 only) 192 digital I/O lines (using PCI-1753E extension) Programming Mode 8255 PPI mode 0 Input Signal Logic level 0: 0.8 V max. Logic level 1: 2.0 V min. Output Signal Logic level 0: 0.44 V max. @ 24 mA (sink) Logic level 1: 3.76 V min. @ 24 mA (source) Transfer Rate 1.6 Mbytes/sec (tested under DOS, K6 300MHz CPU) Power Consumption +5 V @ 400 mA (typical) +5 V @ 2.7 A (max.
1.
1.6 Block Diagram Figure 1.
PCI-1753/1753E User Manual 8
CHAPTER 2 2 Installation
Chapter 2 Installation 2.1 Initial Inspection Before starting to install the PCI-1753/1753E, make sure there is no visible damage on the card. We carefully inspected the card both mechanically and electrically before shipment. It should be free of marks and in perfect order on receipt. As you unpack the PCI-1753/1753E, check it for signs of shipping damage (damaged box, scratches, dents, etc.).
2.3 Jumper Settings We designed the PCI-1753/1753E with ease-of-use in mind. It is a "plug and play" card, i.e. the system BIOS assigns the system resources such as base address and interrupt automatically. There are only two functions with 17 jumpers on the PCI-1753, and one function with 16 jumpers on the PCI-1753E. The following section describes how to configure the card. You may want to refer to the figure below for help in identifying card components. Figure 2.
Using Jumpers to Set Ports as Output Ports By shorting the two pins of the jumpers JPA0, JPB0, JPC0L, JPC0H, JPA1, JPB1, JPC1L, JPC1H, JPA2, JPB2, JPC2L, JPC2H, JPA3, JPB3, JPC3L or JPC3H, a user sets the corresponding ports to be output ports. (JPA0 means jumper for port A0, JPB0 means jumper for port B0, etc.) Shorting the two pins of a port's jumper disables the port from being software configurable as an input port.
Table 2.
2.4 Setting the BoardID Switch (SW1) You can use the BoardID command (0x20) to get the board’s unique identifier. PCI-1753 has a built-in BoardID DIP switch (SW1), which is used to define each card's unique identifier. You can determine the identifier in the register as shown in Table 2.2. When there are multiple cards on the same chassis, this BoardID setting is useful for identifying each card's device number. We set the PCI-1753’s BoardID switch to 0 at the factory.
2.5 Installation Instructions The PCI-1753/1753E can be installed in any PCI slot in the computer. However, refer to the computer user's manual to avoid any mistakes and danger before you follow the installation procedure below: 1. Turn off your computer and any accessories connected to the computer. Warning TURN OFF your computer power supply whenever you install or remove any card, or connect and disconnect cables. 2. Disconnect the power cord and any other cables from the back of the computer. 3.
6. Secure the PCI-1753/1753E card by screwing the mounting bracket to the back panel of computer. 7. Attach any accessories (100-pin cable, wiring terminal board, etc.) to the card. 8. Replace the cover of your computer. Connect the cables you removed in step 2. 9. Turn the computer power on.
CHAPTER 3 2 Operation
Chapter 3 Operation 3.1 Overview This chapter describes the operating characteristics of the PCI-1753/ 1753E. The driver software bundled with this card allows a user to access all of the card's functions without register level programming. Please see the User's Manual included on the driver CD-ROM for more information. For users who prefer to implement their own bit-level programming to drive the card's functions, information useful for making such a program is included in this chapter. 3.
3.2.3 Input/Output Control A control word can be written to a port's configuration register (Base+3, 7, 11 and 15 respectively for ports 0, 1, 2 and 3 on the PCI-1753, and Base+35, 39, 43 and 47 respectively for ports 0, 1, 2 and 3 on the PCI-1753E) to set the port as an input or an output port, unless the ports are set as output ports via jumpers (refer to Section 2.3, Jumper Settings). Table 3-1 shows the format of a control word. Table 3.
If the jumper JP1 is enabled and the initial configuration is caused by a reset, all ports will return to the states they had just prior to the reset. The reset must be a "hot" reset (power not disconnected) for enabled JP1 to return ports to their prior values. Otherwise, the card behaves as though JP1 were not enabled. Please refer to "Jumper settings" in Chapter 2 for more information. 3.2.
3.3 Interrupt Functions 3.3.1 Introduction Two lines of each I/O port C, plus ports A0 and B0, are connected to the interrupt circuitry. The “Interrupt Control Register” of the PCI-1753/ 1753E controls how the combination of these signals generates an interrupt. Six interrupt request signals can be generated at the same time, and then the software can service these six request signals by IRQ. The multiple interrupt sources provide the card with more capability and flexibility. 3.3.
Table 3.
M01:M00 PC00 PC04 0 0 0 1 1 0 1 1 M11:M10 0 0 PC10 PC14 0 1 1 0 1 1 VCC M21:M20 0 0 PC20 PC24 0 1 1 0 1 1 M31:M30 PC30 PC34 0 0 0 1 1 0 1 1 D Q CLK INT #A M1 0 Pattern Match (PA0) 1 M2 0 Change of State (PB0) 1 Figure 3.
3.3.4 Interrupt Source Control The “mode bits” in the interrupt control registers determine the allowable sources of signals generating an interrupt. For the PCI-1753, bit 4 and bit 5 of Base+16 determines the interrupt source of port C0, bit 4 and bit 5 of Base+17 determines the interrupt source for port C1, and so forth. Because of sharing the same PCI controller with the PCI-1753, the PCI-1753E’s interrupt sources are also controlled by the PCI-1753’s interrupt control register.
3.3.5 Interrupt Triggering Edge Control The interrupt can be triggered by a rising edge or a falling edge of the interrupt signal, selectable by the value written in the “triggering edge control” bit in the interrupt control register, as shown in following table. Table 3.4: Triggering edge control bit values En (n = 0 ~ 3) Triggering edge of interrupt signal 1 Rising edge trigger 0 Falling edge trigger 3.3.6 Interrupt Flag Bit The “interrupt flag” bit is a flag indicating the status of an interrupt.
3.3.7 Pattern Match Interrupt Function The PCI-1753/1753E provides the pattern match interrupt function for port A0. It monitors the status of the enabled input channels, which are chosen in Base+24 (or Base+56 for the PCI-1753E), and compares the received state values with the pre-set state values written in Base+20 (Base+52 for the PCI-1753E). When the actual state values match the pre-set state values, the PCI-1753 will deliver an interrupt signal to the system.
d) When the input signals at channels PA01, PA02 and PA07 are high and PA06 is low, an interrupt signal will be generated. This result is not affected by the states of channels PA00, PA03, PA04 and PA05. 3.3.8 Change of State Interrupt Function The PCI-1753/1753E also provides the change of state interrupt function for port B0. It monitors the status of the enabled channels of port B0, which are chosen in Base+28 (or Base+60 for the PCI-1753E).
PCI-1753/1753E User Manual 28
A APPENDIX 2 Register Format of PCI-1753/1753E
Appendix A Register Format of PCI-1753/1753E A.
A.
PCI-1753/1753E User’s Manual 32
B APPENDIX 2 Pin Assignments of Cable PCL-10268
Appendix B Pin Assignments of Cable PCL-10268 The PCL-10268 is a 100-pin to two 68-pin SCSI cable designed for the PCI-1753/1753E. It divides signals from one 100-pin SCSI connector to two 68-pin SCSI connectors. For easy signal wiring, you can use the PCL-10268 to connect the PCI-1753 directly to two ADAM-3968 wiring modules. If you are considering the use of 50-pin daughter boards for signal conditioning, you can connect the 68-pin SCSI connector of the PCL-10268 to a ADAM-3968/50 adapter module.
CON1 CON0 PIN 01 PIN 02 PIN 03 PIN 04 PIN 05 PIN 06 PIN 07 PIN 08 PIN 09 PIN 10 PIN 11 PIN 12 PIN 13 PIN 14 PIN 15 PIN 16 PIN 17 PIN 18 PIN 19 PIN 20 PIN 21 PIN 22 PIN 23 PIN 24 PIN 25 PIN 26 PIN 27 PIN 28 PIN 29 PIN 30 PIN 31 PIN 32 PIN 33 PIN 34 PIN 35 PIN 36 PIN 37 PIN 38 PIN 39 PIN 40 PIN 41 PIN 42 PIN 43 PIN 44 PIN 45 PIN 46 PIN 47 PIN 48 PIN 49 PIN 50 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
PCI-1753/1753E User’s Manual 36