
UM10375
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 3 — 14 June 2011
361 of 368
NXP Semiconductors
UM10375
Chapter 23: LPC13xx Supplementary information
Lock detector . . . . . . . . . . . . . . . . . . . . . . . . . 48
Power-down control . . . . . . . . . . . . . . . . . . . . 49
Divider ratio programming . . . . . . . . . . . . . . . 49
Frequency selection. . . . . . . . . . . . . . . . . . . . 49
Flash memory access. . . . . . . . . . . . . . . . . . . 51
Chapter 4: LPC13xx Power Management Unit (PMU)
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Register description . . . . . . . . . . . . . . . . . . . . 52
Power control register. . . . . . . . . . . . . . . . . . . 52
General purpose registers 0 to 3 . . . . . . . . . 53
General purpose register 4 . . . . . . . . . . . . . . 53
Functional description . . . . . . . . . . . . . . . . . . 53
Chapter 5: LPC13xx Power profiles
How to read this chapter . . . . . . . . . . . . . . . . . 54
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Clocking routine . . . . . . . . . . . . . . . . . . . . . . . 55
set_pll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Param0: system PLL input frequency and
Param1: expected system clock . . . . . . . . . . . 56
Param2: mode . . . . . . . . . . . . . . . . . . . . . . . . 56
Param3: system PLL lock time-out . . . . . . . . . 57
Code examples. . . . . . . . . . . . . . . . . . . . . . . . 57
5.5.1.4.1 Invalid frequency (device maximum clock rate
exceeded) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
5.5.1.4.2 Invalid frequency selection (system clock divider
restrictions) . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
5.5.1.4.3 Exact solution cannot be found (PLL). . . . . . . 58
5.5.1.4.4 System clock less than or equal to the expected
value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
5.5.1.4.5 System clock greater than or equal to the
expected value. . . . . . . . . . . . . . . . . . . . . . . . 58
5.5.1.4.6 System clock approximately equal to the expected
value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Power routine . . . . . . . . . . . . . . . . . . . . . . . . . 59
set_power . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Param0: main clock . . . . . . . . . . . . . . . . . . . . 60
Param1: mode . . . . . . . . . . . . . . . . . . . . . . . . 60
Param2: system clock . . . . . . . . . . . . . . . . . . 60
Code examples . . . . . . . . . . . . . . . . . . . . . . . 61
exceeded) . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
5.6.1.4.2 An applicable power setup. . . . . . . . . . . . . . . 61
Chapter 6: LPC13xx Interrupt controller
How to read this chapter . . . . . . . . . . . . . . . . . 62
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Interrupt sources . . . . . . . . . . . . . . . . . . . . . . . 62
Vector table remapping . . . . . . . . . . . . . . . . . . 64
Example:. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64
Register description . . . . . . . . . . . . . . . . . . . . 65
. . . . Interrupt Set-Enable Register 0 register 66
. . . . . . . . . . . Interrupt Set-Enable Register 1 67
Interrupt Clear-Enable Register 0 . . . . . . . . . . 68
. . . Interrupt Clear-Enable Register 1 register 69
. . . . Interrupt Set-Pending Register 0 register 70
. . . . Interrupt Set-Pending Register 1 register 71
. . Interrupt Clear-Pending Register 0 register 72
. . Interrupt Clear-Pending Register 1 register 74
Interrupt Active Bit Register 0 . . . . . . . . . . . . . 75
Interrupt Active Bit Register 1 . . . . . . . . . . . . 76
Register 0 . . . . . . . . . . . . . . 77
Register 1 . . . . . . . . . . . . . . 77
Register 2 . . . . . . . . . . . . . . 78
Register 3 . . . . . . . . . . . . . . 78
Register 4 . . . . . . . . . . . . . . 79
Register 5 . . . . . . . . . . . . . . 79
Register 6 . . . . . . . . . . . . . . 80
Register 7 . . . . . . . . . . . . . . 80
Register 8 . . . . . . . . . . . . . . 81
Register 9 . . . . . . . . . . . . . . 81
Register 10 . . . . . . . . . . . . . 82
Register 11 . . . . . . . . . . . . . 82
Register 12 . . . . . . . . . . . . . 83
Register 13 . . . . . . . . . . . . . 83
Register 14 . . . . . . . . . . . . . 84
Interrupt Register . . . . . . . . 84
Chapter 7: LPC13xx I/O configuration
How to read this chapter . . . . . . . . . . . . . . . . . 85
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
General description . . . . . . . . . . . . . . . . . . . . . 86
Pin function . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Pin mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Hysteresis . . . . . . . . . . . . . . . . . . . . . . . . . . . 87