
UM10375
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 3 — 14 June 2011
367 of 368
NXP Semiconductors
UM10375
Chapter 23: LPC13xx Supplementary information
Watchdog Mode register (WDMOD -
0x4000 0000) . . . . . . . . . . . . . . . . . . . . . . . . 301
Watchdog Feed register (WDFEED -
0x4000 4008) . . . . . . . . . . . . . . . . . . . . . . . . 302
Watchdog Timer Value register (WDTV -
0x4000 400C) . . . . . . . . . . . . . . . . . . . . . . . 303
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . 303
Chapter 19: LPC13xx Windowed WatchDog Timer (WWDT)
How to read this chapter . . . . . . . . . . . . . . . . 304
Basic configuration . . . . . . . . . . . . . . . . . . . . 304
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 305
General description . . . . . . . . . . . . . . . . . . . . 305
Clocking and power control . . . . . . . . . . . . . 306
Register description . . . . . . . . . . . . . . . . . . . 307
Watchdog Mode register . . . . . . . . . . . . . . . 307
Watchdog Timer Constant register . . . . . . . 308
Watchdog Feed register . . . . . . . . . . . . . . . 309
Watchdog Timer Value register . . . . . . . . . . 309
Watchdog Timer Warning Interrupt register 309
Watchdog Timer Window register . . . . . . . . 310
Watchdog timing examples . . . . . . . . . . . . . 310
Chapter 20: LPC13xx Analog-to-Digital Converter (ADC)
How to read this chapter . . . . . . . . . . . . . . . . 312
Basic configuration . . . . . . . . . . . . . . . . . . . . 312
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 312
Clocking and power control . . . . . . . . . . . . . 313
Register description . . . . . . . . . . . . . . . . . . . 313
A/D Control Register (AD0CR -
0x4001 C000) . . . . . . . . . . . . . . . . . . . . . . . . 314
A/D Global Data Register (AD0GDR -
0x4001 C004) . . . . . . . . . . . . . . . . . . . . . . . . 315
A/D Data Registers (AD0DR0 to AD0DR7 -
0x4001 C010 to 0x4001 C02C) . . . . . . . . . . 316
A/D Status Register (AD0STAT -
0x4001 C030) . . . . . . . . . . . . . . . . . . . . . . . 316
Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
conversion . . . . . . . . . . 317
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
Chapter 21: LPC13xx Flash memory programming firmware
How to read this chapter . . . . . . . . . . . . . . . . 318
Bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Bootloader code version 5.2 notes . . . . . . . . 319
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Memory map after any reset . . . . . . . . . . . . . 320
Flash content protection mechanism . . . . . 320
Criterion for Valid User Code . . . . . . . . . . . . 321
ISP/IAP communication protocol . . . . . . . . . 321
ISP command format . . . . . . . . . . . . . . . . . . 321
ISP response format . . . . . . . . . . . . . . . . . . . 321
ISP data format. . . . . . . . . . . . . . . . . . . . . . . 322
ISP flow control. . . . . . . . . . . . . . . . . . . . . . . 322
ISP command abort . . . . . . . . . . . . . . . . . . . 322
Interrupts during ISP. . . . . . . . . . . . . . . . . . . 322
Interrupts during IAP. . . . . . . . . . . . . . . . . . . 322
RAM used by ISP command handler . . . . . . 322
RAM used by IAP command handler . . . . . . 322
USB communication protocol . . . . . . . . . . . 323
Usage note . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Boot process flowchart . . . . . . . . . . . . . . . . . 324
Sector numbers . . . . . . . . . . . . . . . . . . . . . . . 325
Code Read Protection (CRP) . . . . . . . . . . . . 325
ISP entry protection . . . . . . . . . . . . . . . . . . . 327
ISP commands . . . . . . . . . . . . . . . . . . . . . . . 328
Unlock <Unlock code> . . . . . . . . . . . . . . . . . 328
Set Baud Rate <Baud Rate> <stop bit>. . . . 329
Echo <setting> . . . . . . . . . . . . . . . . . . . . . . . 329
Write to RAM <start address>
<number of bytes> . . . . . . . . . . . . . . . . . . . . 329
Read Memory <address> <no. of bytes>. . . 330
Copy RAM to flash <Flash address> <RAM
address> <no of bytes> . . . . . . . . . . . . . . . . 331
Go <address> <mode> . . . . . . . . . . . . . . . . 332
21.13.10 Blank check sector(s) <sector number> <end
sector number> . . . . . . . . . . . . . . . . . . . . . . 333
21.13.11 Read Part Identification number . . . . . . . . . 333
21.13.12 Read Boot code version number . . . . . . . . . 334
21.13.13 Compare <address1> <address2>
<no of bytes> . . . . . . . . . . . . . . . . . . . . . . . . 334
IAP commands . . . . . . . . . . . . . . . . . . . . . . . 336
Prepare sector(s) for write operation . . . . . . 337
Copy RAM to flash . . . . . . . . . . . . . . . . . . . . 338
Erase Sector(s) . . . . . . . . . . . . . . . . . . . . . . 339