User Manual PCI-1750 32-ch Isolated Digital I/O Card
Copyright The documentation and the software included with this product are copyrighted 2011 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.
Declaration of Conformity CE This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information. Technical Support and Assistance 1. 2. Visit the Advantech web site at www.advantech.com/support where you can find the latest information about the product.
Safety Instructions 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. Read these safety instructions carefully. Keep this User Manual for later reference. Disconnect this equipment from any AC outlet before cleaning. Use a damp cloth. Do not use liquid or spray detergents for cleaning. For plug-in equipment, the power outlet socket must be located near the equipment and must be easily accessible. Keep this equipment away from humidity.
Safety Precaution - Static Electricity DISCLAIMER: This set of instructions is given according to IEC 704-1. Advantech disclaims all responsibility for the accuracy of any statements contained herein.Safety Precaution - Static Electricity Follow these simple precautions to protect yourself from harm and the products from damage. To avoid electrical shock, always disconnect the power from your PC chassis before you work on it. Don't touch any components on the CPU card or other cards while the PC is on.
PCI-1750 User Manual vi
Contents Chapter Chapter 1 Overview...............................................1 1.1 1.2 1.3 1.4 Introduction ............................................................................................... 2 Features .................................................................................................... 2 Applications............................................................................................... 2 Specifications ...........................................................
A.3 A.2.2 MODE 1 – Programmable one-shot ........................................... 22 A.2.3 MODE 2 – Rate generator .......................................................... 22 A.2.4 MODE 3 – Square wave generator............................................. 22 A.2.5 MODE 4 – software triggered strobe .......................................... 23 A.2.6 MODE 5 – Hardware triggered strobe ........................................ 23 Counter operations .......................................................
Chapter 1 Overview 1
1.1 Introduction The PCI-1750 offers 16 isolated digital input channels, 16 isolated digital output channels, one isolated counter and one timer with PCI bus interface. With isolation protection of 2500 VD C the PCI-1750 is ideal for industrial applications where highvoltage protection is required. The card's 16 bits are divided into two 8-bit I/O ports. This makes the PCI-1750 very easy to program.
Chapter 1 One 16-bit Optically-Isolated Counter: Shares Pin with isolated input 15. Throughput: 1 MHz Max. Isolation voltage: 2,500 VDC One 32-bit Timer. 10 MHz internal clock source 3 PCI-1750 User Manual Overview Interrupt Source Isolated Input 0, 4, 8, 12, Counter and Timer. Dimensions: 175 mm x 100 mm (6.9" x 3.9") Connectors: One DB-37 female connector One 2-pin terminal block for extended ground Power consumption: 5 V @ 850 mA (Typical) 5 V @ 1.0 A (Max.
PCI-1750 User Manual 4
Chapter 2 Installation 2
2.1 Initial inspection Before starting to install the PCI-1750, 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-1750, check it for signs of shipping damage (damaged box, scratches, dents, etc.) If it is damaged or fails to meet specification, notify our service department or your local sales representative immediately.
Figure 2.1 shows the names and locations of connectors on the board. The PCI-1750 is a plug and play device. The PCI BIOS assigns the system resources automatically at system start-up. All functions can be set by software. One jumper and one switch are used on this card. . Chapter 2 2.3 Location of Connectors Installation Figure 2.
2.4 PCI-1750 Block Diagram Figure 2.
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 IDI 1 IDI 3 IDI 5 IDI 7 IDI 9 IDI 11 IDI 13 IDI 15/Counter 2 IGND IGND IDO 1 IDO 3 IDO 5 IDO 7 IDO 9 IDO 11 IDO 13 IDO 15 Description of pin use: IDI 0 ~ IDI 15: Isolated digital input pins IDO 0 ~ IDO 15: Isolated digital output pins IGND: Isolated ground COM1: Common pin for connecting inductive loads of isolated output channels IDO 0 ~ IDO 7 COM2: Common pin for connecting inductive loads of isolated
2.6 Installation Instructions The PCI-1750 can be installed in any PCI slot in the computer.How ever, 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. 3. 4.
Chapter 3 Operation 3
3.1 Operation Maintaining signal connections is one of the most important factors in ensuring that your application system is sending and receiving data correctly. A good signal connection can avoid unnecessary and costly damage to your PC and other hardware devices. This chapter provides useful information about how to connect input and output signals to the PCI-1750 via the I/O connector. 3.2 Isolated Digital I/O Ports 3.2.
Each of 16 isolated digital input channels accepts dry contacts or 5 ~ 50 VDC voltage inputs. All sixteen input channels share 3 ground pins and one extended ground terminal block (CN5). Figure 3.1 shows how to connect an external input source to one of the card's isolated input channels. Warning! Chapter 3 3.2.4 Isolated Inputs Be careful when wiring digital input cables. Never apply a negative voltage to an isolated input pin, as this may damage the PCI-1750. Figure 3.
3.2.5 Isolated Outputs Each of 16 isolated digital output channels comes equipped with a Darlington transistor. Every eight output channels share common collectors and integral suppression diodes for inductive loads. Channels 0 ~ 7 use COM1, and channels 8 ~ 15 use COM2 as a common pin. Note! If the external voltage source (5~40 V) is connected to each isolated output channel (IDO0 ~ IDO15) and its isolated digital output turns on (200 mA max.
3.3.1 Introduction Figure 3.3 Block diagram of timer/counter 3.3.2 Timer/Counter Frequency and Interrupt The input clock frequency of the counter/timers is 10 MHz. The output of both Timer 1 and Counter 2 can generate interrupts to the system (refer to Section 3.3). The maximum and minimum timer interrupt frequency is (10 MHz)/(2x2)=(2.5 MHz) and (10 MHz)/(65535*65535)=0.002328 Hz, respectively. The gates of the counter/timers are internally pulled to +5 V, keeping the gate control always enabled.
3.4 Interrupt Function 3.4.1 Introduction Four input channels (IDI 0, IDI 4, IDI 8 and IDI 12) and the output of Timer 1 and Counter 2 are connected to the interrupt circuitry. The “Interrupt Control Register” of the PCI-1750 controls how the combination of the six signals generates an interrupt. Two interrupt request signals, designated “interrupt group 0" and “interrupt group 1", can be generated at the same time, and then the software can service these two request signals by ISR.
The “mode bits” written into the interrupt control register determine the allowable sources of signals generating an interrupt. Bit 0 and bit 1 determine the interrupt source for interrupt group 0, and bit 4 and bit 5 determine the interrupt source for interrupt group 1, as indicated in Figure 3.4. Table 3.2 shows the relationship between an interrupt source and the values in the mode bits. Chapter 3 3.4.4 Interrupt Source Control Operation Figure 3.4 Interrupt source control Table 3.
3.4.6 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, 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.
Appendix A Function of 8254 Counter Chip A
A.1 The Intel 8254 The PCI-1750 uses one Intel 8254 compatible programmable interval timer/counter chip. The popular 8254 offers three independent 16-bit down counters. Each counter has a clock input, control gate and an output. You can program each counter for maximum count values from 2 to 65535. The 8254 has a maximum input clock frequency of 10 MHz. The PCI-1750 provides 10 MHz input frequencies to the counter chip from an on-board crystal oscillator.
M2 M1 M0 Mode 0 0 0 0 Programmable one shot 0 0 1 1 Programmable one shot X 1 0 2 Rate generator X 1 1 3 Square wave generator 1 0 0 4 Software triggered strobe 1 0 1 5 Hardware triggered strobe BCD Select Binary or BCD Counting BCD Type 0 Binary counting 16-bits 1 Binary coded decimal (BCD) counting If you set the module for binary counting, the count can be any number from 0 up to 65535.
A.2 Counter operating modes A.2.1 MODE 0 – Stop on terminal count The output will be initially low after you set this mode of operation. After you load the count into the selected count register, the output will remain low and the counter will count. When the counter reaches the terminal count, its output will go high and remain high until you reload it with the mode or a new count value. The counter continues to decrement after it reaches the terminal count.
After the mode is set, the output will be high. When the count is loaded, the counter will begin counting. On terminal count, the output will go low for one input clock period then go high again. If you reload the count register during counting, the new count will be loaded on the next CLK pulse. The count will be inhibited while the GATE input is low. A.2.
PCI-1750 User Manual 24
Appendix B B Register Format of PCI-1750
B.
Appendix B Register Format of PCI-1750 PCI-1750 User Manual 27
www.advantech.com Please verify specifications before quoting. This guide is intended for reference purposes only. All product specifications are subject to change without notice. No part of this publication may be reproduced in any form or by any means, electronic, photocopying, recording or otherwise, without prior written permission of the publisher. All brand and product names are trademarks or registered trademarks of their respective companies. © Advantech Co., Ltd.