DIO48S/AT-P Manual
Page 6-2
Manual 00650-526-1
Each PPI contains a Control Register. This write-only, 8-bit register is used to set the mode and
direction of the ports. At Power-Up or Reset, all I/O lines are set as inputs. Each PPI should be
configured during initialization by writing to the Control Registers even if the ports are only going
to be used as inputs. Output buffers are automatically set by hardware according to the Control
Register states. Note that Control Registers are located at base a3 and base a7.
Bit assignments in each of these Control Registers are as follows:
Bit
Assignment
Code
D0 Bit
Port C Lo (C0-C3)
1=Input, 0=Output
D1
Port B
1=Input, 0=Output
D2
Mode Select
1=Mode 1, 0=Mode 0
D3
Port C Hi (C4-C7)
1=Input, 0=Output
D4
Port A
1=Input, 0=Output
D5, D6
Mode Select
00=Mode 0, 01=Mode 1,
1X=Mode 2
D7
Mode Set Flag
1=Active
Table 6-2:
Control Register Bit Assignment
Note
Mode 1 and Mode 2 cannot be used by the DIO48S/AT-P without modification (Consult factory.).
Thus, bits D2, D5, and D6 should always be set to "0" and (when the TST/BEN jumper is in the
BEN position) Bit D7 to "1".
Note
In Mode 0, do not use the control register byte for the individual bit control feature. The hardware
uses the I/O bits to control buffer direction on this card. The control register should only be used
for setting up input and output of the ports and enabling the buffer.
DIO48S/AT-P provides a means to enable/disable the tristate I/O buffers under program control.
If the TST/BEN jumper on the card is installed in the BEN position, the I/O buffers are
permanently enabled. However, if that jumper is in the TST position, enable/disable of the buffers
is software controlled via the control register as follows:
Summary of Contents for DIO48S/AT-P Series
Page 1: ...DIO48S AT P Series Product Manual MANUAL NUMBER 00650 526 1B...
Page 3: ...Page iv This page intentionally left blank...
Page 7: ...Page viii This page intentionally left blank...
Page 13: ...DIO48S AT P Manual Page 1 4 Manual 00650 526 1 Figure 1 1 DIO48S AT P Block Diagram...
Page 20: ...DIO48S AT P Manual Page 3 2 Manual 00650 526 1 Figure 3 1 DIO48S AT P Option Selection Map...