S5A1901H02 SAMSUNG | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 70

Technical content

AUDIO EFFECT PROCESSOR S5A1901H02 PRODUCT OVERVIEW OVERVIEW 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 ana- lyzer 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 I 2 C bus interfaces. KEY FEATURES

  • Over 15 Sound Effect Modes including two kinds of Karaoke mode
  • 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 I 2 C 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
  • 5 V Single Power Supply
  • 0.5 µm Triple Metal CMOS Process
  • Package: 100 QFP

ORDERING INFORMATION

Device Package Temperature Range S5A1901H02-Q0R0 (Audio Effect Processor) 100 −QFP −1420C 0 °C − 70 °C 100 −QFP −1420C

S5A1901H02 AUDIO EFFECT PROCESSOR

APPLICATIONS

  • CD Player
  • Video CD
  • TV
  • Karaoke System
  • Car Stereo System
  • Gene ral Stereo Audio Systems

Figure 1. S5A1901H02 Typical Application

Figure 2. S5A1901H02 Block Diagram

16 Bit Stereo Σ - Δ

Figure 3. S5A1901H02 Pin Assignmen

S5A1901H02 AUDIO EFFECT PROCESSOR S5A1901H02 PIN DESCRIPTION No Pin Name I/O Function Pad Type Pull Up/Down

1 ALO AO D/A analog output: left channel, 1Vrms

magnitude centered around VREF − −

2 ARO AO D/A analog output: right channel, 1 Vrms

magnitude centered around VREF − −

3 VSS2 AG Codec analog ground − −

4 VDD13 DP Codec digital power +5 V − −

5 GND13 DG Codec digital ground − −

6 VDD0 DP Codec digital power +5 V − −

7 GND0 DG Codec digital ground − −

8~11 NC − Reserved for chip test − −

12 VDD1 DP Digital power +5 V − −

13 GND1 DG Digital ground − −

14~17 NC − Reserved for chip test − −

18 VDD2 DP Digital power +5 V − −

19 GND2 DG Digital ground − −

20~27 NC − Reserved for chip test − −

28 VDD3 DP Digital power +5 V − −

29 GND3 DG Digital ground − −

30 SAS DI I2 C bus interface slave address selection − Down

31 HMS DI Host interface mode selection (0: normal, 1: I 2 C) − Down

32 HCLK DI Normal host interface bit clock (max 400kHz) Schmitt trigger Up

33 HWEB DI Normal host interface write enable

(HWEB = 0: write, HWEB = 1: read) Schmitt trigger Up

34 HDATA I/O Normal host interface data In/Out

(HWEB = 0: in, HWEB = 1: out) Schmitt trigger Down

35 VDD4 DP Digital power +5 V − −

36 GND4 DG Digital ground − −

37 SCL DI I2 C bus interface serial bit clock Open drain −

38 SDA I/O I2 C bus interface serial data in/out Open drain −

39 VDD5 DP Digital power +5 V − −

40 GND5 DG Digital ground − −

AUDIO EFFECT PROCESSOR S5A1901H02

41 DSDI2 DI Digital serial data input 2 (DSDI2) Schmitt trigger −

42 DBCKI2 DI DSDI2 bit clock Schmitt trigger −

43 DLRCKI2 DI DSDI2 left/right flag clock Schmitt trigger −

44 VDD6 DP Digital power +5 V − −

45 GND6 DG Digital ground − −

46 DSDO2 DO Digital serial data output 2 (DSDO2) − −

47 DBCKO2 DO DSDO2 bit clock − −

48 DLRCKO2 DO DSDO2 left/right flag clock − −

49 DSDO1 DO Digital serial data output 1 (DSDO1) − −

50 DBCKO1 I/O DSDO1 bit clock Schmitt trigger Down

51 DLRCKO1 I/O DSDO1 left/right flag clock Schmitt trigger Down

52 VDD7 DP Digital power +5 V − −

53 GND7 DG Digital ground − −

54 DSDI1 DI Digital serial data input 1 (DSDI1) Schmitt trigger −

55 DBCKI1 DI DSDI1 bit clock Schmitt trigger −

56 DLRCKI1 DI DSDI1 left/right flag clock Schmitt trigger −

57 VDD8 DP Digital power +5 V − −

58 GND8 DG Digital ground − −

59 HACK DO Normal host interface acknowledge − −

60 TINT1 DO Interrupt indicator − −

61 NC - Reserved for chip test − −

62 SPWDN DO System power down indicator − −

63 NC - Reserved for chip test − −

64 CLKO DO Clock output 33.8688 / 3 = 11.2896MHz − −

65 VDD9 DP Digital power +5 V − −

66 GND9 DG Digital ground − −

67 XO DO Crystal oscillator output terminal (16.9344MHz) − − 68 XI DI Crystal oscillator input terminal (16.9344MHz) − −

69 CLKS DI System clock source selection (0: doubler, 1:

external) − Down

70 MCLK I/O External clock input/doubler clock output

− Down S5A1901H02 PIN DESCRIPTION (Continued) No Pin Name I/O Function Pad Type Pull Up/Down

S5A1901H02 AUDIO EFFECT PROCESSOR NOTES:

  • DI Digital Input
  • DO Digital Output
  • I/O Digital Input and Output
  • AI Analog Input
  • AO Analog Output
  • DP Digital Power
  • DG Digital Ground
  • AP Analog Power
  • AG Analog Ground

71 VDD10 DP Digital power +5 V − −

72 GND10 DG Digital ground − −

73 −76 NC − Reserved for chip test − −

77 GND11 DG Digital ground − −

78 VDD11 DP Digital power +5 V − −

79 −84 NC − Reserved for chip test − −

