English
Language : 

LM3S2016 Datasheet, PDF (137/468 Pages) List of Unclassifed Manufacturers – Microcontroller
LM3S2016 Microcontroller
Table 8-1. GPIO Pad Configuration Examples
Configuration
GPIO Register Bit Valuea
AFSEL
Digital Input (GPIO)
0
Digital Output (GPIO)
0
Open Drain Input
0
(GPIO)
Open Drain Output
0
(GPIO)
Open Drain
1
Input/Output (I2C)
DIR
0
1
0
1
X
ODR
0
0
1
1
1
DEN
1
1
1
1
1
Digital Input (Timer
1
X
0
1
CCP)
Digital Output (Timer
1
X
0
1
PWM)
Digital Input/Output
1
X
0
1
(SSI)
Digital Input/Output
1
X
0
1
(UART)
a. X=Ignored (don’t care bit)
?=Can be either 0 or 1, depending on the configuration
PUR
?
?
X
X
X
?
?
?
?
PDR
?
?
X
X
X
?
?
?
?
DR2R
X
?
X
?
?
X
?
?
?
DR4R
X
?
X
?
?
X
?
?
?
DR8R
X
?
X
?
?
X
?
?
?
SLR
X
?
X
?
?
X
?
?
?
Table 8-2. GPIO Interrupt Configuration Example
Register
GPIOIS
Desired
Interrupt
Event
Trigger
0=edge
Pin 2 Bit Valuea
7
6
X
X
5
X
4
X
1=level
GPIOIBE
0=single
X
X
X
X
edge
1=both
edges
GPIOIEV 0=Low level,
X
X
X
X
or negative
edge
1=High level,
or positive
edge
GPIOIM
0=masked
0
0
0
0
1=not
masked
a. X=Ignored (don’t care bit)
3
X
X
X
0
2
0
0
1
1
1
X
X
X
0
0
X
X
X
0
8.3 Register Map
Table 8-3 on page 138 lists the GPIO registers. The offset listed is a hexadecimal increment to the
register’s address, relative to that GPIO port’s base address:
■ GPIO Port A: 0x4000.4000
November 30, 2007
137
Preliminary