39
3.12) OPTORD2 - Optically Isolated Input Port Register 2 (offset 24, read only)
The register allows one to read the status of Opto Isolator 31 to 47. It is only valid when
the expansion board (PC62C-EXP32) is connected to the PC62C. The Register structure
is described below.
OPTORD2 Register (read only)
Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8
PD15 PD14 PD13 PD12 PD11 PD10 PD9 PD8
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0
Bit 0 to 7: The bits PD0 to PD7 reflect the status of optically isolated input lines 32 to 39.
This register is only valid if the expansion board is connected to the PC62C
Bit 8 to 15: The bits PD8 to PD15 reflect the status of optically isolated input lines 40 to
47. This register is only valid if the expansion board is connected to the
PC62C.
It is recommended that a 16 bit read is initiated when reading the status of the
Port. Note, however, that two 8 bit reads can also be performed. This feature
was included in order to maintain compatibility with the PC62B.