85 GND12 DG Digital ground − −

86 VDD12 DP Digital power +5 V − −

87 −92 NC − Reserved for chip test − −

93 RESB DI System reset (active low) − Υπ

94 VCC1 AP Codec analog power +5 V − −

95 VSS1 AG Codec analog ground − −

96 VREFI AO Codec 2.5V reference to VSS1 − − 97 VREF AO Codec 2.25V reference to VSS1 − −

98 ARI AI A/D right channel input magnitude centered

around VREF should be less than or equal to 1 Vrms − −

99 ALI AI A/D left channel input magnitude centered

around VREF should be less than or equal to 1 Vrms − −

100 VCC2 AP Codec analog power +5V − −

S5A1901H02 PIN DESCRIPTION (Continued) No Pin Name I/O Function Pad Type Pull Up/Down

AUDIO EFFECT PROCESSOR S5A1901H02 HARDWARE DESCRIPTION DSP Core

  • Up to 33 MIPS 16 bit fixed point High Performance DSP core (SSP1610)
  • 16 x 16 multiplier with 32 bit product
  • 32 bit ALU/accumulator
  • 0.5 µm triple metal CMOS technology Memory
  • 0.5 Kword data RAM
  • 6 Kword delay RAM for sound field effect
  • 6 Kword program ROM
  • 0.5 Kword parameter ROM for Movie Mode Built-in A/D and D/A converters
  • Stereo 16 bit Σ−Δ A/D converter
  • Stereo 16 bit Σ−Δ D/A converter Peripheral Interface
  • Hardware configuration (extended to five registers using bit manipulation)
  • Codec and DSIU2 interface
  • DSIU1 interface
  • Delay memory interface
  • Parameter ROM used in Movie Mode interface
  • Host interface

is the interface block for the built-in codec. The DSIU1 and DSIU2 blocks are for external ADC and DAC interfaces. LR clocks to the DAC and the audio data format 32 Fs (32 bit clocks in a LR clock period). provided by S5A1901H02 as the master clock for clock synchronization. Figure 4. Digital Audio Interface Formats of the S5A1901H02

put formats of codec, see Table and Table . Configuration Register Unit (CRU) setting. Note that the MSB is transferred first. Figure 5. Data Format in DSIU1

and Configuration Register Unit (CRU) as in Table and Table . Note that the MSB is transferred first. Figure 6. Data Format in DSIU2

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 I 2 C 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 I 2 C bus interface, the related pins are SDA (Serial Data Line), SCL (Serial Clock Line) and SAS (I 2 C Bus Interface Programmable Slave Address Selection). One can refer to I 2 C Bus Specification by Philips. The I 2 C 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.

Figure 7. Data Format in Normal Host Interface

S5A1901H02 AUDIO 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 soft- ware 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.

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. Figure 16. Karaoke Mode I, II spread echo which is very impressive.

  • 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.

Figure 17. Block Diagram for User Defined Mode

AUDIO EFFECT PROCESSOR S5A1901H02 Movie Mode I, II The Movie Mode I and II create 3-dimensional sound images from 2-channel stereo input signals. The Movie Mode- I 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) 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 Band 3-Band Mode 5-Band Mode 7-Band Mode Band0 63 100 63 Band1 1 K 300 160 Band2 16 K 1 K 400 Band3 − 3 K 1 K Band4 − 10 K 2.5 K Band5 − − 6.4 K Band6 − − 16 K

Figure 18. Dynamic Range of Each Control Band

is identical to that in graphic equalizer except for the 3-band equalizer mode. The structure of vocal canceller function used in the S5A1901H02 is given in Figure . Figure 19. Structure of Vocal Canceller of signal to obtain the right signal.

Figure 22. Dynamic Range for Volume Contro

S5A1901H02 AUDIO EFFECT PROCESSOR 16 32f5 − 8.0 35 1111 − 17.5 17 301b − 8.5 36 101d − 18.0 18 2d6a − 9.0 37 0f36 − 18.5 38 0e5c − 19.0 74 016f − 39.0 39 0d8e − 19.5 75 0147 − 40.0 40 0ccc − 20.0 76 0124 − 41.0 41 0c15 − 20.5 77 0104 −42.0 42 0b68 − 21.0 78 00e7 − 43.0 43 0ac5 − 21.5 79 00ce − 44.0 44 0a2a − 22.0 80 00b8 − 45.0 45 0999 − 22.5 81 00a4 − 46.0 46 090f − 23.0 82 0092 − 47.0 47 088e − 23.5 83 0082 − 48.0 48 0813 − 24.0 84 0074 − 49.0 49 079f − 24.5 85 0067 − 50.0 50 0732 − 25.0 86 005c − 51.0 51 06cb − 25.5 87 0052 − 52.0 52 066a − 26.0 88 0049 − 53.0 53 060e − 26.5 89 0041 − 54.0 54 05b7 − 27.0 90 003a − 55.0 55 0565 − 27.5 91 0033 − 56.0 56 0518 − 28.0 92 002e − 57.0 57 04cf − 28.5 93 0029 − 58.0 58 048a − 29.0 94 0024 − 59.0 59 0449 − 29.5 95 0020 − 60.0 60 040c − 30.0 96 001d − 61.0 61 03d2 − 30.5 97 001a − 62.0 62 039b − 31.0 98 0017 − 63.0 63 0367 − 31.5 99 0014 − 64.0 64 0337 − 32.0 100 0012 − 65.0 65 0309 − 32.5 101 0010 − 66.0 66 02dd − 33.0 102 000e − 67.0 Volume Gain Table (Continued) Index Gain Value (Hex) Gain Scale (dB) Index Gain Value (Hex) Gain Scale (dB)

