Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual
Page 789
![background image](/manuals/190592/789/background.png)
UM10237_4
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 04 — 26 August 2009
789 of 792
NXP Semiconductors
UM10237
Chapter 36: LPC24XX Supplementary information
Chapter 26: LPC24XX Real-Time Clock (RTC) and battery RAM
Basic configuration . . . . . . . . . . . . . . . . . . . . 647
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 648
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 648
Register description . . . . . . . . . . . . . . . . . . . 649
RTC interrupts . . . . . . . . . . . . . . . . . . . . . . . 650
Miscellaneous register group . . . . . . . . . . . . 650
Interrupt Location Register (ILR -
0xE002 4000) . . . . . . . . . . . . . . . . . . . . . . . . 650
Clock Tick Counter Register (CTCR -
0xE002 4004) . . . . . . . . . . . . . . . . . . . . . . . . 651
Clock Control Register (CCR - 0xE002 4008) 651
Alarm Mask Register (AMR - 0xE002 4010). 653
Consolidated time registers . . . . . . . . . . . . . 653
Time Counter Group . . . . . . . . . . . . . . . . . . 654
Leap year calculation . . . . . . . . . . . . . . . . . . 655
Alarm register group . . . . . . . . . . . . . . . . . . 655
Alarm output. . . . . . . . . . . . . . . . . . . . . . . . . 656
RTC clock generation . . . . . . . . . . . . . . . . . 656
Reference Clock Divider (Prescaler) . . . . . . 656
Prescaler Integer Register (PREINT -
0xE002 4080). . . . . . . . . . . . . . . . . . . . . . . . 657
Example of Prescaler Usage . . . . . . . . . . . . 657
Prescaler operation . . . . . . . . . . . . . . . . . . . 658
RTC usage notes. . . . . . . . . . . . . . . . . . . . . . 659
Battery RAM. . . . . . . . . . . . . . . . . . . . . . . . . . 660
Chapter 27: LPC24XX WatchDog Timer (WDT)
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Register description . . . . . . . . . . . . . . . . . . . 663
Watchdog Mode Register (WDMOD -
0xE000 0000) . . . . . . . . . . . . . . . . . . . . . . . . 663
Watchdog Feed Register (WDFEED -
0xE000 0008). . . . . . . . . . . . . . . . . . . . . . . . 664
Watchdog Timer Value Register (WDTV -
0xE000 000C) . . . . . . . . . . . . . . . . . . . . . . . 665
Watchdog Timer Clock Source Selection Register
(WDCLKSEL - 0xE000 0010) . . . . . . . . . . . 665
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . 666
Chapter 28: LPC24XX Analog-to Digital Converter (ADC)
Basic configuration . . . . . . . . . . . . . . . . . . . . 667
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 667
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 667
Register description . . . . . . . . . . . . . . . . . . . 668
A/D Control Register (AD0CR -
0xE003 4000) . . . . . . . . . . . . . . . . . . . . . . . . 669
A/D Global Data Register (AD0GDR -
0xE003 4004) . . . . . . . . . . . . . . . . . . . . . . . . 670
A/D Status Register (AD0STAT -
0xE003 4030). . . . . . . . . . . . . . . . . . . . . . . . 671
A/D Data Registers (AD0DR0 to AD0DR7 -
0xE003 4010 to 0xE003 402C) . . . . . . . . . . 672
Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
Hardware-triggered conversion . . . . . . . . . . 673
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
Accuracy vs. digital receiver . . . . . . . . . . . . 673
Chapter 29: LPC24XX Digital-to Analog Converter (DAC)
Basic configuration . . . . . . . . . . . . . . . . . . . . 674
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 674
Register description (DACR - 0xE006 C000) 674
Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 675
Chapter 30: LPC24XX Flash memory programming firmware
How to read this chapter . . . . . . . . . . . . . . . . 676
Flash boot loader . . . . . . . . . . . . . . . . . . . . . 676