Product data
HD404818 Series
45
Table 20 Input/Output by Program Control
PMRB Bit 3 0 1
DCR0101
PDR 01010101
PMOS (A) — — — On — — — On
NMOS (B) — — On — — — On —
Pull-up MOS — — — — — On — On
Notes: — indicates off status.
1. Combine the values of the above mode registers (PMRB3, DCR, and PDR) to select the
input/output for PMOS (A), NMOS (B), and the pull-up MOS, individually.
The DCR and PDR control each pin. Also, PMRB3 controls the on/off of all pull-up MOSs.
2. The second bit of the miscellaneous register (MIS2) controls R0
2
/SO. When MIS2 is 1, PMOS
(A) is off.
MIS2
R0
2
/SO
PMOS (A)
0On
1 Off
3. Each bit of DCR corresponds to each port as follows:
DCR Bit 3 Bit 2 Bit 1 Bit 0
DCR0 R0
3
R0
2
R0
1
R0
0
DCR1 R1
3
R1
2
R1
1
R1
0
DCR2 R2
3
R2
2
R2
1
R2
2
DCR3 R3
3
R3
2
R3
1
R3
0
DCRB D
3
D
2
D
1
D
0
DCRC D
7
D
6
D
5
D
4
DCRD — — D
9
D
8