Figure 23. Dynamic Range for Balance Control

ital inputs from DSDI1 and DSDI2 simultaneously. It can also send output to the built-in DAC, DSDO1 and DSDO2. tion to support a various Input/Output source configurations as described below.

  • Input/Output Configuration 1

Figure 24. Block Diagram of Input/Output Configuration Host Commands for Input/Output Configuration 1 .

  • Input/Output Configuration 2

Figure 25. Block Diagram of Input/Output Configuration 2 permits that other process, which the S5A1901H02 does not provide, be applied to the digital signal from DSDO1. send host commands from microcontroller in the order of commands listed in Table 9.

  • Input/Output Configuration 3

Figure 26. Block Diagram of Input/Output Configuration 3 Mixing and Bypass On-Chip Function to be turned off while the built-in ADC or DSDI2 is enabled.

  • Input/Output Configuration 4

Figure 27. Block Diagram of Input/Output Configuration 4

  • Input/Output Configuration 5

Figure 28. Block Diagram of Input/Output Configuration 5 processed by mic-echo, and the other input from DSDI1 is processed by stage effect mode or by vocal canceller. from microcontroller in the order of the commands listed in Table 2.

AUDIO EFFECT PROCESSOR S5A1901H02

  • Input/Output Configuration 6 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. Host Commands for Input/Output Configuration If one selects Output Channel Selection (command code: 0x2e) to be inverted, then two output connections are switched. Default Setting in S5A1901H02 Command Code (Hex) Parameter Description 34 c3 (e3) Select built-in ADC & DSDI1 (When DSDO1 uses internal clock) c4 (e4) Select DSDI1 & DSDI2 (When DSDO1 uses internal clock) 11 − Select Karaoke Mode I 17 − Source Selection in Karaoke Mode I: Inversion 23 (24) − Vocal Canceller: On (Off) 2a − Bypass On-Chip Function: Off 2c − Mixing Function: Off 2d − Output Channel Selection: Normal Functions Selection Remark Sound Mode Bypass Graphic Equalizer Mode 7-band Spectrum Analyzer 7-band Tone Level 0x0c 0 dB Vocal Canceller Off Loudness Off Mic Echo Graphic Equalizer Volume/ Balance DSDI2 Built-in ADC DSDO2 Built-in DAC DSDO1 Vocal canceller DSDI1 Stage Effect

S5A1901H02 AUDIO EFFECT PROCESSOR Bypass On-Chip Function Off Off Output Channel Selection Input Gain (ADC/DSDI2) 0x3fff 6 dB Input Gain (DSDI1) − 6 dB 0x7fff 0 dB 0x46 − DSIU1ICR [7:0] 0x00 DSIU1OCR [7:0] 0x00 DSIU2ICR [7:0] 0x00 DSIU2OCR [7:0] 0x00 CHIPCR [7:0] 0xc0 Functions Selection

AUDIO EFFECT PROCESSOR S5A1901H02 COMMAND SET The S5A1902 receives data from and sends data to microcontroller through its HIU (Host Interface Unit) in the length of byte. It provides I 2 C 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 Type Class TYPE1 System Control 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 TYPE2 Digital Data Format & Input Configuration Volume Balance Mic-echo Scale Equalizer Tone Level Control TYPE3 Input Gain Control Output Gain Control Parameters for User Defined Mode

S5A1901H02 AUDIO EFFECT PROCESSOR COMMAND SET DESCRIPTION

  • Format

Description

  1. SYSTEM POWER DOWN Command for System Power Down

Command Code (Hex) Command Name Reset Command Code (Hex)

03 System Power Down

AUDIO EFFECT PROCESSOR S5A1901H02 3. SOUND MODE SELECTION

  • Format Commands for Sound Mode Selection

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

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 Command Code (Hex) Command Name Command Code (Hex) Command Name

05 Bypass 0e Arena I

06 Stereo Emulation I 0f Arena II

07 Stereo Emulation II 10 News/Drama

08 Super Woofer I 11 Karaoke I

09 Super Woofer II 12 Karaoke II

0a Super Woofer III 13 User Defined Mode 0b Hall I 14 Movie I 0c Hall II 15 Movie II 0d Stage Command Code (Hex) Command Name

16 Normal

17 Inversion

Inversion DSDI1 ADC or DSDI2

S5A1901H02 AUDIO EFFECT PROCESSOR 5. GRAPHIC EQUALIZER MODE SELECTION

  • Format Commands for Graphic Equalizer Mode Selection

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

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 spec- trum interface unit to transfer to host. Command Code (Hex) Command Name 18 3-band Tone Control 19 5-band Tone Control 1a 7-band Tone Control 1b Defeat Command Code (Hex) Command Name 1c Band0 in 5/7-band equalizer mode 1d Band1 in 5/7-band equalizer mode 1e Band2 in 5/7-band equalizer mode 1f Band3 in 5/7-band equalizer mode

20 Band4 in 5/7-band equalizer mode

21 Band5 in 7-band equalizer mode

22 Band6 in 7-band equalizer mode

Requested Spectrum Value Transferred Spectrum Value Condition Spectrum [Band [i]] [15:0] Spectrum [Band [i]] [11:4] Spectrum [Band [i]] < 2 12 2 7 Spectrum [Band [i]] > 2 11

  1. VOCAL CANCELLER Format Commands for Vocal Canceller 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

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 ∞ dB. Selecting release, the volume level before mute is recovered. By chang- volume level before mute, but updated by selected volume level. Command Code (Hex)

23 Vocal Canceller On

Command Code (Hex)

25 Loudness On

Command Code (Hex)

27 Mute

