ONA10IV
www.onsemi.com
16
PDM Digital Audio Operation
In PDM mode, audio data on the DATAI pin is clocked in
by CKI. Pulse Density Modulation (PDM) is a common
output of ADCs and, in essence, is the audio signal
oversampled by fCKI. An example of this format is shown
below:
CKI
3.072 MHz
DATAI
3.072 MHz 0
Sine Wave
Equivalent
110000
1
−1
PDM
Figure 20. PDM Digital Audio Input
The PDM data that is received on DATAI is mapped into
the DAC. This mapping is configurable via I2C in the
register under PDM_DAC_MAP. Additionally, a separate
amplifier gain for PDM mode can be set in the same register
under PDM_AMP_GAIN. When switching into PDM mode
this value will be used rather than the PCM_AMP_GAIN
setting. A time of tSW_MOD, is required to switch between
the PCM and PDM interfaces. It is expected that the host will
manage any sequencing required between digital audio
formats to avoid undesirable audible effects.
PCM Digital Audio Operation
Audio data on the DATAI pin is clocked in by CKI with
the most significant bit appearing first. Audio samples are
two’s complement Pulse Code Modulation (PCM) and are
16 bits, 24 bits, or 32 bits in width as defined by the SAMPW
register bits. SLOTW defines the number of CKI periods
between each sample. For example, sample width may be 24
bits (SAMPW = 01b), while slot width may be 32 bits
(SLOTW = 10b). After every 24 bit sample, there are an
additional 8 bits (that are ignored by the DAC) before the
next sample begins. Sample length must be equal to or less
than slot width.
Sample rate, fs, is equal to the FRCK frequency. In
addition, one data “frame” is equal to one FRCK period.
PCM audio data is internally buffered and fed to the DAC
at the end of the audio frame. This is done to keep separate
amplifiers in phase with each other in multi−slot systems.
The slot that the ONA10IV responds to can be selected using
the A_SLOT setting in the register.
I2S Digital Audio Interface
For I2S or left justified data (DAI = 00b), each frame
contains 2 separate slots of audio – left channel and right
channel. In each frame, the left channel is always
transmitted first, and the right channel is always second.
FRCK’s duty cycle is always 50%.
Figure 18 shows the I2S digital audio interface with two
different formats on DATAI: I2S (traditional) and
left−justified. For “left justified”, FRCK is high during left
channel audio data and low during right slot audio data
(FRCK_MODE = 1). Audio samples are left justified so that
the first data bit appears at the first CKI period after a FRCK
edge (FRM_DLY = 00b). Data is valid on the rising edges
of CKI (BEDGE_DAI = 1). If the audio sample width is 24
bits (SAMPW = 01b), but the data slot width is 32 bits
(SLOTW = 10b) the 8 bits after the audio sample are ignored
and one FRCK period is 64 CKI periods. The chip will
respond to left or right channel audio data based on the
A_SLOT setting in the register.
For “I2S” formatted I2S digital audio, it is similar to left
justified except that the frame is delayed by one CKI
(FRM_DLY = 01) and FRCK is low for left slot audio data
and high for right slot audio data (FRM_POL = 0). Note that
the frame still begins with left channel audio data. If the
frame were to begin with right channel audio data, left and
right audio would be out of phase with each other by 1/2 fS.
In this example, audio sample width is 16 bits wide
(SAMPW = 00b) but the slot width is still 32 bits
(SLOTW = 10b) and FRCK period is still 64 CKI periods.
Only right channel audio data is used (A_SLOT = 0000b).
TDM Digital Audio Interface
One TDM “frame” can contain 2, 4, or 8 separate slots of
audio. In each frame, slot 1 is transmitted first; slot 2 is
transmitted second, and so on. FRCK signals the beginning
of a frame with a single pulse that is 1 CKI period wide. This
can also be changed in I2C through the FRCK_MODE
settings.
PCM audio data is internally buffered and fed to the DAC
at the end of the audio frame. This is done to keep separate
amplifiers in phase with each other in multi−slot systems.
The data slot that the ONA10IV receives can be selected
using the A_SLOT register.
Clock Requirements
The ONA10IV requires a master clock that is
12.288 MHz or 11.2896 MHz (depending on if the sample
rate is 44.1 kHz).
The bit (CKI) and frame (FRCK) clock need to match
what has been programmed in the FS register (0x06) such
that the following equation is valid:
fS+fFRCK +
fCKI
NChannels @SlotWidth (eq. 1)
In addition, FRCK frequency must always be within
recommended operating conditions. If FRCK fails to meet
these criteria, a clock error is detected (CERR) and the
class−D amplifier will shutdown (see Interrupts & Fault
Recovery section).