Chapter 4 I/O Ports
IV - 4
Overview
4-1-3 Control Registers
Ports 0 to 2, ports 5 to 8 and port A are controlled by the data output register (PnOUT), the data input
register (PnIN), the I/O direction control register (PnDIR), the pull-up resistor control register (PnPLU) and
the pull-up / pull-down resistor control resister (PnPLUD) and registers (P1OMD, P1TCNT, PAIMD, FLOAT)
that control special function pin.
Table 4-1-3 shows the registers to control ports 0 to 2, Ports 5 to 8 and Port A ;
Table 4-1-2 I/O Port Control Registers List (1/2)
Register Address R/W Function Page
P0OUT x'03F10' R/W Port 0 output register IV-7
P0IN x'03F20' R Port 0 input register IV-7
P0DIR x'03F30' R/W Port 0 direction control register IV-7
P0PLU x'03F40' R/W Port 0 pull-up resistor control register IV-7
P1OUT x'03F11' R/W Port 1 output register IV-13
P1IN x'03F21' R Port 1 input register IV-13
P1DIR x'03F31' R/W Port 1 direction control register IV-13
P1PLU x'03F41' R/W Port 1 pull-up resistor control register IV-13
P1OMD x'03F2F' R/W Port 1 output mode register IV-14
P1TCNT x'03F7E' R/W Port 1 output control register IV-14
P2OUT x'03F12' R/W Port 2 output register IV-17
P2IN x'03F22' R Port 2 input register IV-17
P2DIR x'03F32' R/W Port 2 direction control register IV-17
P2PLU x'03F42' R/W Port 2 pull-up resistor control register IV-17
P5OUT x'03F15' R/W Port 5 output register IV-21
P5IN x'03F25' R Port 5 input register IV-21
P5DIR x'03F35' R/W Port 5 direction control register IV-21
P5PLU x'03F45' R/W Port 5 pull-up resistor control register IV-21
P6OUT x'03F16' R/W Port 6 output register IV-27
P6IN x'03F26' R Port 6 input register IV-27
P6DIR x'03F36' R/W Port 6 direction control register IV-27
P6PLU x'03F46' R/W Port 6 pull-up resistor control register IV-27
P6SYO x'03F1E' R/W Port 6 synchronous output control register IV-28
Port 6
Port 0
Port 1
Port 2
Port 5