ADAU1701
Rev. B | Page 45 of 52
MULTIPURPOSE PINS
The ADAU1701 has 12 multipurpose (MP) pins that can be
individually programmed to be used as serial data inputs, serial
data outputs, digital control inputs/outputs to and from the
SigmaDSP core, or inputs to the 4-channel auxiliary ADC. These
pins allow the ADAU1701 to be used with external ADCs and
DACs. They also use analog or digital inputs to control settings
such as volume control, or use output digital signals to drive
LED indicators. Every MP pin has an internal 15 kΩ pull-up
resistor.
AUXILIARY ADC
The ADAU1701 has a 4-channel, auxiliary, 8-bit ADC that can
be used in conjunction with a potentiometer to control volume,
tone, or other parameter settings in the DSP program. Each of
the four channels is sampled at the audio sampling frequency (fS).
Full-scale input on this ADC is 3.0 V, so the step size is approxi-
mately 12 mV (3.0 V/256 steps). The input resistance of the ADC is
approximately 30 kΩ.
Table 62 indicates which four MP pins are
mapped to the four channels of the auxiliary ADC. The auxiliary
ADC is enabled for those pins by writing 1111 to the appropriate
portion of the multipurpose pin configuration registers.
The auxiliary ADC is turned on by setting the AAEN bit of the
auxiliary ADC enable register (see
Table 57).
Noise on the ADC input can cause the digital output to constantly
change by a few LSBs. If the auxiliary ADC is used to control
volume, this constant change causes small gain fluctuations.
To avoid this, add a low-pass filter or hysteresis to the auxiliary
ADC signal path by enabling either function in the auxiliary ADC
and power control register (2082), as described in
Table 55. The
filter is enabled by default when the auxiliary ADC is enabled.
When data is read from the auxiliary ADC registers, two bytes
(12 bits of data, plus zero-padded LSBs) are available because of
this filtering.
20k
10k
S1
S2
1.8pF
AUX ADC
INPUT PIN
06
41
2-
0
30
Figure 31. Auxiliary ADC Input Circuit
Figure 31 shows the input circuit for the auxiliary ADC. Switch S1
enables the auxiliary ADC and is set by Bit 15 of the auxiliary
ADC enable register. The sampling switch, S2, operates at the
audio sampling frequency.
The auxiliary ADC data registers can be written to directly after
AACW in the DSP core control register has been set. In this
mode, the voltages on the analog inputs are not written into the
registers, but rather the data in the registers is written from the
control port.
PVDD supplies the 3.3 V power for the auxiliary ADC analog
input. The digital core of the auxiliary ADC is powered with the
1.8 V DVDD signal.
Table 62. Multipurpose Pin Auxiliary ADC Mapping
Multipurpose Pin
Function
MP0
N/A
MP1
N/A
MP2
ADC1
MP3
ADC2
MP4
N/A
MP5
N/A
MP6
N/A
MP7
N/A
MP8
ADC3
MP9
ADC0
MP10
N/A
MP11
N/A
GENERAL-PURPOSE INPUT/OUTPUT PINS
The general-purpose input/output (GPIO) pins can be used as
either inputs or outputs. These pins are readable and can be set
either through the control interface or directly by the SigmaDSP
core. When set as inputs, these pins can be used with push-button
switches or rotary encoders to control DSP program settings.
Digital outputs can be used to drive LEDs or external logic to
indicate the status of internal signals and control other devices.
Examples of this use include indicating signal overload, signal
present, and button press confirmation.
When set as an output, each pin can typically drive 2 mA. This
is enough current to directly drive some high efficiency LEDs.
Standard LEDs require about 20 mA of current and can be
driven from a GPIO output with an external transistor or buffer.
Because of issues that could arise from simultaneously driving
or sinking a large current on many pins, care should be taken in
the application design to avoid connecting high efficiency LEDs
directly to many or all of the MPx pins. If many LEDs are required,
use an external driver.
When the GPIO pins are set as open-collector outputs, they
should be pulled up to a maximum voltage of 3.3 V (the voltage
on IOVDD).
SERIAL DATA INPUT/OUTPUT PORTS
The flexible serial data input and output ports of the ADAU1701
can be set to accept or transmit data in 2-channel format or in an
8-channel TDM stream. Data is processed in twos complement,
MSB-first format. The left-channel data field always precedes
the right-channel data field in the 2-channel streams. In TDM
mode, Slot 0 to Slot 3 are in the first half of the audio frame, and
Slot 4 to Slot 7 are in the second half of the frame. TDM mode
allows fewer multipurpose pins to be used, freeing more pins
for other functions. The serial modes are set in the serial output
and serial input control registers.