Philips LPC213 Series User Manual page 269

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
18.6.1
Prescaler Integer register (PREINT -
0xE002 4080) . . . . . . . . . . . . . . . . . . . . . . . . 208
18.6.2
Prescaler Fraction register (PREFRAC -
0xE002 4084) . . . . . . . . . . . . . . . . . . . . . . . . 208
Chapter 19: Watchdog Timer
19.1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
19.2
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 212
19.3
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
19.4
Register description . . . . . . . . . . . . . . . . . . . 213
19.4.1
Watchdog Mode register (WDMOD -
0xE000 0000) . . . . . . . . . . . . . . . . . . . . . . . . 213
Chapter 20: Flash Memory System and Programming
20.1
Flash Boot Loader . . . . . . . . . . . . . . . . . . . . . 216
20.2
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
20.3
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 216
20.4
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
20.4.1
Memory map after any reset. . . . . . . . . . . . . 216
20.4.2
Criterion for valid user code . . . . . . . . . . . . . 217
20.4.3
Communication protocol . . . . . . . . . . . . . . . . 218
20.4.4
ISP command format . . . . . . . . . . . . . . . . . . 218
20.4.5
ISP response format . . . . . . . . . . . . . . . . . . . 218
20.4.6
ISP data format. . . . . . . . . . . . . . . . . . . . . . . 218
20.4.7
ISP flow control. . . . . . . . . . . . . . . . . . . . . . . 218
20.4.8
ISP command sbort . . . . . . . . . . . . . . . . . . . 219
20.4.9
Interrupts during ISP. . . . . . . . . . . . . . . . . . . 219
20.4.10
Interrupts during IAP. . . . . . . . . . . . . . . . . . . 219
20.4.11
RAM used by ISP command handler . . . . . . 219
20.4.12
RAM used by IAP command handler . . . . . . 219
20.4.13
RAM used by RealMonitor . . . . . . . . . . . . . . 219
20.4.14
Boot process flowchart . . . . . . . . . . . . . . . . . 220
20.5
Sector numbers . . . . . . . . . . . . . . . . . . . . . . . 220
20.6
Flash content protection mechanism . . . . . 221
20.7
Code Read Protection (CRP) . . . . . . . . . . . . 222
20.8
ISP commands . . . . . . . . . . . . . . . . . . . . . . . . 222
20.8.1
Unlock <unlock code> . . . . . . . . . . . . . . . . . 223
20.8.2
Set Baud Rate <baud rate> <stop bit> . . . . . 223
20.8.3
Echo <setting> . . . . . . . . . . . . . . . . . . . . . . . 224
20.8.4
Write to RAM <start address>
<number of bytes> . . . . . . . . . . . . . . . . . . . . 224
Chapter 21: EmbeddedICE logic
21.1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
21.2
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 237
User manual
18.6.3
Example of prescaler usage . . . . . . . . . . . . 208
18.6.4
Prescaler operation . . . . . . . . . . . . . . . . . . . 209
18.7
RTC external 32 kHz oscillator component
selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
19.4.2
Watchdog Timer Constant register (WDTC -
0xE000 0004). . . . . . . . . . . . . . . . . . . . . . . . 214
19.4.3
Watchdog Feed register (WDFEED -
0xE000 0008). . . . . . . . . . . . . . . . . . . . . . . . 214
19.4.4
Watchdog Timer Value register (WDTV -
0xE000 000C) . . . . . . . . . . . . . . . . . . . . . . . 214
19.5
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . 214
20.8.5
Read memory <address> <no. of bytes>. . . 225
20.8.6
Prepare sector(s) for write operation <start sector
number> <end sector number> . . . . . . . . . . 225
20.8.7
Copy RAM to Flash <Flash address> <RAM
address> <no of bytes> . . . . . . . . . . . . . . . . 226
20.8.8
Go <address> <mode> . . . . . . . . . . . . . . . . 227
20.8.9
Erase sector(s) <start sector number> <end
sector number> . . . . . . . . . . . . . . . . . . . . . . 227
20.8.10
Blank check sector(s) <sector number> <end
sector number> . . . . . . . . . . . . . . . . . . . . . . 228
20.8.11
Read Part Identification number . . . . . . . . . 228
20.8.12
Read Boot code version number . . . . . . . . . 228
20.8.13
Compare <address1> <address2>
<no of bytes> . . . . . . . . . . . . . . . . . . . . . . . . 229
20.8.14
ISP Return codes. . . . . . . . . . . . . . . . . . . . . 229
20.9
IAP Commands . . . . . . . . . . . . . . . . . . . . . . . 230
20.9.1
Prepare sector(s) for write operation . . . . . . 232
20.9.2
Copy RAM to Flash . . . . . . . . . . . . . . . . . . . 233
20.9.3
Erase sector(s). . . . . . . . . . . . . . . . . . . . . . . 233
20.9.4
Blank check sector(s). . . . . . . . . . . . . . . . . . 234
20.9.5
Read Part Identification number . . . . . . . . . 234
20.9.6
Read Boot code version number . . . . . . . . . 234
20.9.7
Compare <address1> <address2>
<no of bytes> . . . . . . . . . . . . . . . . . . . . . . . . 235
20.9.8
Reinvoke ISP . . . . . . . . . . . . . . . . . . . . . . . . 235
20.9.9
IAP Status codes . . . . . . . . . . . . . . . . . . . . . 235
20.10
JTAG Flash programming interface. . . . . . . 236
21.3
Description . . . . . . . . . . . . . . . . . . . . . . . . . . 237
21.4
Pin description . . . . . . . . . . . . . . . . . . . . . . . 238
Rev. 01 — 24 June 2005
UM10120
Chapter 24: Supplementary information
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
continued >>
269

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents