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
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
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
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
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
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
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
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
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
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
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
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
Loading...
+ 49 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.