
3.2.2.4 The Status Register
Address 10h is used is the status register. Reading from this address will return the data from the status register. The format of status register is:
Bit5 |
| Bit4 |
| Bit3 |
| Bit2 | Bit1 | Bit0 | |
|
|
|
|
|
|
| |||
Gain | 8245 | 8245 | 8245 | Reserved | Analog | A/D Busy | |||
Control | Timer | 1 | Timer | 0 | Timer | 2 | input type |
|
Bit
Bit 5 : Output of 8254 timer 1.
Bit 4 : Output of 8254 timer 0.
Bit 3 : Output of 8254 timer 2.
Bit 2 : Reserved. Used for hardware testing.
Bit 1 : Analog input type, ‘1’ indicated that analog input type is single- ended and ‘0’ indicated analog input is differential.
Bit 0 : A/D busy signal. ‘0’ indicates busy, A/D is under conversion. ‘1’ indicates not busy, A/D is complete conversion and is idle now.
3.2.2.5 The A/D Software Trigger Register
Writing to port 1Ch will generate an A/D trigger signal.
Note: Since the user can trigger at a rate greater than the speed of A/D converter (125K), a delay time may be required between successive software triggers
Software | Delay time |
| |
trigger |
|
A/D | 8 ∝s |
Busy | Conversion Time |
Figure 3-1. Software triggered delay time.
31