The TDA8204B performs two main functions, first
one is NICAM decoding, second one is audio signal
recovery (DAC) com bined with audio signal switching (Matrix). An I
2
S output is provided for digital
audio when required and all functions of both the
TDA8204B and the TDA 8205 are acc ess ed via an
on-chip I
used as an input for convert ing to analog some I
2
C bus interfac e. The I2S interface can be
2
digital sound.
GND
DACDR
DACDL
SERI
V
RSW
HA0
TEST0
US2
US1
US0
SCL
SDA
SD
SCK
WS
V
S
C4
C3
C2
C1
DD
DD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CK11648
42
TEST2
41
CK728
40
NDI
39
GND
38
TEST
37
TEST1
36
SEL0
35
SEL1
34
DV
33
V
32
31
30
29
28
27
26
25
24
23
22
DD
ADV
PDV
FID
DDO
DDI
GND
MUTE
RESET
ER
GND
8204B-01.EPS
November 1994
1/12
TDA8204B
PIN ASS IGME NT
Pin NoPIn NameFunctionPin NoPin NameFunction
1GNDGround22GNDGround
2DACDRPWM Data Output Right23ERError Monitor Flag Output
3DACDLPWM Data Output Left24RESETReset
4SERIInter Chip Serial Bus Output25MUTENICAM Mute
5V
DD
6RSWReserve Sound Switch
7HA0Hardware Address Selection28DDODescrambled Data Output
8TEST0To be connected to V
9US2User bit 2 (input)30PDVParity Data Valid Flag Output
10US1User bit 1 (output)31ADVAdditional Data Valid Flag Output
11US0User bit 0 (output)32V
12SCLI
13SDAI
14SDI
15SCKI
16WSI
17V
DD
18C4Application Control Bit 4 Flag39NDINICAM Data Input
19C3Application Control Bit 3 Flag40CK728728kHz bit Clock Output
20C2Application Control Bit 2 Flag41TEST2Not to be connected
21C1Application Control Bit 1 Flag42CK1164811.648MHz bit Clock Input
+5V Supply26GNDGround
27DDIDescrambled Data Input
Status/Control
or GND29FIDFrame Identification Flag Output
DD
2
C Bus Clock33DVData Valid Flag Output
2
C Bus Data34SEL1Language Selection 1 Input
2
S Bus Data35SEL0Language Selection 0 Input
2
S Bus Clock36TEST1Not to be connected
2
S Bus Word Select37TESTTo be connected to GND
DD
+5V Supply
+5V Supply38GNDGround
8204B-01.TBL
BLOCK DIAG RAM
DD
DD
V
VDDV
51732
NOISE
FILTER
1222638
GND
GND
TEST0
3
DACDL
2
DACDR
12
SCL
13
SDA
GND
GND
CK728
CK11648
RESET
NDI
DDO
39
40
42
24
41 36
TEST
MUTE
TEST1
TEST2
ADV
DDI
RSW
6272831 33
NICAM D ECODER
C1C2C3
PDV
DV
1819202125 3037
C4
SEL0
SEL1
ER
FID
2329
SERIAL
BUS
47891011
SERI
SCK
I S
2
SD
WS
1415 163435
2
I C INTERFACE
US0
DIGITAL
FILTER
US1
US2
HA0
ABSOLUTE MAXIMUM RATINGS
SymbolParameterValueUnit
V
DD
P
tot
T
oper
T
stg
Supply Voltage7V
Total Power Dissipation1.2W
Operating Temperature Range0, + 70
Storage Temperature Range- 20, + 150
8204B-02.EPS
o
C
o
C
8204B-02.TBL
THERMAL DATA
SymbolParameterValueUnit
2/12
R
th (j-a)
Thermal Resistance Juntion-ambientMax.67
o
C/W
8204B-03.TBL
TDA8204B
ELECTRICAL CHARACTERISTICS (T
= 25oC, VDD = 5V, unless otherwis e specif ied)
amb
SymbolParameterMin.Typ.Max.Unit
SUPPLY
V
DD
I
DD
Supply Voltage Range4.7555.25V
Supply Current304590mA
Low Output Voltage (IOL = -4mA)0.4V
High Output Voltage (IOH = 4mA)0.7 V
DD
US0 (open drain)
V
OL
I
LK
Low Output Voltage (IOL = -4mA)0.4V
High Output Current (leakage)
± 2µA
CONSTANT CURRENT LED DRIVERS C1, C2, C3
I
OL
Low Output Current (VOL = 0.4V)- 10mA
INPUTS
HA0, US2, RESET, DDI, SEL1, SEL0, TEST, NDI, CK11
V
IL
V
IH
I
LK
Low Input Voltage0.8V
High Input Voltage0.6 V
Input Leakage Current
DD
± 2µA
BI-DIRECTIONAL
RSW, MUTE
V
OL
V
OH
V
IL
Low Output Voltage (IOL = -4mA)0.4V
High OUtput Voltage (IOH = 100µA)
0.7 V
DD
Low Input Voltage0.8V
SD
V
OL
V
OH
V
IL
V
IH
I
LK
Low Output Voltage (IOL = -4mA)0.4V
High Output Voltage (IOH = 4mA)0.7 V
DD
Low Input Voltage0.8V
High Input Voltage0.6 V
Input Leakage Current
DD
± 2µA
I2C INTERFACE
SCL
V
f
t
V
SCL
, t
r
I
IL
C
IL
IH
Low Input Voltage01.5V
High Input Voltage3V
SCL Clock Frequency100kHz
Input Rise and Fall Times2
f
Input Leakage Current (VI = 5.5V)10
Input Capacitance7pF
I
DD
SDA
V
IL
V
IH
t
, t
r
I
IL
C
V
OL
t
f
C
Input Low Voltage01.5V
Input High Voltage3V
Input Rise / Fall Times2
f
Input Leakage Current (VI = 5.5V with output off)10
Input Capacitance7pF
I
Low Output Voltage (IOL = 3mA)00.5V
Output Fall Time between 3.0V and 1.0V200ns
Load Capacitance400pF
I
DD
V
V
V
V
V
V
µs
µA
V
µs
µA
8204B-04.TBL
3/12
TDA8204B
ELECTRICAL CHARACTERISTICS (continued)
SymbolParameterMin.Typ.Max.Unit
2
C BUS TIMING
I
SERIAL BUS (referred to V
t
LOW
t
HIGH
, d
t
SU
t
, d
HD
t
, S
SU
t
BUF
tHD, S
tSU, S
Low Period Clock
High Period Clock
Data Set-up Time250ns
AT
Data Hold Time170ns
AT
Stop Set-up Time from Clock High4
TO
Start Set-up Time following a Stop4
Start Hold Time4
TA
Start Set-up Time following Clock Low to High Transition4
TA
Figure 1 : I2C Serial Bus Timing
SDA
t
BUF
= 3V, VIL = 1.5V)
IH
t
LOW
4
4
t
F
µs
µs
µs
µs
µs
µs
8204B-05.TBL
SCL
SDA
VIH= 3V, VIL= 1.5V
Figure 2 : I2S Bus Timing Diagram
2
IS
WS
SD OUT
word n - 1
right channel
t
HD, STA
LSBLSB
t
t
SU, STA
r
t
HD, DAT
word n
left channel
14 bits
t
HIGH
MSBMSB
word n + 1
right channel
14 bits
t
SU, DAT
t
SU, STO
f = 896kHzCLOCK
f = 32 kHz
8204B-03.EPS
4/12
MSBMSBLSBSD IN
8204B-04.EPS
FUNCTION DESCRIPTION
The TDA8204B is partitioned into 6 major parts
shown in the block diagram.
The NICAM Decoder performs data and sound
recovery from the signals specified in
EBU SPB 424. The ex panded digital audio signals
(14-bit) are made available at the digital audio
interface (I
2
S) in a serial multiplex of left and right
channels. They are also processed by a 4 times
upsampling digital filter and noise shaper which
results in a high speed digital data stream at the
output pins DACD L/DACDR. This data s tream c an
be applied to the 1-bit D-A convert ors contained i n
the TDA8205.
The TDA8204B is I
2
C bus controlled and provides
control over the functions of the TDA8205 by
means of a serial inter-chip bus.
1 - NICAM Decode r
1.1 - BLOCK DI A GR AM (see Fi gure 3)
1.2 - DESCRIPTION
NICAM frame alignment requires searching out a
frame alignment word (FAW) and a 16 frame sequence conveyed by C0 bit. Because of noise,
interferences, errors in the incoming NICA M Data,
aliases of the FAW, a robust scheme is implemented. It ensur es the decoder will align, and st ay
aligned, to signals beyond the limit of maximum
useable error rate. Thank s to a 511 bit PRBS synchronized by the recovered clock and a modulo 2
adder, original data are recovered. This data
stream can be processed externaly for de-encryption in Pay TV applications using descr ambled data
Pins DDO, DDI.
To allow simultaneous reading and writing of
mono/stereo samples , de-interleaved data frames
are stored in a 3 page RAM.
TDA8204B
The 10-bit input audio samples are expanded to
14-bit using scale factor bits according to NICAM
decoding rules. Samples in error by the parity
check are replaced by interpolated one or repeated.
Mute is set accor ding to an er ror count er w hen t he
error rate exceeds error rate limit (ERL) and reset
when the error rate is below ERL/4.
Application cont rol inform ation (bit C1, C2, C3, C 4)
is recovered by majority decision logic over 16
frames. the C1, C2, C3 , C4 bits can be read in SR0
register and are set on the C1, C2, C3, C4 pins
according to the state of bit 0 (BEA) of the CR2
register.
2 - Digital Filter an d Noise Sh ap er
A digital filter performs 4X upsampling in two
stages. The main FIR 2x upsampler is followed by
a smaller 2x FIR upsampler. Digital upsampling
means a much simpler post-DAC reconstruction
filter can be used thus saving on external component count and cost.
A noise shaper converts the samples from the
digital filter into two high speed serial bitstreams
which can be applied to the DA Cs in the TDA8205.
2
3 - I
S Bus
A standard three-wire interface, conforming to the
2
S bus protocol, is provided, allowing connection
I
of an external DAC or DA T interf ace. Audio samples
contain 14-bit, so 16-bit DACs will pad the t wo LSBs
with 0. The word select clock operates at 32kHz
and the serial clock at 896kHz.
By setting SDI bit of CR2 to 1, the I
receive the digital I
2
S sound. This prevents dupli-
cating the dual D/A converter.
2
S interface ca n
Figure 3 : NICAM Decoder Block Diagram
DDI
NDI
PDV
DV
FID
ADV
DDO
DESCRAMBLER
39
30
33
29
31
FRAME
CONTROL
C1C2C3
21 20 19 18 62728
MAJORITY
LOGIC
3 PAGE
RAM
ADDRESS
GENERATOR
C4
RSW
SCALE FACTOR
RECOVERY
EXPANDER
ER
23
ERROR
COUNTER
CONCEAL
AND MUTE
MUTE
25
TO FILTER
8204B-05.EPS
5/12
TDA8204B
4 - Interchip Bus
A one-line serial bus provides interchip communications allowing control of all functions t hrough the
single I
5 - I
An I
2
C bus interface.
2
C Bus
2
C bus interface provides access to control and
status registers within the two chips t o allow control
of their f unct ions and monitoring of s t atus . A digital
filter is inclu ded to improve noise immunity.
5.1 - DATA F LA GS (s ee Figure 4)
These indicate the status of the descrambled dat a
on the DDO pin. They are inhibited if the decoder
is out of alignement.
- FID : Frame alignment word (scrambled)
- PDV : Parity Data V alid. CIB0 and CIB1 overwrit e
the first 2 bits of FAW
- ADV : 11 addit io nal data bits
- DV : Data valid (mode dependant)
5.2 - DECRYP T ION (s ee Figur e 5)
The PRBS generator (used for descrambling) is
normally preset to all ones at the start of each
frame. However, it is possible to preset it to any
value on each frame by means of a code word clock
Figure 4 : Data Flags
(CWC) and serial code word data (CWD) interfac e
on pins SEL0 and SEL1.
CWD, which is clocked in on the n egative going
edges of the CWC clock, can be sent anywhere
during the frame except when FID = 1. The CWC
is asynchronous with respect to the Nicam clock
and the CWD will be used on the following frame.
During the time FID = 1, the levels on the SEL0,
SEL1 pins are read for language selection. Code
words for descrambler presetting may be sent in
either an 8-bit or 9-bit formats. There are four
possibilities :
- if 7 or less clock cycles are counted on CW -clock
during a frame, the PRBS generator is preset to
all ones ;
- i f 8 clock cycles are counted, 8 bits of CW-data
are clocked into the shif t register , the first bit of the
previous transfer now moving to bit 9 position in
the shift register. The resulting value is used to
preset the PRBS generator on the next fram e.
- if 9 clock cycles are counted, t he CW-data (whic h
has been clocked into a 9-bit shift register) is used
to preset the PRBS generator on the next frame.
- i f 10 or more clock cycles are counted, only the
first 9 bits of the CW-data are used and loaded
into the PRBS generator on the next fram e.
CK728
DDO
FID
PDV
ADV
DV Stereo
DV Mono
DV Data
CB0 CB1
FAW
Figure 5 : PRBS Preset ter
FID
SEL0
(CWC)
SEL1
(CWD)
C0 C1 C2C3C4
AD0
1 FRAMENEXT FRAME
AD10
NICAM DATA 704 BITS
24 CONTROL
EVEN FRAME
ODD FRAME
704 DATA
8204B-06.EPS
8204B-07.EPS
6/12
TDA8204B
5.3 - SOFTWARE SPECIFICA TION
Software control of IC’s is given by programming
four registers, one read only status register (SR0)
and three read and write control registers (CR1,
CR2, CR3).
Transm it format : S = Start, A = Acknowledge
P = stop
S
ADDRESS
CHIP
0A
REG SUB
ADDRESS
A DATA AP
Receive format :
CHIP
S
ADDRESS
Note : All registers are read sequentially; device status and the
contents of all registers may be read. The sequence may be
terminated by not acknowledging (NOACK) the slave.
1A
SR0
DATA
A
CR1
DATA
AP
Chip address
1 01101HAOR/W
MSBLSB
HAO : Hardware address select ion pi n
Register addresses
Reg.
Name
SR0 00000000NICAM status
CR1 00000001Matrix and mutes
CR2 00000010NICAM control
CR3 00000011Switches
Sub AdressFunction
Register cont ent s
SR0 : NICAM status (read only)
US2C1C2C3C4MUTLA2L/S
US20001111
MSBLSB
L/S : • If FN1 bit of CR2 is 0, LS bit is loss of
frame alignment status
LS =1, FAW is lost
LS = 0 FAW is identified
• If FN1 bit of CR2 is 1, LS bit is selected
system status
LS = 1, B/G standard
LS = 0, I standard
LA2 : Loss of sub-frame alignment
(1 = loss of alignment)
MUT : NICAM mute (1 = DAC outputs muted)
C4: Reserve sound flag (1 = FM backup)
C3: Application control bit 3
C2: Application control bit 2
C1: Application control bit 1
US2 : User bit 2 (input)
US2 bit indicates the state of US2 input Pin
CR1 : Matrix and m ut es (read and writ e regist er)
Q1Q0I2I1I0G0AUM FRE
00000000
MSBLSB
Qn: Output select (see tables)
In: Input select (see tables)
G0: Auxiliary output gain, 0 = 0dB, 1 = 6 dB
AUM : Auxiliary output mute, 0 = no-mute,
1 = muted
FRE : Free run clock VCXO for set up,
0 = normal, 1 = fr ee ru n
To set crystal ser ies capac itor
Switches and Matrix Description
Figure 6
LFIL1
RFIL1
SAIL
MAI
SAIR
AMOL
AMOR
INTL
INTR
Audio matrixReserve sound switch
EAIL
EAIR
38 3732 3136 3534
2728AOL
AOR
Output selection
Q1Q0Output
00AOL
01AOR
Mute and gain selection
Q0I2MuteGain
00OFF*01ON*10-0dB**
11-+6dB**
* Mute is activated by left channel selection
** Gain is activated by right channel selection
Input selection
I1I0Input
00INTL
01INTR
10EAIL
11EAIR
Example of programming
First
step
: 0 0 1 0 0 X X X
INTL connected to AOL, mute ON on
AOL/AOR
Sec-
ond
step
Thrird
step
: 0 1 0 1 1 X X X
EAIR connected to AOR, gain 0dB on
AOL/AOR
: 0 0 0 0 0 X X X
INTL connected to AOL, mute OFF on
AOL/AOR
The power up default configuration is 0dB and
unmute for both channels AOL/R, and INTL connected to AOL, and INT R connected to AOR.
Note : C4 pin remains unchanged. The function of C1-C4 in SR0
remains unchanged.
CR3 : Switches (r ead and write regis ter )
US1US0AUTIBGFS1FS0XSYN
00100001
MSBLSB
US1 : User bit 1 (output)
US0 : User bit 0 (output)
AUT : Automatic select ion, 1 = enable
IBG: Select system I or B/G, 1 = B/G
FSn : Force switch (see table)
SYN : 1 = synthesiser, 0 = dual VCXO
(carrier loop)
FS1FS0Selection
00Auto NICAM
01FM-Mono
10FM-Stereo
11NICAM
NICAM S TAND-ALONE AP PL IC ATION
The NICAM kit has been designed to be m onitored
by the I
2
C bus; nevertheless stand-alone working
capability is offered to the designer for low cost
applications.
In order to know the status of the kit in stand-alone
mode, consider the contents of the four I
2
C registers at power-ON (4 registers : SR0 - CR1 - CR2 CR3). Hardware configurable pins will be described
later.
1 - Power-ON Configuration
SR0 (status)
US2C1C2C3C4MUT LA2L/S
US20001111
MSBLSB
US2: Not used in stand-alone
C1:
C2:
C3:
Application control bit status for
NICAM signal
C4: Reserve Sound Flag
MUT : DAC outputs muted (demuted as soon
as NICAM appears)
LA2:the subframe alignment is been lost
L/S: FAW status (FN1 of CR2 = 0)
CR1 (R/W)
Q1Q0I2I1I0G0AUM FRE
00000000
MSBLSB
Q1:
Q0:
I2:
NICAM sound is sent on all matrix
outputs and on AMOx pins
I1:
G0: Gain = 0dB on AMOx
AUM : AMOx pins un-muted
FRE: VCXO in normal mode
CR2 (R/W)
SDAECT MAE FN1 UMTLA1LA0BEA
00000001
MSBLSB
SDA: Normal mode
ECT &
: BER = 1/112
MAE
FN1: Bit L/S of SR0 set to alignment loss
status
UMT: TDA8204B mute pin 25 to 0
LA1: Result depending of SEL1
LA0: Result depending of SEL0
BEA: Beacon decoding mode but all diodes
are OFF until a NICAM signal has been
found
CR3 (R/W)
US1US0 AUTIBGFS1FS0XSYN
00100001
MSBLSB
US1: Not used in stand-by mode
US0: Not used in stand-by mode
AUT:Automatic standard
8/12
IBG: Standard I (don’t care)
FSn: Set to Auto NICAM (if NICAM fails, FM
mono is select ed)
FN2: Not used
SYN: Synthesizer selected
2 - Hardware Config urab le Pi ns
2.1 - TDA8204B - PIN 6 - (RSW)
- as an output :
status of the RSW switch
- 0 = FM mono
- 1 = NICAM
- as an input :
- 0 = FM mono (forced)
2.2 - TDA8204B - PINS 34/35 - (SEL0/ S EL1)
(see Figure 7)
- to select the language in case of bilingual opera-
tion
- selected value is related to LA0 and LA1
Figure 7
TDA8204B
2
As the I
(power-ON condition) / SEL0 = Q 0, S EL1 = Q 1
The 4 choices are summarized in the table below.
M1 = Mono 1
M2 = Mono 2
VII - 2.3. TDA8204B - PIN 25 - (MUTE )
- as an output :
- as an input :
C bus is not used LA0 and LA1 = 0
SEL0SEL1DACDLDACDR
00M1M2
01M1M1
10M2M2
11M2M1
status of the DAC
- 0 = unmuted
- 1 = muted
- 0 = unmute DAC (forced)
SEL1
34
SEL0 35
LA0LA1
Q1 = SEL1 LA1
Q0 = SEL0 LA0
Q1
Q0
S
W
I
T
C
H
8204B-09.EPS
9/12
TDA8204B
APPLICATION DIAGRAMS
Figure 8 : Stand Alone Application (I standard)
LED2LED3LED4
6.8nF
6.8nF
DAC
(forced)
Unmute
stereo
Q1, Q2 : BC109 or BC550C
F1 : TOKO TH316BQM2110QDAF (5VFP)
T1 : Matsushita EFCS6R0MWS
X1 : 11.648MHz Crystal NDK
Ω
R20 22k
F
µ
C26
220
H
µ
F
L2 10
µ
C23
10
DD
H
µ
10
C6
220pF
V
CC
V
AUDIO
OUTPUT
R
L
FM MONO IN
Language
ERROR
MONITOR
Selection
LK1LK2
LED1
Ω
R17 330
F
µ
C21
10
F
µ
C20
10
F
F
µ
µ
C24 1
C25 1
C19
100nF
22
23
27 26 25 24
28
29
35 34 33 32 31 30
36
37
mute
41 40 39 38
42
Ω
22
26 25 24 23
27
28
29
35 34 33 32 31 30
36
IC1 TDA8205IC2 TDA8204B
21
16 17 18 19 20
15
14
C28
100nF
8 9 10 11 12 13
7
2 3 4 5 6
1
R19 270
21
17 18 19 20
16
15
14
Ω
Q2
8 9 10 11 12 13
7
single
FM mono
C17 100nF
R11 5.6k
C13
mono
(forced)
100nF
dual
mono
Ω
R16
1M
F
µ
C16
10
C18
Ω
100nF
C15
R15
5.6k
Ω
R14
43k
Ω
R13
43k
Ω
C14
R12
5.6k
L1
MON2
MON1
10/12
40 39 38 37
41
C10 6.8nF
Ω
R10 39k
42
C9 120pF
C8
220nF
Ω
R9 8.2M
C7
100nF
X1
11.648MHz
C11 150pF
C12 18pF*
* C12 value depends on X1
3 4 5 6
2
R18 10kW
1
Ω
C7 680pF
R8
150
C4 1nF
F1
BFP
6.552MHz
C3 10nF
Ω
R4
470
Ω
R1
8.2k
C5
Ω
220pF
R7
470
Ω
R6
33
Ω
C2 10nF
R5
100
Q1
TRAP
Ω
R2 470
C1
NICAM
Ω
R3
1.2k
10nF
IN
SYS. I
F
µ
C22
10
T1
6.0MHz
8204B-10.EPS
Figure 9 : I2C Bus Controlled Applicatio n (I and B/G standard)
Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may
result from its use. No licence is granted by implication or otherwise under any patent or patent rights of SGS-THOMSON Microelectronics. Speci fica tions mentioned in this publicati on are subject to change without notice. This publication supersedes and
replaces all information previously supplied. SGS-THOMS ON Microelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of SGS-THOMSON Microelectronics.