Datasheet
LPC540xx All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2018. All rights reserved.
Product data sheet Rev. 1.8 — 22 June 2018 167 of 168
continued >>
NXP Semiconductors
LPC540xx
32-bit ARM Cortex-M4 microcontroller
21. Contents
1 General description. . . . . . . . . . . . . . . . . . . . . . 1
2 Features and benefits . . . . . . . . . . . . . . . . . . . . 1
3 Ordering information. . . . . . . . . . . . . . . . . . . . . 5
3.1 Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 6
4 Marking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 9
6 Pinning information. . . . . . . . . . . . . . . . . . . . . 11
6.1 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 13
6.2.1 Termination of unused pins. . . . . . . . . . . . . . . 54
6.2.2 Pin states in different power modes . . . . . . . . 55
7 Functional description . . . . . . . . . . . . . . . . . . 56
7.1 Architectural overview . . . . . . . . . . . . . . . . . . 56
7.2 ARM Cortex-M4 processor . . . . . . . . . . . . . . . 56
7.3 ARM Cortex-M4 integrated Floating Point Unit
(FPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
7.4 Memory Protection Unit (MPU). . . . . . . . . . . . 56
7.5 Nested Vectored Interrupt Controller (NVIC) for
Cortex-M4. . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
7.5.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
7.5.2 Interrupt sources. . . . . . . . . . . . . . . . . . . . . . . 57
7.6 System Tick timer (SysTick) . . . . . . . . . . . . . . 57
7.7 On-chip static RAM. . . . . . . . . . . . . . . . . . . . . 57
7.8 On-chip ROM . . . . . . . . . . . . . . . . . . . . . . . . . 57
7.9 Memory mapping . . . . . . . . . . . . . . . . . . . . . . 58
7.10 System control . . . . . . . . . . . . . . . . . . . . . . . . 61
7.10.1 Clock sources . . . . . . . . . . . . . . . . . . . . . . . . . 61
7.10.1.1 Free Running Oscillator (FRO) . . . . . . . . . . . . 61
7.10.1.2 Watchdog oscillator (WDOSC) . . . . . . . . . . . . 61
7.10.1.3 Crystal oscillator . . . . . . . . . . . . . . . . . . . . . . . 62
7.10.2 System PLL (PLL0) . . . . . . . . . . . . . . . . . . . . 62
7.10.3 USB PLL (PLL1) . . . . . . . . . . . . . . . . . . . . . . . 62
7.10.4 Audio PLL (PLL2) . . . . . . . . . . . . . . . . . . . . . . 62
7.10.5 Clock Generation . . . . . . . . . . . . . . . . . . . . . . 63
7.10.6 Brownout detection . . . . . . . . . . . . . . . . . . . . . 65
7.10.7 Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
7.11 Power control . . . . . . . . . . . . . . . . . . . . . . . . . 65
7.11.1 Sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . 65
7.11.2 Deep-sleep mode . . . . . . . . . . . . . . . . . . . . . . 65
7.11.3 Deep power-down mode . . . . . . . . . . . . . . . . 65
7.12 General Purpose I/O (GPIO) . . . . . . . . . . . . . 68
7.12.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.13 Pin interrupt/pattern engine . . . . . . . . . . . . . . 68
7.13.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
7.14 Serial peripherals . . . . . . . . . . . . . . . . . . . . . . 69
7.14.1 Full-speed USB Host/Device interface (USB0) . .
69
7.14.1.1 USB0 device controller . . . . . . . . . . . . . . . . . 69
7.14.1.2 USB0 host controller . . . . . . . . . . . . . . . . . . . 70
7.14.2 High-speed USB Host/Device interface
(USB1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.14.2.1 USB1 device controller . . . . . . . . . . . . . . . . . 70
7.14.2.2 USB1 host controller . . . . . . . . . . . . . . . . . . . 70
7.14.3 Ethernet AVB . . . . . . . . . . . . . . . . . . . . . . . . . 71
7.14.3.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
7.14.4 SPI Flash Interface (SPIFI) . . . . . . . . . . . . . . 71
7.14.4.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
7.14.5 CAN Flexible Data (CAN FD) interface . . . . . 72
7.14.5.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
7.14.6 DMIC subsystem . . . . . . . . . . . . . . . . . . . . . . 72
7.14.6.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
7.14.7 Smart card interface. . . . . . . . . . . . . . . . . . . . 72
7.14.7.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
7.14.8 Flexcomm Interface serial communication. . . 72
7.14.8.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
7.14.8.2 SPI serial I/O controller . . . . . . . . . . . . . . . . . 73
7.14.8.3 I
2
C-bus interface . . . . . . . . . . . . . . . . . . . . . . 73
7.14.8.4 USART. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
7.14.8.5 I
2
S-bus interface . . . . . . . . . . . . . . . . . . . . . . 74
7.15 Digital peripheral . . . . . . . . . . . . . . . . . . . . . . 75
7.15.1 LCD controller . . . . . . . . . . . . . . . . . . . . . . . . 75
7.15.1.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.15.2 SD/MMC card interface . . . . . . . . . . . . . . . . . 76
7.15.2.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
7.15.3 External memory controller . . . . . . . . . . . . . . 76
7.15.3.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
7.15.4 DMA controller . . . . . . . . . . . . . . . . . . . . . . . . 78
7.15.4.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
7.16 Counter/timers . . . . . . . . . . . . . . . . . . . . . . . . 78
7.16.1 General-purpose 32-bit timers/external event
counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
7.16.1.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
7.16.2 SCTimer/PWM . . . . . . . . . . . . . . . . . . . . . . . . 79
7.16.2.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.16.3 Windowed WatchDog Timer (WWDT) . . . . . . 80
7.16.3.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
7.16.4 Real Time Clock (RTC) timer . . . . . . . . . . . . . 80
7.16.5 Multi-Rate Timer (MRT) . . . . . . . . . . . . . . . . . 80
7.16.5.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
7.16.6 Repetitive Interrupt Timer (RIT) . . . . . . . . . . . 81
7.16.6.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.17 12-bit Analog-to-Digital Converter (ADC). . . . 81
7.17.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.18 CRC engine . . . . . . . . . . . . . . . . . . . . . . . . . . 82
7.18.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82