UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
350 of 1269
NXP Semiconductors
UM10503
Chapter 18: LPC43xx Serial GPIO (SGPIO)
–
Output clock polarity can be inverted.
•
Interface
–
The register memory map supports use of ARM Store Multiple and Load Multiple
instructions. Slice functions that control the same features are mapped in
consecutive registers.
–
The bit order is optimized for MSB first. Interfaces that require LSB first should use
a software instruction (RBIT) to reverse the bit order (not supported by the ARM
Cortex-M0).
18.4.1 Interrupts
•
Interrupts are raised on the following events:
–
The shift clock interrupt is raised at the occurrence of a shift clock when COUNTx
equals zero (see
to
). This interrupt is generated at each shift
bit.
–
The capture clock interrupt is raised when a slice swap occurs, that is at the
occurrence of a capture clock when POSx equals zero (see
).
–
The pattern match interrupt is raised when the input data is equal to the masked
pattern (see
to
).
–
The input bit match interrupt is raised when the input bit is equal to the conditions
set in DATA_CAPTURE_MODE (
).
•
Each of the interrupts can be controlled through a set of registers in one of the
following ways:
–
Disable or enable interrupts using registers CLR_EN/SET_EN.
–
Read interrupts via the register STATUS.
–
Read the interrupt mask via the register ENABLE.
–
Set interrupts via the register SET_STAT.
–
Clear interrupts via the register CLR_STATUS.
18.5 Pin description
Table 210. SGPIO pin description
Pin function
Direction
Description
SGPIO[15:0]
I/O
Serial GPIO input/output