LM3S317 Luminary Micro, Inc, LM3S317 Datasheet - Page 123

no-image

LM3S317

Manufacturer Part Number
LM3S317
Description
Lm3s317 Arm Microcontroller
Manufacturer
Luminary Micro, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LM3S317-EQN25-C2
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S317-EQN25-C2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S317-IGZ25-C2
Manufacturer:
TI
Quantity:
168
Part Number:
LM3S317-IQN25-C2
Manufacturer:
Texas Instruments
Quantity:
135
Part Number:
LM3S317-IQN25-C2
Manufacturer:
TI
Quantity:
78
Part Number:
LM3S317-IQN25-C2
Manufacturer:
TI/德州仪器
Quantity:
20 000
Company:
Part Number:
LM3S317-IQN25-C2
Quantity:
17 500
Part Number:
LM3S317-IQN25-C2T
Manufacturer:
Texas Instruments
Quantity:
10 000
February 6, 2007
Reset
Reset
Type
Type
Bit/Field
31:8
GPIO Alternate Function Select (GPIOAFSEL)
Offset 0x420
7:0
RO
RO
31
15
0
0
Register 10: GPIO Alternate Function Select (GPIOAFSEL), offset 0x420
The GPIOAFSEL register is the mode control select register. Writing a 1 to any bit in this register
selects the hardware control for the corresponding GPIO line. All bits are cleared by a reset,
therefore no GPIO line is set to hardware control by default.
Caution – All GPIO pins are inputs by default (GPIODIR=0 and GPIOAFSEL=0), with the
exception of the five JTAG pins (PB7 and PC[3:0]). The JTAG pins default to their JTAG
functionality (GPIOAFSEL=1). Asserting a Power-On-Reset (POR) or an external reset (RST)
puts both groups of pins back to their default state.
If the JTAG pins are used as GPIOs in a design, PB7 and PC2 cannot have external pull-down
resistors connected to both of them at the same time. If both pins are pulled Low during reset, the
controller has unpredictable behavior. If this happens, remove one or both of the pull-down
resistors, and apply RST or power-cycle the part.
In addition, it is possible to create a software sequence that prevents the debugger from connecting
to the Stellaris microcontroller. If the program code loaded into flash immediately changes the
JTAG pins to their GPIO functionality, the debugger may not have enough time to connect and
halt the controller before the JTAG pin functionality switches. This may lock the debugger out of
the part. This can be avoided with a software routine that restores JTAG functionality based on an
external or software trigger.
RO
RO
30
14
0
0
reserved
AFSEL
Name
RO
RO
29
13
0
0
RO
RO
28
12
0
0
reserved
Type
R/W
RO
RO
RO
27
11
0
0
RO
RO
26
10
0
0
see note
Reset
0
RO
RO
25
0
9
0
Preliminary
Description
Reserved bits return an indeterminate value, and should never
be changed.
GPIO Alternate Function Select
0: Software control of corresponding GPIO line (GPIO mode).
1: Hardware control of corresponding GPIO line (alternate
hardware function).
Note:
RO
RO
24
0
8
0
reserved
R/W
The default reset value for the GPIOAFSEL register is
0x00 for all GPIO pins, with the exception of the five
JTAG pins (
default to JTAG functionality. Because of this, the
default reset value of GPIOAFSEL for GPIO Port B is
0x80 while the default reset value of GPIOAFSEL for
Port C is 0x0F.
RO
23
0
7
-
R/W
RO
22
0
6
-
PB7 and PC[3:0]
R/W
RO
21
0
5
-
R/W
RO
20
0
4
-
AFSEL
R/W
RO
19
0
3
-
). These five pins
LM3S317 Data Sheet
R/W
RO
18
0
2
-
R/W
RO
17
0
1
-
R/W
RO
16
0
0
-
123

Related parts for LM3S317