S5A1901H02 AUDIO EFFECT PROCESSOR 10. BYPASS ON-CHIP FUNCTION

  • Format Commands for Bypass On-Chip Function

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.

Figure 29. System Block Diagram when Bypass On-Chip Function is Selected

29 Selection

AUDIO EFFECT PROCESSOR S5A1901H02 11. MIXING

  • Format Commands for Mixing

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 auto- matically 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. Command Code (Hex) Command Name 2b Mixing On 2c Mixing Off
  1. OUTPUT CHANNEL INVERSION Format Commands for Output Channel Inversion In normal selection of output channel, the output of a sound mode is passed to DSDO1 for recording before pro- cessed 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. Command Code (Hex) Command Name Normal Sound Mode Equalizer/ Tone Control Volume/ Balance Control DAC/ DSDO2 DSDO1 Output Channel Selection = Normal Sound Mode Equalizer/ Tone Control Volume/ Balance Control DSDO1 DAC/ DSDO2 Output Channel Selection = Inversion

AUDIO EFFECT PROCESSOR S5A1901H02 13. DSIU1 INPUT FORMAT

  • Format Command for DSIU1 Input Format

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 Command Code (Hex) DSIU1ICR Command Name 30 [7:0] DSIU1 Input Format [7:0] Value Description Related Pin [7]

0 DLRCKI1 is low for L-ch DLRCKI1

(LR Clock)1 DLRCKI1 is high for L-ch [6]

0 DSDI1 is synchronized with falling edge of DBCKI1 DBCKI1

(Bit Clock)1 DSDI1 is synchronized with rising edge of DBCKI1 [5:4] 00 32 Fs DSDI1 Serial Data Fs 01 48 Fs 10 64 Fs

11 Reserved

[3:2] 00 16 bit DSDI1 Data Length 01 18 bit 10 20 bit 11 24 bit [1:0]

00 I2 S

01 Reserved

10 Right Justified

11 Left Justified

S5A1901H02 AUDIO EFFECT PROCESSOR 14. DSIU1 OUTPUT FORMAT

  • Format Command for DSIU1 Output Format

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 Command Code (Hex) DSIU1OCR Command Name 31 [7:0] DSIU1 Output Format [7:0] Value Description Related Pin [7]

0 DLRCKO1 is low for L-ch DLRCKO1

(LR Clock)1 DLRCKO1 is high for L-ch [6]

0 DSDO1 is synchronized with falling edge of DBCKO1 DBCKO1

(Bit Clock)1 DSDO1 is synchronized with rising edge of DBCKO1 [5:4] 00 32 Fs DSDO1 Serial Data Fs 01 48 Fs 10 64 Fs [3:2] 00 16 bit DSDO1 Data Length 01 18 bit 10 20 bit 11 24 bit [1:0]

AUDIO EFFECT PROCESSOR S5A1901H02 15. DSIU2 INPUT FORMAT

  • Format Command for DSIU2 Input Format

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 Command Code (Hex) DSIU2ICR Command Name 32 [7:0] DSIU2 Input Format [7:0] Value Description Related Pin [7]

0 DLRCKI2 is low for L-ch DLRCKI2

(LR Clock)1 DLRCKI2 is high for L-ch [6]

0 DSDI2 is synchronized with falling edge of DBCKI2 DBCKI2

(Bit Clock)1 DSDI2 is synchronized with rising edge of DBCKI2 [5:4] 00 32 Fs DSDI2 Serial Data Fs 01 48 Fs 10 64 Fs [3:2] 00 16 bit DSDI2 Data Length 01 18 bit 10 20 bit 11 24 bit [1:0]

S5A1901H02 AUDIO EFFECT PROCESSOR 16. DSIU2 OUTPUT FORMAT

  • Format Command for DSIU2 Output Format

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 Command Code (Hex) DSIU2OCR Command Name 33 [7:0] DSIU2 Output Format [7:0] Value Description Related Pin [7:3] 00000 Reserved Reserved [2]

0 DLRCKO2 is low for L-ch DLRCKO2

(LR Clock)1 DLRCKO2 is high for L-ch [1]

0 DSDO2 is synchronized with falling edge of DBCKO2 DBCKO2

(Bit Clock)1 DSDO2 is synchronized with rising edge of DBCKO2 [0]

0 I2 S Codec In/Out,

  • Format

DSDO1 using CHIPCR [7:0]. CHIPCR[7:0] Register Setting for Input Source Selection Command Code (Hex) CHIPCR 34 [7:0] [7:0] Value Description [7] ‘ 1 Reserved [6] ‘ 1 Reserved [5] External DLRCKO1/DBCKO1 Clock Source Internal [4:3] Reserved [2:0] ADC enable Input Source Configurations DSIU1 enable 010

011 ADC & DSIU1 enable

DSIU1 & DSIU2 enable 101–111

S5A1901H02 AUDIO EFFECT PROCESSOR 18. VOLUME CONTROL Format Command for 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 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) chan- nel is attenuated by the scale corresponding to Balance_index [7:0]. Volume_index Command Name [7:0] Volume Control Balance_index Command Name [7:0] Balance Control

AUDIO EFFECT PROCESSOR S5A1901H02 20. TONE CONTROL

  • Format Commands for Tone Control

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 Command Code (Hex) Tone_index Command Name [7:0] Band0 Tone Value in 3/5/7-band equalizer mode

39 Band1 Tone Value in 3/5/7-band equalizer mode

3a Band2 Tone Value in 3/5/7-band equalizer mode 3b Band3 Tone Value in 5/7-band equalizer mode 3c Band4 Tone Value in 5/7-band equalizer mode 3d Band5 Tone Value in 7-band equalizer mode 3e Band6 Tone Value in 7-band equalizer mode

  1. INPUT GAIN CONTROL
  • Format Commands for Input Gain Control

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. Command Code (Hex) High Byte Low Byte Command Name

