Digital I/O Registers
416
SLAU208Q – June 2008 – Revised March 2018
Copyright © 2008–2018, Texas Instruments Incorporated
Digital I/O Module
12.4 Digital I/O Registers
The digital I/O registers are listed in
. The base addresses can be found in the device-specific
data sheet. Each port grouping begins at its base address. The address offsets are given in
NOTE:
All registers have word or byte register access. For a generic register
ANYREG
, the suffix
"_L" (
ANYREG_L
) refers to the lower byte of the register (bits 0 through 7). The suffix "_H"
(
ANYREG_H
) refers to the upper byte of the register (bits 8 through 15).
Table 12-2. Digital I/O Registers
Offset
Acronym
Register Name
Type
Access
Reset
Section
0Eh
P1IV
Port 1 Interrupt Vector
Read only
Word
0000h
0Eh
P1IV_L
Read only
Byte
00h
0Fh
P1IV_H
Read only
Byte
00h
1Eh
P2IV
Port 2 Interrupt Vector
Read only
Word
0000h
1Eh
P2IV_L
Read only
Byte
00h
1Fh
P2IV_H
Read only
Byte
00h
00h
P1IN or
PAIN_L
Port 1 Input
Read only
Byte
02h
P1OUT or
PAOUT_L
Port 1 Output
Read/write
Byte
undefined
04h
P1DIR or
PADIR_L
Port 1 Direction
Read/write
Byte
00h
06h
P1REN or
PAREN_L
Port 1 Resistor Enable
Read/write
Byte
00h
08h
P1DS or
PADS_L
Port 1 Drive Strength
Read/write
Byte
00h
0Ah
P1SEL or
PASEL_L
Port 1 Port Select
Read/write
Byte
00h
18h
P1IES or
PAIES_L
Port 1 Interrupt Edge Select
Read/write
Byte
undefined
1Ah
P1IE or
PAIE_L
Port 1 Interrupt Enable
Read/write
Byte
00h
1Ch
P1IFG or
PAIFG_L
Port 1 Interrupt Flag
Read/write
Byte
00h
01h
P2IN or
PAIN_H
Port 2 Input
Read only
Byte
03h
P2OUT or
PAOUT_H
Port 2 Output
Read/write
Byte
undefined
05h
P2DIR or
PADIR_H
Port 2 Direction
Read/write
Byte
00h
07h
P2REN or
PAREN_H
Port 2 Resistor Enable
Read/write
Byte
00h
09h
P2DS or
PADS_H
Port 2 Drive Strength
Read/write
Byte
00h
0Bh
P2SEL or
PASEL_H
Port 2 Port Select
Read/write
Byte
00h
19h
P2IES or
PAIES_H
Port 2 Interrupt Edge Select
Read/write
Byte
undefined
1Bh
P2IE or
PAIE_H
Port 2 Interrupt Enable
Read/write
Byte
00h
1Dh
P2IFG or
PAIFG_H
Port 2 Interrupt Flag
Read/write
Byte
00h
00h
P3IN or
PBIN_L
Port 3 Input
Read only
Byte
02h
P3OUT or
PBOUT_L
Port 3 Output
Read/write
Byte
undefined