PCI-1757UP 24-channel Digital Input/Output Low Profile Universal PCI Card User Manual
Copyright The documentation and the software included with this product are copyrighted 2004 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 General Information ....................................... 2 1.1 1.2 1.3 1.4 Chapter Introduction ....................................................................... 2 Numbering Convention ..................................................... 2 Features ............................................................................. 3 Specifications .................................................................... 4 2 Installation .................................................
PCI-1757UP User Manual vi
CHAPTER 1 2 General Information This chapter introduces PCI-1757UP and provides detailed specifications.
Chapter 1 General Information 1.1 Introduction PCI-1757UP is a 24-bit DI/O card with PCI bus. It provides you with 24 bits of parallel digital input/output, and emulates mode 0 of the 8255 PPI chip, but the buffered circuits offer a higher driving capability than the 8255. The card emulates one 8255 PPI chips to provide 24 DI/O bits. The I/O bits are divided into three 8-bit I/O ports: A0, B0 and C0. You can configure each port as either input or output via software.
1.3 Features • Low profile PCI card • Universal PCI interface, acceptst 3.
1.4 Specifications Digital Input • Logic High Voltage: 2.0 V min. • Logic Low Voltage: 0.80 V max. • Maximum Input Leakage Current: 2µA Digital Output • Logic High Voltage: 3.7 V min. @ 24mA (source) • Logic Low Voltage: 0.5 V max.
5 Chapter 1
PCI-1757UP User Manual 6
CHAPTER 2 2 Installation This chapter provides information on installing your card and making jumper/switch configurations.
Chapter 2 Installation 2.1 Initial Inspection Before starting to install PCI-1757UP, 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 PCI-1757UP, check for signs of shipping damage (damaged box, scratches, dents, etc.) If it is damaged or fails to meet its specifications, notify our service department or your local sales representative immediately.
Figure 2.
2.3.1 Setting the BoardID Switch (SW1) This section describes how to set the BoardID switch of PCI-1757UP. The figure and table below show the switch locations and how they give a unique identifier to the card. Table 2.1: BoardID Setting SW1 Position1 Position2 Position3 Position4 Board ID ID3 ID2 ID1 ID0 0* ON ON ON ON 1 ON ON ON OFF 2 ON ON OFF ON : : : : : 14 OFF OFF OFF ON 15 OFF OFF OFF OFF *Default Setting is 0. 2.3.
PCI-1757UP emulates one 8255 programmable peripheral interface (PPI) chip in mode 0, but with higher driving capability than a standard 8255 chip. Each of the 8255 chips has 24 programmable I/O pins that are divided into two 8-bit ports and two 4-bit ports, designated PA, PB PCL and PCH. Each port can be programmed as an input or an output port. You can set the corresponding ports to be configurable as input or output ports by switch SW2 or software. When “IO CF.
2.3.4 Select PC7 or 5V on Pin24 (JP2) 5 V output can be output by setting JP2.
2.
2.5 Installation Instructions PCI-1757UP can be installed in any PCI slot of 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 disconnect cables. 2. Disconnect the power cord and any other cables from the back of the computer. 3.
CHAPTER 3 2 Operation This chapter shows how to operate PCI-1757UP.
Chapter 3 Operation 3.1 Overview This chapter describes how to operate PCI-1757UP. The driver software provided allows a user to access all of the card's functions without register level programming. Please see the User's Manual for the driver bundled with this card for more information. For those 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.2 Digital I/O Ports 3.2.
3.2.3 Input/Output Control A control word can be written to a port's configuration register (Base+3) to set the port as an input or an output port, unless the ports are set via the switch. Table 3-1 shows the format of a control word. Table 3.
3.2.4 Initial Configuration The initial configuration of each port depends on the software or switch SW2 setting of each port as input or output port, and on the setting of the jumper JP1 for the hot reset type. 3.3 Interrupt Function 3.3.1 Interrupt Function of the D I/O Signals Two I/O pins (PC0 and PC1) can be used to generate hardware interrupts. The interrupt control register can be programmed (Base + 32) to select the interrupt sources.
3.3.2 Interrupt Source Control The "mode bits" in the interrupt control register determine the allowable sources of signals generating an interrupt. Bit 0 and bit 1 determine the interrupt source, as indicated in Figure 3-1. Table 3-3 shows the relationship between an interrupt source and the values in the mode bits. Figure 3.1: Interrupt Sources Table 3.3: Interrupt Mode Bit Values M1 M0 Description 0 0 Disable interrupt 0 1 Source = PC00 1 0 Source = PC00 & PC04 1 1 No used 3.3.
3.3.4 Interrupt Flag Bit The "interrupt flag" bit is a flag indicating the status of an interrupt. It is a readable and writable bit. Read the bit value to find the status of the interrupt, and write "1" to this bit to clear the interrupt. This bit must be cleared in the ISR to service the next incoming interrupt. Table 3.5: Interrupt Flag Bit Values F Interrupt status Read Write 1 Interrupt occurred 0 No interrupt 1 Clear interrupt 0 Don't care 3.
A APPENDIX 2 Register Format
Appendix A Register Format Base Address + n (Decimal) Function Read Write 0 Port A Port A 1 Port B Port B 2 Port C Port C 3 Configuration Register Configuration Register : : : 32 Interrupt Status Register Interrupt Control Register 36 BoardID N/A PCI-1757UP User Manual 22