The PCM3070 features two fully-programmable miniDSP cores that support application-specific algorithms
in the record and/or the playback path of the device. The miniDSP cores are fully software controlled.
Target algorithms, like speaker EQ, Crossovers, Dynamic Range Controls, Intelligent volume controls and
other post-processing algorithms are loaded into the device after power-up.
Extensive register-based control of input/output channel configuration, gains, effects, pin-multiplexing and
clocks is included, allowing the device to be precisely targeted to its application.
The record path of the PCM3070 covers operations from 8kHz mono to 192kHz stereo recording, and
contains programmable input channel configurations covering single-ended and differential setups, as well
as floating or mixed input signals.
The playback path offers signal-processing blocks for filtering and effects, and supports flexible mixing of
DAC and analog input signals as well as programmable volume controls. The playback path contains two
high-power output drivers as well as two fully-differential outputs. The high-power outputs can be
configured in multiple ways, including stereo and mono BTL.
The voltage supply range for the PCM3070 for analog is 1.5V–1.95V, and for digital it is 1.26V–1.95V. To
ease system-level design, LDOs are integrated to generate the appropriate analog or digital supply from
input voltages ranging from 1.8V to 3.6V. Digital I/O voltages are supported in the range of 1.5V–3.6V.
The required internal clock of the PCM3070 can be derived from multiple sources, including the MCLK pin,
the BCLK pin, the GPIO pin or the output of the internal PLL, where the input to the PLL again can be
derived from the MCLK pin, the BCLK or GPIO pins. The PLL is highly programmable and can accept
available input clocks in the range of 512kHz to 50MHz.
The device is available in the 5mm × 5mm, 32-pin QFN package.
Only a small number of digital pins are dedicated to a single function; whenever possible, the digital pins
have a default function, and also can be reprogrammed to cover alternative functions for various
applications.
The fixed-function pins are Reset and the SPI_Select pin, which are HW control pins. Depending on the
state of SPI_Select, the two control-bus pins SCL/SS and SDA/MOSI are configured for either I2C or SPI
protocol.
Other digital IO pins can be configured for various functions via register control. An overview of available
functionality is given in Section 2.1.3.
2.1.2 Analog Pins
Chapter 2
SLAU332–March 2011
PCM3070 Application
Analog functions can also be configured to a large degree. Analog blocks are powered down by default.
The blocks can be powered up with fine granularity according to the application needs.
2.1.3 Multifunction Pins
Table 2-1 shows the possible allocation of pins for specific functions. The PLL input, for example, can be
programmed to be any of 4 pins (MCLK, BCLK, DIN, GPIO).
: The MCLK pin can be used to drive the PLL and Codec Clock inputs simultaneously
(2)S(2)
: The BCLK pin can be used to drive the PLL and Codec Clock and audio interface bit clock inputs simultaneously
(3)S(3)
: The GPIO/MFP5 pin can be used to drive the PLL and Codec Clock inputs simultaneously
(4)
D: Default Function
(5)
E: The pin is exclusively used for this function, no other function can be implemented with the same pin (e.g. if GPIO/MFP5 has
been allocated for General Purpose Output, it cannot be used as the INT1 output at the same time)
To configure the settings seen in Table 2-1, please see the letter/number combination in Table 2-2 for the
appropriate registers to modify.
Please be aware that more settings may be necessary to obtain a full interface definition matching the
application requirement (e.g. register Page 0 / Register 25 to 33).
General Purpose Out I on Page 0 / Register 53, BitsSecondary I2S WCLK OUT Page 0 / Register 55, Bits
DOUT/MFP2D3-D1=010on MISO/MFP4D4-D1=1010
General Purpose Out IIPage 0 / Register 55, BitsSecondary I2S WCLK OUT Page 0 / Register 52, Bits
on MISO/MFP4D4-D1=0010on GPIO/MFP5D5-D2=1001
General Purpose Out IIIPage 0 / Register 52, Bits
on GPIO/MFP5D5-D2=0011
General Purpose In I onPage 0 / Register 54, BitsAux Clock Output onPage 0 / Register 53, Bits
DIN/MFP1D2-D1=10DOUT/MFP2D3-D1=011
General Purpose In II onPage 0 / Register 56, BitsAux Clock Output onPage 0 / Register 55, Bits
SCLK/MFP3D2-D1=10MISO/MFP4D4-D1=0011
General Purpose In III on Page 0 / Register 52, BitsAux Clock Output onPage 0 / Register 52, Bits
GPIO/MFP5D5-D2=0010GPIO/MFP5D5-D2=0100
Required Register
Setting
2.2Analog Audio I/O
The analog I/O path of the PCM3070 features a large set of options for signal conditioning as well as
signal routing:
•6 analog inputs which can be mixed and/or multiplexed in single-ended and/or differential configuration
•2 programmable gain amplifiers (PGA) with a range of 0 to +47.5dB
•2 mixer amplifiers for analog bypass
•2 low power analog bypass channels
•Mute function
•Automatic gain control (AGC)
•Channel-to-channel phase adjustment
•Fast charge of ac-coupling capacitors
•Anti thump
2.2.1 Analog Bypass
The PCM3070 offers two analog-bypass modes. In either of the modes, an analog input signal can be
routed from an analog input pin to an amplifier driving an analog output pin. Neither the ADC nor the DAC
resources are required for such operation.
In analog low-power bypass mode, line-level signals can be routed directly from the analog inputs INL to
the left headphone amplifier (HPL) and INR to HPR.
2.2.2 ADC Bypass Using Mixer Amplifiers
In addition to the analog bypass mode, there is a bypass mode that uses the programmable gain
amplifiers of the input stage in conjunction with a mixer amplifier. With this mode, low-level signals can be
amplified and routed to the line or headphone outputs, fully bypassing the ADC and DAC.
To enable this mode, the mixer amplifiers are powered on via software command.
In analog low-power bypass mode, line-level signals can be routed directly from the analog inputs IN1L to
the left headphone amplifier (HPL) and IN1R to HPR. This is configured on Page 1/ Register 12, Bit D2 for
the left channel and Page 1 / Register 13, Bit D2 for the right channel.
To use the mixer amplifiers, power them on via Page / Register 9, Bits D1-D0.
2.2.3 Headphone Output
The stereo headphone drivers on pins HPL and HPR can drive loads with impedances down to 16Ω in
single-ended AC-coupled headphone configurations, or loads down to 32Ω in differential mode, where a
speaker is connected between HPL and HPR. In single-ended drive configuration these drivers can drive
up to 15mW power into each headphone channel while operating from 1.8V analog supplies. While
running from the AVdd supply, the output common-mode of the headphone driver is set by the
common-mode setting of analog inputs in Page 1 / Register 10, Bit D6, to allow maximum utilization of the
analog supply range while simultaneously providing a higher output-voltage swing. In cases when higher
output-voltage swing is required, the headphone amplifiers can run directly from the higher supply voltage
on LDOIN input (up to 3.6V). To use the higher supply voltage for higher output signal swing, the output
common-mode can be adjusted to either 1.25V, 1.5V or 1.65V by configuring Page 1 / Register 10, Bits
D5-D4. When the common-mode voltage is configured at 1.65V and LDOIN supply is 3.3V, the
headphones can each deliver up to 40mW power into a 16Ω load.
The headphone drivers are capable of driving a mixed combination of DAC signal and bypass from analog
input INL and INR by configuring Page 1 / Register 12 and Page 1 / Register 13 respectively. The analog
input signals can be attenuated up to 72dB before routing by configuring Page 1 / Register 22 and 23. The
level of the DAC signal can be controlled using the digital volume control of the DAC in Page 0, Reg 65
and 66. To control the output-voltage swing of headphone drivers, the digital volume control provides a
range of –6.0dB to +29.0dB
(1)
in steps of 1dB. These can be configured by programming Page 1 / Register
16 and 17. These level controls are not meant to be used as dynamic volume control, but more to set
output levels during initial device configuration. Refer to for recommendations for using headphone volume
control for achieving 0dB gain through the DAC channel with various configurations.
2.2.4 Stereo Single Ended Configuration
Figure 2-2. Stereo Headphone Configuration
The left and right DAC channels are routed to the corresponding left and right headphone amplifier. This
configuration is also used to drive line-level loads.
Figure 2-3. Conceptual Circuit for Pop-Free Power-up
The value of R
(1)
If the device must be placed into 'mute' from the –6.0dB setting, set the device at a gain of –5.0dB first, then place the device into mute.
can be chosen by setting register Page 1, Register 20, Bits D1-D0).
pop
Table 2-3. R
Page 1, Register 20, Bits D1-D0)R
002kΩ
016kΩ
1025kΩ
pop
Values
pop
Value
According to the conceptual circuit in Figure 2-3, the voltage on PAD will exponentially settle to the output
common-mode voltage based on the value of R
power-up mode for time T, such that at the end of the slow power-on period, the voltage on V
close to the common-mode voltage. The PCM3070 allows the time T to be adjusted to allow for a wide
range of R
value of Ccis assumed to be 47μF. N=5 is expected to yield good results.
10
PCM3070 ApplicationSLAU332–March 2011
and Cc. Thus, the output drivers must be in slow
and Ccby programming Page 1, Register 20, Bits D5-D2). For the time adjustments, the
Page 1, Register 20, BitsSlow Charging Time=N*Time – Constants(for R
D5-D2)
0000N=0
0001N=0.5
0010N=0.625
0011N=0.75
0100N=0.875
0101N=1.0
0110N=2.0
0111N=3.0
1000N=4.0
1001N=5.0
1010N=6.0
1011N=7.0
1100N=8.0
1101N=16 (Not valid for R
1110N=24 (Not valid for R
1111N=32 (Not valid for R
Again, for example, for R
=25kΩ)
pop
=25kΩ)
pop
=25kΩ)
pop
=32Ω, Cc=47μF and common mode of 0.9V, the number of time constants
load
and 47μF)
pop
required for pop-free operation is 5 or 6. A higher or lower Ccvalue will require higher or lower value for N.
During the slow-charging period, no signal is routed to the output driver. Therefore, choosing a larger than
necessary value of N results in a delay from power-up to signal at output. At the same time, choosing N to
be smaller than the optimal value results in poor pop performance at power-up.
The signals being routed to headphone drivers (e.g. DAC, MAL , MAR and IN1) often have DC offsets due
to less-than-ideal processing. As a result, when these signals are routed to output drivers, the offset
voltage causes a pop. To improve the pop-performance in such situations, a feature is provided to
soft-step the DC-offset. At the beginning of the signal routing, a high-value attenuation can be applied
which can be progressively reduced in steps until the desired gain in the channel is reached. The time
interval between each of these gain changes can be controlled by programming Page 1, Register 20, Bits
D7-D6). This gain soft-stepping is applied only during the initial routing of the signal to the output driver
and not during subsequent gain changes.
Page 1, Register 20, Bits D7-D6 Soft-stepping Step Time During initial signal routing
000 ms (soft-stepping disabled)
0150ms
10100ms
11200ms
It is recommended to use the following sequence for achieving optimal pop performance at power-up:
1. Choose the value of R
, N (time constants) and soft-stepping step time for slow power-up.
pop
2. Choose the configuration for output drivers, including common modes and output stage power
connections
3. Select the signals to be routed to headphones.
4. Power-up the blocks driving signals into HPL and HPR, but keep it muted
5. Unmute HPL and HPR and set the desired gain setting.
6. Power-on the HPL and HPR drivers.
7. Unmute the block driving signals to HPL and HPR after the Driver PGA flags are set to indicate
completion of soft-stepping after power-up. These flags can be read from Page 1, Register 63, Bits
D7-D6).
It is important to configure the Headphone Output driver depop control registers before powering up the
headphone; these register contents should not be changed when the headphone drivers are powered up.
Before powering down the HPL and HPR drivers, it is recommended that user read back the flags in Page
1, Register 63. For example. before powering down the HPL driver, ensure that bit D(7) = 1 and bit D(3) =
1 if INL is routed to HPL and bit D(1) = 1 if the Left Mixer is routed to HPL. The output driver should be
powered down only after a steady-state power-up condition has been achieved. This steady state
power-up condition also must be satisfied for changing the HPL/R driver mute control in Page 1, Register
16 and 17, Bits D7), i.e. muting and unmuting should be done after the gain and volume controls
associated with routing to HPL/R finished soft-stepping.
In the differential configuration of HPL and HPR, when no coupling capacitor is used, the slow charging
method for pop-free performance need not be used. In the differential load configuration for HPL and
HPR, it is recommended to not use the output driver MUTE feature, because a pop may result.
During the power-down state, the headphone outputs are weakly pulled to ground using an approximately
50kΩ resistor to ground, to maintain the output voltage on HPL and HPR pins.
2.2.5 Mono Differential DAC to Mono Differential Headphone Output
www.ti.com
Figure 2-4. Low Power Mono DAC to Differential Headphone
This configuration supports the routing of the two differential outputs of the mono, left channel DAC to the
headphone amplifiers in differential mode (Page 1 / Register 12, D3 =1 and Page 1 / Register 13, D4 =1).
2.2.6 Headphone Amplifier Class-D Mode
By default the headphone amplifiers in the PCM3070 work in Class-AB mode. By writing to Page 1,
Register 3, Bits D7-D6) for the left headphone amplifier, and Page 1, Register 4, Bits D7-D6) with value
11, the headphone amplifiers enter a Class-D mode of operation.
In this mode a high frequency digital pulse-train representation of the DAC signal is fed to the load
connected to HPL and HPR outputs.
Because the output signal is a pulse train switching between Power Supply and Ground, the efficiency of
the amplifier is greatly improved. In this mode however, for good noise performance, care should be taken
to keep the analog power supply clean.
For using the Class-D mode of operation, the following clock-divider condition should be met:
MDAC = I × 4, where I = 1, 2, ..., 32
When a direct digital pulse train is driven out as a signal, high frequencies as a function of pulse train
frequency are also present which lead to power waste. To increase the efficiency and reduce power
dissipation in the load due to these high frequencies, an LC filter should be used in series with the output
and the load. The cutoff frequency of the LC filter should be adjusted to allow audio signals below 20kHz
to pass through, but highly attenuate the high-frequency signal content.
Figure 2-5. Configuration for Using Headphone Amplifier in Class-D Mode
For using the headphones in the Class-D mode of operation, the headphones should first be powered up
in default Class-AB mode to charge the AC-coupling capacitor to the set common mode voltage. Once the
headphone amplifiers have been so powered up, the DAC should be routed to headphones and unmuted
before they can be switched to the Class-D mode. After Class D mode has been turned on, the linear,
Class AB mode amplifier must be turned off. For powering down the headphone amplifiers, the DAC
should first be muted.
See Section 4.0.2 for an example setup script enabling Class-D mode.
2.2.7 Line Outputs
The stereo line level drivers on LOL and LOR pins can drive a wide range of line level resistive
impedances in the range of 600Ω to 10kΩ. The output common modes of line level drivers can be
configured to equal either the analog input common-mode setting or to 1.65V. With output common-mode
setting of 1.65V and DRVdd_HP supply at 3.3V the line-level drivers can drive up to 1Vrms output signal.
The line-level drivers can drive out a mixed combination of DAC signal and attenuated ADC PGA signal.
Signal mixing is register-programmable.
ADC
2.3ADC
The PCM3070 includes a stereo audio ADC, which uses a delta-sigma modulator with a programmable
oversampling ratio, followed by a digital decimation filter. The stereo recording path can be powered up
one channel at a time, to support the case where only mono record capability is required.
The ADC path of the PCM3070 features a large set of options for signal conditioning as well as signal
routing:
•2 ADCs
•6 analog inputs which can be mixed and/or multiplexed in single-ended and/or differential configuration
•2 programmable gain amplifiers (PGA) with a range of 0 to +47.5dB
•2 mixer amplifiers for analog bypass
•2 analog bypass channels
•Fine gain adjust of digital channels with 0.1 dB step size
•Digital volume control with a range of -12 to +20dB
•Mute function
•Automatic gain control (AGC)
In addition to the standard set of ADC features the PCM3070 also offers the following special functions:
•Channel-to-channel phase adjustment
•Fast charge of ac-coupling capacitors
•Anti thump
•Adaptive filter mode
Because of the oversampling nature of the audio ADC and the integrated digital decimation filtering,
requirements for analog anti-aliasing filtering are very relaxed. The PCM3070 integrates a second order
analog anti-aliasing filter with 28-dB attenuation at 6MHz. This filter, combined with the digital decimation
filter, provides sufficient anti-aliasing filtering without requiring additional external components.
As shown in Figure 2-1, the PCM3070 includes six analog inputs which can be configured as either 3
stereo single-ended pairs or 3 fully-differential pairs. These pins connect through series resistors and
switches to the virtual ground terminals of two fully-differential amplifiers (one per ADC/PGA channel). By
turning on only one set of switches per amplifier at a time, the inputs can be effectively multiplexed to
each ADC PGA channel. By turning on multiple sets of switches per amplifier at a time, audio sources can
be mixed. The PCM3070 supports the ability to mix up to four single-ended analog inputs or up to two
fully-differential analog inputs into each ADC PGA channel.
The PCM3070 allows the user the flexibility of choosing the input impedance from 10kΩ, 20kΩ and 40kΩ.
When multiple inputs are mixed together, by choosing different input impedances, level adjustment can be
achieved. For example, if one input is selected with 10kΩ input impedance and the second input is
selected with 20kΩ input impedance, then the second input is attenuated by half as compared to the first
input. Note that this input level control is not intended to be a volume control, but instead used
occasionally for level setting.
Mixing of multiple inputs can easily lead to PGA outputs that exceed the range of the internal amplifiers,
resulting in saturation and clipping of the mixed output signal. Whenever mixing is being implemented, the
system designer is advised to take adequate precautions to avoid such a saturation from occurring. In
general, the mixed signal should not exceed 0dB.
Typically, voice or audio signal inputs are capacitively coupled to the device. This allows the device to
independently set the common mode of the input signals to values chosen by register control of Page 1,
Register 10, D(6) to either 0.9V or 0.75V. The correct value maximizes the dynamic range across the
entire analog-supply range. Failure to capacitively connect the input to the device can cause high offset
due to mismatch in source common-mode and device common-mode setting. In extreme cases it could
also saturate the analog channel, causing distortion.
www.ti.com
2.3.2 ADC Gain Setting
When the gain of the ADC Channel is kept at 0dB and the common mode set to 0.75V, a single-ended
input of 0.375V
gain is kept at 0dB, and common mode is set to 0.9V, a single-ended input of 0.5V
full-scale digital signal at the output of the ADC channel. However various block functions control the gain
through the channel. The gain applied by the PGA is described in Table 2-4. Additionally, the digital
volume control adjusts the gain through the channel as described in Section 2.3.2.2. A finer level of gain is
controlled by fine gain control as described in Section 2.3.2.3. The decimation filters A, B and C along with
the delta-sigma modulator contribute to a DC gain of 1.0 through the channel.
2.3.2.1Analog Programmable Gain Amplifier (PGA)
The PCM3070 features a built-in low-noise PGA for boosting low-level signals to full-scale to achieve high
SNR. This PGA can provide a gain in the range of 0dB to 47.5dB for single-ended inputs or 6dB to 53.5dB
for fully-differential inputs (gain calculated w.r.t. input impedance setting of 10kΩ, 20kΩ input impedance
will result in 6dB lower and 40kΩ will result in 12dB lower gain). This gain can be user controlled by writing
to Page 1, Register 59 and Page 1, Register 60. In the AGC mode this gain can also be automatically
controlled by the built-in hardware AGC.
results in a full-scale digital signal at the output of ADC channel. Similarly, when the
The gain changes are implemented with an internal soft-stepping algorithm that only changes the actual
volume level by one 0.5dB step every one or two ADC output samples, depending on the register value
(see registers Page 0, Reg 81, D(1:0)). This soft-stepping ensures that volume control changes occur
smoothly with no audible artifacts. On reset, the PGA gain defaults to a mute condition, and at power
down, the PGA soft-steps the volume to mute before shutting down. A read-only flag Page 0, Reg 36, D(7)
and D(3) is set whenever the gain applied by the PGA equals the desired value set by the register. The
soft-stepping control can also be disabled by programming Page 0, Reg 81, D(1:0).
2.3.2.2Digital Volume Control
The PCM3070 also has a digital volume-control block with a range from -12dB to +20dB in steps of 0.5dB.
It is set by programming Page 0, Register 83 and 84 respectively for left and right channels.
During volume control changes, the soft-stepping feature is used to avoid audible artifacts. The
soft-stepping rate can be set to either 1 or 2 gain steps per sample. Soft-stepping can also be entirely
disabled. This soft-stepping is configured via Page 1, Register 81, D(1:0), and is common to soft-stepping
control for the analog PGA. During power-down of an ADC channel, this volume control soft-steps down to
-12.0dB before powering down. Due to the soft-stepping control, soon after changing the volume control
setting or powering down the ADC channel, the actual applied gain may be different from the one
programmed through the control register. The PCM3070 gives feedback to the user, through read-only
flags Page 1, Reg 36, D(7) for Left Channel and Page 1, Reg 36, D(3) for the right channel.
2.3.2.3Fine Digital Gain Adjustment
Additionally, the gains in each of the channels is finely adjustable in steps of 0.1dB. This is useful when
trying to match the gain between channels. By programming Page 0, Register 82 the gain can be adjusted
from 0dB to -0.4dB in steps of 0.1dB. This feature, in combination with the regular digital volume control
allows the gains through the left and right channels be matched in the range of -0.5dB to +0.5dB with a
resolution of 0.1dB.
The PCM3070 includes Automatic Gain Control (AGC) for ADC recording. AGC can be used to maintain a
nominally-constant output level. As opposed to manually setting the PGA gain, in the AGC mode, the
circuitry automatically adjusts the PGA gain as the input signal becomes overly loud or very weak. The
AGC algorithm has several programmable parameters, including target gain, attack and decay time
constants, noise threshold, and max PGA applicable, that allow the algorithm to be fine tuned for any
particular application. The algorithm uses the absolute average of the signal (which is the average of the
absolute value of the signal) as a measure of the nominal amplitude of the output signal. Since the gain
can be changed at the sample interval time, the AGC algorithm operates at the ADC sample rate.
1. Target Level represents the nominal output level at which the AGC attempts to hold the ADC output
signal level. The PCM3070 allows programming of eight different target levels, which can be
programmed from –5.5dB to –24dB relative to a full-scale signal. Since the PCM3070 reacts to the
signal absolute average and not to peak levels, it is recommended that the target level be set with
enough margin to avoid clipping at the occurrence of loud sounds.
2. Attack Time determines how quickly the AGC circuitry reduces the PGA gain when the output signal
level exceeds the target level due to increase in input signal level. Wide range of attack time
programmability is supported in terms of number of samples (i.e. number of ADC sample frequency
clock cycles).
3. Decay Time determines how quickly the PGA gain is increased when the output signal level falls
below the target level due to reduction in input signal level. Wide range of decay time programmability
is supported in terms of number of samples (i.e., number of ADC sample frequency clock cycles).
4. Gain Hysteresis is the hysteresis applied to the required gain calculated by the AGC function while
changing its mode of operation from attack to decay or vice-versa. For example, while attacking the
input signal, if the current applied gain by the AGC is xdB, and suddenly because of input level going
down, the new calculated required gain is ydB, then this gain is applied provided y is greater than x by
the value set in Gain Hysteresis. This feature avoids the condition when the AGC function can fluctuate
between a very narrow band of gains leading to audible artifacts. The Gain Hysteresis can be adjusted
or disabled by the user.
5. Noise threshold determines the level below which if the input signal level falls, the AGC considers it
as silence, and thus brings down the gain to 0dB in steps of 0.5dB every FS and sets the noise
threshold flag. The gain stays at 0dB unless the input speech signal average rises above the noise
threshold setting. This ensures that noise is not 'gained up' in the absence of speech. Noise threshold
level in the AGC algorithm is programmable from -30dB to -90dB of full-scale. When AGC Noise
Threshold is set to –70dB, –80db, or –90dB, the microphone input Max PGA applicable setting must
be greater than or equal to 11.5dB, 21.5dB, or 31.5dB respectively. This operation includes hysteresis
and debounce to avoid the AGC gain from cycling between high gain and 0dB when signals are near
the noise threshold level. The noise (or silence) detection feature can be entirely disabled by the user.
6. Max PGA applicable allows the designer to restrict the maximum gain applied by the AGC. This can
be used for limiting PGA gain in situations where environmental noise is greater than the programmed
noise threshold. Microphone input Max PGA can be programmed from 0dB to 58dB in steps of 0.5dB.
7. Hysteresis, as the name suggests, determines a window around the Noise Threshold which must be
exceeded to either detect that the recorded signal is indeed noise or signal. If initially the energy of the
recorded signal is greater than the Noise Threshold, then the AGC recognizes it as noise only when
the energy of the recorded signal falls below the Noise Threshold by a value given by Hysteresis.
Similarly, after the recorded signal is recognized as noise, for the AGC to recognize it as a signal, its
energy must exceed the Noise Threshold by a value given by the Hysteresis setting. In order to
prevent the AGC from jumping between noise and signal states, (which can happen when the energy
of recorded signal is very close to the Noise threshold) a non-zero hysteresis value should be chosen.
The Hysteresis feature can also be disabled.
8. Debounce Time (Noise and Signal) determines the hysteresis in time domain for noise detection.
The AGC continuously calculates the energy of the recorded signal. If the calculated energy is less
than the set Noise Threshold, then the AGC does not increase the input gain to achieve the Target
Level. However, to handle audible artifacts which can occur when the energy of the input signal is very
close to the Noise Threshold, the AGC checks if the energy of the recorded signal is less than the
Noise Threshold for a time greater than the Noise Debounce Time. Similarly the AGC starts increasing
the input-signal gain to reach the Target Level when the calculated energy of the input signal is greater
than the Noise Threshold. Again, to avoid audible artifacts when the input-signal energy is very close
to Noise Threshold, the energy of the input signal needs to continuously exceed the Noise Threshold
9. The AGC Noise Threshold Flag is a read-only flag indicating that the input signal has levels lower
10. Gain Applied by AGC is a ready-only register setting which gives a real-time feedback to the system
11. The AGC Saturation Flag is a read-only flag indicating that the ADC output signal has not reached its
12. The ADC Saturation Flag is a read-only flag indicating an overflow condition in the ADC channel. On
13. An AGC low-pass filter is used to help determine the average level of the input signal. This average
ADC
value for the Signal Debounce Time. If the debounce times are kept very small, then audible artifacts
can result by rapid enabling and disabling the AGC function. At the same time, if the Debounce time is
kept too large, then the AGC may take time to respond to changes in levels of input signals with
respect to Noise Threshold. Both noise and signal debounce time can be disabled.
than the Noise Threshold, and thus is detected as noise (or silence). In such a condition the AGC
applies a gain of 0dB.
on the gain applied by the AGC to the recorded signal. This, along with the Target Setting, can be
used to determine the input signal level. In a steady state situation
Target Level (dB ) = Gain Applied by AGC (dB) + Input Signal Level (dB)
When the AGC noise threshold flag is set, then the status of gain applied by AGC should be ignored.
Target Level. However, the AGC is unable to increase the gain further because the required gain is
higher than the Maximum Allowed PGA gain. Such a situation can happen when the input signal has
very low energy and the Noise Threshold is also set very low. When the AGC noise threshold flag is
set, the status of AGC saturation flag should be ignored.
overflow, the signal is clipped and distortion results. This typically happens when the AGC Target Level
is kept very high and the energy in the input signal increases faster than the Attack Time.
level is compared to the programmed detection levels in the AGC to provide the correct functionality.
This low pass filter is in the form of a first-order IIR filter. Three 8-bit registers are used to form the
24-bit digital coefficient as shown on the register map. In this way, a total of 9 registers are
programmed to form the 3 IIR coefficients. The transfer function of the filter implemented for signal
level detection is given by
Where:
Coefficient N0 can be programmed by writing into Page 8, Register 12, 13 and 14.
Coefficient N1 can be programmed by writing into Page 8, Register 16, 17 and 18.
Coefficient D1 can be programmed by writing into Page 8, Register 20, 21 and 22.
N0, N1 and D1 are 24-bit 2’s complement numbers and their default values implement a low-pass
filter with cut-off at 0.002735*ADC_FS .
See Table 2-6 for various AGC programming options. AGC can be used only if analog microphone
input is routed to the ADC channel.
2.3.3 ADC Decimation Filtering and Signal Processing Overview
The PCM3070 ADC channel includes a built-in digital decimation filter to process the oversampled data
from the sigma-delta modulator to generate digital data at Nyquist sampling rate with high dynamic range.
The decimation filter can be chosen from three different types, depending on the required frequency
response, group delay and sampling rate.
2.3.4 ADC Processing Blocks
The PCM3070 offers a range of processing blocks which implement various signal processing capabilities
along with decimation filtering. These processing blocks give users the choice of how much and what type
of signal processing they may use and which decimation filter is applied.
Table 2-7 gives an overview of the available processing blocks of the ADC channel and their properties.
The processing blocks are tuned for common cases and can achieve high anti-alias filtering or low-group
delay in combination with various signal processing effects such as audio effects and frequency shaping.
The available first order IIR, BiQuad and FIR filters have fully user-programmable coefficients. The
Resource Class Column (RC) gives an approximate indication of power consumption.
Depending on the selected processing block, different types and orders of digital filtering are available. A
1st-order IIR filter is always available, and is useful to efficiently filter out possible DC components of the
signal. Up to 5 biquad section or alternatively up to 25-tap FIR filters are available for specific processing
blocks. The coefficients of the available filters are arranged as sequentially indexed coefficients in two
banks. If adaptive filtering is chosen, the coefficient banks can be switched on-the-fly. For more details on
adaptive filtering see Section 2.3.6.5 below.
The coefficients of these filters are each 24-bits wide, in two's-complement and occupy 3 consecutive 8-bit
registers in the register space. For default values please see Section 5.13.
2.3.5.10.1 1stOrder IIR Section
The transfer function for the first order IIR Filter is given by
The frequency response for the 1storder IIR Section with default coefficients is flat at a gain of 0dB.
Details on ADC coefficient default values are given in Section 5.13.
Table 2-8. ADC 1st order IIR Filter Coefficients
www.ti.com
(2)
FilterFIlterADC Coefficient LeftADC Coefficient Right Channel
The transfer function of each of the Biquad Filters is given by
The frequency response for each of the biquad section with default coefficients is flat at a gain of 0dB.
Details on ADC coefficient default values are given in Section 5.13.
ADC
(3)
Table 2-9. ADC Biquad Filter Coefficients
FilterFIlterADC Coefficient LeftADC Coefficient Right Channel
Six of the available ADC processing blocks offer FIR filters for signal processing. PRB_R9 and PRB_R12
feature a 20-tap FIR filter while the processing blocks PRB_R3, PRB_R6, PRB_R15 and PRB_R18
feature a 25-tap FIR filter
The coefficients of the FIR filters are 24-bit 2’s complement format and correspond to the ADC coefficient
space as listed below. There is no default transfer function for the FIR filter. When the FIR filter gets used
all applicable coefficients must be programmed.
www.ti.com
(4)
Table 2-10. ADC FIR Filter Coefficients
FilterFIlter Coefficient Left ADCFilter Coefficient Right ADC Channel
ADCChannelResponseforDecimationFilter A
(Redlinecorrespondsto –73dB)
G013
www.ti.com
2.3.5.11 Decimation Filter
The PCM3070 offers 3 different types of decimation filters. The integrated digital decimation filter removes
high-frequency content and down samples the audio data from an initial sampling rate of AOSR*Fs to the
final output sampling rate of Fs. The decimation filtering is achieved using a higher-order CIC filter
followed by linear-phase FIR filters. The decimation filter cannot be chosen by itself, it is implicitly set
through the chosen processing block.
The following subsections describe the properties of the available filters A, B and C.
2.3.5.11.1 Decimation Filter A
This filter is intended for use at sampling rates up to 48kHz. When configuring this filter, the oversampling
ratio of the ADC can either be 128 or 64. For highest performance the oversampling ratio must be set to
128.
Filter A can also be used for 96kHz at an AOSR of 64.
ParameterConditionValue (Typical)Units
AOSR = 128
Filter Gain Pass Band0…0.39 Fs0.062dB
Filter Gain Stop Band0.55…64Fs–73dB
Filter Group Delay17/FsSec.
Pass Band Ripple, 8 ksps0…0.39 Fs0.062dB
Pass Band Ripple, 44.1 ksps0…0.39 Fs0.05dB
Pass Band Ripple, 48 ksps0…0.39 Fs0.05dB
AOSR = 64
Filter Gain Pass Band0…0.39 Fs0.062dB
Filter Gain Stop Band0.55…32Fs–73dB
Filter Group Delay17/FsSec.
Pass Band Ripple, 8 ksps0…0.39 Fs0.062dB
Pass Band Ripple, 44.1 ksps0…0.39 Fs0.05dB
Pass Band Ripple, 48 ksps0…0.39 Fs0.05dB
Pass Band Ripple, 96 ksps0…20kHz0.1dB
ADC
Table 2-11. ADC Decimation Filter A, Specification
SLAU332–March 2011PCM3070 Application
Submit Documentation Feedback
Figure 2-16. ADC Decimation Filter A, Frequency Response
Filter B is intended to support sampling rates up to 96kHz at a oversampling ratio of 64.
ParameterConditionValue (Typical)Units
AOSR = 64
Filter Gain Pass Band0…0.39Fs±0.077dB
Filter Gain Stop Band0.60Fs…32Fs–46dB
Filter Group Delay11/FsSec.
Pass Band Ripple, 8 ksps0…0.39Fs0.076dB
Pass Band Ripple, 44.1 ksps0…0.39Fs0.06dB
Pass Band Ripple, 48 ksps0…0.39Fs0.06dB
Pass Band Ripple, 96 ksps0…20kHz0.11dB
Filter type C along with AOSR of 32 is specially designed for 192ksps operation for the ADC. The pass
band which extends up to 0.11*Fs ( corresponds to 21kHz), is suited for audio applications.
ParameterConditionValue (Typical)Units
Filter Gain from 0 to 0.11Fs0…0.11Fs±0.033dB
Filter Gain from 0.28Fs to 16Fs0.28Fs…16Fs–60dB
Filter Group Delay11/FsSec.
Pass Band Ripple, 8 ksps0…0.11Fs0.033dB
Pass Band Ripple, 44.1 ksps0…0.11Fs0.033dB
Pass Band Ripple, 48 ksps0…0.11Fs0.032dB
Pass Band Ripple, 96 ksps0…0.11Fs0.032dB
Pass Band Ripple, 192 ksps0…20kHz0.086dB
Figure 2-18. ADC Decimation Filter C, Frequency Response
2.3.5.12 ADC Data Interface
The decimation filter and signal processing block in the ADC channel passes 32-bit data words to the
audio serial interface once every cycle of Fs,ADC. During each cycle of Fs,ADC, a pair of data words ( for
left and right channel ) are passed. The audio serial interface rounds the data to the required word length
of the interface before converting to serial data as per the different modes for audio serial interface.
The PCM3070 has a built-in feature to fine-adjust the phase between the stereo ADC record signals. This
delay can be controlled in fine amounts in the following fashion.
The PCM3070 supports a highly flexible DC measurement feature using the high resolution oversampling
and noise-shaping ADC. This mode can be used when the particular ADC channel is not used for the
audio-record function. This mode can be enabled by programming Page 0, Register 102, D(7:6). The
converted data is 24-bits, using 2.22 numbering format. The value of the converted data for the
left-channel ADC can be read back from Page 0, Register 104-106 and for the right-channel ADC from
Page 0, Register 107-109. Before reading back the converted data, Page 0, Register 103, D(6) must be
programmed to latch the converted data into the read-back register. After the converted data is read back,
Page 0, Register 103, D(6) must be reset to 0 immediately. In DC measurement mode, two measurement
methods are supported.
Mode A
In DC-measurement mode A, a variable-length averaging filter is used. The length of the averaging filter
D, can be programmed from 1 to 20 by programming Page 0, Register 102, D(4:0). To choose mode A,
Page 0, Register 102, D(5) must be programmed to 0.
Mode B
To choose mode B Page 0, Register 102, D(5) must be programmed to 1. In DC-measurement mode B, a
first-order IIR filter is used. The coefficients of this filter are determined by D, Page 0, Register 102,
D(4:0). The nature of the filter is given in the table below
D:Page 0, Reg 102 , D(4:0)–3 dB BW (kHz)–0.5 dB BW (kHz)
By programming Page 0, Reg 103, D(5) to ‘1’, the averaging filter is periodically reset after 2^R number of
ADC_MOD_CLK, where R is programmed in Page 0, Reg 103, D(4:0). When Page 0, Reg 103, D(5) is set
to 1 then the value of D should be less than the value of R. When Page 0, Reg 103, D(5) is programmed
as 0 the averaging filter is never reset.
2.3.6.3Fast Charging AC Capacitors
The value of the coupling capacitor must be so chosen that the high-pass filter formed by the coupling
capacitor and the input impedance do not affect the signal content. At power-up, before proper recording
can begin, this coupling capacitor must be charged up to the common-mode voltage. To enable quick
charging, the PCM3070 has modes to speed up the charging of the coupling capacitor. These are
controlled by controlling Page 1, Register 71, D(5:0).
2.3.6.4Anti Thump
For audio recording, the analog input pins of the PCM3070, must be AC-coupled to isolate the
DC-common mode voltage of the driving circuit from the common-mode voltage of the PCM3070.
When the analog inputs are not selected for any routing, the input pins are 3-stated and the voltage on the
pins is undefined. When the unselected inputs are selected for any routing, the input pins must charge
from the undefined voltage to the input common-mode voltage. This charging signal can cause audible
artifacts. In order to avoid such artifacts the PCM3070 also incorporates anti-thump circuitry to allow
connection of unused inputs to the common-mode level. This feature is disabled by default, and can be
enabled by writing the appropriate value into Page 1, Register 58, D(7:2). The use of this feature in
combination with the PTM_R1 setting in Page 0, Register 61 when the ADC channel is powered down
causes the additional current consumption of 700μA from AVdd and 125μA from DVdd in the sleep mode.