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
377 of 1269
NXP Semiconductors
UM10503
Chapter 18: LPC43xx Serial GPIO (SGPIO)
All slice counters start at the same phase at value 0.
All data slices use for POS, the slice register length, and the audio sample width. For 32,
16, or 8-bit samples, POS is set to width-1: 0x1F, 0x0F or 0x07. For 16 (8)-bit samples
POS can also be set to 0x1F and process 2 (4) samples. Slices that self-loop should
always use the complete 32-bit size.
[1]
A value of 1 or 2 can be used to change the SCK phase relative to Data and WS.
In I2S slave mode, an external clock input is used. There are two cases:
1. SCK master mode: SCK is supplied at pin 8, this clock falling edge is used as shift
clock for all slices. No MCK is used.
2. MCK master mode: MCK is supplied at pin 12 to slice D, where this clock is divided by
the oversampling rate (=4). The output of slice D is used as shift clock for the other
slices.
In SCK master mode, the SCK input is shift clock for the SD and WS signals. MCK is not
used. The slice settings that are different for slave mode (1) with SCK supplied at pin 8
are shown in
Table 261. SGPIO setting for I2S 5.1, SLICE_MUX_CFG register
SLICE_MUX_CF
Gi
A,I,E (i=0,8,4)
J (i=9)
B (i=1)
D (i=3)
match_mode
0: no
0: no
0: no
0: no
clk_gen_mode
0: use COUNTER
clk
0: use COUNTER
clk
0: use COUNTER
clk
0: use COUNTER
clk
parallel_mode
00: 1bit per clock
00: 1bit per clock
00: 1bit per clock
00: 1bit per clock
Table 262. SGPIO setting for I2S 5.1, slice
SLICE
A,I,E (i=0,8,4)
J (i=9)
B (i=1)
D (i=3)
PRESETi
7: f=clk/8
7: f=clk/8
3: f=clk/4
0: f=clk
COUNTi
0
0
0*
0
POS_PRESETi
0x1F/0x0F/0x07
0x1F
0x1F
0x1F
Table 263. SGPIO setting for I2S 5.1 (master mode, pin 8)
OUT_MUX_CFGi
A,I,E (i=0,8,4)
J (i=9)
B (i=1)
D (i=3)
P_out_cfg
0000:
dout_doutm1
dout_doutm1
slice not used
slice not used
P_oe_cfg
000: gpio_oe
gpio_oe
slice not used
slice not used
GPIO_OUTREG
1
1
0
0
SGPIO_MUX_CFGi
ext_clk_enable
1: pin
1: pin
slice not used
slice not used
clk_source_pin
00: pin8
00: pin8
slice not used
slice not used
qualifier_mode
00: enable
00: enable
slice not used
slice not used
SLICE_MUX_CFGi
clk_gen_mode
1: use external
clock
1: use external
clock
slice not used
slice not used
inv_out_clk
1: inverted clock
1: inverted clock
slice not used
slice not used