User Manual
UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2010. All rights reserved.
User manual Rev. 2 — 19 August 2010 833 of 840
continued >>
NXP Semiconductors
UM10360
Chapter 35: Supplementary information
Chapter 27: LPC17xx Real-Time Clock (RTC) and backup registers
27.1 Basic configuration . . . . . . . . . . . . . . . . . . . . 558
27.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
27.3 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
27.4 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 559
27.5 Pin description. . . . . . . . . . . . . . . . . . . . . . . . 560
27.6 Register description . . . . . . . . . . . . . . . . . . . 560
27.6.1 RTC interrupts . . . . . . . . . . . . . . . . . . . . . . . 562
27.6.2 Miscellaneous register group . . . . . . . . . . . . 562
27.6.2.1 Interrupt Location Register (ILR - 0x4002
4000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562
27.6.2.2 Clock Control Register (CCR - 0x4002 4008) 562
27.6.2.3 Counter Increment Interrupt Register (CIIR -
0x4002 400C). . . . . . . . . . . . . . . . . . . . . . . . 563
27.6.2.4 Alarm Mask Register (AMR - 0x4002 4010). 563
27.6.2.5 RTC Auxiliary control register (RTC_AUX -
0x4002 405C). . . . . . . . . . . . . . . . . . . . . . . . 564
27.6.2.6 RTC Auxiliary Enable register (RTC_AUXEN -
0x4002 4058) . . . . . . . . . . . . . . . . . . . . . . . . 564
27.6.3 Consolidated time registers . . . . . . . . . . . . . 565
27.6.3.1 Consolidated Time Register 0 (CTIME0 -
0x4002 4014) . . . . . . . . . . . . . . . . . . . . . . . . 565
27.6.3.2 Consolidated Time Register 1 (CTIME1 -
0x4002 4018) . . . . . . . . . . . . . . . . . . . . . . . . 565
27.6.3.3 Consolidated Time Register 2 (CTIME2 -
0x4002 401C) . . . . . . . . . . . . . . . . . . . . . . . 565
27.6.4 Time Counter Group . . . . . . . . . . . . . . . . . . 566
27.6.4.1 Leap year calculation. . . . . . . . . . . . . . . . . . 566
27.6.4.2 Calibration register (CALIBRATION - address
0x4002 4040) . . . . . . . . . . . . . . . . . . . . . . . . 566
27.6.5 Calibration procedure. . . . . . . . . . . . . . . . . . 567
Backward calibration . . . . . . . . . . . . . . . . . . . 567
Forward calibration . . . . . . . . . . . . . . . . . . . . 567
27.6.6 General purpose registers . . . . . . . . . . . . . 568
27.6.6.1 General purpose registers 0 to 4 (GPREG0 to
GPREG4 - addresses 0x4002 4044 to 0x4002
4054) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568
27.6.7 Alarm register group . . . . . . . . . . . . . . . . . . 568
27.7 RTC usage notes. . . . . . . . . . . . . . . . . . . . . . 568
Chapter 28: LPC17xx Watchdog Timer (WDT)
28.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569
28.2 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 569
28.3 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 570
28.4 Register description . . . . . . . . . . . . . . . . . . . 570
28.4.1 Watchdog Mode register (WDMOD -
0x4000 0000) . . . . . . . . . . . . . . . . . . . . . . . . 571
28.4.2 Watchdog Timer Constant register (WDTC -
0x4000 0004) . . . . . . . . . . . . . . . . . . . . . . . . 572
28.4.3 Watchdog Feed register (WDFEED -
0x4000 0008) . . . . . . . . . . . . . . . . . . . . . . . . 572
28.4.4 Watchdog Timer Value register (WDTV -
0x4000 000C) . . . . . . . . . . . . . . . . . . . . . . . 572
28.4.5 Watchdog Timer Clock Source Selection register
(WDCLKSEL - 0x4000 0010). . . . . . . . . . . . 572
28.5 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . 573
Chapter 29: LPC17xx Analog-to-Digital Converter (ADC)
29.1 Basic configuration . . . . . . . . . . . . . . . . . . . . 574
29.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574
29.3 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 574
29.4 Pin description. . . . . . . . . . . . . . . . . . . . . . . . 575
29.5 Register description . . . . . . . . . . . . . . . . . . . 576
29.5.1 A/D Control Register (AD0CR - 0x4003
4000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
29.5.2 A/D Global Data Register (AD0GDR -
0x4003 4004) . . . . . . . . . . . . . . . . . . . . . . . . 578
29.5.3 A/D Interrupt Enable register (AD0INTEN -
0x4003 400C) . . . . . . . . . . . . . . . . . . . . . . . 578
29.5.4 A/D Data Registers (AD0DR0 to AD0DR7 -
0x4003 4010 to 0x4003 402C). . . . . . . . . . . 579
29.5.5 A/D Status register (ADSTAT - 0x4003 4030) 580
29.5.6 A/D Trim register (ADTRIM - 0x4003 4034). 580
29.6 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
29.6.1 Hardware-triggered conversion . . . . . . . . . . 581
29.6.2 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
29.6.3 Accuracy vs. digital receiver . . . . . . . . . . . . 581
29.6.4 DMA control . . . . . . . . . . . . . . . . . . . . . . . . . 581
Chapter 30: LPC17xx Digital-to-Analog Converter (DAC)
30.1 Basic configuration . . . . . . . . . . . . . . . . . . . . 582 30.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582