46 Ingain_adc [15:8] Ingain_adc [7:0] Input Gain Control of ADC or DSDI2

47 Ingain_dsdi1 [15:8] Ingain_dsdi1 [7:0] Input Gain Control of DSDI1

AUDIO EFFECT PROCESSOR S5A1901H02 22. OUTPUT GAIN CONTROL Format Command for Output Gain Control The S5A1901H02 permits to control the output gain of DSDO1 using incoming two bytes after the command. The volume control can be used. Command Code (Hex) Low Byte Command Name Outgain_dsdo1 [15:8] Outgain_dsdo1 [7:0]

S5A1901H02 AUDIO EFFECT PROCESSOR 23. PARAMETERS FOR USER DEFINED MODE Format Commands for Setting Parameters of User Defined Mode High Byte Low Byte

49 G0 [15:8] Gain for Left Input

4a G1 [7:0] Gain for Right Input 4c BL1 [15:8] Prefilter Coeff. (Left) 4d AL1 [7:0] Prefilter Coeff. (Left) 4f BR1 [15:8] Prefilter Coeff. (Right) 50 AR1 [7:0] Prefilter Coeff. (Right) G2 [15:8] G2 [7:0]

52 G3 [15:8] Gain for Right Term

53 G4 [7:0] Gain for Feedback Term

55 BD1 [15:8] Postfilter Coeff. 56 AD1 [7:0] Postfilter Coeff. G5 [15:8] G5 [7:0]

58 G6 [15:8] Gain for T2 Delay Term (Left)

59 G7 [7:0] Gain for T3 Delay Term (Left)

G8 [15:8] G8 [7:0] 5b G9 [15:8] Gain for T5 Delay Term (Left) 5c G10 [7:0] Gain for T6 Delay Term (Left) 5e G12 [15:8] Gain for Left Effected Term 5f G13 [7:0] Gain for Left Original Term

61 G15 [15:8] Gain for T2 Delay Term (Right)

62 G16 [7:0] Gain for T3 Delay Term (Right)

64 G18 [15:8] Gain for T5 Delay Term (Right)

65 G19 [7:0] Gain for T6 Delay Term (Right)

AUDIO EFFECT PROCESSOR S5A1901H02 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 parame- ters 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).

67 G21 [15:8] G21 [7:0] Gain for Right Effected Term

68 G22 [15:8] G22 [7:0] Gain for Right Original Term

69 T0 [15:8] T0 [7:0] Delay Buffer Pointer of T0

6a Tc [15:8] Tc [7:0] Current Delay Buffer Pointer 6b T1 [15:8] T1 [7:0] Delay Buffer Pointer of T1 6c T2 [15:8] T2 [7:0] Delay Buffer Pointer of T2 6d T3 [15:8] T3 [7:0] Delay Buffer Pointer of T3 6e T4 [15:8] T4 [7:0] Delay Buffer Pointer of T4 6f T5 [15:8] T5 [7:0] Delay Buffer Pointer of T5

70 T6 [15:8] T6 [7:0] Delay Buffer Pointer of T6

71 T7 [15:8] T7 [7:0] Delay Buffer Pointer of T7

Commands for Setting Parameters of User Defined Mode (Continued) Command Code (Hex) High Byte Low Byte Command Name

The List of Commands for Audio Effect Processor (S5A1901H02) (Hex) Class Function Control Reset sound mode

02 Reserved

System Power Down Disable DSP and built-in peripherals Reserved

05 Bypass For sound mode description, see Chapter 3

08 Super Woofer I

11 Karaoke I

14 Movie I

Input for mic-echo comes from built-in ADC or DSDI2. Input for stage mode comes from DSDI1 Inversion The above input sources are exchanged Equalizer Mode 3-band tone control 19 5-band tone control 1a 7-band tone control 1b No selection

AUDIO EFFECT PROCESSOR S5A1901H02 1c Spectrum Request Band0 Request band0 spectrum value in 5/7-band tone mode 1d Band1 Request band1 spectrum value in 5/7-band tone mode 1e Band2 Request band2 spectrum value in 5/7-band tone mode 1f Band3 Request band3 spectrum value in 5/7-band tone mode

20 Band4 Request band4 spectrum value in 5/7-band tone

21 Band5 Request band5 spectrum value in 7-band tone

22 Band6 Request band6 spectrum value in 7-band tone

23 Vocal

On Cancel vocal component in a sound mode except for Movie I, II

24 Off No selection

25 Loudness On Emphasis low & high freq. components according to volume level

26 Off No selection

27 Mute On Set volume level to – ∞ dB

28 Off Recover the volume level

29 Bypass On

On Bypass input from built-in ADC or DSDI2 to DSDO1 2a Off No selection 2b Mixing On Two input signals are added to produce an input for sound mode 2c Off No selection 2d Output Channel Selection Normal The 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 2e Inversion The above connection is exchanged 2f Reserved Command Code (Hex) Class Command Name Function

S5A1901H02 AUDIO EFFECT PROCESSOR

30 Digital data

format & Input Configuration Format for DSDI1 Select format for digital input source1 using incoming byte

31 Format for DSDO1 Select format for digital output source1 using

32 Format for DSDI2 Select format for digital input source2 using

33 Format for DSDO2 Select format for digital output source2 using

34 Format for Chip

Define Input Configuration & Control Interrupt using incoming byte

35 Volume Volume Control Set volume level using incoming byte

0 x 00: max level, 0 x 6d: min level

