The S5A1901H02, Audio Effect Processor, reproduces vivid sound of
certain places and dynamic sound of movies. The S5A1901H02 has
over 15 sound effect modes including two kinds of Karaoke mode. In
addition to the sound modes, the S5A1901H02 provides mic-echo,
vocal canceller, loudness function, graphic equalizer, spectrum analyzer interface, tone control and volume/balance control so that it can
satisfy various sound requirements of audio systems including TV,
stereo audio systems, etc. Furthermore, the S5A1901H02 has built-in
16 bit stereo Σ−∆ ADC and DAC for easy application. The
S5A1901H02 also includes two digital source interface blocks and a
host interface block supporting normal microcontroller and I2C bus
interfaces.
KEY FEATURES
•Over 15 Sound Effect Modes including two kinds of Karaoke mode
100−QFP−1420C
•3/5/7-band Graphic Equalizer and 5/7-band Spectrum Analyzer Interface
•Mic-Echo, Loudness Function and Vocal Canceller
•Digital Volume/Balance/Tone Control
•Fader Function for Car Stereo System
•Programmable Sound Mode
•33 MIPS 16 bit fixed point DSP Core (SSP1610)
•Built-in Stereo 16 bit Σ−∆ ADC and DAC
•External Clock: 16.9344MHz
•Sampling Frequency: 44.1kHz
•Support Various Digital Audio Interface Formats
•Normal Microcontroller Interface and I2C Bus Interface
•0.5 Kword Internal Data RAM and 6 Kword Delay Memory for Sound Effect
•6 Kword Internal Program ROM and 0.5 Kword Parameter ROM for Movie Mode
magnitude centered around VREF
3VSS2AGCodec analog ground−−
4VDD13DPCodec digital power +5 V−−
5GND13DGCodec digital ground−−
6VDD0DPCodec digital power +5 V−−
7GND0DGCodec digital ground−−
8~11NC−Reserved for chip test−−
12VDD1DPDigital power +5 V−−
13GND1DGDigital ground−−
14~17NC−Reserved for chip test−−
18VDD2DPDigital power +5 V−−
19GND2DGDigital ground−−
20~27NC−Reserved for chip test−−
28VDD3DPDigital power +5 V−−
29GND3DGDigital ground−−
30SASDI
35VDD4DPDigital power +5 V−−
36GND4DGDigital ground−−
37SCLDI
38SDAI/O
I2C bus interface serial bit clock
I2C bus interface serial data in/out
Open drain−
Open drain−
39VDD5DPDigital power +5 V−−
40GND5DGDigital ground−−
6
Page 7
AUDIO EFFECT PROCESSORS5A1901H02
S5A1901H02 PIN DESCRIPTION (Continued)
NoPin NameI/OFunctionPad TypePull Up/Down
41DSDI2DIDigital serial data input 2 (DSDI2)
42DBCKI2DIDSDI2 bit clock
43DLRCKI2DIDSDI2 left/right flag clock
Schmitt trigger
Schmitt trigger
Schmitt trigger
44VDD6DPDigital power +5 V−−
45GND6DGDigital ground−−
46DSDO2DODigital serial data output 2 (DSDO2)−−
47DBCKO2DODSDO2 bit clock−−
48DLRCKO2DODSDO2 left/right flag clock−−
49DSDO1DODigital serial data output 1 (DSDO1)−−
50DBCKO1I/ODSDO1 bit clock
51DLRCKO1I/ODSDO1 left/right flag clock
Schmitt trigger
Schmitt trigger
Down
Down
52VDD7DPDigital power +5 V−−
53GND7DGDigital ground−−
54DSDI1DIDigital serial data input 1 (DSDI1)
55DBCKI1DIDSDI1 bit clock
56DLRCKI1DIDSDI1 left/right flag clock
General Description of Digital Audio Interface of the S5A1901H02
The digital audio interface of the S5A1901H02 consists of 3 blocks mainly: CIU, DSIU1 and DSIU2. The CIU block
is the interface block for the built-in codec. The DSIU1 and DSIU2 blocks are for external ADC and DAC interfaces.
The DSIU2 and CIU are mutually exclusive in a sense that only one of two is working. The interface blocks can
work either slave or master mode (for DSIU1 output, both modes) depending on wether the S5A1901H02 supplies
the bit clocks and LR clocks (master), or DAC (ADC) provides the clocks (slave). For example, the DSIU1 takes the
digital audio outputsin master/32 Fs mode, which means that the S5A1901H02 (or DSIU1) provides the bit and the
LR clocks to the DAC and the audio data format 32 Fs (32 bit clocks in a LR clock period).
When an external ADC or (and) DAC is used, it is strongly recommended to use the clock, CLKO (pin #64),
provided by S5A1901H02 as the master clock for clock synchronization.
DSIU2CIUDSIU1
slave
(support
all format*)
ADCDAC
(32Fs, 16bit)
master
(32Fs)
16 bit16 bit
ADCDAC
master
CODEC
master
(32Fs)
S5A1901H02
slave
(support all formats*)
master & slave
(support all formats*)
ADCDAC
10
Figure 4. Digital Audio Interface Formats of the S5A1901H02
Page 11
AUDIO EFFECT PROCESSORS5A1901H02
Codec Interface
The S5A1901H02 has on chip 16 bit stereo ADC and DAC with digital filters and serial interfaces to provide CD
quality sound for audio application. The digital A/D decimation filter takes in the encoded signals from Σ−∆ A/D
modulator, and outputs 16 bit stereo digital audio data through the serial interface. The D/A interpolation filter takes
16 bit stereo audio data from the serial interface, and outputs one bit signal to the Σ−∆ D/A. The oversampling rate
of the digital filter is 128xFs, where Fs can be varied from 4kHz to 48kHz and can be changed on the fly. The serial
data interface is running at 32xFs and supports both right justified format and I2S data format. To set input and output formats of codec, see Table and Table .
Digital Source Interface Unit 1 (DSIU1)
The DSIU1 has a digital serial data input source (DSDI1) and a digital serial data output source (DSDO1). It supports 16/18/20/24 bit data length, and supports right justified, left justified or I2S format in data position. The format
of DSIU1 is controlled by a microcontroller through Host Interface Unit (HIU) and Configuration Register Unit (CRU)
as in Table 19 and Table . In formats of DSDI1 and DSDO1, only 16 bit data length is supported when the data rate
is 32xFs. The DSDO1 can operate either in slave or master mode while DSDI1 operates only in slave mode by
Configuration Register Unit (CRU) setting. Note that the MSB is transferred first.
L-ch = Low, Data is synchronized with the falling edge of DBCKI1/DBCKO1
Figure 5. Data Format in DSIU1
11
Page 12
S5A1901H02AUDIO EFFECT PROCESSOR
Digital Source Interface Unit 2 (DSIU2)
The DSIU2 has a digital serial data input source (DSDI2) and a digital serial data output source (DSDO2). The
DSDI2 operates in slave mode, while the DSDO2 operates in master mode. The format of DSDI2 is same as that of
DSDI1. The format of DSDO2 is same as that of built-in codec. The format of DSDO2 supports 16 bit and 32xFs
right-justified or IIS format. The format of DSIU2 is controlled by a microcontroller through Host Interface Unit (HIU)
and Configuration Register Unit (CRU) as in Table and Table . Note that the MSB is transferred first.
The S5A1901H02 receives commands and parameters in serial format from microcontroller through built-in HIU.
The data must be in byte unit (8 bit). The host commands are composed of the following three types.
•Command Only
•Command followed by Parameter
•Command followed by Parameter #1 (high byte) followed by Parameter #2 (low byte)
The details on commands used in the S5A1901H02 can be found in Chapter 4.
The HIU supports either normal microcontroller interface or I2C bus interface. In normal host interface, the related
pins are HCLK (Normal Host Interface Bit Clock), HWEB (Normal Host Interface Write Enable) and HDATA (Nor-
mal Host Interface Data In/Out). In I2C bus interface, the related pins are SDA (Serial Data Line), SCL (Serial Clock
Line) and SAS (I2C Bus Interface Programmable Slave Address Selection). One can refer to I2C Bus Specification
by Philips. The I2C bus interface in the S5A1901H02 operates in Slave-Transmitter mode. The other function of
HIU is the spectrum request function. The spectrum value is sent to microcontroller. The maximum bit clock (HCLK
or SCL) is 400kHz. Note that since the chip is being initialized for at least 1ms after reset, commands should be
transferred to the chip after 1ms.
2-Byte Operation1-Byte Operation
HWEB
HCLK
HDATA
Write Operation(Command)Write Operation(Command)
Processing Operation
MSB
From Micom
MSB
From Micom
Figure 7. Data Format in Normal Host Interface
Write Operation(Data)
Processing Operation
MSB
From Micom
13
Page 14
S5A1901H02AUDIO EFFECT PROCESSOR
Other Write OperationSpectrum Request Operation
Write OperationRead Operation
HWEB
HCLK
HDATA
MSB
From Micom
MSB
From Chip
MSB
From Micom
Figure 8. Data Format in Normal Host Interface-Spectrum Request
I2C Bus Interface
The S5A1901H02 can be controlled by a microcontroller via the 2-line I2C bus, SDA (Serial Data Line) and SCL
(Serial Clock Line). Both lines must be connected to a positive supply via pull-up resistor. Data transfer may be initiated only when the bus is not busy. When the bus is free, both lines are high. The data on the SDA line must be
stable during the high period of clock, SCL. When the SCL is low, the SDA can change. Every byte transferred
through the SDA line must contain 8 bits including programmable slave address and read/write direction control bit.
Each byte must be followed by acknowledge bit which is sent back to the microcontroller by the S5A1901H02 by
pulling down the SDA line. The MSB is transferred first. The setup and hold time on the SCL and SDA lines can be
found in I2C Specification by Philips.
•I2C bus interface start and stop condition
The start condition is high to low transition of the SDA line while the SCL is high. The stop condition is low to high
transition of the SDA line while SCL is high.
14
SDA
SCL
Change
of Data
Allowed
P
Stop
Condition
SDA
SCL
Data Valid
S
Start
Condition
Figure 9. Data Validity and Start/Stop Condition in I2C Bus
Page 15
AUDIO EFFECT PROCESSORS5A1901H02
• I2C Bus Interface Acknowledge
The acknowledge related clock pulse is generated by a microcontroller. The transmitter releases the SDA line
(high) during the acknowledge clock pulse. The receiver must pull down the SDA line during the acknowledge clock
pulse so that it remains stable low during the high period of this clock pulse. The slave-transmitter generates negative acknowledge when read operation processes. The negative acknowledge is generated by a master (microcontroller).
•I2C Bus Interface Slave Address Selection
Pin NameStatus
Low8081
SAS
High8283
•I2C Bus Interface Specification
Chip AddressFunction AddressDATA
MSBMSBMSB
S100000 A0 W A
SCL
SDA
1 0 0 0 0 00
Figure 10. I2C Bus Interface Format-Write Operation (SAS = 0)
Figure 11. I2C Bus Interface Format-Read Operation (SAS = 0)
LSB
N/
P
A
PS
15
Page 16
S5A1901H02AUDIO EFFECT PROCESSOR
System Clock
In the S5A1901H02, there are two ways to supply the system clock,
•Using Clock Doubler
The CLKS should be set to LOW and X-tal oscillator of 16.9344MHz is connected to XI and XO pins. Then, the
clock doubler doubles 16.9344MHz to 33.8688MHz and outputs to MCLK.
•Using External Clock Source
The CLKS should be set to HIGH. In this case, the MCLK pin is the input which is the system clock of 33.8688MHz.
Reset
The S5A1901H02 provides hardware reset and software reset. In hardware reset using RESB pin, the reset signal
has to be kept for L/R one cycle pulse width (approx. 22.67µs) for stable initialization of built-in codec. In the software reset (command code: 0x00) through HIU, system initialization is internally processed.
Power Down
The system power down mode set by host command through HIU disables all hardware macro blocks in the
S5A1901H02, i.e., DSP, delay RAM, data RAM, program ROM, glue logic and codec. Every host command can
wake-up the system power down mode.
16
Page 17
AUDIO EFFECT PROCESSORS5A1901H02
FUNCTIONAL DESCRIPTION
Bypass Mode
In bypass mode, the input is bypassed to the output with the control of volume, balance and tone.
Stereo Emulation Mode I, II
These modes emulate mono input signal to stereo signal. The block diagram realizing these modes is shown in
Figure . The Stereo Emulation Mode I and II are different in the strength of effect. The Stereo Emulation Mode II
produces more stereo effect than Stereo Emulation Mode I.
Lin = RinLout
Delay
+
Figure 12. Block Diagram for Stereo Emulation Modes
Super Woofer Mode I, II, III
Super Woofer modes highly emphasize very low frequency component of input signal, and then, add echo effect.
The block diagram realizing these modes is shown in Figure . The Super Woofer Mode I, II and III are different in
the strength of the effect. The effect becomes stronger from Super Woofer I to Super Woofer III.
LinLout
Prefilter
+Postfilter
Filter
Rout
+
Delay
Buffer
Prefilter
Figure 13. Block Diagram for Super Woofer Modes
+Rin
Rout
17
Page 18
S5A1901H02AUDIO EFFECT PROCESSOR
Hall Mode I, II and Stage Mode
Hall modes and stage mode produce effects that one feels as if he or she is in a hall or a stage respectively. The
block diagram realizing these modes is shown in Figure . The Hall Mode I and II are different in the hall size which
one can feel. The Hall Mode II produces the effect of a larger hall than that of Hall Mode I.
LinLout
+Filter
+
Delay
Buffer
Rin
Figure 14. Block Diagram for Hall and Stage Modes
Arena Mode I, II
Arena modes produce effects that one feels as if he or she is in an arena. The block diagram realizing these modes
is shown in Figure . The Arena Mode I and II are different in the arena size which one can feel. The Arena Mode I
produces the effect of wider arena than that of Arena Mode II.
LinLout
+FilterDelay+
Delay
+
Rout
18
Rin
Figure 15. Block Diagram for Arena Mode I, II
+
Rout
Page 19
AUDIO EFFECT PROCESSORS5A1901H02
News/Drama Mode
This mode enhances high frequency component of signal to improve the speech recognizability for news or drama
program.
Karaoke Mode I, II
The Karaoke modes receive inputs from both a microphone and an audio source. In Karaoke Mode I, the microphone input is echoed by the echo filter 1 and the audio source input is effected with the stage mode. When the
vocal canceller is selected, the audio source whose vocal component is cancelled is bypassed without stage effect.
In Karaoke Mode II, the microphone input is echoed by the echo filter 2 and the audio source input is bypassed.
Voice
Music
Voice
Music
Mic Echo I
Stage Effect
Vocal
Canceller
Karaoke Mode I
Mic Echo II
Vocal
Canceller
Karaoke Mode II
Equalizer
Equalizer
Figure 16. Karaoke Mode I, II
In Mic echo filter 1, the delay gains remain large and they are shortly decayed as time goes by. Thus, one can feel
plenty of echo while there is little aliasing between echos and original sound. The Mic echo filter 2 has a similar
structure to that of Hall mode. The effect is not stronger than that of Mic echo filter 1, but it produces a widely
spread echo which is very impressive.
19
Page 20
S5A1901H02AUDIO EFFECT PROCESSOR
User Defined Mode
The User Defined Mode enables one to design a new sound effect mode by setting the parameters of existing filter
structure. The block diagram of this filter structure is shown in Figure . One can set these parameters by sending
host commands corresponding to each parameters. The commands used for this mode are listed in Chapter 4. The
command codes from 0x49 to 0x71 are assigned to User Defined Mode. The usage of individual parameter in Figure is as follows:
•The gain parameters, G0 and G1, are used to control left and right input gains respectively.
•The parameters, BL0, BL1 and AL1, are coefficients of the IIR filter used for left prefilter. The parameters, BR0,
BR1 and AR1, are coefficients of the IIR filter used for right prefilter. The parameters, BD0, BD1 and AD1 are
coefficients of the IIR filter used for postfilter. The structures of all three filters are realized by the first order IIR.
The zero of the transfer function of each filter is − BX1 / BX0 and the pole is − AX1, where X is L or R or D.
•The parameters, G2, G3 and G4, are left term gain, right term gain and feed-back term gain respectively.
•The parameters, G5 to G11, are gains of delayed signals in the left channel. The parameters, G14 to G20, are
gains of delayed signals in the right channel. The parameters, G12 and G21, are gains of effected output
signals. The parameters, G13 and G22, are gains of directed output signals.
•The parameter, T0, is the pointer address of the feed-back signal in the delay memory. The parameter, Tc, is
the pointer address of the current input signal. The parameters, T1 to T7, are pointers designating addresses of
the 7 different delayed signals. Note that the pointer address is same as the amount of delay. Thus, T0 to T7
values can be simply determined as the amount of delay which one wants to set.
G4
BL0
G0
BL1
BR0
G1
BR1
AL1
Left Prefilter
AR1
Right Prefilter
G2
G3
BD0
+
BD1
AD0
PostfilterDelay Line Buffer
T
c
T1T2T3T4T5T6T
T
0
7
G21
G13
G22
++G12
L
R
G5
G6
G7
G8
G9
G10
G11
G14
G15
G16
G17
G18
G19
G20
+
+
Figure 17. Block Diagram for User Defined Mode
20
Page 21
AUDIO EFFECT PROCESSORS5A1901H02
Movie Mode I, II
The Movie Mode I and II create 3-dimensional sound images from 2-channel stereo input signals. The Movie ModeI enhances stereo images dynamically using the Samsung proprietary TLA (Table Lookup Algorithm) method. One
perceives as if he or she is in the live stage. The Movie Mode II uses a sound source relocalization technique based
on Head Related Transfer Function (HRTF). Only using two front speakers, one can perceive as sound coming
from various directions.
Graphic Equalizer
The S5A1901H02 provides the graphic equalizer having following features.
•3/5/7-band graphic equalizer
•5/7-band spectrum analyzer display
•± 12dB adjustable range
The 3-band graphic equalizer can be used as a simple digital tone control (as bass and treble control).
Center Frequencies of Equalizer Bands (Hz)
Band3-Band Mode5-Band Mode7-Band Mode
Band06310063
Band11 K300160
Band216 K1 K400
Band3−3 K1 K
Band4−10 K2.5 K
Band5−−6.4 K
Band6−−16 K
The gain control of each band uses an attenuation table containing attenuation values, which has the size of 25 to
implement ±12dB with 1dB step control
21
Page 22
S5A1901H02AUDIO EFFECT PROCESSOR
Attenuation
0 dB
Maximum tone Vc+Tm
Current volume scale Vc
Minimum tone Vc+Tm
90 dB
MUTE (inf dB)
+12 dB
Volume range
+-12dB@1dB step
-12 dB
Figure 18. Dynamic Range of Each Control Band
Gain Table for Tone Level Control
IndexGain Value (Hex)Gain Scale (dB)IndexGain Value (Hex)Gain Scale (dB)
The spectrum analyzer displays the power of each equalizer band output. The band number in spectrum analyzer
is identical to that in graphic equalizer except for the 3-band equalizer mode.
In this case, the spectrum analyzer follows 7-band equalizer mode in spite of the 3-band equalizer mode being
selected. The 16 bit analyzer outputs are transformed to generate a byte value (256 levels), which can be applied
to an external LCD or other display devices. At each input sample, only one band output power is calculated in
every sampling period, because it is not necessary to display all band power at each sampling period. (At 44.1kHz
sampling frequency, the period is only 0.0227 msec)
Vocal Canceller
The structure of vocal canceller function used in the S5A1901H02 is given in Figure .
Left input
Right input
This structure is based on the fact that the vocal component in music sound is center channel component (i.e.,
mono). Thus, subtracting left signal from right signal, the signal in the low line from above diagram has no vocal
component. However, there are lots of loss in other signal components. For instance, since drum beat is usually
mono, it also disappears after the vocal cancellation. The process in the upper line compensates this loss of some
components. The added two signal is filtered by a band stop filter in which the lower and upper cutoff frequencies
are 120Hz and 10kHz respectively. Thus, the stereo components below 120Hz and above 10kHz are emphasized,
whereas the vocal components between cutoff frequencies are eliminated. To obtain the left and the right signals,
the filtered signal is subtracted from the lower part of signals to obtain the left signal, and is added to the lower part
of signal to obtain the right signal.
+
-+
Figure 19. Structure of Vocal Canceller
Band Stop
Filter
-
Left output
Right output
23
Page 24
S5A1901H02AUDIO EFFECT PROCESSOR
Loudness Control
The loudness control compensates human aural insensitivity to low and high frequency components of low volume
level. Loudness control increases the tone levels of low (lower than 100Hz) and high frequency (higher than 10kHz)
signals according to the actual volume setting. When loudness control is on, the current equalizer mode is stored
and does not work until loudness control is turned off.
GainGain
f
GainGain
f
MINMAX
VOLUME
f
f
Figure 20. Loudness gain according to the actual volume setting
24
Figure 21. Loudness compensated level with respect to volume level
Page 25
AUDIO EFFECT PROCESSORS5A1901H02
Volume Control
Volume control uses an attenuation table containing attenuation values, which has the size of 110 to implement
0dB to −∞dB attenuation.
AttenuationStep size
0 dB
Maximum volume
35 dB
70 dB
90 dB
MUTE (inf dB)
0.5 dB /step
1.0 dB /step
110 steps in total
5 dB /step
Figure 22. Dynamic Range for Volume Contro
l
Volume Gain Table
IndexGain Value (Hex)Gain Scale (dB)IndexGain Value (Hex)Gain Scale (dB)
When balance control selects the left (right) channel, the right (left) channel diminishes. Balance control uses the
same table that is used for volume control as in Table , which performs 0 dB to -∞ dB (mute) attenuation by 1dB per
step.
Attenuation
0 dB
Current volume scale Vc
Output Volume range
90 dB
MUTE (inf dB)
Figure 23. Dynamic Range for Balance Control
27
Page 28
S5A1901H02AUDIO EFFECT PROCESSOR
Input/Output Configurations
The S5A1901H02 can receive one analog input from the built-in ADC and one digital input from DSDI1, or two digital inputs from DSDI1 and DSDI2 simultaneously. It can also send output to the built-in DAC, DSDO1 and DSDO2.
As described in Chapter 4, the S5A1901H02 has Mixing, Input/Output source selection and Bypass On-Chip Function to support a various Input/Output source configurations as described below.
•Input/Output Configuration 1
Built-in DAC
DSDO2
DSDI1Sound EffectGraphic EqualizerVolume/ Balance
DSDO1
Figure 24. Block Diagram of Input/Output Configuration
For this configuration, one should set Mixing and Bypass On-Chip Function to be turned off while DSDI1 is enabled
by using Chip Control Command as described in Chapter 4. The digital input from DSDI1 can be processed by one
of sound effect modes. In output side, the signal effected by one of sound modes is passed to DSDO1, and the output after graphic equalizer followed by volume and balance control is passed to the built-in DAC and DSDO2. To
obtain Configuration 1, one can send host commands from microcontroller in the order of the commands listed in
Table 8
Host Commands for Input/Output Configuration 1.
Command Code (Hex)ParameterDescription
34c1 (e1)Select DSDI1 (When DSDO1 uses internal clock)
2a−Bypass On-Chip Function: Off
2c−Mixing Function: Off
2d−Output Channel Selection: Normal
If one selects Output Channel Selection (command code: 0x2e) to be inverted, then two output connections are
switched.
28
Page 29
AUDIO EFFECT PROCESSORS5A1901H02
•Input/Output Configuration 2
Built-in ADC
DSDI2
DSDI1Sound EffectGraphic EqualizerVolume/ Balance
DSDO1
Built-in DAC
DSDO2
Figure 25. Block Diagram of Input/Output Configuration 2
For this configuration, one should set Mixing to be turned off and Bypass On-Chip Function to be turned on. In this
configuration, the S5A1901H02 receives two digital input signals through DSDI1 and DSDI2, or one analog and
one digital signals through the built-in ADC and DSDI1 respectively according to input channel configuration using
Chip Control Command as described in Chapter 4. With this selection, the input from the built-in ADC or DSDI2 is
bypassed to DSDO1 while the input from DSDI1 is processed by selected functions of the S5A1901H02. Thus, it
permits that other process, which the S5A1901H02 does not provide, be applied to the digital signal from DSDO1.
Also, this result can be an input to DSDI1 for further processing by functions of the S5A1901H02 as shown in Figure . In this configuration, the Output Channel Selection cannot be inverted. To obtain Configuration 2, one can
send host commands from microcontroller in the order of commands listed in Table 9.
c4 (e4)Select DSDI1 & DSDI2 (When DSDO1 uses internal clock)
29−Bypass On-Chip Function: On
2c−Mixing Function: Off
29
Page 30
S5A1901H02AUDIO EFFECT PROCESSOR
•Input/Output Configuration 3
Built-in DAC
DSDO2
Built-in ADC
DSDI2
This configuration is exactly same as Configuration 1 except for input source. For this configuration, one should set
Mixing and Bypass On-Chip Function to be turned off while the built-in ADC or DSDI2 is enabled.
To obtain Configuration 3, one can send host commands from microcontroller in the order of the commands listed
in Table 10.
Sound EffectGraphic EqualizerVolume/ Balance
DSDO1
Figure 26. Block Diagram of Input/Output Configuration 3
c2 (e2)Select DSDI2 (When DSDO1 uses internal clock)
2a−Bypass On-Chip Function: Off
2c−Mixing Function: Off
If one selects Output Channel Selection (command code: 0x2e) to be inverted, then two output connections are
switched.
30
Page 31
AUDIO EFFECT PROCESSORS5A1901H02
•Input/Output Configuration 4
DSDI1
Built-in ADC
DSDI2
+
Sound Effect
Graphic EqualizerVolume/Balance
Built-in DAC
DSDO2
DSDO1
Figure 27. Block Diagram of Input/Output Configuration 4
For this configuration, one should set Mixing to be turned on and Bypass On-Chip Function to be turned off. Input
signals from different sources can be mixed with controllable gains. After mixed, the flow is identical to Configuration 1 and 3. To obtain Configuration 4, one can send host commands from microcontroller in the order of the commands listed in Table 1.
c4 (e4)Select DSDI1 & DSDI2 (When DSDO1 uses internal clock)
2a−Bypass On-Chip Function: Off
2b−Mixing Function: On
2d−Output Channel Selection: Normal
If one selects Output Channel Selection (command code: 0x2e) to be inverted, then two output connections are
switched.
31
Page 32
S5A1901H02AUDIO EFFECT PROCESSOR
•Input/Output Configuration 5
Built-in ADC
DSDI2
DSDI1
Mic Echo
Vocal canceller
Stage Effect
+
Graphic EqualizerVolume/ Balance
Built-in DAC
DSDO2
DSDO1
Figure 28. Block Diagram of Input/Output Configuration 5
This configuration is for Karaoke Mode I. To have this configuration, one should set Mixing and Bypass On-Chip
Function to be turned off. According to input channel source setting, one of inputs from the built-in ADC or DSDI2 is
processed by mic-echo, and the other input from DSDI1 is processed by stage effect mode or by vocal canceller.
After mixed, the result is bypassed to DSDO1. This signal is also passed to the built-in DAC and DSDO2 after processed by graphic equalizer, volume and balance control. To obtain Configuration 5, one can send host commands
from microcontroller in the order of the commands listed in Table 2.
c4 (e4)Select DSDI1 & DSDI2 (When DSDO1 uses internal clock)
11−Select Karaoke Mode I
16−Source Selection in Karaoke Mode I: Normal
23 (24)−Vocal Canceller: On (Off)
2a−Bypass On-Chip Function: Off
2c−Mixing Function: Off
2d−Output Channel Selection: Normal
If one selects Output Channel Selection (command code: 0x2e) to be inverted, then two output connections are
switched.
32
Page 33
AUDIO EFFECT PROCESSORS5A1901H02
•Input/Output Configuration 6
DSDI1
Built-in ADC
DSDI2
Mic Echo
Vocal canceller
Stage Effect
+
Graphic EqualizerVolume/ Balance
Built-in DAC
DSDO2
DSDO1
Block Diagram of Input/Output Configuration 6
This configuration is also for Karaoke mode I as shown in Configuration 5. The difference between them is that
sources for mic-echo and stage effect mode are exchanged. To obtain this configuration, one should set Input
Source Selection in Karaoke I to be inverted and other switches (Mixing, Bypass On-Chip Function) to be turned
off. To obtain Configuration 6, one can send host commands from microcontroller in the order of the commands
listed in Table 3.
The S5A1902 receives data from and sends data to microcontroller through its HIU (Host Interface Unit) in the
length of byte. It provides I2C bus interface as well as normal microcontroller interface. To design and program a
microcontroller, one may refer to the specification of host interface described in Chapter 2. The commands used in
the S5A1901H02 are classified into the three types as follows:
•Type1: Command Only (1 Byte Command)
•Type2: Command followed by Parameter (2 Byte Command)
•Type3: Command followed by Parameter 1 and Parameter 2 (3 Byte Command)
Note that all data regardless of types must be sent to the S5A1901H02 in the length of byte. In type3, the high byte
is followed by the low byte. The command class contained in each type are listed in the following table. (see also
Table )
Classification of Command
TypeClass
System Control
TYPE1
TYPE2
TYPE3
Sound Mode Selection
Source Selection in Karaoke I
Graphic Equalizer Mode Selection
Band Spectrum Request
Vocal Canceller
Loudness
Mute/Release
Bypass On-Chip Function
Mixing
Output Channel Selection
Digital Data Format & Input Configuration
Volume
Balance
Mic-echo Scale
Equalizer Tone Level Control
Input Gain Control
Output Gain Control
Parameters for User Defined Mode
35
Page 36
S5A1901H02AUDIO EFFECT PROCESSOR
COMMAND SET DESCRIPTION
•Format
Command Code (Hex)Command Name
Reset
Description
2. SYSTEM POWER DOWN
•
Command for System Power Down
Command Code (Hex)
03System Power Down
Description
Page 37
AUDIO EFFECT PROCESSORS5A1901H02
3. SOUND MODE SELECTION
•Format
Commands for Sound Mode Selection
Command Code (Hex)Command NameCommand Code (Hex)Command Name
05Bypass0eArena I
06Stereo Emulation I0fArena II
07Stereo Emulation II10News/Drama
08Super Woofer I11Karaoke I
09Super Woofer II12Karaoke II
0aSuper Woofer III13User Defined Mode
0bHall I14Movie I
0cHall II15Movie II
0dStage
Description
The S5A1901H02 presents various sound effect and Movie modes as listed above. For detailed description on
each mode, refer to “Functional Description” in Chapter 3.
4. SOURCE SELECTION IN KARAOKE MODE I
•Format
Commands for Source Selection in Karaoke Mode I
Command Code (Hex)Command Name
16Normal
17Inversion
Description
In Karaoke mode I, two input sources are processed by mic-echo and stage effect mode respectively, and then,
they are mixed. In normal selection, the signal coming from built-in ADC or DSDI2 is the input for mic-echo, and the
signal coming from DSDI1 is the input for stage effect mode. In inversion selection, the signal coming from built-in
ADC or DSDI2 is the input for stage mode, and the signal coming from DSDI1 is the input for mic-echo
Input Source
Source Selection
Mic-EchoStage Effect
NormalADC or DSDI2DSDI1
InversionDSDI1ADC or DSDI2
37
Page 38
S5A1901H02AUDIO EFFECT PROCESSOR
5. GRAPHIC EQUALIZER MODE SELECTION
•Format
Commands for Graphic Equalizer Mode Selection
Command Code (Hex)Command Name
183-band Tone Control
195-band Tone Control
1a7-band Tone Control
1bDefeat
Description
The S5A1901H02 provides 3, 5 or 7-band equalizer mode and tone control. For detailed description on graphic
equalizer and tone control, refer to “Functional Description” in Chapter 3.
Note that if loudness function is selected, then any equalizer mode cannot be selected. After an equalizer mode is
selected, tone level of each band is controlled by Tone Control Command.
To select an equalizer mode, the loudness function should be turned off
6. SPECTRUM VALUE REQUEST
•Format
Commands for Spectrum Value Request
Command Code (Hex)Command Name
1cBand0 in 5/7-band equalizer mode
1dBand1 in 5/7-band equalizer mode
1eBand2 in 5/7-band equalizer mode
1fBand3 in 5/7-band equalizer mode
20Band4 in 5/7-band equalizer mode
21Band5 in 7-band equalizer mode
22Band6 in 7-band equalizer mode
Description
The S5A1901H02 provides spectrum data corresponding to 5/7-band equalizer mode to host (microcontroller). The
spectrum value of each band is calculated in every sampling period. When the spectrum value of a specific band is
requested by host, the one-word spectrum value (16 bit) is transformed to a byte value (8 bit) through built-in spectrum interface unit to transfer to host.
The vocal canceller function is used to decrease the level of vocal component from a music source. It is useful
function for Karaoke modes to distinct the vocal component from a microphone and the vocal component from
8. LOUDNESS
•
Commands for Loudness
Command Code (Hex)
25Loudness On
Loudness Off
Description
one can listen a sound evenly for all frequency ranges. Note that while the loudness is on, the tone level control
does not work because it uses specified tone levels. The changed tone values are updated after the loudness is
9. MUTE/RELEASE
•
Commands for Mute and Release
Command Code (Hex)
27Mute
Release
Description
∞ dB. Selecting release, the volume level before mute is recovered. By chang-
volume level before mute, but updated by selected volume level.
39
Page 40
S5A1901H02AUDIO EFFECT PROCESSOR
10. BYPASS ON-CHIP FUNCTION
•Format
Commands for Bypass On-Chip Function
Command Code (Hex)Command Name
29Selection
2aNo Selection
Description
With the selection of this function, the input from built-in ADC or DSDI2 is bypassed to DSDO1 while the input from
DSDI1 is processed by functions of the S5A1901H02. Thus, it permits that other functions, which are not available
in the S5A1901H02, can be applied to the digital output from DSDO1. This result can also be an input to DSDI1 for
further processing by functions of the S5A1901H02. Note that this function cannot be selected in Karaoke modes
since these modes require two input sources. If the mixing function is selected previously, it is automatically turned
off with the selection of Bypass On-Chip Function.
•In Karaoke modes, Bypass On-Chip Function cannot be selected
•When Bypass On-Chip Function is selected, the Mixing is automatically turned off if it is on.
ADC
DSDI2
Off-Chip Other Functions
(e.g. Prologic )
DSDI1On-Chip Function
DSDO1
DAC
DSDO2
Figure 29. System Block Diagram when Bypass On-Chip Function is Selected
40
Page 41
AUDIO EFFECT PROCESSORS5A1901H02
11. MIXING
•Format
Commands for Mixing
Command Code (Hex)Command Name
2bMixing On
2cMixing Off
Description
This function is to mix two inputs with appropriate mixing gains using input gain control commands, and the result is
processed by functions of the S5A1901H02. After mixed, the result is the input for a sound mode, and thus, the
mixing function cannot be selected in Karaoke modes. If Bypass On-Chip Function is selected previously, it is automatically turned off with the selection of mixing function.
•In Karaoke modes, the mixing function cannot be selected
•When the mixing function is selected, the Bypass On-Chip Function is automatically turned off if it is on.
41
Page 42
S5A1901H02
12. OUTPUT CHANNEL INVERSION
Format
Commands for Output Channel Inversion
Command Code (Hex)Command Name
Normal
2e
In normal selection of output channel, the output of a sound mode is passed to DSDO1 for recording before processed by equalizer, volume and balance. After further processed by equalizer, volume and balance, this result is
switched. Note that this function cannot be selected if Bypass On-Chip Function is selected already.
•The output channel cannot be inverted if the Bypass On-Chip Function is selected.
Output Channel Selection = Normal
Sound ModeEqualizer/ Tone ControlVolume/ Balance ControlDAC/ DSDO2
DSDO1
Output Channel Selection = Inversion
Sound ModeEqualizer/ Tone ControlVolume/ Balance ControlDSDO1
DAC/ DSDO2
42
Page 43
AUDIO EFFECT PROCESSORS5A1901H02
13. DSIU1 INPUT FORMAT
•Format
Command for DSIU1 Input Format
Command Code (Hex)DSIU1ICRCommand Name
30[7:0]DSIU1 Input Format
Description
The S5A1901H02 supports various input and output digital formats. After the command, desired format can be set
using DSIU1ICR [7:0].
DSIU1ICR[7:0] Register Setting for DSIU1 Input Format
[7:0]ValueDescriptionRelated Pin
[7]
[6]
[5:4]
[3:2]
[1:0]
0DLRCKI1 is low for L-ch
1DLRCKI1 is high for L-ch
0DSDI1 is synchronized with falling edge of DBCKI1
1DSDI1 is synchronized with rising edge of DBCKI1
0032 Fs
0148 Fs
1064 Fs
11Reserved
0016 bit
0118 bit
1020 bit
1124 bit
00
01
10
11
I2S
Reserved
Right Justified
Left Justified
DLRCKI1
(LR Clock)
DBCKI1
(Bit Clock)
DSDI1
Serial Data Fs
DSDI1 Data Length
DSDI1 Data Position
43
Page 44
S5A1901H02AUDIO EFFECT PROCESSOR
14. DSIU1 OUTPUT FORMAT
•Format
Command for DSIU1 Output Format
Command Code (Hex)DSIU1OCRCommand Name
31[7:0]DSIU1 Output Format
Description
The S5A1901H02 supports various input and output digital formats. After the command, desired format can be set
using DSIU1OCR [7:0].
DSIU1OCR[7:0] Register Setting for DSIU1 Output Format
[7:0]ValueDescriptionRelated Pin
[7]
[6]
[5:4]
[3:2]
[1:0]
0DLRCKO1 is low for L-ch
1DLRCKO1 is high for L-ch
0DSDO1 is synchronized with falling edge of DBCKO1
1DSDO1 is synchronized with rising edge of DBCKO1
0032 Fs
0148 Fs
1064 Fs
11Reserved
0016 bit
0118 bit
1020 bit
1124 bit
00
I2S
01Reserved
10Right Justified
11Left Justified
DLRCKO1
(LR Clock)
DBCKO1
(Bit Clock)
DSDO1
Serial Data Fs
DSDO1 Data Length
DSDO1 Data Position
44
Page 45
AUDIO EFFECT PROCESSORS5A1901H02
15. DSIU2 INPUT FORMAT
•Format
Command for DSIU2 Input Format
Command Code (Hex)DSIU2ICRCommand Name
32[7:0]DSIU2 Input Format
Description
The S5A1901H02 supports various input and output digital formats. After the command, desired format can be set
using DSIU2ICR [7:0].
DSIU2ICR[7:0] Register Setting for DSIU2 Input Format
[7:0]ValueDescriptionRelated Pin
[7]
[6]
[5:4]
[3:2]
[1:0]
0DLRCKI2 is low for L-ch
1DLRCKI2 is high for L-ch
0DSDI2 is synchronized with falling edge of DBCKI2
1DSDI2 is synchronized with rising edge of DBCKI2
0032 Fs
0148 Fs
1064 Fs
11Reserved
0016 bit
0118 bit
1020 bit
1124 bit
00
I2S
01Reserved
10Right Justified
11Left Justified
DLRCKI2
(LR Clock)
DBCKI2
(Bit Clock)
DSDI2
Serial Data Fs
DSDI2 Data Length
DSDI2 Data Position
45
Page 46
S5A1901H02AUDIO EFFECT PROCESSOR
16. DSIU2 OUTPUT FORMAT
•Format
Command for DSIU2 Output Format
Command Code (Hex)DSIU2OCRCommand Name
33[7:0]DSIU2 Output Format
Description
The data length and bit rate for DSDO2 are fixed to 16 bit and 32xFs respectively. Note that the data position for
DSDO2 supports IIS or right justified. The data position for built-in ADC and DAC also follows that of DSDO2. After
the command, desired format can be set using DSIU2OCR [7:0].
DSIU2OCR[7:0] Register Setting for DSIU2 Output Format
[7:0]ValueDescriptionRelated Pin
[7:3]00000ReservedReserved
[2]
[1]
[0]
0DLRCKO2 is low for L-chDLRCKO2
1DLRCKO2 is high for L-ch
(LR Clock)
0DSDO2 is synchronized with falling edge of DBCKO2DBCKO2
1DSDO2 is synchronized with rising edge of DBCKO2
0
I2S
1Right Justified
(Bit Clock)
Codec In/Out,
DSDO2 Data
Position
46
Page 47
•Format
Command Code (Hex)CHIPCR
34[7:0]
Description
DSDO1 using CHIPCR [7:0].
CHIPCR[7:0] Register Setting for Input Source Selection
[7:0]ValueDescription
[7]‘1Reserved
[6]‘1Reserved
S5A1901H02
[5]
DLRCKO1/DBCKO1 Clock Source
Internal
[4:3]Reserved
ADC enable
DSIU1 enable
010
External
[2:0]
Input Source Configurations
011ADC & DSIU1 enable
DSIU1 & DSIU2 enable
101–111
47
Page 48
S5A1901H02AUDIO EFFECT PROCESSOR
18. VOLUME CONTROL
Format
Command for Volume Control
Volume_indexCommand Name
[7:0]Volume Control
The S5A1901H02 provides 110 levels in volume control. The desired volume level is invoked by selecting its index
using incoming byte, Volume_index [7:0]. The index of the highest volume level corresponds to 0x00 (0dB attenua-
−∞
•Minimum volume index 0x6d corresponds to ∞dB attenuation
Maximum volume index 0x00 corresponds to 0dB attenuation
19. BALANCE CONTROL
Format
Command for Balance Control
Balance_indexCommand Name
[7:0]Balance Control
The MSB of Balance_control [7:0] represents balance left if it is 0 and balance right if it is 1. The volume index used
in volume control is also used for balance control, i.e., 0x00 to 0x6d as follows:
For balance left, Balance_control [7:0] has the range of 0x00 (equal balance) to 0x6d (max balance)
•
In balance left (right), the volume level of the left (right) channel is kept, whereas the volume of the right (left) channel is attenuated by the scale corresponding to Balance_index [7:0].
48
Page 49
AUDIO EFFECT PROCESSORS5A1901H02
20. TONE CONTROL
•Format
Commands for Tone Control
Command Code (Hex)Tone_indexCommand Name
38
Band0 Tone Value in 3/5/7-band equalizer mode
39Band1 Tone Value in 3/5/7-band equalizer mode
3aBand2 Tone Value in 3/5/7-band equalizer mode
3bBand3 Tone Value in 5/7-band equalizer mode
[7:0]
3cBand4 Tone Value in 5/7-band equalizer mode
3dBand5 Tone Value in 7-band equalizer mode
3eBand6 Tone Value in 7-band equalizer mode
Description
The S5A1901H02 provides 25 levels of tone level for each band according to selected equalizer mode. This tone
level is set by using incoming byte, Tone_index [7:0], after the command. Levels have the range of 0x00 (min) to
0x18 (max). Note that if the loudness function is on, then the tone control does not work since tone levels are preset
in this case. Changed tone values while the loudness function is on, are updated as soon as the loudness function
is turned off.
•While the loudness function is being selected, the tone control is not permitted
49
Page 50
S5A1901H02
21. INPUT GAIN CONTROL
•Format
Commands for Input Gain Control
Command Code (Hex)High ByteLow ByteCommand Name
46Ingain_adc [15:8]Ingain_adc [7:0]Input Gain Control of ADC or DSDI2
47Ingain_dsdi1 [15:8]Ingain_dsdi1 [7:0]Input Gain Control of DSDI1
Description
The S5A1901H02 permits to control the input gains of ADC (or DSDI2) and DSDI1 using incoming two bytes after
the command. The preset values for input gains are 0x3fff (6dB attenuation) in both.
50
Page 51
AUDIO EFFECT PROCESSORS5A1901H02
22. OUTPUT GAIN CONTROL
Format
Command for Output Gain Control
Command Code (Hex)Low ByteCommand Name
Outgain_dsdo1 [15:8]Outgain_dsdo1 [7:0]
Description
The S5A1901H02 permits to control the output gain of DSDO1 using incoming two bytes after the command. The
volume control can be used.
Page 52
S5A1901H02AUDIO EFFECT PROCESSOR
23. PARAMETERS FOR USER DEFINED MODE
Format
Commands for Setting Parameters of User Defined Mode
High ByteLow Byte
49G0 [15:8]Gain for Left Input
4aG1 [7:0]Gain for Right Input
G5 [15:8]G5 [7:0]
58G6 [15:8]Gain for T2 Delay Term (Left)
59G7 [7:0]Gain for T3 Delay Term (Left)
G8 [15:8]G8 [7:0]
5bG9 [15:8]Gain for T5 Delay Term (Left)
5cG10 [7:0]Gain for T6 Delay Term (Left)
G11 [15:8]G11 [7:0]
5eG12 [15:8]Gain for Left Effected Term
5fG13 [7:0]Gain for Left Original Term
G14 [15:8]G14 [7:0]
61G15 [15:8]Gain for T2 Delay Term (Right)
62G16 [7:0]Gain for T3 Delay Term (Right)
G17 [15:8]G17 [7:0]
64G18 [15:8]Gain for T5 Delay Term (Right)
65G19 [7:0]Gain for T6 Delay Term (Right)
G20 [15:8]G20 [7:0]
Page 53
AUDIO EFFECT PROCESSORS5A1901H02
Commands for Setting Parameters of User Defined Mode (Continued)
Command Code (Hex)High ByteLow ByteCommand Name
67G21 [15:8]G21 [7:0]Gain for Right Effected Term
68G22 [15:8]G22 [7:0]Gain for Right Original Term
69T0 [15:8]T0 [7:0]Delay Buffer Pointer of T0
6aTc [15:8]Tc [7:0]Current Delay Buffer Pointer
6bT1 [15:8]T1 [7:0]Delay Buffer Pointer of T1
6cT2 [15:8]T2 [7:0]Delay Buffer Pointer of T2
6dT3 [15:8]T3 [7:0]Delay Buffer Pointer of T3
6eT4 [15:8]T4 [7:0]Delay Buffer Pointer of T4
6fT5 [15:8]T5 [7:0]Delay Buffer Pointer of T5
70T6 [15:8]T6 [7:0]Delay Buffer Pointer of T6
71T7 [15:8]T7 [7:0]Delay Buffer Pointer of T7
Description
These parameters are provided for user to design his or her own sound mode. The list of parameters (see Block
Diagram for User Defined Mode in Chapter 3.) is one of sound modes provided in the S5A1901H02. In fact, most of
sound modes in the S5A1901H02, e.g., hall, super woofer and so on, have similar structure. By changing parameters given in Figure , one can obtain completely different sound mode. Loading parameters which are redefined by
user can be done in running of any sound mode since the memory site for these parameters does not overlap with
that for any other modes. Designed mode after loading all parameters to DSP is defined as User Defined Mode. To
run this mode, simply select the command code 0x13 (see Command for Mode Selection).
Page 54
COMMAND SUMMARY
The List of Commands for Audio Effect Processor (S5A1901H02)
ClassFunction
(Hex)
AUDIO EFFECT PROCESSOR
00
Control
Reset
sound mode
01
02Reserved
System Power DownDisable DSP and built-in peripherals
Reserved
05BypassFor sound mode description, see Chapter 3
Stereo Emulation I
07
08Super Woofer I
Super Woofer II
0a
0bHall I
Hall II
0d
0eArena I
Arena II
10
11Karaoke I
Karaoke II
13
14Movie I
Movie II
16
Selection in
Karaoke I
InversionThe above input sources are exchanged
Equalizer
195-band tone control
Mode
Input for mic-echo comes from built-in ADC or
DSDI2. Input for stage mode comes from DSDI1
3-band tone control
1a7-band tone control
1bNo selection
54
Page 55
AUDIO EFFECT PROCESSORS5A1901H02
Command Code
(Hex)
1cSpectrum
1dBand1Request band1 spectrum value in 5/7-band tone
1eBand2Request band2 spectrum value in 5/7-band tone
1fBand3Request band3 spectrum value in 5/7-band tone
20Band4Request band4 spectrum value in 5/7-band tone
21Band5Request band5 spectrum value in 7-band tone
22Band6Request band6 spectrum value in 7-band tone
23Vocal
24OffNo selection
ClassCommand NameFunction
Band0Request band0 spectrum value in 5/7-band tone
Request
mode
mode
mode
mode
mode
mode
mode
OnCancel vocal component in a sound mode except
Canceller
for Movie I, II
25LoudnessOnEmphasis low & high freq. components according
to volume level
26OffNo selection
27MuteOnSet volume level to – ∞ dB
28OffRecover the volume level
29Bypass On
Chip Function
OnBypass input from built-in ADC or DSDI2 to
DSDO1
2aOffNo selection
2bMixingOnTwo input signals are added to produce an input for
sound mode
2cOffNo selection
2dOutput
Channel
Selection
NormalThe result effected by sound mode is passed to
DSDO1 for recording
The result further controlled by equalizer, volume
and balance is passed to built-in DAC and DSDO2
for speaker output
2eInversionThe above connection is exchanged
2fReserved
55
Page 56
S5A1901H02AUDIO EFFECT PROCESSOR
Command Code
(Hex)
30Digital data
31Format for DSDO1Select format for digital output source1 using
32Format for DSDI2Select format for digital input source2 using
33Format for DSDO2Select format for digital output source2 using
34Format for Chip
35VolumeVolume ControlSet volume level using incoming byte
36BalanceBalance Left/Right
37Mic-echo
ClassCommand NameFunction
Format for DSDI1 Select format for digital input source1 using
format & Input
incoming byte
Configuration
incoming byte
incoming byte
incoming byte
Define Input Configuration & Control Interrupt using
Control
incoming byte
0 x 00: max level, 0 x 6d: min level
Set left/right balance level using incoming byte
Control
Balance left: 0 x 00 (min) to 0 x 6d (max)
Balance right: 0 x 80 (min) to 0 x ed (max)
Mic-echo scaleSelect mic-echo delay using incoming byte
scale
0 x 01 (min delay) to 0 x 05 (max delay)
38Equalizer
Tone Level
Control
Band0 Tone LevelSet band0 tone level in 3/5/7-band mode using
incoming byte
0 x 00 (min level) to 0 x 18 (max level)
39Band1 Tone LevelSet band1 tone level in 3/5/7-band mode using
incoming byte
3aBand2 Tone LevelSet band2 tone level in 3/5/7-band mode using
incoming byte
3bBand3 Tone LevelSet band3 tone level in 5/7-band mode using
incoming byte
3cBand4 Tone LevelSet band4 tone level in 5/7-band mode using
incoming byte
3dBand5 Tone LevelSet band5 tone level in 7-band mode using
incoming byte
3eBand6 Tone LevelSet band6 tone level in 7-band mode using
incoming byte
3fReserved for Host Test
40
56
Page 57
AUDIO EFFECT PROCESSORS5A1901H02
ClassFunction
(Hex)
41
42
43
45
46
control
Built-in ADC & DSDI2 Set input gain value for built-in ADC & DSDI2 using
incoming two bytes
DSDI1 Input Gain
Value
48Output Gain DSDO1 Output Gain
Valuebytes
49
for
User Defined
G0Set left input gain using incoming 2 bytes
G1Set right input gain using incoming two bytes
BL0Set left prefilter coeff. using incoming two bytes
4d
(see Block
Diagram in
BL1
4eBR0
4fBR1
AR1
51Set left term gain using incoming two bytes
52Set right term gain using incoming two bytes
53Set feedback term gain using incoming two bytes
54Set postfilter coeff. using incoming two bytes
55
56AD1
G5Set left delay gains using incoming two bytes
G6
59
5aG8
G9
5c
5dG11
57
Page 58
S5A1901H02AUDIO EFFECT PROCESSOR
Command Code
(Hex)
5eParameters
5fG13Set left original term gain using incoming two bytes
60G14Set right delay gains using incoming two bytes
61G15
62G16
63G17
64G18
65G19
66G20
67G21Set right effected term gain using incoming two
68G22Set right original term gain using incoming two
69T0Set delay buffer pointer using incoming two bytes
6aTc
6bT1
ClassCommand NameFunction
G12Set left effected term gain using incoming two
for User
bytes
Defined Mode
(see Block
Diagram in
Chapter 3)
bytes
bytes
(Delay pointer should follow inequality:
0 x 1800 > T0 > T7 > T6 > T5 > T4 > T3 > T2 > T1)
6cT2
6dT3
6eT4
6fT5
70T6
71T7
58
Page 59
AUDIO EFFECT PROCESSORS5A1901H02
NOTIFICATION FOR MICROCONTROLLER PROGRAMMING
Fade-in/ Fade-out:
To avoid noise due to abrupt change of signal, hardware configuration or filter coefficients, the fade-out and fade-in
processes in the S5A1901H02 happen in following situations.
•Change sound mode
•Change equalizer mode
•Change hardware configuration related to “Digital data format and Input configuration”.
•Change “Source selection in Karaoke mode I”
•“Vocal Canceller” is turned on or off
•“Loudness Function” is turned on or off
•“Mixing Function” is turned on or off
•“Bypass On-chip Function” is turned on or off
•“Output channel selection” is turned into reversion from normal, or vise versa.
The time for finishing fade-out and fade-in processes needs about 0.9 ms for sound mode change and about 0.4
ms for other cases. Note that the S5A1901H02 denies process of any function received from microcontroller during
fade-out or fade-in process.
Sound Mode Selection:
• When one of Karaoke modes is selected, “Bypass On-chip Function” or “Mixing Function” is automatically
turned off if one of them is turned on and “Source selection in Karaoke I” is set to normal. Thus, the
microcontroller should change the status of “Mixing Function”, “Bypass On-chip Function” and “Source
selection in Karaoke I” at this time. Note that “Source selection in Karaoke I” can be inverted only in Karaoke
mode I.
Equalizer Mode Selection:
•Equalizer modes and loudness function are exclusive, and thus, equalizer mode cannot be selected while
loudness function is working. To select equalizer mode, the loudness function should be turned off first.
Vocal Canceller:
•Movie modes do not work with this function. In S5A1901H02, this function is ignored in one of Movie modes.
Thus, if the sound mode is one of Movie modes, the microcontroller dose not make this function to be selected.
DC Supply VoltageV
DC Input VoltageV
Storage TemperatureT
Operating TemperatureT
DD
I
stg
op
− 0.3 − +7.0V
− 0.3 − VDD + 0.3V
− 40 − + 125°C
− 40 − + 110°C
Recommended Operating Conditions
CharacteristicsSymbolValueUnit
DC Supply VoltageV
DC Input VoltageV
Commercial TemperatureT
DD
I
A
4.75 − 5.25V
0 − V
DD
0 − +70°C
Industrial Temperature−20 − +85°C
V
61
Page 62
S5A1901H02AUDIO EFFECT PROCESSOR
DC Characteristics (VDD = 4.75 ~ 5.25 V, Ta = 0 ~ 70 °C)
CharacteristicsSymbolConditionMin.Typ.Max.Unit
High Level Input Voltage V
Low Level Input Voltage V
Schmitt trigger, positive-
V
going threshold
Schmitt trigger, negative-
going threshold
High Level Input CurrentI
Low Level Input CurrentI
High Level Output
V
Voltage
Low Level Output VoltageV
Operating CurrentI
Static CurrentI
V
T+
IH
IL
OH
OL
DD
ST
CMOS0.7 V
IH
CMOS−−0.3 V
IL
DD
−−V
DD
V
CMOS−−4.0V
CMOS1.0−−V
T-
VIN = V
DD
− 1010 µA
(Input Buffer)
VIN = V
DD
−0.30.9mA
(with pull-down)
VIN = V
SS
− 1010µA
(Input Buffer)
VIN = V
SS
− 100− 50− 10µA
(with pull-up)
IOH = -1mA2.4−−V
IOL = 1mA−−0.4V
XI = 16.9344MHz120150mA
All input/ Bidirection
pins = V
SS
1.510mA
except RESB, MCLK,
HWEB,CLKS
Operating FrequencyF
62
OSC
CLKS = 0
XI = 16.9344MHz
±5%
Page 63
AUDIO EFFECT PROCESSORS5A1901H02
Codec Analog Characteristics
ParameterMinTypMaxUnit
Sampling Rate (Fs)
Over Sampling Rate
Master Clock Frequency
ADC Resolution
DAC Resolution
Passband
Stopband
Common Mode Voltage
Signal to Noise Ratio
i
i. measured from low pass filter (30KHz cutoff) output
444.150KHz
−128−Fs
−256−Fs
−16−bits
−16−bits
0−0.4 FsHz
0.4 Fs−0.6 FsHz
2.02.252.45V
−80−dB
63
Page 64
S5A1901H02AUDIO EFFECT PROCESSOR
System Clock and Reset
XI
(16.9344MHz)
MCLK
(33.8688MHz)
TXIRTXIF
CLKO
(11.2896MHz)
MCLK
(33.8688MHz)
TXIROTXIFO
X-tal Oscillator SYSTEM CLOCK(CLKS=0)
TCLKLTCLKH
RESBTRESB
AC CharacteristicsSymbolMin.Typ.Max.Unit
XI Rise Edge to MCLKT
XI Fall Edge to MCLKT
XI Rise to CLKOT
XI Fall to CLKOT
External Clock High WidthT
External Clock Low WidthT
External Clock Rise TimeT
External Clock Fall TimeT
Reset Pulse WidthT
TRTF
External SYSTEM CLOCK(CLKS=1)
SYSTEM RESET
Figure 31.
XIR
XIF
XIRO
XIFO
CLKH
CLKL
R
F
RESB
−10−ns
−11−ns
−12−ns
−13−ns
−14.75−ns
−14.75−ns
−−2ns
−−2ns
22.6−−µs
64
Page 65
AUDIO EFFECT PROCESSORS5A1901H02
Host Interface Timing Diagram
T
T
WEBS
HCLKL
T
HCLKH
HWEB
HCLK
HDATA
T
HDATASTHDATAH
AC CharacteristicsSymbolMin.Typ.Max.Unit
HWEB Setup to First HCLK EdgeT
HWEB Hold to Last HCLK EdgeT
HCLK Pulse Width HighT
HCLK Pulse Width LowT
HDATA Input Setup TimeT
HDATA Input Hold TimeT
HWEB Wait TimeT
WEBS
WEBH
HCLKH
HCLKL
HDATAS
HDATAH
WAIT
Figure 32.
50−−ns
50−−ns
1.25−−µs
1.25−−µs
50−−ns
50−−ns
1−−ms
T
HWEBH
T
WAIT
65
Page 66
S5A1901H02AUDIO EFFECT PROCESSOR
Digital Audio Interface 1 Timing Diagram
T
T
BCKIL
LRCKIS
T
BCKIH
DLRCKI
DBCKI
DSDI
T
DSDISTDSDIH
AC CharacteristicsSymbolMin.Typ.Max.Unit
DLRCKI Setup to First DBCKI EdgeT
DLRCKI Hold to Last DBCKI EdgeT
DBCKI Pulse Width HighT
DBCKI Pulse Width LowT
DSDI Input Setup TimeT
DSDI Input Hold TimeT
LRCKIS
LRCKIH
DBCKIH
DBCKIL
DSDIS
DSDIH
Figure 33.
20−−ns
20−−ns
177−354ns
177−354ns
10−−ns
10−−ns
T
LRCKIH
66
Page 67
AUDIO EFFECT PROCESSORS5A1901H02
T
T
LRCKOS
BCKOL
T
BCKOH
DLRCKO
DBCKO
DSDO
T
DSDOSTDSDOH
AC CharacteristicsSymbolMinTypMaxUnit
DLRCKO Setup to First DBCKO EdgeT
DLRCKO Hold to Last DBCKO EdgeT
DBCKO Pulse Width HighT
DBCKO Pulse Width LowT
DSDO Output Setup TimeT
DSDO Output Hold TimeT