Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual

Page 789

Advertising
background image

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

1

Basic configuration . . . . . . . . . . . . . . . . . . . . 647

2

Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647

3

Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 647

4

Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 648

5

Pin description . . . . . . . . . . . . . . . . . . . . . . . . 648

6

Register description . . . . . . . . . . . . . . . . . . . 649

6.1

RTC interrupts . . . . . . . . . . . . . . . . . . . . . . . 650

6.2

Miscellaneous register group . . . . . . . . . . . . 650

6.2.1

Interrupt Location Register (ILR -
0xE002 4000) . . . . . . . . . . . . . . . . . . . . . . . . 650

6.2.2

Clock Tick Counter Register (CTCR -
0xE002 4004) . . . . . . . . . . . . . . . . . . . . . . . . 651

6.2.3

Clock Control Register (CCR - 0xE002 4008) 651

6.2.4

Counter Increment Interrupt Register (CIIR -
0xE002 400C). . . . . . . . . . . . . . . . . . . . . . . . 651

6.2.5

Counter Increment Select Mask Register (CISS -
0xE002 4040) . . . . . . . . . . . . . . . . . . . . . . . . 652

6.2.6

Alarm Mask Register (AMR - 0xE002 4010). 653

6.3

Consolidated time registers . . . . . . . . . . . . . 653

6.3.1

Consolidated Time Register 0 (CTIME0 -
0xE002 4014) . . . . . . . . . . . . . . . . . . . . . . . . 653

6.3.2

Consolidated Time Register 1 (CTIME1 -
0xE002 4018). . . . . . . . . . . . . . . . . . . . . . . . 654

6.3.3

Consolidated Time Register 2 (CTIME2 -
0xE002 401C) . . . . . . . . . . . . . . . . . . . . . . . 654

6.4

Time Counter Group . . . . . . . . . . . . . . . . . . 654

6.4.1

Leap year calculation . . . . . . . . . . . . . . . . . . 655

6.5

Alarm register group . . . . . . . . . . . . . . . . . . 655

6.6

Alarm output. . . . . . . . . . . . . . . . . . . . . . . . . 656

6.7

RTC clock generation . . . . . . . . . . . . . . . . . 656

6.7.1

Reference Clock Divider (Prescaler) . . . . . . 656

6.7.2

Prescaler Integer Register (PREINT -
0xE002 4080). . . . . . . . . . . . . . . . . . . . . . . . 657

6.7.3

Prescaler Fraction Register (PREFRAC -
0xE002 4084). . . . . . . . . . . . . . . . . . . . . . . . 657

6.7.4

Example of Prescaler Usage . . . . . . . . . . . . 657

6.7.5

Prescaler operation . . . . . . . . . . . . . . . . . . . 658

7

RTC usage notes. . . . . . . . . . . . . . . . . . . . . . 659

8

Battery RAM. . . . . . . . . . . . . . . . . . . . . . . . . . 660

9

RTC external 32 kHz oscillator component
selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660

Chapter 27: LPC24XX WatchDog Timer (WDT)

1

Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662

2

Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 662

3

Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 662

4

Register description . . . . . . . . . . . . . . . . . . . 663

4.1

Watchdog Mode Register (WDMOD -
0xE000 0000) . . . . . . . . . . . . . . . . . . . . . . . . 663

4.2

Watchdog Timer Constant Register (WDTC -
0xE000 0004) . . . . . . . . . . . . . . . . . . . . . . . . 664

4.3

Watchdog Feed Register (WDFEED -
0xE000 0008). . . . . . . . . . . . . . . . . . . . . . . . 664

4.4

Watchdog Timer Value Register (WDTV -
0xE000 000C) . . . . . . . . . . . . . . . . . . . . . . . 665

4.5

Watchdog Timer Clock Source Selection Register
(WDCLKSEL - 0xE000 0010) . . . . . . . . . . . 665

5

Block diagram . . . . . . . . . . . . . . . . . . . . . . . . 666

Chapter 28: LPC24XX Analog-to Digital Converter (ADC)

1

Basic configuration . . . . . . . . . . . . . . . . . . . . 667

2

Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667

3

Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 667

4

Pin description . . . . . . . . . . . . . . . . . . . . . . . . 667

5

Register description . . . . . . . . . . . . . . . . . . . 668

5.1

A/D Control Register (AD0CR -
0xE003 4000) . . . . . . . . . . . . . . . . . . . . . . . . 669

5.2

A/D Global Data Register (AD0GDR -
0xE003 4004) . . . . . . . . . . . . . . . . . . . . . . . . 670

5.3

A/D Status Register (AD0STAT -
0xE003 4030). . . . . . . . . . . . . . . . . . . . . . . . 671

5.4

A/D Interrupt Enable Register (AD0INTEN -
0xE003 400C) . . . . . . . . . . . . . . . . . . . . . . . 672

5.5

A/D Data Registers (AD0DR0 to AD0DR7 -
0xE003 4010 to 0xE003 402C) . . . . . . . . . . 672

6

Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673

6.1

Hardware-triggered conversion . . . . . . . . . . 673

6.2

Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . 673

6.3

Accuracy vs. digital receiver . . . . . . . . . . . . 673

Chapter 29: LPC24XX Digital-to Analog Converter (DAC)

1

Basic configuration . . . . . . . . . . . . . . . . . . . . 674

2

Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674

3

Pin description . . . . . . . . . . . . . . . . . . . . . . . . 674

4

Register description (DACR - 0xE006 C000) 674

5

Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 675

Chapter 30: LPC24XX Flash memory programming firmware

1

How to read this chapter . . . . . . . . . . . . . . . . 676

2

Flash boot loader . . . . . . . . . . . . . . . . . . . . . 676

Advertising