36 Balance Balance Left/Right

Set left/right balance level using incoming byte Balance left: 0 x 00 (min) to 0 x 6d (max) Balance right: 0 x 80 (min) to 0 x ed (max)

37 Mic-echo

Mic-echo scale Select mic-echo delay using incoming byte 0 x 01 (min delay) to 0 x 05 (max delay)

38 Equalizer

Band0 Tone Level Set band0 tone level in 3/5/7-band mode using incoming byte 0 x 00 (min level) to 0 x 18 (max level)

39 Band1 Tone Level Set band1 tone level in 3/5/7-band mode using

3a Band2 Tone Level Set band2 tone level in 3/5/7-band mode using incoming byte 3b Band3 Tone Level Set band3 tone level in 5/7-band mode using incoming byte 3c Band4 Tone Level Set band4 tone level in 5/7-band mode using incoming byte 3d Band5 Tone Level Set band5 tone level in 7-band mode using incoming byte 3e Band6 Tone Level Set band6 tone level in 7-band mode using incoming byte 3f Reserved for Host Test Command Code (Hex) Class Command Name Function

AUDIO EFFECT PROCESSOR S5A1901H02 control Built-in ADC & DSDI2 Set input gain value for built-in ADC & DSDI2 using incoming two bytes DSDI1 Input Gain Value

48 Output Gain DSDO1 Output Gain

