
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
474 of 487
NXP Semiconductors
UM10800
Chapter 35: Supplementary information
0x5000 0000) . . . . . . . . . . . . . . . . . . . . . . . . .361
Table 299. CRC mode register (MODE, address 0x5000
0000) bit description . . . . . . . . . . . . . . . . . . . .361
Table 300. CRC seed register (SEED, address 0x5000
0004) bit description . . . . . . . . . . . . . . . . . . . .361
Table 301. CRC checksum register (SUM, address 0x5000
0008) bit description . . . . . . . . . . . . . . . . . . . .362
Table 302. CRC data register (WR_DATA, address 0x5000
0008) bit description . . . . . . . . . . . . . . . . . . . .362
Table 303. Register overview: FMC (base address 0x4004
0000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .364
Table 304. Flash configuration register (FLASHCFG,
address 0x4004 0010) bit description. . . . . . .364
Table 305. Flash Module Signature Start register
(FMSSTART, 0x4004 0020) bit description. . .365
Table 306. Flash Module Signature Stop register
(FMSSTOP, 0x4004 0024) bit description . . .365
Table 307. FMSW0 register bit description (FMSW0,
address: 0x4004 002C) . . . . . . . . . . . . . . . . .365
Table 308. LPC82x flash configuration . . . . . . . . . . . . . .369
Table 309. Code Read Protection options . . . . . . . . . . . .371
Table 310. Code Read Protection hardware/software
interaction . . . . . . . . . . . . . . . . . . . . . . . . . . . .371
Table 311. ISP commands allowed for different CRP levels .
Table 312. UART ISP command summary . . . . . . . . . . .373
Table 313. UART ISP Unlock command . . . . . . . . . . . . .373
Table 314. UART ISP Set Baud Rate command . . . . . . .373
Table 315. UART ISP Echo command . . . . . . . . . . . . . .374
Table 316. UART ISP Write to RAM command . . . . . . . .374
Table 317. UART ISP Read Memory command . . . . . . .375
Table 318. UART ISP Prepare sector(s) for write operation
command . . . . . . . . . . . . . . . . . . . . . . . . . . . .375
Table 319. UART ISP Copy RAM to flash command. . . .376
Table 320. UART ISP Go command . . . . . . . . . . . . . . . .376
Table 321. UART ISP Erase sector command . . . . . . . .377
Table 322. UART ISP Blank check sector command . . .377
Table 323. UART ISP Read Part Identification command378
Table 324. Part identification numbers . . . . . . . . . . . . . .378
Table 325. UART ISP Read Boot Code version number
command . . . . . . . . . . . . . . . . . . . . . . . . . . . .378
Table 326. UART ISP Compare command . . . . . . . . . . .378
Table 327. UART ISP ReadUID command . . . . . . . . . . .379
Table 328. UART ISP Read CRC checksum command .379
Table 329. UART ISP Return Codes Summary. . . . . . . .380
Table 330. IAP Command Summary . . . . . . . . . . . . . . . .382
Table 331. IAP Prepare sector(s) for write operation
command . . . . . . . . . . . . . . . . . . . . . . . . . . . .383
Table 332. IAP Copy RAM to flash command . . . . . . . . .383
Table 333. IAP Erase Sector(s) command . . . . . . . . . . .384
Table 334. IAP Blank check sector(s) command . . . . . . .384
Table 335. IAP Read Part Identification command . . . . .384
Table 336. IAP Read Boot Code version number command .
Table 337. IAP Compare command. . . . . . . . . . . . . . . . .385
Table 338. IAP Reinvoke ISP . . . . . . . . . . . . . . . . . . . . .386
Table 339. IAP ReadUID command. . . . . . . . . . . . . . . . .386
Table 340. IAP Erase page command . . . . . . . . . . . . . . .386
Table 341. IAP Status codes Summary . . . . . . . . . . . . . 387
Table 342. Memory mapping in debug mode . . . . . . . . . 388
Table 343. Power profile API calls . . . . . . . . . . . . . . . . . 391
Table 344. set_pll routine . . . . . . . . . . . . . . . . . . . . . . . . 391
Table 345. set_power routine . . . . . . . . . . . . . . . . . . . . . 394
Table 346. UART API calls . . . . . . . . . . . . . . . . . . . . . . . 399
Table 347. uart_get_mem_size. . . . . . . . . . . . . . . . . . . . 399
Table 348. uart_setup . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
Table 349. uart_init . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
Table 350. uart_get_char . . . . . . . . . . . . . . . . . . . . . . . . 400
Table 351. uart_put_char . . . . . . . . . . . . . . . . . . . . . . . . 400
Table 352. uart_get_line . . . . . . . . . . . . . . . . . . . . . . . . . 401
Table 353. uart_put_line . . . . . . . . . . . . . . . . . . . . . . . . . 401
Table 354. uart_isr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
Table 355. Error codes . . . . . . . . . . . . . . . . . . . . . . . . . . 401
Table 356. SPI API calls . . . . . . . . . . . . . . . . . . . . . . . . . 405
Table 357. spi_get_mem_size . . . . . . . . . . . . . . . . . . . . 405
Table 358. spi_setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
Table 359. spi_init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Table 360. spi_master_transfer . . . . . . . . . . . . . . . . . . . 406
Table 361. spi_slave_transfer . . . . . . . . . . . . . . . . . . . . . 406
Table 362. spi_isr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Table 363. Error codes . . . . . . . . . . . . . . . . . . . . . . . . . . 407
Table 364. I2C API calls . . . . . . . . . . . . . . . . . . . . . . . . . 415
Table 365. ISR handler . . . . . . . . . . . . . . . . . . . . . . . . . . 417
Table 366. I2C Master Transmit Polling . . . . . . . . . . . . . 417
Table 367. I2C Master Receive Polling . . . . . . . . . . . . . 417
Table 368. I2C Master Transmit and Receive Polling . . . 418
Table 369. I2C Master Transmit Interrupt . . . . . . . . . . . . 418
Table 370. I2C Master Receive Interrupt . . . . . . . . . . . . 419
Table 371. I2C Master Transmit Receive Interrupt . . . . . 419
Table 372. I2C Slave Receive Polling . . . . . . . . . . . . . . . 419
Table 373. I2C Slave Transmit Polling . . . . . . . . . . . . . . 420
Table 374. I2C Slave Receive Interrupt . . . . . . . . . . . . . 420
Table 375. I2C Slave Transmit Interrupt . . . . . . . . . . . . . 420
Table 376. I2C Set Slave Address . . . . . . . . . . . . . . . . . 421
Table 377. I2C Get Memory Size . . . . . . . . . . . . . . . . . . 421
Table 378. I2C Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
Table 379. I2C Set Bit Rate . . . . . . . . . . . . . . . . . . . . . . 421
Table 380. I2C Get Firmware Version . . . . . . . . . . . . . . . 422
Table 381. I2C Get Status . . . . . . . . . . . . . . . . . . . . . . . 422
Table 382. I2C time-out value . . . . . . . . . . . . . . . . . . . . . 422
Table 383. Error codes . . . . . . . . . . . . . . . . . . . . . . . . . . 422
Table 384. I2C Status code . . . . . . . . . . . . . . . . . . . . . . . 423
Table 385. ADC API calls . . . . . . . . . . . . . . . . . . . . . . . . 431
Table 386. adc_get_mem_size . . . . . . . . . . . . . . . . . . . . 431
Table 387. adc_setup . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
Table 388. adc_calibration . . . . . . . . . . . . . . . . . . . . . . . 432
Table 389. adc_init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
Table 390. adc_seqa_read . . . . . . . . . . . . . . . . . . . . . . . 433
Table 391. adc_seqb_read . . . . . . . . . . . . . . . . . . . . . . . 433
Table 392. adc_seqa_isr . . . . . . . . . . . . . . . . . . . . . . . . . 433
Table 393. adc_seqb_isr . . . . . . . . . . . . . . . . . . . . . . . . . 433
Table 394. adc_ovr_isr . . . . . . . . . . . . . . . . . . . . . . . . . . 434
Table 395. adc_thcmp_isr . . . . . . . . . . . . . . . . . . . . . . . . 434
Table 396. Error codes . . . . . . . . . . . . . . . . . . . . . . . . . . 434
Table 397. SWD pin description . . . . . . . . . . . . . . . . . . . 441
Table 398. JTAG boundary scan pin description. . . . . . . 442