User's Manual

RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4
R15UH0002EU0103 Rev.1.03 Page 149 of 206
Apr.21.21
Figure 26. SDM Block Diagram
12.4.3 Register Configuration
Bit 1 to 4 of AUDIO_OUT:CTRL should be set to 1b'1 to enable I2S recorder, ISO player, SDM player and I2S player, while
AUDIO_OUT:CTRL:MODE is to select either mono or stereo audio output. AUDIO_OUT:CTRL:HPFEN should be set to 1b'1 to enable the
HPF in audio output path.
AUDIO_OUT:VOL_CTRL controls the volume level.
AUDIO_OUT:PWM_CTRL:IPSEL serves to select either linear interpolation or delay interpolation for the rate matching block. Setting
AUDIO_OUT:PWM_CTRL:IPSEL to 0b'1 is to select linear interpolation, while clearing the bit is to select delay interpolation.
Input for SDM Dither control is configurable through AUDIO_OUT:PN_CTRL and AUDIO_OUT:PWM_CTRL.
For the left channel:
AUDIO_OUT:PN_CTRL:PNLEN should be set to 1b'1 to select a constant DC input. When DC input is used,
AUDIO_OUT:CONST_LEFT serves to configure the input constant value.
AUDIO_OUT:PN_CTRL:PNLEN should be set to 1b'0 to use the PN generator. AUDIO_OUT:PWM_CTRL:LSEN serves to enable/mask
the dither shaping module. There are two PN generators to generate random dithering sequence. AUDIO_OUT:PN_CTRL:PN2LEN or
AUDIO_OUT:PN_CTRL:PN1LEN enable the corresponding PN generator.
1. To select the PN sequence as input,
AUDIO_OUT:PN_CTRL:PNLEN and AUDIO_OUT:PWM_CTRL:LSEN should be set to 1b'0 and
AUDIO_OUT:PN_CTRL:PN2LEN and AUDIO_OUT:PN_CTRL:PN1LEN should be set to 1b'1.
2. To select the PN sequence with Shaping as input,
AUDIO_OUT:PN_CTRL:PNLEN should be set to 1b'0 and
AUDIO_OUT:PWM_CTRL:LSEN, AUDIO_OUT:PN_CTRL:PN2LEN and AUDIO_OUT:PN_CTRL:PN1LEN should be set to 1b'1.
When PN sequence or PN with Shaping is used,
AUDIO_OUT:PN_CTRL:BPN1L and AUDIO_OUT:PN_CTRL:BPN2L determines the
number of bits (ranging from 0 to 16) used in PN1/PN2 generator.
For the right channel:
AUDIO_OUT:PN_CTRL:PNREN should be set to 1b'1 to select constant DC input. When DC input is enabled,
AUDIO_OUT:CONST_RIGHT serves to configure the input constant value.
AUDIO_OUT:PN_CTRL:PNREN should be set to 1b'0 to use PN generator. AUDIO_OUT:PWM_CTRL:RSEN serves to enable/mask the
dither shaping module. There are two PN generators to generate random dithering sequence. AUDIO_OUT:PN_CTRL:PN2REN and
AUDIO_OUT:PN_CTRL:PN1REN enable the corresponding PN generator.
1. To select the PN sequence as input,
AUDIO_OUT:PN_CTRL:PNREN and AUDIO_OUT:PWM_CTRL:RSEN should be set to 1b'0,
AUDIO_OUT:PN_CTRL:PN2REN and AUDIO_OUT:PN_CTRL:PN1REN should be set to 1b'1.
2. To select the PN sequence with Shaping as input,
AUDIO_OUT:PN_CTRL:PNREN should be set to 1b'0,
AUDIO_OUT:PWM_CTRL:RSEN, AUDIO_OUT:PN_CTRL:PN2REN and AUDIO_OUT:PN_CTRL:PN1REN should be set to 1b'1.
When PN sequence or PN with Shaping is used,
AUDIO_OUT:PN_CTRL:BPN1R and AUDIO_OUT:PN_CTRL:BPN2R determine the
number of bits (ranging from 0 to 16) used in PN1/PN2 generator.
The bits
AUDIO_OUT:I2SCLK:BSL and AUDIO_OUT:ASCL_STEP:BSH are to set BS for the rate matching block, while
AUDIO_OUT:ASCL_TUNE:TBS is to tune the BS value. BS should be in accordance with the F
I2S
provided by the SDM/I2S clock.