(see Block Diagram in G0 Set left input gain using incoming 2 bytes G1 Set right input gain using incoming two bytes BL0 Set left prefilter coeff. using incoming two bytes BL1 4e BR0 4f BR1 AR1

51 Set left term gain using incoming two bytes

52 Set right term gain using incoming two bytes

53 Set feedback term gain using incoming two bytes

54 Set postfilter coeff. using incoming two bytes

56 AD1

G5 Set left delay gains using incoming two bytes 5a G8 5d G11 (Hex) Class Function

S5A1901H02 AUDIO EFFECT PROCESSOR 5e Parameters for User Defined Mode (see Block Diagram in Chapter 3) G12 Set left effected term gain using incoming two bytes 5f G13 Set left original term gain using incoming two bytes

60 G14 Set right delay gains using incoming two bytes

61 G15

62 G16

63 G17

64 G18

65 G19

66 G20

67 G21 Set right effected term gain using incoming two

68 G22 Set right original term gain using incoming two

69 T0 Set delay buffer pointer using incoming two bytes

(Delay pointer should follow inequality: 0 x 1800 > T0 > T7 > T6 > T5 > T4 > T3 > T2 > T1) 6a Tc 6b T1 6c T2 6d T3 6e T4 6f T5 70 T6 71 T7 Command Code (Hex) Class Command Name Function

AUDIO EFFECT PROCESSOR S5A1901H02 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.

S5A1901H02 AUDIO EFFECT PROCESSOR Flowchart for initialization: Mute Set Digital Data Formats Input Source Selection Sound Mode Selection Equalizer Mode Selection Tone Control Volume Control After reset , at least 10ms required for hardware initialization Command: 0x27 Only when using digital ports Command: 0x05 (No Effect Mode) 0x06 (Stereo Emulation I) 0x07 (Stereo Emulation II) 0x08 (Super Woofer I) 0x09 (Super Woofer II) 0x0a (Super Woofer III) 0x0b (Hall I) 0x0c (Hall II) 0x0d (Stage) 0x0e (Arena I) 0x0f (Arena II) 0x10 (News/ Drama) 0x11 (Karaoke I) 0x12 (Karaoke II) 0x13 (User Defined Mode) 0x14 (Movie I) 0x15 (Movie II) Command: 0xe0 (ADC on), 0xe1 (DSIU1 on), 0xe2 (DSIU2 on), 0xe3 (ADC & DSIU1 on), 0xe4 (DSIU1 & DSIU2 on) Command: 0x18 (3-band) 0x19 (5-band) 0x1a (7band) 0x1b (Defeat) Command: 0x38 + parameter (band0) 0x39 + parameter (band1) 0x3a + parameter (band2) 0x3b + parameter (band3) 0x3c + parameter (band4) 0x3d + parameter (band5) 0x3e + parameter (band6) parameter: 0x00 (-12dB) ~ 0x18 (+12dB) Command: 0x35 + parameter parameter: 0x00 (0dB) ~ 0x6d (-infdB) Reset

AUDIO EFFECT PROCESSOR S5A1901H02

ELECTRICAL CHARACTERISTICS

Recommended Operating Conditions Characteristics Symbol Value Unit DC Supply Voltage V DD − 0.3 − +7.0 V DC Input Voltage V I − 0.3 − V DD + 0.3 V Storage Temperature T stg − 40 − + 125 °C Operating Temperature T op − 40 − + 110 °C Characteristics Symbol Value Unit DC Supply Voltage V DD 4.75 − 5.25 V DC Input Voltage V I 0 − V DD V Commercial Temperature T A 0 − +70 °C Industrial Temperature −20 − +85 °C

S5A1901H02 AUDIO EFFECT PROCESSOR DC Characteristics (V DD = 4.75 ~ 5.25 V, T a = 0 ~ 70 °C) Characteristics Symbol Condition Min. Typ. Max. Unit High Level Input Voltage V IH CMOS 0.7 V DD − − V Low Level Input Voltage V IL CMOS − − 0.3 V DD V Schmitt trigger, positive- going threshold V T+ CMOS − − 4.0 V Schmitt trigger, negative- going threshold V T- CMOS 1.0 − − V High Level Input Current IIH V IN = V DD (Input Buffer) − 10 10 µA V IN = V DD (with pull-down) − 0.3 0.9 mA Low Level Input Current IIL V IN = V SS (Input Buffer) − 10 10 µA V IN = V SS (with pull-up) − 100 − 50 − 10 µA High Level Output Voltage V OH IOH = -1mA 2.4 − − V Low Level Output Voltage V OL IOL = 1mA − − 0.4 V Operating Current IDD XI = 16.9344MHz 120 150 mA Static Current IST All input/ Bidirection pins = V SS except RESB, MCLK, HWEB,CLKS 1.5 10 mA Operating Frequency F OSC CLKS = 0 XI = 16.9344MHz ±5 %

AUDIO EFFECT PROCESSOR S5A1901H02 Codec Analog Characteristics Parameter Min Typ Max Unit Sampling Rate (Fs) 4 44.1 50 KHz Over Sampling Rate − 128 − Fs Master Clock Frequency − 256 − Fs ADC Resolution − 16 − bits DAC Resolution − 16 − bits Passband 0 − 0.4 Fs Hz Stopband 0.4 Fs − 0.6 Fs Hz Common Mode Voltage 2.0 2.25 2.45 V Signal to Noise Ratio i i. measured from low pass filter (30KHz cutoff) output − 80 − dB

S5A1901H02 AUDIO EFFECT PROCESSOR System Clock and Reset Figure 31. AC Characteristics Symbol Min. Typ. Max. Unit XI Rise Edge to MCLK T XIR − 10 − ns XI Fall Edge to MCLK T XIF − 11 − ns XI Rise to CLKO T XIRO − 12 − ns XI Fall to CLKO T XIFO − 13 − ns External Clock High Width T CLKH − 14.75 − ns External Clock Low Width T CLKL − 14.75 − ns External Clock Rise Time T R − − 2 ns External Clock Fall Time T F − − 2 ns Reset Pulse Width T RESB 22.6 − − µs TXIR TXIF MCLK (33.8688MHz) XI (16.9344MHz) CLKO (11.2896MHz) TXIRO TXIFO TCLKL TCLKH X-tal Oscillator SYSTEM CLOCK(CLKS=0) MCLK (33.8688MHz) External SYSTEM CLOCK(CLKS=1) TR TF RESB TRESB SYSTEM RESET

AUDIO EFFECT PROCESSOR S5A1901H02 Host Interface Timing Diagram Figure 32. AC Characteristics Symbol Min. Typ. Max. Unit HWEB Setup to First HCLK Edge T WEBS 50 − − ns HWEB Hold to Last HCLK Edge T WEBH 50 − − ns HCLK Pulse Width High T HCLKH 1.25 − − µs HCLK Pulse Width Low T HCLKL 1.25 − − µs HDATA Input Setup Time T HDATAS 50 − − ns HDATA Input Hold Time T HDATAH 50 − − ns HWEB Wait Time T WAIT 1 − − ms T WEBS T HCLKL T HCLKH T HDATAS T HDATAH T HWEBH T WAIT HWEB HCLK HDATA

S5A1901H02 AUDIO EFFECT PROCESSOR Digital Audio Interface 1 Timing Diagram Figure 33. AC Characteristics Symbol Min. Typ. Max. Unit DLRCKI Setup to First DBCKI Edge T LRCKIS 20 − − ns DLRCKI Hold to Last DBCKI Edge T LRCKIH 20 − − ns DBCKI Pulse Width High T DBCKIH 177 − 354 ns DBCKI Pulse Width Low T DBCKIL 177 − 354 ns DSDI Input Setup Time T DSDIS 10 − − ns DSDI Input Hold Time T DSDIH 10 − − ns T LRCKIS T BCKIL T BCKIH T DSDIS T DSDIH T LRCKIH DLRCKI DBCKI DSDI

AUDIO EFFECT PROCESSOR S5A1901H02 Figure 34. AC Characteristics Symbol Min Typ Max Unit DLRCKO Setup to First DBCKO Edge T LRCKOS 20 − − ns DLRCKO Hold to Last DBCKO Edge T LRCKOH 20 − − ns DBCKO Pulse Width High T DBCKOH 177 − 354 ns DBCKO Pulse Width Low T DBCKOL 177 − 354 ns DSDO Output Setup Time T DSDOS 10 − T BCKOL − 10 ns DSDO Output Hold Time T DSDOH 10 − T BCKOH ns T LRCKOS T BCKOL T BCKOH T DSDOS T DSDOH T LRCKOH DLRCKO DBCKO DSDO

S5A1901H02 AUDIO EFFECT PROCESSOR APPLICATION CIRCUIT DIAGRAM 1. AUDIO Figure 35. 16.9344MHZ VEE+12VDC VEE +12VDC 10UFC8 R4 10K 68P 68P CRYSTAL 100UF C14 R1 ohm(1/4W) C16 C0.1uF 10UF C11 10K 10K R5 10K 10K 10UFC12 330pF C15 330pF 2.7K 7.5K R12 2.7K R10 7.5K R11 10UF C25+ 10UFC22 22UFC21 4.7UF C24 CNS01-12P NC1 1 NC2 2 12VDC 3 LIN 4 RIN 5 AGND 6 5VDC 7 SDA 8 SCL 9 DGND 10 LOUT 11 ROUT 12

1 Ohm(1/4W)R15

4.7UF C7+ 4.7UFC19 4.7UFC20 C0.1uF C0.1uF C0.1uF 100UF C23 300 R13 300 R14 Ka22686 KA22686 LIN1 PSN12 PSN23 PSN34 PSN45 PSN56 PSN67 VCC8 LPF19 NC10 SCL11 SDA12 VSS13 WOOC14 VOLC15 BALC16 RIN 32 VBLAS 31 WNF 30 WOUT 29 REOUT 28 LIOUT 27 RIOUT 26 GND 25 TR.L 24 BA.L 23 OFCL 22 LOUT 21 ROUT 20 OFCR 19 BA.R 18 TR.R 17 U2A 4558 8 4 U2B 4558 8 4 R18 R1(1/4W) R300 R16 R19 1K R20 1K ZD1 5.6V ZD2 5.6V KD16901 ALO1 AR02 VSS23 VDD134 GND135 VDD06 GND07 EB158 EB149 EB1310 EB1211 VDD112 GND113 EB1114 EB1015 EB916 EB817 VDD218 GND219 EB720 EB621 EB522 EB423 EB324 EB225 EB126 EB027 VDD328 GND329 SAS30 HMS 31HCLK 32HWEB 33HDATA 34VDD4 35GND4 36SCL 37SDA 38VDD5 39GND5 40DSDI2 41DBCKI2 42DLRCKI2 43VDD6 44GND6 45DSDO2 46DBCKO2 47DLRCKO2 48DSDO1 49DBCKO1 50 DLRCKO1 51 VDD7 52 GND7 53 DSDI1 54 DBCKI1 55 VDD8 57 GND8 58 HACK 59 TINT1 60 CTSDO 61 SPWDN 62 TODR 63 CLKO 64 DLRCKI1 56 VDD9 65 GND9 66 XO 67 XI 68 CLKS 69 MCLK 70 VDD10 71 GND10 72 CMCLKS 73 CTSDI 74 CTPWDN 75 DS2 76 GND11 77 VDD11 78 EBC 79 PDC 80 CTEST81 DTEST82 TCSEL083 TCSEL184 GND1285 VDD1286 TUPD87 TCLK88 TSEN89 TIDR90 CTRAPFI91 CTLAPFI92 RESB93 VCC194 VSS195 VREFI96 VREF97 ARI98 ALI99 VCC2100 S5A1901H02

AUDIO EFFECT PROCESSOR S5A1901H02 APPLICATION CIRCUIT DIAGRAM 2. KARAOKE Figure 36. DVCC DVCC DVCC DVCC DVCC AVCC AVCC DVCC DVCC DVCC AVCC AVCC HDATA GND AUDIO IN VCC HCLK SDA I2C SCL MICOM HWEB 16.9344MHZ RESB VREFI RESB VREF VREFI RESB DSDI1 DLRCKI1 DBCKI1 RESB VREF 0.33UF 470PF C10 R300 JK1 DC JACK 470PF C13 2.2nF C32 300R C0.47uF 0.1UFC19 0.1UF C17 C24 2.2nF 100UF C26+ 1UF R2.7K 39P 10UF 470PF C11 0.1UF C14 4.7UF C15C9 C0.01uF 100UFC26 1UF 39P 47UF C18 U3A NE5532 8 4 0.1UF C30 LIN C24 C2.2nF 10UF 200K R10 R300 R10 R1 ohm JP1 HEADER 3 C24 2.2nF 10UF C25 R 0.1UF C31 470PF C12 RIN HOST COMMAND 10UF C25 R10 R1 ohm POWER R150 S1 RESET 10UF C18 + 0.47UFC21 C27 0.1uF 4.7UF C16 AD1877_ADC CLKIN 28 384/256B8 TAG 27LRCK1 SOUT 26 AVDD9 DVDD2 25 WCLK2 DGND2 24 VINL10 RESETB 23 BCLK3 MSBDLYB 22 CAPL111 RLJUST 21 DVDD14 AGND 20 CAPL212 VINR 19 DGND15 CAPR1 18 AGND13 CAPR2 17 RDEDGE6 AGNDR 16 VREFL14 VREFR 15 S/MB7 MIC JACK LM7805CT IN1 OUT 3 GND2 R11 R1K C27 C0.1uF 10UFC18 C27 0.1uF R11 R1K R2.7K JP2 HOST SEL 123 C27 C0.1uF C27 C0.1uF C27 C0.1uF C27 0.1uF LOUT ROUT C20 2.2nF KD16901A ALO1 AR02 VSS23 VDD134 GND135 VDD06 GND07 EB158 EB149 EB1310 EB1211 VDD112 GND113 EB1114 EB1015 EB916 EB817 VDD218 GND219 EB720 EB621 EB522 EB423 EB324 EB225 EB126 EB027 VDD328 GND329 SAS30 HMS 31HCLK 32HWEB 33HDATA 34VDD4 35GND4 36SCL 37SDA 38VDD5 39GND5 40DSDI2 41DBCKI2 42DLRCKI2 43VDD6 44GND6 45DSDO2 46DBCKO2 47DLRCKO2 48DSDO1 49DBCKO1 50 DLRCKO1 51 VDD7 52 GND7 53 DSDI1 54 DBCKI1 55 VDD8 57 GND8 58 HACK 59 TINT1 60 CTSDO 61 SPWDN 62 TODR 63 CLKO 64 DLRCKI1 56 VDD9 65 GND9 66 XO 67 XI 68 CLKS 69 MCLK 70 VDD10 71 GND10 72 CMCLKS 73 CTSDI 74 CTPWDN 75 DS2 76 GND11 77 VDD11 78 EBC 79 PDC 80 CTEST81 DTEST82 TCSEL083 TCSEL184 GND1285 VDD1286 TUPD87 TCLK88 TSEN89 TIDR90 CTRAPFI91 CTLAPFI92 RESB93 VCC194 VSS195 VREFI96 VREF97 ARI98 ALI99 VCC2100 S5A1901H02

S5A1901H02 AUDIO EFFECT PROCESSOR NOTES