4.5Digital Input and Output

To program digital I/O operation is fairly straightforward. The digital input operation is just to read data from the corresponding registers, and the digital output operation is to write data to the corresponding registers. The digital I/O registersformat is shown in section 3.14. Note that the DIO data channel can only be read or written in form of 16 bits together. It is impossible to access individual bit channel.

The PCI-9111 provides 16 digital input and 16 digital output channels through the connector CN1 and CN2 on board. The digital I/O signal is fully TTL/DTL compatible. The detailed digital I/O signal specification can be referred to section 1.3.

74LS244

74LS373

Digital Input(DI)

From TTL Signal

Digital Output (DO)

To TTL Devices

Digital GND (DGND)

PCI-9111

Outside Device

4.6Timer/Counter Operation

4.6.1Introduction

One 8254 programmable interval timer/counter chip is installed on PCI-9111. There are three counters in one 8254 chip and 6 possible operation modes for each counter. The block diagram of the timer/counter system is shown in following diagram.

Pre-Trigger

Signal

(Pin-12 of CN3)

 

AD Trigger Signal

8254 Chip

 

 

C

 

Pre-Trigger

Gate Control

Counter #0

O

Control

 

G

 

 

 

C

Internal Timer Pacer

 

 

Timer #1

 

 

O

 

'H'

G

 

Internal 2 MHz Clock

C

 

 

 

Timer #2

O

 

'H'

G

 

 

Figure 4.6.1 Timer/Counter System of PCI-9111

34 Operation Theorem

Page 44
Image 44
HP NuDAQ I-9111DG/HR manual Digital Input and Output, Timer/Counter Operation Introduction