
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
76 of 487
NXP Semiconductors
UM10800
Chapter 7: LPC82x Switch matrix (SWM)
7.3.1 Connect an internal signal to a package pin
The switch matrix connects all internal signals listed in the table of movable functions
through the pin assignment registers to external pins on the package. External pins are
identified by their default GPIO pin number PIO0_n. Follow these steps to connect an
internal signal FUNC to an external pin. An example of a movable function is the UART
transmit signal TXD:
1. Find the pin function in the list of movable functions in
or in the data sheet.
2. Use the LPC800 data sheet to decide which pin x on the LPC800 package to connect
the pin function to.
3. Use the pin description table to find the default GPIO function PIO0_n assigned to
package pin x. m is the pin number.
4. Locate the pin assignment register for the function FUNC in the switch matrix register
description.
5. Disable any special functions on pin PIO0_n in the PINENABLE0 register.
6. Program the pin number n into the bits assigned to the pin function.
The pin function is now connected to pin x on the package.
7.3.2 Enable an analog input or other special function
The switch matrix enables functions that can only be assigned to one pin. Examples are
analog inputs, all GPIO pins, and the debug SWD pins.
A pin is identified for the purpose of programming the switch matrix by its default GPIO port pin number.
Fig 8.
Example: Connect function U0_RXD and U0_TXD to pins 4 and 14
PIO0_8 ->
pin number 8
disable XTALIN
PINENABLE0 bit 4 = 1
assign U0_TXD
PINASSIGN0 bits 7:0 = 0x8
function U0_TXD
assigned to pin 14
PIO0_12 ->
pin number 12
assign U0_RXD
PINASSIGN0 bits 15:8 = 0x10
function U0_RXD
assigned to pin 4
PIO0_8/XTALIN
PIO0_12
1
2
3
4
5
6
7
8
9
10
12
11
14
13
16
15
18
17
20
19