![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 505](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827505.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
505 of 1441
NXP Semiconductors
UM10503
Chapter 20: LPC43xx/LPC43Sxx Serial GPIO (SGPIO)
20.8.1.2 I2S slice configuration
Using FS = 192 kHz and 32-bit audio samples provides the following parameters:
•
WS=FS=192 kHz
•
SCK = 2 x sample_width x FS = 2 x 32 x 192 kHz = 12.288 MHz, The slice shift clock
should be twice this rate.
•
MCK = oversampling_rate x SCK= 4 x SCK = 49.152 MHz.
Set the SGPIO IP clock (SGPIO_CLOCK) to 2 x MCK = 98.304 MHz.
The output width, 1-bit serial, and the output enable, statically controlled by GPIO are set
as shown in
.
In Master mode the shift clocks are generated by the local slice COUNTERs. The WS and
CK slices contain repeating patterns and are concatenated in self-loop mode.
The data width is 1 bit and all slices are shifted 1 bit per clock.
Fig 52. I2S configuration
SCK
WS
SD
MSB
LSB
MSB
word n
left channel
word n+1
right channel
word n-1
right channel
Table 320. SGPIO setting for I2S 5.1, OUT_MUX_CFG register
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
dout_doutm1
dout_doutm1
P_oe_cfg
000: gpio_oe
gpio_oe
gpio_oe
gpio_oe
GPIO_OUTREG
1
1
1
1
Table 321. SGPIO setting for I2S 5.1, SGPIO_MUX_CFG register
SGPIO_MUX_CF
Gi
A,I,E (i=0,8,4)
J (i=9)
B (i=1)
D (i=3)
ext_clk_enable
x
x
x
x
qualifier_mode
00: enable
00: enable
00: enable
00: enable
concat_enable
0; no
1; yes
1; yes
1; yes
concat_order
x
00; self loop
00; self loop
00; self loop