3.13Extended I/O Ports
The
1. EDO_INPUT | EDO mode 1 |
2. EDO_OUT_EDO | EDO mode 2 |
3. EDO_OUT_CHN | EDO mode 3 |
The output EDO value can be put on the EDO pins only when the EDO is set as mode 2. Under mode 1, the EDO output value will not be put on the EDO pins, therefore the EDO signals are used as input only port. Under mode 3, the EDO pins presents the high nibble (4 MSBs) of the AD channel number no matter auto channel scan (ASCAN) bit is set or not.
Address: BASE + 4h
Attribute: write only
Data Format:
Bit | 7 |
| 6 |
| 5 |
| 4 |
| 3 |
| 2 |
| 1 | 0 | ||
|
|
|
|
|
|
|
|
|
|
|
| |||||
BASE+4h | X |
| X |
| X |
| X |
| EDO3 |
| EDO2 |
| EDO1 | EDO0 | ||
BASE+5h | X |
| X |
| X |
| X |
| X |
|
| X |
| X | X | |
Address: BASE + 4h |
|
|
|
|
|
|
|
|
|
|
|
| ||||
Attribute: read only |
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
Data Format: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
Bit | 7 |
| 6 |
| 5 |
| 4 |
| 3 |
|
| 2 |
| 1 | 0 | |
|
|
|
|
|
|
|
|
| ||||||||
BASE+4h | EDO3 |
| EDO2 | EDO1 | EDO0 | EDI3 |
| EDI2 | EDI1 | EDI0 | ||||||
BASE+5h | X |
| X | X | X |
| X |
| X | X | X |
3.14Digital I/O register
There are 16 digital input channels and 16 digital output channels are provided by the
Address: BASE + 2h
Attribute: read only
Data Format:
20 ∙ Registers Format