You are on page 1of 5

AUDIO & HI-FI

clipping indicator
A little while ago a
reader wrote to say
that he had found
for compact disc
overdrive on some of
his compact discs.
This sort of news
comes of course like
a thunderbolt since it
is assumed by most
people that compact
discs are examples of
the quality of today’s
digital technology.
The first reaction to
such an allegation is
one of outright disbe-
lief or at least scepti-
cism. Moreover, it has
been alleged by other
readers that several
producers have
admitted (sic!) to
overdriving, that is
clipping, of CDs at
the request of the rel-
evant artists. Be that
as it may, it was rea-
son enough to design
an indicator to bring
Most people will not believe that there with a VU (visual unit). To his surprise
overdrive to light and are CDs that are overdriven by the he found that the level varied around
producer: they generally assume that 0 dB. A surprise, indeed, for the level
help the consumer in manufacturers know what they are on a CD should reach 0 dB only dur-
his/her quest not to doing and supply discs that are tech- ing very brief peaks in the signal. The
nically correct within the confines of average signal strength should be not
buy flawed CDs*. modern digital technology. If the expe- less than 6 dB and preferably 10–12 dB
riences of some of our readers are below 0 dB.
*It should be noted that overdrive on accepted, this may not always be true. In view of these findings, our
a CD is not a legal reason for asking One reader wrote to say that he reader decided to take his investigation
your money back. had noticed that some CDs in his col- a little further and connected an oscil-
lection sounded ‘less than perfect’ and loscope to the output of his CD player.
others even ‘downright poor’. Since he This showed that on certain CDs the
Designed by T. Giesberts thought that his ears were playing him signal was clipped; on one or two, the
tricks, he decided to check the level clipping led to ‘audible distortion’. Fig-

Elektor Electronics 10/98


46
1

Figure 1. Two clear cases of over-


