
Digital I/O Registers
8.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 8-3. 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
2Eh
P3IV
Port 3 Interrupt Vector
Read only
Word
0000h
2Eh
P3IV_L
Read only
Byte
00h
2Fh
P3IV_H
Read only
Byte
00h
3Eh
P4IV
Port 4 Interrupt Vector
Read only
Word
0000h
3Eh
P4IV_L
Read only
Byte
00h
3Fh
P4IV_H
Read only
Byte
00h
00h
P1IN
Port 1 Input
Read only
Byte
undefined
or PAIN_L
02h
P1OUT
Port 1 Output
Read/write
Byte
undefined
or PAOUT_L
04h
P1DIR
Port 1 Direction
Read/write
Byte
00h
or PADIR_L
06h
P1REN
Port 1 Resistor Enable
Read/write
Byte
00h
or PAREN_L
0Ah
P1SEL0
Port 1 Select 0
Read/write
Byte
00h
or PASEL0_L
0Ch
P1SEL1
Port 1 Select 1
Read/write
Byte
00h
or PASEL1_L
16h
P1SELC
Port 1 Complement Selection
Read/write
Byte
00h
or PASELC_L
18h
P1IES
Port 1 Interrupt Edge Select
Read/write
Byte
undefined
or PAIES_L
1Ah
P1IE
Port 1 Interrupt Enable
Read/write
Byte
00h
or PAIE_L
1Ch
P1IFG
Port 1 Interrupt Flag
Read/write
Byte
00h
or PAIFG_L
300
Digital I/O
SLAU272C – May 2011 – Revised November 2013
Copyright © 2011–2013, Texas Instruments Incorporated