Advertisement

Quick Links

Copyright
The documentation and the software included with this product are copyrighted 2003 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. However,
Advantech Co., Ltd. assumes no responsibility for its use, nor for any infringements of
the rights of third parties, which may result from its use.
Acknowledgments
PC-LabCard is a trademark of Advantech Co., Ltd. IBM and PC are trademarks of
International Business Machines Corporation. MS-DOS, Windows, Microsoft Visual
C++ and Visual BASIC are trademarks of Microsoft Corporation. Intel and Pentium are
trademarks of Intel Corporation. Delphi and C++ Builder are trademarks of Borland
Corporation.
CE notification
The PCI-1755, developed by ADVANTECH CO., LTD., 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.
On-line Technical Support
For technical support and service, please visit our support website at:
http://www.advantech.com/support
Part No. 2003175500
Printed in Taiwan
i
1st Edition
Jul 2003

Advertisement

Table of Contents
loading

Summary of Contents for Advantech PCI-1755

  • Page 1 The documentation and the software included with this product are copyrighted 2003 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.
  • Page 2 (This page is left blank for hard printing.)
  • Page 3: Table Of Contents

    Contents 1. INTRODUCTION..........................1 1.1 F ............................1 EATURES 1.2 A ..........................3 PPLICATIONS 1.3 I ........................3 NSTALLATION UIDE 1.4 S ........................5 OFTWARE VERVIEW 1.5 D ................6 EVICE RIVERS ROGRAMMING OADMAP 1.6 A ..........................8 CCESSORIES 2. INSTALLATION..........................11 2.1 U ...........................11 NPACKING 2.2 D ........................13 RIVER NSTALLATION...
  • Page 4 (This page is left blank for hard printing.)
  • Page 5: Introduction

    Introduction...
  • Page 6 (This page is left blank for hard printing.)
  • Page 7: Features

    PCI-Bus Mastering Data Transfer The PCI-1755 supports PCI-Bus mastering DMA for high-speed data transfer. By setting aside a block of memory in the PC, the PCI-1755 performs bus-mastering data transfers without CPU intervention, freeing the CPU to perform other more urgent tasks such as data analysis and graphic manipulation.
  • Page 8 Keeping the Output Values after System Reset When the system is hot reset (power is not shut off), the PCI-1755 can either retain the last digital output values, or return to its default configuration, depending on the jumper setting. This practical function eliminates dangers and problems caused by an unexpected system reset.
  • Page 9: Applications

    TTL, DTL and CMOS logic signal sensing Relay and switch monitoring and controlling Indicator LED driving 1.3 Installation Guide Before you install your PCI-1755 card, please make sure you have the following necessary components: PCI-1755 DA&C card PCI-1755 User’s Manual...
  • Page 10 Install Driver from CD-ROM, then power-off PC Install Hardware and power-on PC Use driver utility to configure hardware Use test utility to test hardware Read examples & driver manual Start to write your own application Fig. 1-1 Installation Flow Chart...
  • Page 11: Software Overview

    1.4 Software Overview Advantech offers a rich set of DLL drivers, third-party driver support and application software to help fully utilize the functions of your PCI-1755 card: Device Drivers (on the companion CD-ROM) Advantech ActiveDAQ Advantech GeniDAQ Programming choices for DA&C cards: You may use Advantech application software such as Advantech Device Drivers.
  • Page 12: Device Drivers Programming Roadmap

    C++ Builder For instructions on how to begin programming works in each development tool, Advantech offers a Tutorial Chapter in the Device Drivers Manual for your reference. Please refer to the corresponding sections in this chapter of the Device Drivers Manual to begin your programming efforts. You can also look at the example source code provided for each programming tool, since they can get you very well oriented.
  • Page 13 Function Overview chapter on the Device Drivers Manual. Programming with Device Drivers Function Library Advantech Device Drivers offers a rich function library to be utilized in various application programs. This function library consists of numerous APIs that support many development tools, such as Visual C++, Visual Basic, Delphi and C++ Builder.
  • Page 14: Accessories

    1.6 Accessories Advantech offers a complete set of accessory products to support the PCI-1755 card. These accessories include: Wiring Cable PCL-101100 The PCL-101100 shielded cable is specially designed for PCI-1755 cards to provide high resistance to noise. To achieve better signal quality, the signal wires are twisted in such a way as to form a “twisted-pair cable,”...
  • Page 15: Installation

    Installation...
  • Page 16 (This page is left blank for hard printing.)
  • Page 17: Unpacking

    This chapter gives users a package item checklist, proper instructions about unpacking and step-by-step procedures for both driver and card installation. 2.1 Unpacking After receiving your PCI-1755 package, please inspect its contents first. The package should contain the following items: þ PCI-1755 card þ...
  • Page 18 the exposed metal pins of the connector or the electronic components. Note: Keep the anti-static bag for future use. You might need the original bag to store the card if you have to remove the card from the PC or transport it elsewhere.
  • Page 19: Driver Installation

    2.2 Driver Installation We recommend you to install the driver before you install the PCI-1755 card into your system, since this will guarantee a smooth installation process. The Advantech Device Drivers setup program for the PCI-1755 card is included on the companion CD-ROM that is shipped with your DA&C card package.
  • Page 20 Fig. 2-2 Different options for Driver Setup For further information on driver-related issues, an online version of Device Drivers Manual is available by accessing: Start /Programs /Advantech Automation /Device Manager /Device Driver’ s Manual...
  • Page 21: Hardware Installation

    Step 4: Touch the metal part on the surface of your computer to neutralize the static electricity that might be on your body. Step 5: Insert the PCI-1755 card into a PCI slot. Hold the card only by its edges and carefully align it with the slot. Insert the card firmly into place. Use of excessive force must be avoided, otherwise the card might be damaged.
  • Page 22 1. Access the Device Manager through: Start /Control Panel /System /Device Manage r. 2. The device name of the PCI-1755 should be listed on the Device Manager tab on the System Property Page. Fig. 2-3 The device name listed in the Device Manager Note: .
  • Page 23 After your card is properly installed on your system, you can now configure your device using the Device Manager program that has itself already been installed on your system during driver setup. A complete device installation procedure should include board selection and device setup.
  • Page 24: Device Setup & Configuration

    The Device Manager program is a utility that allows you to setup, configure and test your device, and later store your settings on the system registry. These settings will be used when you call the APIs of Advantech Device Drivers. Setting Up and Configuring the Device...
  • Page 25 Fig. 2-5 The Device Manager dialog box Note: As we have noted, the device name “000:<PCI-1755 BoardID=1 I/O=e400H>” begins with a device number “000”, which is specifically assigned to each card. The device number is passed to the driver to specify which device you wish to control.
  • Page 26 After your card is properly installed and configured, you can click the Test… button to test your hardware. For more detailed information, please refer to Chapter 2 of the Device Drivers Manual. Y ou can also find the rich examples on the CD- ROM to speed up your programming.
  • Page 27: Signal Connections

    Signal Connections...
  • Page 28 (This page is left blank for hard printing.)
  • Page 29: Overview

    PC and other hardware devices. This chapter provides useful information about how to connect input and output signals to the PCI-1755 via the I/O connector. 3.2 Switch and Jumper Settings The PCI-1755 card has one function switch and five jumper settings.
  • Page 30 Table 1-1: Summary of jumper settings Names of Jumpers Function Description Keep last status after hot reset Default configuration Board ID setting (SW1) Board ID You can configure the Auxiliary DIO0~DIO7 (Pin23~Pin29) randomly by SW2. For instance, if you configure SW2 as (A3)H, it means DIO2, DIO3, DIO4, DIO6 were configured as digital output and DIO0, DIO1, DIO5, DIO7 were configured as digital input.
  • Page 31: Pin Assignment

    3.3 Signal Connections Pin Assignment Fig. 3-2 shows the pin assignments for the 100-pin I/O connector on the PCI-1755. PA00 PA01 PA02 PA03 PA04 PA05 PA06 PA07 PB00 PB01 PB02 PB03 PB04 PB05 PB06 PB07 DI_ACK DI_REQ EXT_CLKIN DI_STR DI_STP...
  • Page 32 I/O Connector Signal Description Table 3-2 I/O connector signal descriptions Signal Name Reference Direction Description PA00~PA07 Port A bi-directional DIO channels PB00~PB07 Port B bi-directional DIO channels PC00~PC07 Port C bi-directional DIO channels PD00~PD07 Port D bi-directional DIO channels DI_ACK Output Acknowledge line for digital input channels DI_REQ...
  • Page 33 Appendixes...
  • Page 34 (This page is left blank for hard printing.)
  • Page 35: Appendix A. Specifications

    Appendix A. Specifications Digital Input /Output (Part 1): Channels 32 TTL compatible Number of ports Port A, Port B, Port C and Port D (8 bits/port) 32DI(PA~PD) (default); 32DO(PA~PD); 16DI(PA~PB) & 16DO (PC~PD); 8DI(PA) & I/O Configuration 8DO(PC) (Programmable) On-board FIFO 16KB for DI &...
  • Page 36 Digital Input /Output (Part 2): DI trigger signal DI_STR, DI_STP DO trigger signal DO_STR, DO_STP 0.8 V max. High 2.0 V min. Trigger Type Rising or falling edge, or digital pattern (for DI only) Trigger Capability Pulse width for 10 ns min. edge triggers Pattern trigger Detect pattern match on user-selected data lines...
  • Page 37 Pacer: Channels Timer#0, Timer#1 and Timer#2 Timer#0 Timer pacer for digital input Timer#1 Timer pacer for digital output Timer#2 Interrupt source Resolution 16-bit Base Clock 10MHz Cable: I/O Connector Type 100/100-pin SCSI-II male/male Length Twisted-pair cable. Each signal conductor is twisted with a ground conductor Type that establishes a low-inductance uniform transmission line Using the Schottky-Diode Termination Scheme to prevent from overshooting,...
  • Page 38 (This page is left blank for hard printing.)
  • Page 39: Appendix B. Block Diagram

    Appendix B. Block Diagram SCSI II 100pin Connector Active Terminator D16-D23 Port A 16K FIFO 8 I/O D0-D7 Active Terminator D24-D31 Port B 16K FIFO 8 I/O D8-D15 Active Terminator D0-D7 Port C 16K FIFO 8 I/O PCI 9056 D16-D23 Active Terminator D8-D15...
  • Page 40 (This page is left blank for hard printing.)
  • Page 41: Appendix C. Register Structure And Format

    For example, BASE+0 is the card's base address and BASE+6 is the base address plus six bytes. Table C-1 shows the function of each register of the PCI-1755 or driver and its address relative to the card's base address.
  • Page 42 Table C -1 PCI-1755 register format (Part 1) Base PCI-1755 Register Format Address + HEX DI Control Register STP1 STP0 STR1 STR0 DI Status Register STP1 STP0 STR1 STR0 DI Control Register DI Status Register DO control register STP1 STP0 STR1 STR0...
  • Page 43 Table C-1 PCI-1755 register format (Part 2) Base PCI-1755 Register Format Address + HEX DO FIFO direct DI FIFO direct DO FIFO direct DI FIFO direct DI/O CLK STR and STP Board ID BD3 BD2 BD1 DI/O CLK STR and STP...
  • Page 44 Table C -1 PCI-1755 register format (Part 3) Base PCI-1755 Register Format Address + HEX 8254 Counter 0 Register 8254 Counter 0 Register 8254 Counter 0 Register 8254 Counter 0 Register 8254 Counter 1 Register 8254 Counter 1 Register 8254 Counter 1 Register...
  • Page 45 Base PCI-1755 Register Format Address + HEX Auxiliary DO DO7 DO6 DO5 DO4 DO3 DO2 DO1 Auxiliary DI/O DIP7 DIP6 DIP5 DIP4 DIP3 DIP2 DIP1 DIP0 DIO7 DIO6 DIO5 DIO4 DIO3 DIO2 DIO1 DIO0 Auxiliary DO Auxiliary DI/O DO value preset...
  • Page 46 C.3 DI Control Register--- BASE+0 Table C-2 PCI-1755 Register for DI Control Register Base Addr. DI Control Register 00H W STP1 STP0 STR1 STR0 DI Control Register 02H W 1. M1:M0 = Digital input mode Disable Normal mode Handshaking mode 2.
  • Page 47 7. REQRF = DI_REQ triggering control High level active Low level active 8. ACKRF = DI_ACK triggering control High level active Low level active 9. CLKRF = Sampling clock triggering control Rising edge trigger Falling edge trigger 10.HS0 = Handshaking mode Burst Handshaking 8255 Emulation...
  • Page 48 C.4 DO Control Register--- BASE+4H Table C-3 PCI-1755 Register for DO Control Register Base Addr. DO control register 04H W STP1 STP0 STR1 STR0 DO control register 06H W 1. M1:M0 = Digital output mode Disable Normal mode Handshaking mode 2.
  • Page 49 Low level active 8. ACKRF = DO_ACK triggering control High level active Low level active 9. CLKRF = Sampling clock triggering control Rising edge trigger Falling edge trigger 10.HS0 = Handshaking mode Burst Handshaking 8255 Emulation...
  • Page 50 C.5 DO Pattern Match Register--- BASE+8H Table C-4 PCI-1755 Register for DO Pattern Match Register Base Addr. Pattern match register 08H W Pattern match register 0AH W C22 C21 C31:C0 = Compare data...
  • Page 51 C.6 Interrupt Control Register--- BASE+0CH Table C-5 PCI-1755 Register for Interrupt Control Base Addr. Interrupt control register 0CH W Interrupt control register 0EH W DI_S 1. DIn = Interrupt by digital input enable 1. DInRF = DI triggering control Rising edge trigger Falling edge trigger 3.
  • Page 52 C.7 DO FIFO Direct --- BASE+10H Table C-6 PCI-1755 Register for DO FIFO Direct Base Addr. DO FIFO direct 10H W DO FIFO direct 12H W D31:D0 = DO FIFO direct data...
  • Page 53 C.8 DI/O CLK STR and STP --- BASE+ 14H Table C-7 PCI-1755 Register for DI/O CLK STR and STP Base Addr. DI/O CLK STR and STP 14H W DI/O CLK STR and STP 16H W DW1 DW0 TERM 1. DI_CLK = DI CLK command...
  • Page 54 C.9 Clear Interrupt --- BASE+18H Table C-8 PCI-1755 Register for Clear Interrupt Base Addr. Clear Interrupt 18H W Write this address clear interrupt Clear Interrupt 0AH W Write this address clear interrupt Write this address clear interrupt...
  • Page 55 C.10 Clear FIFO --- BASE+1C H Table C-9 PCI-1755 Register for Clear FIFO Base Addr. Clear FIFO 1CH W Clear FIFO 1EH W 1. DI = Clear DI FIFO command 0 N/A 1 Clear DI FIFO 2. DO = Clear DO FIFO command 1 Clear DO FIFO 3.
  • Page 56 C.11 Auxiliary DO --- BASE+30 H Table C-10 PCI-1755 Register for Auxiliary DO Base Addr. Auxiliary DO 30H W DO7 DO6 DO5 DO4 DO3 DO2 DO1 Auxiliary DO 32H W 1. DOn = Digital output data (n = 0 to 7)
  • Page 57 C.12 DO Value Preset --- BASE+34 H Table C-11 PCI-1755 Register for DO Value Preset Base Addr. DO value preset 34H W DO value preset 36H W D22 D21 1. D31:D0 = DO port value preset...
  • Page 58 C.13 DO FIFO Out--- BASE+ 38 H Table C-12 PCI-1755 Register for DO FIFO Out Base Addr. DO FIFO Out 38H W Write this address DO FIFO out to DO port DO FIFO Out 3AH W Write this address DO FIFO out to DO port...
  • Page 59 C.14 DI Status Register--- BASE+0 H Table C-13 PCI-1755 Register for DI Status Base Addr. DI Status Register 00H R STP1 STP0 STR1 STR0 DI Status Register 02H R 1. M1:M0 = Digital input mode Disable Normal mode Handshaking mode 2.
  • Page 60 7. REQRF = DI_REQ triggering control High level active Low level active 8. ACKRF = DI_ACK triggering control High level active Low level active 9.CLKRF = Sampling clock triggering control Rising edge trigger Falling edge trigger 10.HS0 = Handshaking mode Burst Handshaking 8255 Emulation 11.FE = FIFO empty...
  • Page 61 C.15 DO Status Register--- BASE+4 H Table C-14 PCI-1755 Register for DO Status Base Addr. DO status register 04H R STP1 STP0 STR1 STR0 DO status register 06H R 1. M1:M0 = Digital output mode Disable Normal mode Handshaking mode 2.
  • Page 62 Low level active 8. ACKRF = DO_ACK triggering control High level active Low level active 9. CLKRF = Sampling clock triggering control Rising edge trigger Falling edge trigger 10.HS0 = Handshaking mode Burst Handshaking 8255 Emulation 11.FE = FIFO empty No occurred Occurred 12.FH = FIFO half full...
  • Page 63 C.16 Pattern Match Register--- BASE+8 H Table C-15 PCI-1755 Register for Pattern Match Base Addr. Pattern match register 08H R Pattern match register 0AH R 1. C31:C0 = Compare data...
  • Page 64 C.17 Interrupt Status Register--- BASE+0C H Table C-16 PCI-1755 Register for Interrupt Status Base Addr. Interrupt status register 0CH R Interrupt status register 0EH R DO_S DI_S CH4 CH3 CH2 CH1 DIn = Interrupt by digital input flag DInRF = DI triggering control...
  • Page 65 C.18 DI FIFO Direct--- BASE+10 H Table C-17 PCI-1755 Register for DI FIFO Direct Base Addr. DI FIFO direct 10H R DI FIFO direct 12H R 1. D31:D0 = DI FIFO direct data...
  • Page 66 C.19 Board ID--- BASE+14 H Table C-18 PCI-1755 Register for Board ID Base Addr. Board ID 14H R BD3 BD2 BD1 Board ID 16H R DW1 DW0 TERM TERM 1.BD3:BD0 = Board ID 2. DI_TERM = DI Terminator OFF/ON Terminator ON Terminator OFF 3.
  • Page 67 C.20 Auxiliary DI/O--- BASE+30 H Table C-19 PCI-1755 Register for Auxiliary DI/O Base Addr. Auxiliary DI/O 30H R DIP7 DIP6 DIP5 DIP4 DIP3 DIP2 DIP1 DIP0 DIO7 DIO6 DIO5 DIO4 DIO3 DIO2 DIO1 DIO0 Auxiliary DI/O 32H R 1. DIOn = Digital input/output data 2.
  • Page 68 C.21 DI Value Preview--- BASE+34 H Table C-20 PCI-1755 Register for DI Value Preview Base Addr. DI Value Preview 34H R DI Value Preview 36H R D22 D21 D31:D0 = DI port value preview...
  • Page 69 C.22 DI FIFO in--- BASE+38 H Table C-21 PCI-1755 Register for DI FIFO in Base Addr. DI FIFO in 38H R Read this address DI port value into DI FIFO DI FIFO in 3AH R Read this address DI port value into DI FIFO...
  • Page 70 (This page is left blank for hard printing.)
  • Page 71: Appendix D. 82C54 Counter Function

    MHz input frequencies to the counter chip from an on-board crystal oscillator. Counter 0 On the PCI-1755 counter 0 can be a 16-bit timer or an event counter, selectable by users. When the clock source is set as an internal source, counter 0 is a 16-bit timer; when set as an external source, then counter 0 is an event counter and the clock source comes from CNT0_CLK.
  • Page 72 D.2 Counter Read/Write and Control Registers The 82C54 programmable interval timer uses four registers at addresses BASE + 20H, BASE + 24H, BASE + 28 H and BASE + 2CH for read, write and control of counter functions. Register functions appear below: Register Function BASE + 20H...
  • Page 73 M2, M1 and M0 Select operation mode Mode Description Stop on terminal count Programmable one shot Rate generator Square wave rate generator Software triggered strobe Hardware triggered strobe BCD Select binary or BCD countering. Type Binary counting 16-bits Binary coded decimal (BCD) counting If you set the module for binary counting, the count can be any number from 0 up to 65535.
  • Page 74 BASE+20/24/28H 82C54 Standard read-back mode Value Current state of counter output Null count is 1 when the last count written to the counter register has been loaded into the counting element...
  • Page 75 D3. Counter Operating Modes M ODE 0 - Stop on Terminal Count The output will initially be 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.
  • Page 76 The gate input, when low, will force the output high. When the gate input goes high, the counter will start from the initial count. You can thus use the gate input to synchronize the counter. With this mode the output will remain high until you load the count register. You can also synchronize the output by software.
  • Page 77 D4. Counter Operations Read/Write Operation Before you write the initial count to each counter, you must first specify the read/write operation type, operating mode and counter type in the control byte and write the control byte to the control register [BASE +2CH ]. Since the control byte register and all three counter read/write registers have separate addresses and each control byte specifies the counter it applies to (by SC1 and SC0), no instructions on the operating sequence are required.
  • Page 78 RW1 and RW0 to 0. This latches the count of the selected counter in a 16-bit hold register. The second way is to perform a latch operation under the read-back command. Set bits SC1 and SC0 to 1 and CNT = 0. The second method has the advantage of operating several counters at the same time.
  • Page 79: Appendix E. Waveform Of Each Mode

    In Normal mode of PCI-1755, you can start to transmit the data from external device to the PCI-1755 by start signal or stop it by stop signal. You can generate start or stop signal by software command, external trigger via DI_STR/DI_STP and pattern DI.
  • Page 80 NOTE: In this instance, start/stop signal are shown as active high. Note that you can’t generate start and stop signal by pattern DI at the same time. There are two types of DI clock source listed below. Internal 30MHz, 15MHz, 10MHz, timer#0 External EXT_CLKIN...
  • Page 81 DO_STR/DO_STP. When PCI-1755 gets the start signal, it will start to send data to external device at next clock (Point A). When PCI-1755 gets the stop signal from external device, it will stop to send the data at next clock (Point B).
  • Page 82 For the Burst Ultra-Speed Digital Input, if the external device would like to transmit the data to PCI-1755, it will enable the DI_REQ signal to PCI-1755. If PCI-1755 is ready to get the data, it will also enable the DI_ACK signal to external device and then the data will be transmitting from external device to the PCI-1755 according to EXT_CLKIN.
  • Page 83 DO_REQ signal to external device. If the external device is ready to get the data, it will also enable the DO_ACK signal to PCI-1755 and then the data will be transmitting from PCI-1755 to the external device according to EXT_CLKOUT.
  • Page 84 For the 8255 Emulation Ultra-Speed Digital Input, if the external device would like to transmit the data to PCI-1755, it will send a DI_REQ signal to PCI-1755. If PCI-1755 is ready to get the data, it will also response a DI_ACK signal to external device and then one unit of data will be transmitting from external device to the PCI-1755.
  • Page 85 DO_REQ signal to external device. If the external device is ready to get the data, it will also response a DO_ACK signal to PCI-1755 and then one unit of data will be transmitting from PCI-1755 to the external device.

Table of Contents