![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 504](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827504.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
504 of 1441
NXP Semiconductors
UM10503
Chapter 20: LPC43xx/LPC43Sxx Serial GPIO (SGPIO)
20.8.1 Multi-channel I2S
20.8.1.1 I2S slice selection
A 5.1 channel I2S output interface in master mode requires 3 data outputs (SD[2:0]), 1
word select output (WS) and 1 clock output (SCK). In slave mode SCK becomes an input.
This means that output SCK should also support clock input. This is supported by pins
SGPIO8-SGPIO10 which are mapped in serial output mode to slices B, M, G or N, let's
use slice B. These slices should therefore not be used for SD or WS signals.
If an oversampled slave clock (MCK) is needed, use a slice that is capable to create
clocks for other slices (D, H, O or P), e.g. use slice D. In slave mode MCK is an input.
MCK is divided down to create the shift clock for Data, WS and SCK. In master mode
MCK is an output.
The output audio data rate is 6 x Fs. For Fs = 192 kHz this becomes 1.152 MWps and
thus relative low for a CPU frequency of 100+ MHz. Single slices can be used (without
concatenation), for example slices A, I and E. The WS is made by slice J. This results in
the following mapping:
Table 319. SGPIO Slice mapping for I2S 5.1
Slice: function
A,I,E : SD[2:0]
J : WS
B : SCK
D : MCK
Fig 51. 5.1 channel I2S output mapped to SGPIO slices
slice A
slice I
sckin
sd0
slice E
slice J
sck
mck
sd2
sd1
ws
slice B
counter D
mckin
pin SGPIO0
pin SGPIO1
pin SGPIO2
pin SGPIO3
pin SGPIO8
pin SGPIO12
counter A
counter I
counter E
counter J
slave to sck
slave to mck
counter B
sgpio _clk
slice D
MCK/4