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 registers‘ format 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
74LS244 | Digital Input(DI) | |
| From TTL Signal | |
| Digital Output (DO) | |
74LS373 | To TTL Devices | |
Digital GND (DGND) | ||
| ||
Outside Device |
4.6Timer/Counter Operation
4.6.1Introduction
One 8254 programmable interval timer/counter chip is installed on
|
|
|
|
| AD Trigger Signal | 8254 Chip |
|
|
|
| |
|
|
| C |
|
|
|
| ||||
|
|
|
|
| Counter #0 | O |
|
|
| ||
Signal | Gate Control |
|
|
| |||||||
|
| Control |
|
|
| G |
|
|
|
| |
|
|
|
|
|
|
| |||||
|
|
|
|
| C |
| Internal Timer Pacer | ||||
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
| Timer #1 | O | |||
|
|
|
|
|
|
|
|
|
| ||
|
| Internal 2 MHz Clock | 'H' | G |
|
|
|
| |||
|
|
| C |
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
| Timer #2 | O |
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
| 'H' | G |
|
|
| |
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
Figure 4.6.1 Timer/Counter System of PCI-9111
34 ∙ Operation Theorem