Chapter 7I/O PortVII - 8 Control Registers7.2 Control RegistersPort 1 to port A are controlled by the data output register (PnOUT), the data input register (PnIN), the I/O direc-tion control register (PnDIR), the pull-up resistor control register (PnPLU), and registers that control special func-tion pins (PnMD).7.2.1 Control Register ListTable: 7.2.1 shows the I/O port control registers.Table:7.2.1 I/O Port Control Register ListRegister Address R/W Access size Function PagePort 1P1OUT 0x0000A001 R/W 8 Port 1 output register VII-10P1IN 0x0000A011 R 8 Port 1 input register VII-10P1DIR 0x0000A021 R/W 8 Port 1 I/O control register VII-11P1MD 0x0000A031 R/W 8 Port 1 output mode register VII-11P1PLU 0x0000A041 R/W 8 Port 1 pull-up resistor control register VII-12Port 2P2OUT 0x0000A002 R/W 8 Port 2 output register VII-13P2IN 0x0000A012 R 8 Port 2 input register VII-13P2DIR 0x0000A022 R/W 8 Port 2 I/O control register VII-13P2MD 0x0000A032 R/W 8 Port 2 output mode register VII-14P2PLU 0x0000A042 R/W 8 Port 2 pull-up resistor control register VII-14Port 3P3OUT 0x0000A003 R/W 8 Port 3 output register VII-15P3IN 0x0000A013 R 8 Port 3 input register VII-15P3DIR 0x0000A023 R/W 8 Port 3 I/O control register VII-15P3MD 0x0000A033 R/W 8 Port 3 output mode register VII-16P3PLU 0x0000A043 R/W 8 Port 3 pull-up resistor control register VII-16Port 4P4OUT 0x0000A004 R/W 8 Port 4 output register VII-17P4IN 0x0000A014 R 8 Port 4 input register VII-17P4DIR 0x0000A024 R/W 8 Port 4 I/O control register VII-18P4MD 0x0000A034 R/W 8 Port 4 output mode register VII-18P4PLU 0x0000A044 R/W 8 Port 4 pull-up resistor control register VII-19Port 5P5OUT 0x0000A005 R/W 8 Port 5 output register VII-20P5IN 0x0000A015 R 8 Port 5 input register VII-20P5DIR 0x0000A025 R/W 8 Port 5 I/O control register VII-20P5MD 0x0000A035 R/W 8 Port 5 output mode register VII-21P5PLU 0x0000A045 R/W 8 Port 5 pull-up resistor control register VII-21