UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
254 of 258
NXP Semiconductors
UM10429
Chapter 20: LPC1102 Supplementary information
PWM Control Register (TMR32B0PWMC and
TMR32B1PWMC) . . . . . . . . . . . . . . . . . . . . . 127
Example timer operation . . . . . . . . . . . . . . . 129
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Chapter 14: LPC1102 WatchDog Timer (WDT)
How to read this chapter . . . . . . . . . . . . . . . . 131
Basic configuration . . . . . . . . . . . . . . . . . . . . 131
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
WDT clocking . . . . . . . . . . . . . . . . . . . . . . . . . 132
Register description . . . . . . . . . . . . . . . . . . . 132
Watchdog Mode register (WDMOD -
0x4000 0000) . . . . . . . . . . . . . . . . . . . . . . . . 133
Watchdog Feed register (WDFEED -
0x4000 4008) . . . . . . . . . . . . . . . . . . . . . . . . 134
Watchdog Timer Value register (WDTV -
0x4000 400C) . . . . . . . . . . . . . . . . . . . . . . . 135
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . 135
Chapter 15: LPC1102 System tick timer
How to read this chapter . . . . . . . . . . . . . . . . 136
Basic configuration . . . . . . . . . . . . . . . . . . . . 136
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Register description . . . . . . . . . . . . . . . . . . . 137
System Timer Control and status register . . 138
System Timer Reload value register . . . . . . 138
System Timer Current value register . . . . . 138
System Timer Calibration value register
(SYST_CALIB - 0xE000 E01C) . . . . . . . . . . 138
Example timer calculations . . . . . . . . . . . . . 139
Example (system clock = 50 MHz). . . . . . . . . 139
Chapter 16: LPC1102 Analog-to-Digital Converter (ADC)
How to read this chapter . . . . . . . . . . . . . . . . 140
Basic configuration . . . . . . . . . . . . . . . . . . . . 140
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 140
ADC clocking . . . . . . . . . . . . . . . . . . . . . . . . . 141
Register description . . . . . . . . . . . . . . . . . . . 141
A/D Control Register . . . . . . . . . . . . . . . . . . 141
A/D Global Data Register . . . . . . . . . . . . . . 143
A/D Status Register . . . . . . . . . . . . . . . . . . . 143
A/D Interrupt Enable Register . . . . . . . . . . . 144
A/D Data Registers . . . . . . . . . . . . . . . . . . . 144
Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
conversion . . . . . . . . . . 145
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Accuracy vs. digital receiver . . . . . . . . . . . . 145
Chapter 17: LPC1102 Flash memory programming firmware
How to read this chapter . . . . . . . . . . . . . . . . 146
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
General description . . . . . . . . . . . . . . . . . . . . 146
Bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Memory map after any reset. . . . . . . . . . . . . 146
Criterion for Valid User Code . . . . . . . . . . . . 147
Boot process flowchart . . . . . . . . . . . . . . . . . 148
Sector numbers . . . . . . . . . . . . . . . . . . . . . . 149
Flash content protection mechanism . . . . . . 149
Code Read Protection (CRP) . . . . . . . . . . . . 149
UART Communication protocol . . . . . . . . . . 151
UART ISP command format . . . . . . . . . . . . . 151
UART ISP response format . . . . . . . . . . . . . 151
UART ISP data format . . . . . . . . . . . . . . . . . 151
UART ISP flow control . . . . . . . . . . . . . . . . . 152
UART SP command abort . . . . . . . . . . . . . . 152
Interrupts during UART ISP . . . . . . . . . . . . . 152
Interrupts during IAP. . . . . . . . . . . . . . . . . . . 152
RAM used by ISP command handler . . . . . . 152
RAM used by IAP command handler . . . . . . 152
UART ISP commands . . . . . . . . . . . . . . . . . . 152
Unlock <Unlock code> (UART ISP) . . . . . . . 153
Echo <setting> (UART ISP) . . . . . . . . . . . . . 154
Prepare sector(s) for write operation <start sector
number> <end sector number> (UART ISP) 155
Copy RAM to flash <Flash address> <RAM
address> <no of bytes> (UART ISP) . . . . . . 156
Go <address> <mode> (UART ISP) . . . . . . 157
Erase sector(s) <start sector number> <end
sector number> (UART ISP) . . . . . . . . . . . . 158