ure 1 shows a few examples (not nec- drive allegedly measured on mod-
essarily the worst!). commercial acu- ern compact discs (Sony Music at the retailer ’s
Apart from leading to distortion, men – but not 099748 393227/1996 and 099748 premises nor-
clipping also results in another phe- impossible. Also, 698421/1997). mally does not
nomenon. Since the average signal the reason indicate any-
strength is too high, the dynamic given by these thing awry, but
range of the music is reduced, so that producers that they ‘dared not go once it is played on a good-quality
the reproduced sound is much too flat, against the wishes of these artists’ installation at home a deficiency may
which can easily lead to ‘listening seems highly suspect. No artist is big- come to light.
fatigue’. ger than a bona fide recording studio. The solution appears to be a small
Editor]. portable indicator that can be taken to
COINCIDENCE? the retailer, assuming that it is possible
Could these findings be coincidence? DETECTION to connect it to the retailer’s playback
It is hard to say, but evidence from What can the consumer do to avoid equipment.
other readers and our own measure- buying a flawed disc? After all, a CD What should the indicator react to?
ments seem to indicate that there are cannot be repaired or enhanced. Over- It is clear that on a good-quality CD
CDs on which the signal has been pur- drive used in the recording studio can- the 0 dB level will be reached only
posely overdriven. [The allegation by not even be eradicated during manu- during short high-signal peaks. If the
another reader that two producers facture of the disc. 0 dB level is sustained for more than
admitted to him that they sometimes The only thing a consumer can do a fraction of a second, there may be
used overdrive on CDs at the request is not to buy the suspect CD. But how reason to be suspicious. Consequently,
of the relevant artists seems far-fetched is he/she to detect that a certain CD the indicator is designed so that an
– because it would be contrary to their suffers from overdrive? Listening to it LED lights when two or more samples

Elektor Electronics 10/98 47


2 L1 R3 10 10
5V

12 S 9 12 S 9
D D
47µH 1 4 IC3b MSB IC4b MSB'
R S 11 10
2 5 C 8 11 C 8
C4 C5 C6 C7 D
IC3a A 12 S 9
R R D
3 6 IC2c IC5b
10µ 25V 47n 10µ 63V 47n C
13 13 10
8 11 8
9 =1 C
D
C R
K1 22 7
13
S/PDIF C1 A D
9 17
RXP M3
18 4
R1 10n 25 M2
ERF IC1 24
28 M1 2 S 5
VERF 23 D
15 M0 IC2d IC4a
CBL 12 12
C2 SCK 11 3 6
10 27 13 =1 C
RXN F2
1 CS8412 2 R
10n C F1
14 3
U F0 1
C3 R2 26 5V
20 SDATA T1
1k FILT 4 R8
E2
47n 19 5 47k
MCK E1 2 5
13 6 D
FCK E0 IC2b IC5a BC557B
16 11 4
SEL FSYNC 6 3 6 R9
=1 C
A D 5
R S R6
21 8
1 4 PU
D1
JP1 R10
D2 PEAK

220 TTL
5V BAT82 AVG
R4
JP2
IC2 = 74HCT86 PEAK

IC3, IC4, IC5 = 74HC74 AVG


IC6 IC2a
2 PD
> 8V D4 7805 5V 3
1 =1 R12
D3
1N4002
T2
C14 C13 14 C9 14 C10 14 C11 14 C12 R5 CLIPPING R11
C8
IC2 IC3 IC4 IC5 R7 47k
220µ 4µ7 7 100n 7 100n 7 100n 7 100n
25V 63V
100n BC547B

980072 - 11

Figure 2. The circuit of the indicator consists of an integrated


digital audio interface receiver and a number of gates and bista-
of the signal reach bles forming the signalling section. signal is generated
the peak value. The exclusively for the
probability that MSB in D-bistable
some clipping then occurs is great. IC1, an integrated interface receiver IC3a-IC3b. The FSYNC signal is clocked
When the LED lights only once or Type CS8412 (see Data Sheets else- into IC3a by the inverted bit-clock
twice per track, it must be assumed where in this issue). This circuit can (IC2d). The output of IC3a (signal A)
that this is caused by a couple of handle virtually all current sampling forms the clock for the MSB.
strong signals. If it lights more often, frequencies. The serial audio data The clock input of IC3b goes high in
or it remains on for longer than a sec- (SDATA) are read with the aid of a bit- the middle of the MSB, after which the
ond, there is something not quite right. clock and a word-clock (SCK and FSYNC bit is held for the duration of the audio
To make a possible error indication respectively). The output of the IC is sample (pin 9 of IC3b).
as clear as possible, two LEDs are set to a special format (normal mode To ensure that the MSB is applied
used: the green one lights as long as all FMT 4: M0 =M1=0; M2 =1 M 3=0) in to comparator IC2c simultaneously
is well, and the red one when there is which a clock pulse follows each audio with the next bit, it is clocked again in
something amiss. For those who have sample, irrespective of left or right. D-bistable IC4b.
not the patience to keep an eye on the The audio data are coded in 2s The remaining bits are clocked by
LEDs during the entire time the CD is complement. To check whether a peak IC4a. Since signal A is applied to the
played, there is an optional facility for value has been reached, the MSB S-input of this bistable, the inverted
connecting a counter module. This (most significant bit) must be inspected output remains low until the first of
shows how many times during the and compared with the remaining bits. the remaining bits is clocked (signal C).
playback clipping may have occurred. In the case of digital minimum and Use of the inverted output ensures
In the design of the indicator it was maximum values, all remaining bits that all bits there have the same level
assumed that the studio recording was must be the opposite of the MSB. The as the MSB if and when a minimum or
transferred 1:1 to the manufactured minimum and maximum values are maximum value is reached. If the level
compact disc. checked with an XOR function. is not the same, IC2 goes high at a cer-
tain moment, which causes IC5b to be
CIRCUIT DESCRIPTION Gates & bistables clocked. This means that the output of
The circuit diagram of the indicator is The comparing and indexing of the IC5b is high when there is neither a
shown in Figure 2. Audio socket K1 is bits is carried out by a number of gates minimum nor a maximum value.
for linking the indicator to the digital and D-bistables. The timing diagram So as to enable the actual state of
output of the CD player. of the most important signals is shown each sample to be determined, most
The relevant data are retrieved in Figure 3. bistables, including IC5b, are reset by
from the S/PDIF† signal with the aid of At the start of a new sample, a clock signal A. Before this happens, the sta-
tus of IC5b for each sample is clocked Figure 3. Timing diagram of the most important
to IC5a by the FSYNC signal inverted by
IC2b. Since IC5a is not reset by signal A,
3 signals in the indicator.

the data transferred to it are retained.


Pin 6 of this bistable therefore remains
FSYNC
low as long as there is no sample that
contains a minimum or maximum
SCK
value. If a peak value does occur, pin 6
briefly goes high.
SDATA 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Converting the change in level at
the output of IC5a into a usable optical
SCK
indication is not too difficult. The
design basis was to make a (red) LED
A
(D3) light for about one second if two
or more consecutive samples reach
MSB 16
peak value. Time constant R4-C8 aver-
ages a number of samples, while the
MSB' 16
discharge time of C8, determined by
R5, results in an afterglow of about one
C 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
second. The potential across C8 is
buffered by IC2a. The indication
D
exor
980072 - 13

Parts list

Resistors: becomes much clearer by the addition opposite of that of D3, so that when
R1 = 75 Ω of a second (green) LED (D2). The clipping occurs there is a distinctive
R2, R7 = 1 kΩ light-up behaviour of this diode is the change of colour.
R3 = 4.7 Ω
R4, R10 = 220 Ω
R5 = 10 MΩ Figure 4. The printed-circuit
R6 = 560 Ω board for the indicator makes
R8, R11 = 47 kΩ construction child’s play.
R9, R12 = 100 Ω

Capacitors:
C1, C2 = 0.01 µF, ceramic
C3 = 0.047 µF C13 0 + 1-270089
R3 D4 ROTKELE )C(
C4, C6 = 10 µF, 63 V, radial
H1

H2

C5, C7 = 0.047 µF, ceramic 4 IC6 C14 980072-1


C8–C12 = 0.1 µF C6

C11
L1

C13 = 4.7 µF, 63 V, radial IC3 IC4


C5

C14 = 220 µF, 25 V, radial


C10
IC1

C12
C7

C4

Semiconductors:
C9

D1 = BAT82
R8

IC2 IC5
D2 = LED, green, high efficiency
R2

R6

D3 = LED, red, high efficiency avg peak avg T1


D4 = 1N4002
C3

JP2
C1
C2

T1 = BC557B R11
R7

R5
R4

JP1

+
D1

T2 = BC547B K1 T2
R10

PU
R9
C8
R1

D2 D3 R12
Integrated circuits:
H3

H4

T T
IC1 = CS8412 (Crystal Semiconduc- TTL PD

tor)
IC2 = 74HCT86
IC3, IC4, IC5 = 74HC74
IC6 = 7805

Miscellaneous:
L1 = choke 47 µH
JP1, JP2 = 3-way, 2.54 mm pin strip
and pin jumper (Maplin)
K1 = audio connector (male) for
board mounting
Enclosure 120 × 65 × 41 mm
(L× W× H), e.g., Bopla 430 (avail-
able from Phoenix 01296 398355)
PCB Order no. 980072 (see Readers
Services towards the end of this
issue)

(C) ELEKTOR
980072-1

Elektor Electronics 10/98 49


5

Figure 5. Photograph of
the completed proto-
COUNTER OPTION nals just reach the type indicator board. in view of the permis-
As mentioned earlier, there is provision 0 dB level. The aver- sible leakage current.
for linking a counter module to the aged count is a more Since the circuit
indicator to show the number of times realistic measure of the number of clip- provides for a 5 V regulator, IC6, a
that clipping has occurred over a given ping occurrences. A drawback of the mains adaptor with an output of not
period. There are three outputs: TTL, averaged count is that the toggling of less than 8 V may be used as power
pull-down (PD), and pull-up (PU), so IC2a may cause high-frequency pulses source. The circuit draws a current of
that almost any current type of mod- that may adversely affect fast counter about 25 mA. This low current also
ule can be used. modules. However, most modern facilitates the use of a 9 V battery if
Owing to the averaging by R4-C8, modules are immune to these pulses portable use is desired. A dry battery
the output remains active even when and in any case the risk can be will give some 10 hours operation.
brief interruptions occur. If, however, removed by connecting a 1 µF capaci- For portable use it is, of course,
the output of IC5 is used, count pulses tor across the counter input. essential that the circuit is housed in
are obtained for all discrete samples or a small, neat enclosure such as that
strings of them. Both facilities may be CONSTRUCTION specified.
used thanks to JP1 and JP2. This The indicator is best built on the PCB [980072]
arrangement gives a choice at the TTL shown in Figure 4. Populating the
or PD output of either an averaged board with reference to the compo-
count of the number of times clipping nents list and the circuit diagram
has occurred or a count giving the should not present any undue diffi-
peak value. culties. Sockets should be used for the
In practice, peak counting may be ICs. Mind the the polarity of the elec-
a little too severe, since normally noth- trolytic capacitors and diodes. Note
ing much happens when the peak sig- that D1 must be of the type specified

Elektor Electronics 10/98 51

You might also like