LPC2939_3 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2010. All rights reserved.
Product data sheet Rev. 03 — 7 April 2010 98 of 99
NXP Semiconductors LPC2939
ARM9 microcontroller with CAN, LIN, and USB
18. Contents
1 General description. . . . . . . . . . . . . . . . . . . . . . 1
2 Features and benefits . . . . . . . . . . . . . . . . . . . . 1
3 Ordering information. . . . . . . . . . . . . . . . . . . . . 3
3.1 Ordering options. . . . . . . . . . . . . . . . . . . . . . . . 3
4 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5 Pinning information. . . . . . . . . . . . . . . . . . . . . . 5
5.1 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.2.1 General description . . . . . . . . . . . . . . . . . . . . . 5
5.2.2 LQFP208 pin assignment. . . . . . . . . . . . . . . . . 5
6 Functional description . . . . . . . . . . . . . . . . . . 14
6.1 Architectural overview . . . . . . . . . . . . . . . . . . 14
6.2 ARM968E-S processor. . . . . . . . . . . . . . . . . . 14
6.3 On-chip flash memory system . . . . . . . . . . . . 15
6.4 On-chip static RAM. . . . . . . . . . . . . . . . . . . . . 15
6.5 Memory map. . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.6 Reset, debug, test, and power description . . . 17
6.6.1 Reset and power-up behavior . . . . . . . . . . . . 17
6.6.2 Reset strategy . . . . . . . . . . . . . . . . . . . . . . . . 17
6.6.3 IEEE 1149.1 interface pins (JTAG boundary-scan
test). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.6.3.1 ETM/ETB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.6.4 Power supply pins . . . . . . . . . . . . . . . . . . . . . 18
6.7 Clocking strategy . . . . . . . . . . . . . . . . . . . . . . 18
6.7.1 Clock architecture. . . . . . . . . . . . . . . . . . . . . . 18
6.7.2 Base clock and branch clock relationship. . . . 20
6.8 Flash memory controller. . . . . . . . . . . . . . . . . 22
6.8.1 Functional description. . . . . . . . . . . . . . . . . . . 22
6.8.2 Flash layout . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.8.3 Flash bridge wait-states . . . . . . . . . . . . . . . . . 24
6.8.4 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 24
6.8.5 Clock description . . . . . . . . . . . . . . . . . . . . . . 25
6.8.6 EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.9 External Static Memory Controller (SMC). . . . 25
6.9.1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.9.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 26
6.9.3 Clock description . . . . . . . . . . . . . . . . . . . . . . 26
6.9.4 External memory timing diagrams . . . . . . . . . 26
6.10 General Purpose DMA (GPDMA) controller. . 28
6.10.1 DMA support for peripherals. . . . . . . . . . . . . . 28
6.10.2 Clock description . . . . . . . . . . . . . . . . . . . . . . 29
6.11 USB interface . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.11.1 USB device controller. . . . . . . . . . . . . . . . . . . 29
6.11.2 USB OTG controller . . . . . . . . . . . . . . . . . . . . 29
6.11.3 USB host controller. . . . . . . . . . . . . . . . . . . . . 30
6.11.3.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.11.4 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 30
6.11.5 Clock description . . . . . . . . . . . . . . . . . . . . . . 31
6.12 General subsystem. . . . . . . . . . . . . . . . . . . . . 31
6.12.1 General subsystem clock description. . . . . . . 31
6.12.2 Chip and feature identification . . . . . . . . . . . . 31
6.12.3 System Control Unit (SCU). . . . . . . . . . . . . . . 31
6.12.4 Event router . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.12.4.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 32
6.13 Peripheral subsystem. . . . . . . . . . . . . . . . . . . 32
6.13.1 Peripheral subsystem clock description. . . . . 32
6.13.2 Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 33
6.13.2.1 Functional description . . . . . . . . . . . . . . . . . . 33
6.13.2.2 Clock description . . . . . . . . . . . . . . . . . . . . . . 33
6.13.3 Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6.13.3.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 34
6.13.3.2 Clock description . . . . . . . . . . . . . . . . . . . . . . 35
6.13.4 UARTs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6.13.4.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 35
6.13.4.2 Clock description . . . . . . . . . . . . . . . . . . . . . . 36
6.13.5 Serial peripheral interface (SPI). . . . . . . . . . . 36
6.13.5.1 Functional description . . . . . . . . . . . . . . . . . . 36
6.13.5.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 37
6.13.5.3 Clock description . . . . . . . . . . . . . . . . . . . . . . 37
6.13.6 General-Purpose I/O (GPIO) . . . . . . . . . . . . . 37
6.13.6.1 Functional description . . . . . . . . . . . . . . . . . . 38
6.13.6.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 38
6.13.6.3 Clock description . . . . . . . . . . . . . . . . . . . . . . 38
6.14 Networking subsystem. . . . . . . . . . . . . . . . . . 38
6.14.1 CAN gateway. . . . . . . . . . . . . . . . . . . . . . . . . 38
6.14.1.1 Global acceptance filter . . . . . . . . . . . . . . . . . 39
6.14.1.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 39
6.14.2 LIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
6.14.2.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 39
6.14.3 I2C-bus serial I/O controllers . . . . . . . . . . . . . 40
6.14.3.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 40
6.15 Modulation and Sampling Control SubSystem
(MSCSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.15.1 Functional description . . . . . . . . . . . . . . . . . . 41
6.15.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 43
6.15.3 Clock description . . . . . . . . . . . . . . . . . . . . . . 43
6.15.4 Analog-to-digital converter. . . . . . . . . . . . . . . 43
6.15.4.1 Functional description . . . . . . . . . . . . . . . . . . 44
6.15.4.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 44
6.15.4.3 Clock description . . . . . . . . . . . . . . . . . . . . . . 45
6.15.5 Pulse Width Modulator (PWM). . . . . . . . . . . . 45
6.15.5.1 Functional description . . . . . . . . . . . . . . . . . . 46
6.15.5.2 Synchronizing the PWM counters . . . . . . . . . 47
6.15.5.3 Master and slave mode . . . . . . . . . . . . . . . . . 48
6.15.5.4 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 48
6.15.5.5 Clock description . . . . . . . . . . . . . . . . . . . . . . 48
6.15.6 Timers in the MSCSS. . . . . . . . . . . . . . . . . . . 48
6.15.6.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 49
6.15.6.2 Clock description . . . . . . . . . . . . . . . . . . . . . . 49
6.15.7 Quadrature Encoder Interface (QEI) . . . . . . . 49
6.15.7.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 50
6.15.7.2 Clock description . . . . . . . . . . . . . . . . . . . . . . 50
6.16 Power, Clock and Reset control SubSystem
(PCRSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.16.1 Clock description . . . . . . . . . . . . . . . . . . . . . . 51
6.16.2 Clock Generati o n U nit (CGU0) . . . . . . . . . . . 52
6.16.2.1 Functional description . . . . . . . . . . . . . . . . . . 52
6.16.2.2 PLL functional description . . . . . . . . . . . . . . . 55
6.16.2.3 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 56
6.16.3 Clock generation for USB (CGU1). . . . . . . . . 57
6.16.3.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 57