background image

PCI-1751 User Manual

26

OUT

Current state of counter output

NC

Null count is 1 when the last count written to the counter register has
been loaded into the counting element

C.3

Counter Operating Modes

C.3.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 con-
tinues to decrement after it reaches the terminal count. Rewriting a counter register
during counting has the following results:

1.

Writing to the first byte stops the current counting.

2.

Writing to the second byte starts the new count.

C.3.2

MODE 1 - Programmable One-shot

The output is initially high. The output will go low on the count following the rising
edge of the gate input. It will then go high on the terminal count. If you load a new
count value while the output is low, the new value will not affect the duration of the
one-shot pulse until the succeeding trigger. You can read the current count at any
time 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 will be low for one period of the input clock. The period from one output
pulse to the next equals the number of input counts in the counter register. If you
reload the counter register between output pulses, the present period will not be
affected, but the subsequent period will reflect the value.

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 synchro-
nize the counter.

With this mode the output will remain high until you load the count register is loaded.
You can also synchronize the output by software.

C.3.4

MODE 3 - Square Wave Generator

This mode is similar to Mode 2, except that the output will remain high until one half
of the count has been completed (for even numbers), and will go low for the other half
of the count. This is accomplished by decreasing the counter by two on the falling
edge of each clock pulse. When the counter reaches the terminal count, the state of
the output is changed, the counter is reloaded with the full count and the whole pro-
cess is repeated.

BASE+24/25/26

Status read-back mode

Bit

D7

D6

D5

D4

D3

D2

D1

D0

Value

OUT

NC

RW1

RW0

M2

M1

M0

BCD

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: