
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
486 of 487
continued >>
NXP Semiconductors
UM10800
Chapter 35: Supplementary information
Functional description . . . . . . . . . . . . . . . . . 438
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
Chapter 31: LPC82x Serial Wire Debug (SWD)
How to read this chapter . . . . . . . . . . . . . . . . 441
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
General description . . . . . . . . . . . . . . . . . . . . 441
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 441
Functional description . . . . . . . . . . . . . . . . . 442
Debug limitations . . . . . . . . . . . . . . . . . . . . . 442
Debug connections for SWD . . . . . . . . . . . . 442
Boundary scan . . . . . . . . . . . . . . . . . . . . . . . 443
Micro Trace Buffer (MTB). . . . . . . . . . . . . . . 443
Chapter 32: LPC82x ROM API integer divide routines
How to read this chapter . . . . . . . . . . . . . . . . 445
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
General description . . . . . . . . . . . . . . . . . . . . 445
API description . . . . . . . . . . . . . . . . . . . . . . . 446
DIV signed integer division . . . . . . . . . . . . . . 446
DIV unsigned integer division . . . . . . . . . . . . 447
DIV signed integer division with remainder . 447
DIV unsigned integer division with remainder 447
Functional description . . . . . . . . . . . . . . . . . 448
Signed division. . . . . . . . . . . . . . . . . . . . . . . 448
Unsigned division with remainder . . . . . . . . 448
Chapter 33: LPC82x Pin description
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 449
Chapter 34: LPC82x Code examples
How to read this chapter . . . . . . . . . . . . . . . . 453
Code examples I2C . . . . . . . . . . . . . . . . . . . . 453
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
Interrupt handler . . . . . . . . . . . . . . . . . . . . . . 454
Master write one byte to slave . . . . . . . . . . . 454
Master read one byte from slave . . . . . . . . . 455
Master receiving nack on address . . . . . . . . 456
Master receiving nack on data . . . . . . . . . . . 457
Master sending nack and stop on data. . . . . 457
Slave read one byte from master . . . . . . . . . 458
Slave write one byte to master . . . . . . . . . . . 459
Slave nack matched address from master . . 460
Slave nack data from master . . . . . . . . . . . . 460
Code examples SPI . . . . . . . . . . . . . . . . . . . . 461
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . 461
. . . . . . . . . . . . . . . . . . . . . 461
Transmit one byte to slave 0 . . . . . . . . . . . . 462
Receive one byte from slave 0. . . . . . . . . . . 462
Transmit and receive a byte to/from slave 0 462
Transmit and receive 24 bits to/from slave 0 463
Transmit 8 bits to master . . . . . . . . . . . . . . . 463
Receive 8 bits to master . . . . . . . . . . . . . . . 463
Transmit and receive 24 bits to master . . . . 464
Code examples UART. . . . . . . . . . . . . . . . . . 464
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . 464
. . . . . . . . . . . . . . . . . . . . . 464
Transmit one byte of data . . . . . . . . . . . . . . 465
Receive one byte of data . . . . . . . . . . . . . . . 465
Transmit and receive one byte of data. . . . . 465