English
Language : 

AN11275 Datasheet, PDF (20/20 Pages) NXP Semiconductors – SGPIO on the LPC4300
NXP Semiconductors
AN11275
SGPIO on the LPC4300
10. Contents
1.
2.
3.
4.
4.1
4.1.1
4.1.2
4.1.3
4.2
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.3
4.3.1
4.3.2
4.3.3
4.3.4
4.3.5
4.3.6
4.4
4.4.1
4.4.2
4.4.3
5.
5.1
5.2
5.3
5.4
6.
6.1
6.2
6.3
6.4
6.5
7.
7.1
8.
9.
9.1
9.2
Introduction ......................................................... 3
What is SGPIO? ................................................... 4
SGPIO usage........................................................6
Register descriptions..........................................6
Slice/SGPIO pin multiplexing registers...............6
OUT_MUX_CFGx .............................................. 6
SGPIO_MUX_CFGx .......................................... 8
SLICE_MUX_CFGx ........................................... 9
Slice operation control registers ....................... 10
REGx ............................................................... 10
REG_SSx ......................................................... 10
PRESETx ......................................................... 10
POSx ................................................................ 10
MASK_A, MASK_H, MASK_I, MASK_P .......... 10
CTRL_ENABLE................................................ 11
CTRL_DISABLE............................................... 11
SGPIO interrupt specific registers .................... 11
CLR_EN_x ....................................................... 11
SET_EN_x ....................................................... 11
ENABLE_x ....................................................... 11
STATUS_x ....................................................... 11
CTR_STAT_x ................................................... 11
SET_STAT_x ................................................... 11
SGPIO pin control registers..............................11
GPIO_INREG ................................................... 12
GPIO_OUTREG ............................................... 12
GPIO_OENREG............................................... 12
Steps to get SGPIO working.............................12
Selecting the right clock signal ......................... 12
Set up the registers .......................................... 12
Set up interrupts ............................................... 13
Handling data ................................................... 13
SGPIO Interrupts ............................................... 13
On shift clock....................................................13
On data exchange (swap) clock ....................... 13
On data pattern match ..................................... 14
On input bit match ............................................ 14
Using interrupts ................................................ 14
PWM example .................................................... 15
How to use the SGPIO PWM library ................ 17
Conclusion ......................................................... 18
Legal information .............................................. 19
Definitions ........................................................ 19
Disclaimers....................................................... 19
9.3
Trademarks ......................................................19
10. Contents .............................................................20
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in the section 'Legal information'.
© NXP B.V. 2012.
All rights reserved.
For more information, visit: http://www.nxp.com
For sales office addresses, please send an email to: salesaddresses@nxp.com
Date of release: 7 November 2012
Document identifier: AN11275