
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
484 of 487
NXP Semiconductors
UM10800
Chapter 35: Supplementary information
24.5.1.2 Signature generation . . . . . . . . . . . . . . . . . . 366
24.5.1.3 Content verification . . . . . . . . . . . . . . . . . . . 366
Chapter 25: LPC82x Flash In-System and In-Application Programming (ISP and IAP)
How to read this chapter . . . . . . . . . . . . . . . . 368
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Basic configuration . . . . . . . . . . . . . . . . . . . . 368
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 368
General description . . . . . . . . . . . . . . . . . . . . 368
Flash configuration . . . . . . . . . . . . . . . . . . . . 368
Flash content protection mechanism . . . . . . 369
Code Read Protection (CRP) . . . . . . . . . . . . 370
25.5.3.1 ISP entry protection . . . . . . . . . . . . . . . . . . . 372
API description . . . . . . . . . . . . . . . . . . . . . . . 372
UART ISP commands. . . . . . . . . . . . . . . . . . 372
25.6.1.1 Unlock <Unlock code> . . . . . . . . . . . . . . . . . 373
25.6.1.2 Set Baud Rate <Baud Rate> <stop bit> . . . 373
25.6.1.3 Echo <setting> . . . . . . . . . . . . . . . . . . . . . . . 374
25.6.1.4 Write to RAM <start address> <number of bytes>
25.6.1.5 Read Memory <address> <number of bytes> . . .
25.6.1.6 Prepare sector(s) for write operation <start sector
number> <end sector number> . . . . . . . . . . 375
25.6.1.7 Copy RAM to flash <Flash address> <RAM
address> <no of bytes> . . . . . . . . . . . . . . . . 375
25.6.1.8 Go <address> <mode> . . . . . . . . . . . . . . . . 376
25.6.1.9 Erase sector(s) <start sector number> <end
sector number> . . . . . . . . . . . . . . . . . . . . . . 377
25.6.1.10 Blank check sector(s) <sector number> <end
sector number> . . . . . . . . . . . . . . . . . . . . . . 377
<no of bytes> . . . . . . . . . . . . . . . . . . . . . . . . 378
25.6.1.16 UART ISP Return Codes . . . . . . . . . . . . . . . 380
25.6.2
IAP commands. . . . . . . . . . . . . . . . . . . . . . . 380
25.6.2.1 Prepare sector(s) for write operation (IAP) . 382
25.6.2.2 Copy RAM to flash (IAP) . . . . . . . . . . . . . . . 383
25.6.2.3 Erase Sector(s) (IAP). . . . . . . . . . . . . . . . . . 384
25.6.2.4 Blank check sector(s) (IAP) . . . . . . . . . . . . . 384
25.6.2.5 Read Part Identification number (IAP) . . . . . 384
25.6.2.6 Read Boot code version number (IAP) . . . . 385
25.6.2.7 Compare <address1> <address2> <no of bytes>
(IAP). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
25.6.2.8 Reinvoke ISP (IAP) . . . . . . . . . . . . . . . . . . . 386
25.6.2.9 ReadUID (IAP) . . . . . . . . . . . . . . . . . . . . . . . 386
25.6.2.10 Erase page. . . . . . . . . . . . . . . . . . . . . . . . . . 386
25.6.2.11 IAP Status codes . . . . . . . . . . . . . . . . . . . . . 387
Functional description . . . . . . . . . . . . . . . . . 387
protocol . . . . . . . . . . 387
25.7.1.1 UART ISP command format. . . . . . . . . . . . . 387
25.7.1.2 UART
response format . . . . . . . . . . . . . 387
25.7.1.3 UART ISP data format . . . . . . . . . . . . . . . . . 387
25.7.2
Memory and interrupt use for ISP and IAP . 388
Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . 388
interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Chapter 26: LPC82x ROM API Power profiles
How to read this chapter . . . . . . . . . . . . . . . . 389
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Basic configuration . . . . . . . . . . . . . . . . . . . . 389
General description . . . . . . . . . . . . . . . . . . . . 389
API description . . . . . . . . . . . . . . . . . . . . . . . 390
set_pll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
26.5.1.1 Param0: system PLL input frequency and
Param1: expected system clock . . . . . . . . . . 392
26.5.1.2 Param2: mode . . . . . . . . . . . . . . . . . . . . . . . 392
26.5.1.3 Param3: system PLL lock time-out . . . . . . . . 393
26.5.2
set_power . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
clock . . . . . . . . . . . . . . . . . 395
Functional description . . . . . . . . . . . . . . . . . 395
Clock control . . . . . . . . . . . . . . . . . . . . . . . . 395
exceeded) . . . . . . . . . . . . . . . . . . . . . . . . . . 395
selection (system clock divider
restrictions) . . . . . . . . . . . . . . . . . . . . . . . . . 396
value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
26.6.1.5 System clock greater than or equal to the
expected value. . . . . . . . . . . . . . . . . . . . . . . 396
26.6.1.6 System clock approximately equal to the expected
value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
Power control . . . . . . . . . . . . . . . . . . . . . . . . 397
exceeded) . . . . . . . . . . . . . . . . . . . . . . . . . . 397
26.6.2.2 An applicable power setup. . . . . . . . . . . . . . 397
Chapter 27: LPC82x ROM API USART driver routines
How to read this chapter . . . . . . . . . . . . . . . . 398
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398