background image

PCI-1751 User Manual

16

The gates of the counter/timers are internally pulled to +5 V when gate control is
enabled, but a user can also set it using the connector pins (CNT0_G, CNT1_G and
CNT2_G).

3.6

Interrupt Function

Introduction

Two lines in each I/O port (C0 and C4) and two of the three counter outputs (Timer 1
and Counter 2) are connected to the interrupt circuitry. The "Interrupt Control Regis-
ter" of the PCI-1751 controls how the combination of the 6 signals generates an inter-
rupt. Two interrupt request signals can be generated at the same time, and then the
software can service these two request signals by ISR. The dual interrupt sources
provide the card with more capability and flexibility.

IRQ Level 

The IRQ level is set automatically by the PCI plug and play BIOS and is saved in the
PCI controller.  There is no need for users to set the IRQ level. Only one IRQ level is
used by this card, although it has two interrupt sources.

Interrupt Control Register (Base + 32)

The "Interrupt Control Register" (Base + 32) controls the interrupt signal source,
edge and flag. Table 3-2 shows the bit map of the interrupt control register.  The reg-
ister is a readable/writable register.

When writing to it, it is used as a control register, and when reading from it, it is used
as a status register.

M00 and M01: "mode bits" of port 0

M10 and M11: "mode bits" of port 1

E0, E1: triggering edge control bits

F0, F1: flag bits

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 for port
0, and bit 4 and bit 5 determine the interrupt source for port 1, as indicated in Figure
below. Table 3.4 shows the relationship between an interrupt source and the values
in the mode bits.

Table 3.4: Interrupt Control Register Bit Map

Port #

Port1

Port 0

Bit  #

D7

D6

D5

D4

D3

D2

D1

D0

Abbreviation

F1

E1

M11

M10

F0

E0

M01

M00

Summary of Contents for PCI-1751

Page 1: ...User Manual PCI 1751 48 bit Digital Input Output Card for PCI Bus...

Page 2: ...ion Advantech assumes no liability under the terms of this warranty as a consequence of such events Because of Advantech s high quality control standards and rigorous testing most of our customers nev...

Page 3: ...equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions may cause harmful inter ference to radio communications However there...

Page 4: ...ftware operating system version application software etc A complete description of the problem The exact wording of any error messages Warnings Cautions and Notes Warning Warnings indicate conditions...

Page 5: ...ur any liquid into an opening This may cause fire or electrical shock 13 Never open the equipment For safety reasons the equipment should be opened only by qualified service personnel 14 If one of the...

Page 6: ...mage 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 Disconnect power befo...

Page 7: ...ble 3 3 Bit map of Port Configuration Register 13 3 5 Timer Counter Operation 15 3 6 Interrupt Function 16 Table 3 4 Interrupt Control Register Bit Map 16 Table 3 5 Interrupt Mode Bit Values 17 Table...

Page 8: ...MODE 4 Software Triggered Strobe 27 C 3 6 MODE 5 Hardware Triggered Strobe 27 C 4 Counter Operations 27 C 4 1 Read Write Operation 27 C 4 2 Counter Read back Command 27 C 4 3 Counter Latch Operation...

Page 9: ...Chapter 1 1 General Information...

Page 10: ...e this feature Otherwise port settings and output values reset to their safe default state or to the state determined by other jumper settings The PCI 1751 s other useful feature is it supports both w...

Page 11: ...cation software to help fully exploit the functions of your PCI 1751 card All these software packages are available on the companion DVD ROM or you can browse Advantech website to get the latest updat...

Page 12: ...PCI 1751 User Manual 4...

Page 13: ...Chapter 2 2 Installation...

Page 14: ...e anti static bag to a metal part of your computer chassis before open ing the bag Take hold of the card only by the metal bracket when removing it out of the bag After taking out the card first you s...

Page 15: ...ctricity that might be on your body 5 Insert the PCI 1751 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 f...

Page 16: ...PCI 1751 User Manual 8...

Page 17: ...Chapter 3 3 Signal Connections...

Page 18: ...Figure 3 1 Location of connectors and jumpers Jumper Settings to Set Ports as Input or Output by Software By shorting the upper two pins of jumpers JPA0 JPB0 JPC0L JPC0H JPA1 JPB1 JPC1L or JPC1H a use...

Page 19: ...abled power off or reset results in ports returning to their default state for software set ports or returning to the state of output port with volt age low output for jumper set ports Select Clock So...

Page 20: ...K External clock source of Counter Timer 0 1 and 2 CNT0_G CNT1_G and CNT2_G Gate control pins of Counter Timer 0 1 and 2 INT_OUT Interrupt output This pin changes to logic 1 whenever the PCI 1751 gene...

Page 21: ...O pins PC00 and PC10 can be used to generate hardware interrupts A user can program the interrupt control register Base 32 to select the interrupt sources Refer to Interrupt Function in this chapter...

Page 22: ...reset power not disconnected for enabled JP4 to return ports to their prior values Otherwise the card behaves as though JP4 were not enabled Refer to Jumper settings in Chapter 2 for more information...

Page 23: ...mer 1 to be an external source you can user Timer 0 and Timer 1 as two separate 16 bit timers By setting the clock source of Timer 1 to be the output of Timer 0 internal source these two timers are ca...

Page 24: ...l Only one IRQ level is used by this card although it has two interrupt sources Interrupt Control Register Base 32 The Interrupt Control Register Base 32 controls the interrupt signal source edge and...

Page 25: ...tus 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 5 Interrupt Mode Bit Values Port 1 Port 0 M11 M10 Des...

Page 26: ...PCI 1751 User Manual 18...

Page 27: ...Appendix A A Specifications...

Page 28: ...16 bit Base Clock Channel 0 Internal 10MHz External Clock up to 10MHz Channel 1 Takes input from output of Channel 0 External Clock up to 10MHz Channel 2 Internal 10MHz External Clock up to 10MHz Max...

Page 29: ...Appendix B B Block Diagram...

Page 30: ...PCI 1751 User Manual 22 B 1 PCI 1751 Block Diagram...

Page 31: ...Appendix C C Function of 8254 Counter Chip...

Page 32: ...32 bit timer When the clock source of Timer 0 is provided externally by setting JP1 Timers 0 and 1 can be used as a 32 bit event counter Refer to section 2 3 3 for details of jumper set tings C 2 Coun...

Page 33: ...C0 Select counter for a read back operation C2 1 select Counter 2 C1 1 select Counter 1 C0 1 select Counter 0 If you set both SC1 and SC0 to 1 and STA to 0 the register selected by C2 to C0 contains a...

Page 34: ...without affecting the one shot pulse The one shot is retriggerable thus the out put will remain low for the full count after any rising edge at the gate input C 3 3 MODE 2 Rate Generator The output w...

Page 35: ...u 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 27 Since the control byte register and al...

Page 36: ...t hold register The second way is to perform a latch operation under the read back com mand Set bits SC1 and SC0 to 1 and CNT 0 The second method has the advan tage of operating several counters at th...

Page 37: ...Appendix D D Register of PCI 1751...

Page 38: ...Port 0 Configuration 4 Port A1 Port A1 5 Port B1 Port B1 6 Port C1 Port C1 7 Reserved Port 1 Configuration 8 BOID 3 0 Reserved 9 23 Reserved Reserved 24 8254 Counter 0 8254 Counter 0 25 8254 Counter 1...

Page 39: ...31 PCI 1751 User Manual Appendix D Register of PCI 1751...

Page 40: ...tions 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 permis sion of...

Reviews: