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
378 of 1269
NXP Semiconductors
UM10503
Chapter 18: LPC43xx Serial GPIO (SGPIO)
In MCK master mode, the MCK input is divided down to generate the SCK and shift the
SD and WS signals. The slice setting that are different for slave mode (1) with 4x
oversampled clock MCK supplied at pin 9 are shown in :
18.8.1.3 I2S slice programming
After configuration the data patterns are loaded in REGi and REG_SSi.
For SD the audio samples are loaded in REGi and RE_SSi. Data is shifted out starting
from the LSB. After one sample is processed POS reaches countdown and REG_SSi is
swapped with REGi to load the next sample. The CPU should update REG_SSi with a
new sample before the next POS countdown when the current sample finishes.
The WS pattern repeats every 64-bit and is stored in REG9 and REG_SS9. To create a
WS pattern as shown in
for a 32-bit data width set REG9 = 0x0000.0001 and
REG_SS9=0xFFFF.FFFE.
The SCK pattern is static and stored in REG3 and REG_SS3. To create a SCK pattern as
shown in
set REG1 = 0x5555.5555 and REG_SS1 = 0x5555.5555. To invert the
clock phase use patterns 0xAAAA.AAAA instead.
PRESETi
counter not used
counter not used
counter not used
counter not
used
COUNTi
counter not used
counter not used
counter not used
counter not
used
POS_PRESETi
0x1F/0x0F/0x07
0x1F
slice not used
slice not used
Table 264. SGPIO setting for I2S 5.1 (master mode, pin 9)
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
0000:
dout_doutm1
1000: clk
x
P_oe_cfg
000: gpio_oe
000: gpio_oe
000: gpio_oe
x
GPIO_OUTREG
1
1
1
0
SGPIO_MUX_CF
Gi
ext_clk_enable
0: internal clock
0: internal clock
0: internal clock
1: pin
clk_source_pin
x
x
x
01: pin9
clk_source_slice
00: slice D
slice D
slice D
x
qualifier_mode
00: enable
00: enable
00: enable
00: enable
SLICE_MUX_CF
Gi
clk_gen_mode
1: use external
clock
1: use external
clock
1: use external
clock
1: use external
clock
clk_capture_mod
e
1: use falling clock 1: use falling clock not used
x
PRESETi
not used
not used
not used
3: f=MCK/4
COUNTi
not used
not used
not used
0
POS_PRESETi
0x1F/0x0F/0x07
0x1F
not used
0x1F
Table 263. SGPIO setting for I2S 5.1 (master mode, pin 8)