Advantech PCI-1751 Скачать руководство пользователя страница 32

PCI-1751 User Manual

24

C.1

The Intel 8254

The PCI-1751 uses the Intel 8254 compatible programmable interval timer/counter.
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-1751 provides
10 MHz input frequencies to the counter chip from an on-board crystal oscillator.

On the PCI-1751, the 8254 chip's Timer 0 and Timer 1 can be used separately or can
be cascaded to create a 32-bit programmable timer by setting JP2.  When the clock
source of Timer 1 is from an external source, you can user Timer 0 and Timer 1 as
two independent 16-bit timers.  When the clock source of Timer 1 is set to be the out-
put of Timer 0 (internal source) the two timers are cascaded as a 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

Counter Read/Write and Control Registers

The 8254 programmable interval timer uses four registers at addresses BASE+24,
BASE+25, BASE+26 and BASE+27 for read, write and control of counter functions.
Register functions appear below:

Since the 8254 counter uses a 16-bit structure, each section of read/ write data is
split into a least significant byte (LSB) and most signifi- cant byte (MSB). To avoid
errors it is important that you make read/ write operations in pairs and keep track of
the byte order.

The data format for the control register appears below:

Description:

SC1 & SC0

Select counter

Register

Function

BASE+24

Counter 0 read/write 

BASE+25

Counter 1 read/write 

BASE+26

Counter 2 read/write 

BASE+27

Counter control word

BASE+27

8254 control, standard mode

Bit

D7

D6

D5

D4

D3

D2

D1

D0

Value

SC1

SC0 RW1

RW0

M2

M1

M0

BCD

Counter

SC1

SC0

0

0

0

1

0

1

2

1

0

Read-back command

1

1

Содержание PCI-1751

Страница 1: ...User Manual PCI 1751 48 bit Digital Input Output Card for PCI Bus...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 9: ...Chapter 1 1 General Information...

Страница 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...

Страница 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...

Страница 12: ...PCI 1751 User Manual 4...

Страница 13: ...Chapter 2 2 Installation...

Страница 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...

Страница 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...

Страница 16: ...PCI 1751 User Manual 8...

Страница 17: ...Chapter 3 3 Signal Connections...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 26: ...PCI 1751 User Manual 18...

Страница 27: ...Appendix A A Specifications...

Страница 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...

Страница 29: ...Appendix B B Block Diagram...

Страница 30: ...PCI 1751 User Manual 22 B 1 PCI 1751 Block Diagram...

Страница 31: ...Appendix C C Function of 8254 Counter Chip...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 37: ...Appendix D D Register of PCI 1751...

Страница 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...

Страница 39: ...31 PCI 1751 User Manual Appendix D Register of PCI 1751...

Страница 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...

Отзывы: