Vous êtes sur la page 1sur 54

Many of you will recall the days when a new, and

then very fast, modem meant euphoria. From now


on, communication with the Internet will be faster,
better, etc. is what many computers owners must
have thought at that time. Alas, speed is a relative
notion in computer land. Meanwhile, new communi-
cation technologies have been designed to speed
up Internet access. This article provides a glimpse of
what the future has in store for Internet users.

Faster access to the


Internet
by cable and satellite

2 - 4/98 Elektor Electronics EXTRA PC TOPICS


Internet telephone network Internet
access access
provider national/international provider

A B

telephone network
PSTN PSTN
exchange national/international exchange

980018 - 11

Figure 1. Traditionally, part of an Internet link is by way of the plain old telephone system (POTS).

Internet connections make ever-heav- (PSTN), also jokingly referred to as POTS causes a digital connection to be
ier demands on the bandwidth of a (plain old telephone system). Corporate established using this (analogue) tele-
communication channel. Because of (business) users may resort to leased phone line. Using a modem bank and
the increased information density datalines, which are much faster. In a network server, the provider arranges
(these days nearly all web pages have fact, leased lines may supply a band- for the actual connection to the Inter-
graphic elements, and they support width that matches the exact require- net to be established. Depending on
sound and exhibit photographs), a ments of the (corporate) user, so that a the final destination, a Web site being
pretty fast data line has to be available perfect, seamless link may be made visited, or an e-mail message to be
to enable the web pages to be built at with the corporate network. This type of delivered, a second telephone line is
reasonable speed. Moreover, work on connection is far too expensive for indi- employed at the far side. Actually, the
new, heavier services like distributing vidual users, hobbyists and other occa- Internet bypasses a piece of the tele-
digital video via the Internet is under- sional users, who are more or less phone network whenever it allows two
way. Consequently, a 14k4 modem is forced to opt for a modem-PSTN con- end-users to communicate with each
just to slow to surf the Internet, while a nection. Typically, the available band- other. Ultimately, digital data from one
33k6 modem gives reasonable results, width will then depend on the quality of computer is delivered, unmodified, to
and an ISDN connection using a band- the telephone line and the modem another, which may be at the other
width of 64 kbits/s is a good alternative technology used. With analogue con- side of the globe! Once you get this
these days (though overpriced in the nections, that is, connections using a point, it is easily understood why tele-
UK). ISDN even allows you to aggregate standard telephone dial-up connec- phone companies are striving to find a
two channels, enabling a bandwidth of tion, the highest available speed is cur- solution that enables end-users to be
128 kbits/s to be achieved. Looking at rently offered by the asymmetrical connected directly to the Internet. The
the current trend in technological 56 kbits/s standard. telephone exchange then has to cre-
developments, you may safely assume With the increased demand for fast ate the link with the Internet. In a num-
that even that kind of speed will not be datalinks and the rapidly growing ber of cases, the service provider is
sufficient some time in the near future. number of Internet users in mind, new then no longer required. This option is
The speed of a modem is, incidentally, service providers seem to pop up currently under investigation, and there
only one aspect of the casethe inter- almost every day. The coming years are already encouraging signs from a
nal capacity (bandwidth) of the Inter- will no doubt bring us a fierce and manufacturer claiming to have found
net and the providers connection to interesting battle between cable- TV the solution.
the Net must not be bottlenecks either. companies, electricity boards, tele- Internet providers, afraid of being
In more cases than you would care to phone companies and other suppliers abandoned by their millions of users,
think of, the datastream between of information services. Each of these will of course try to counter this devel-
provider and end-user is ultimately will attempt to induce individual Inter- opment by offering services that
much slower than the theoretical net users to go for their offerings of fast reduce the role of the traditional tele-
capacity offered by the modem. Internet services. phone companies.
Lets return to the communication In this context, it is interesting to see that
between the end-user and the service Telephone at the hub the European Commission recently
provider. So far, two systems are in use decided that Internet phone links need
to realise the communication between The drawing in Figure 1 illustrates how not be subject to special regulations.
the Internet and you, the end-user. The todays Internet connections are built This decision may be revised, however,
vast majority of individual users will up. The end-user relies on his/her tele- when we enter the year 2000 and the
faithfully connect to their ISPs by way of phone line to dial the Internet Service EEC will look into the problems again.
the public switched telephone network provider (ISP). In this way, the end-user Until that time, Internet providers are in

PC TOPICS Elektor Electronics EXTRA 3 - 4/98


DirecPC SATELLITE

WEB SITES are


zipped at 400 Kbps

the NOC sends the data


straight to your at 400 Kbps to
DirecPC DISH

HOW
DirecPC
WORKS
DirecPC
Network
CABLE LINE Operations
Center
(NOC)
information is
transferred to

to the
to your ISP WEB SERVER
through your
MODEM your request
is directed
START: Your PC sends 980018 - 12
a request

Figure 2. Using DirecPC the end-user employs a modem and a telephone line to dial into the server of his ISP , sending a
request for information. The requested information is returned over the air by means of a fast satellite link.

a position to offer national and inter-


national telephone services to their cus-
tomers. True, these services have their
limitations. What counts, however, is that
they are always cheaper than any
overseas call. Consequently, telephone
companies have rushed to promote
the development of this new Internet
application.
The EEC reached this decision because
the prevailing opinion is that Internet
telephony is not a separate service
aimed at making a profit, but rather an
extension of Internet services already
available to the public.

Analogue modems
A number of modem types are cur-
rently available for connecting to a
regular telephone line. The theoretical
speeds achieved by these modems
range from 14k4, 28k8 and 33k6, up to
56k. The first three rely on symmetrical

4 - 4/98 Elektor Electronics EXTRA PC TOPICS


connections with the same speeds may be aggregated (bundled) to give existing infrastructures can handle a
being available for the upstream and a single channel with a capacity of lot more than just two dozen or so TV
downstream data. The latter modem 128 kbits/s. Doing so (in theory) creates programmes. Using a cable modem
type, generally referred to as 56k, a bandwidth that is four times larger and a hefty investment in the layout of
employs an asymmetrical connection. than can be achieved with a 33k6 existing cable networks and their infra-
Moreover, because of its special tech- modem. structures, it should be possible, in
nology, a 56k modem may only be A third channel (D channel) with a principle, to realise two-way high-
used if the Internet provider supports bandwidth of 16 kbits/s is reserved for speed data communication. As far as
the relevant protocol, and a suitable special control and signalling functions speed is concerned, the cable
telephone line is available. within ISDN. Although there are a few modem (if available privately) is then
It is generally assumed that 56k telephone companies that put this likely to become the fastest link to the
modems are pushing the limits of what extra bandwidth at the users disposal Internet. Because the standard behind
can be achieved in terms of band- for a permanent link to the Internet, the these modems has not yet been
width on ordinary (copper) telephone bandwidth is generally of no use to finalised, it is not yet possible to give
lines. No doubt, new technologies will customers. Although this channel offers exact figures as regards the speeds
be developed that allow service only a small bandwidth, it is perfect for achieved by this new technology. An
providers to offer higher bandwidth transmitting information with modest educated guess, however, is 2 to 10
and thus more speed to their cus- speed requirements. For example, million bits per seconds, which is far
tomers. email messaging and Stock Exchange more than the 128 kbits/s and
data. While you make a telephone 33.6 kbits/s (theoretical) maximum
ISDN, a fast alternative call, data is automatically retrieved rates offered by ISDN and plain tele-
from the Internet. phone lines respectively.
In the UK, ISDN is currently the fastest and However, a real breakthrough with a When talking about cable modems,
affordable way available to small busi- promise of much higher data rates calls a distinction is made between sym-
ness users to jump the Internet band- for a totally different approach. It is there- metrical and asymmetrical connec-
wagon, and be assured of reasonable fore not surprising to note the arrival of tions. An asymmetrical link means
speed. Unfortunately, British Telecom, service providers that are not telephone that the path between the user and
unlike some of its Continental counter- companies at all. These newcomers look the service provider is slower than the
parts like Deutsche Telekom and PTT poised to modify their own infrastructures path in the opposite direction. This sit-
Netherlands, for some reason maintains in such a way that it is capable of carry- uation may be compared to that of
ISDN price levels which are ludicrous, ing high-speed data traffic. the 56k modem. None the less, the
and way beyond the reach of private speed of this slow upstream channel
individuals. By cable TV network is still 500 kbits/s, which is impressive
A standard ISDN connection (BRI, Basic when compared with what is normally
Rate Interface) offers two channels (B A growing number of cable-TV network feasible using the standard tele-
channels) of 64 kbits/s each, which operators are beginning to realise that phone network.

PSTN = Public Switched


Telephone Network
TE = Telephone Exchange
PSTN
TE TE

twisted twisted
pair pair
xDSL xDSL xDSL xDSL

IP Router IP Router IP Router


IP

IP Router

980018 - 13

Figure 3. With XDSL modem techniques (i.e., ADSL and VHDSL), high-speed data is sent down twisted-pair copper cables,
along with ordinary telephone traffic (PSTN or ISDN ). At the local telephone exchange, the data traffic is sent to an IP router.
Next, the traffic is arranged via the Internet.

PC TOPICS Elektor Electronics EXTRA 5 - 4/98


Internet service providers also use proxy The highest data speed that may be Still faster
servers to make access to popular web achieved using a satellite dish is about
sites as fast as possible. A proxy server 400 kbits/s, which is more than three Although ADSL allows an Internet con-
holds instantly available copies of these times as fast as an ISDN connection. The nection to be established that is pretty
sites. Being closer to the end-user, new technology has a snag, however. fast by todays standards, VHDSL (very
popular web pages can be loaded The dish only allows the reception of high-speed digital subscriber line)
much faster from a proxy server than data (downstream) upstream data is makes it possible to convey datas-
from the server operated by the origi- still sent by ordinary telephone lines. So, treams of about 10 Mbits/s over twisted-
nal site builders. A dedicated proxy theres still a telephone bill to pay in pair copper wires. A disadvantage of
server prevents users from going under addition to the monthly charges raised this protocol is, however, that the largest
in the very busy traffic on the Internet by the Internet service provider. distance that may be covered using
proper. In case the user needs to obtain infor- copper wires is even shorter than the 3
Cable modems are equipped with an mation via the Internet, he/she has to to 5 km achieved by ADSL. However, the
Ethernet connection, and are incorpo- dial into the ISPs server (by telephone) distance that may be covered using
rated in a small network using a PC- and send the relevant request. The ISP fibre optics and VHDL is, in principle, infi-
hosted Ethernet interface. The main has a fast link to the Internet, and will nite. Considering the innovations cur-
advantage of this set-up is that the respond to the call by uploading the rently implemented in the many parts
modem connection with the Internet is relevant data to the satellite. The of the telephone network, the fibre
always available, which means that no satellite, in turn, arranges the trans- optic cable is rapidly approaching
time is lost on dialling in and logging mission of the requested data to the your doorstep. In other words, those
on. Moreover, the bottleneck effect of users dish. This rather cumbersome copper wires are getting shorter all the
a slow serial port is eradicated. approach, which causes an enor- time.
Because the PC communicates with the mous detour for the data, is of partic- Obviously, the coming years will deliver
cable modem by means of the TCP/IP ular interest whenever large amounts many changes in fast digital connec-
protocol, special software is not of data are needed. None the less, tions to our doorstep. As a result, there
required. when compared with competitive sys- are fantastic opportunities for
To the computer user, the application tems, Internet by satellite supplies advanced digital services like per-per-
of an Ethernet interface means that only average results at pretty high view and video on demand.
data may always be found rapidly, but cost. This makes the system a non- (980018)
also that he/she has to pay attention to starter for private users, at least, for
files that have been marked as the time being.
shared. If these files can be accessed
without a password, other Internet users ADSL: phone lines go digital
may get at them.
As we write this article, the use of cable As communication lines used for the
modems is limited to a couple of telephone network become more pow-
experiments only. Clearly, it will take erful, it seems that there is an increas-
some time for cable companies to get ing danger of the link between the user
used to the idea of seeing their infra- and the local telephone becomming a
structure carry two-way data traffic. bottleneck. In practice, the 2-wire
Consequently, all cable distribution twisted-pair copper cable that brings
amplifiers have to be adapted, and the telephone network to your home is
large parts of the network have to be not very long, and it lends itself to cre-
replaced by fibre optic cables. Once ating faster links provided new modem
this has been done, the cable modem technologies are employed.
is probably the fastest way to cruise the ADSL (asymmetric digital subscriber line)
Internet. However, cable penetration is a new digital network technology
being modest in the UK as compared capable of employing copper wire
with, say, Germany and The Nether- pairs as used in the telephone network.
lands, the cable modem may be a On average, a bandwidth of
non-starter in this country. 1.5 Mbits/s is available if you download
data over an ADSL line. The uploading
By satellite speed is 64 Kbits/s. This asymmetric
structure lends itself very well to Inter-
The advantage of a wireless data link, net use because the typical user will
for example, by satellite, is that addi- send far less data to the server than
tional infrastructure is (in principle) not he/she receives from the server. This
required. In the USA and Germany, it is digital bandwidth is available besides
currently possible to use a satellite dish a regular telephone service, and is
to receive information from the Internet. suitable for combining with ADSL in the
This new, wireless, link guarantees fast near future.
traffic even under adverse conditions. The new ADSL system is in popular use in
The first service provider to make Inter- a number of areas. In Canada, more
net access by satellite a reality is a US than 30% of the telephone companies
company called DirecPC, a subsidiary support this protocol. In other countries,
of DirecTV. The company specialises in ADSL is the subject of extensive experi-
television services by satellite. ments.

6 - 4/98 Elektor Electronics EXTRA PC TOPICS


This filter fulfils three functions: it acts as a in-phase fil-
ter for common-mode noise and as an antiphase fil-
ter for differential-mode noise, and it also protects
the connected circuit against overvoltages and tran-
sients on the mains lines.
Design by H. Bonekamp

Mains filter with


overvoltage protection
increases the noise immunity of sensitive circuits

the manufacturers datasheet. It is thus


quite reasonable to present a design
for a universally usable mains filter
whose parameters and operating prin-
ciples are at least fairly well known.

In-phase operation
You can find a good theoretical intro-
duction to the subject of mains noise
in the article Mains-noise suppression
in the June 1997 issue of Elektor Elec-
tronics. In the present article, we con-
centrate on common-mode and dif-
ferential-mode noise. The difference
between these can be explained with
reference to Figure 1.
If the noise current flows from the
source of the disturbance through
both mains leads L (live) and N (neu-
tral) to the noise recipient, and then
returns via the protective earth lead,
PE, and the earth, this is called com-
mon-mode or asymmetrical noise. If
on the other hand the noise current
In the last few years, electromagnetic Designing a circuit with no regard to its flows through one mains lead to the
compatibility (EMC) has become an EMC behaviour, and then making it noise recipient and then returns via the
important consideration in the design compliant by packaging it in a metal other mains lead (but not via the
of electronic circuits. The designer has enclosure with a mains filter, will in earth), this is called differential-mode
an obligation to achieve a low level of most cases turn out to be an (expen- or symmetrical noise. As a rule, most
emissions and a high degree of immu- sively) mistaken approach. Adding a differential-mode noise lies under
nity to external noise, not only for cir- mains filter to a circuit which has 500 kHz and most common-mode
cuits that specifically work at high fre- proven to be overly susceptible to noise above 500 kHz.
quencies but also for most computer, external noise, in spite of the use of all
microcontroller and audio circuits. In other countermeasures, can only be
order to meet this objective at an regarded as a desperate solution.
appropriate cost, passive and active Mains filters are thus required even for
Technical data
EMC measures must be taken in all DIY projects, prototypes and laborato- Voltage: 230 V-
stages of the development process. In ry models. With commercial mains fil- Maximum current: 2A
principle, one can say that the later ters, the designers usual problem is Common-mode noise suppression:
that such measures are introduced in first to select a suitable filter from the (-3dB at 18 KHz): 50 dB
the course of development, the more profusion of types available, and then Differential-mode noise suppression:
difficult and expensive they are to to employ it in a manner which more (-3dB at 35 KHz): 50 dB
implement. or less meets the conditions stated on

8 - 4/98 Elektor Electronics EXTRA PC TOPICS


noise source noise recipient
The mains filter consists of nine careful-
ly chosen components. The most note- L
worthy is the current-balanced choke Cy
L, which has two identical windings Cx Cx R
Cp Cp
wound in the same direction on a Cy
toroidal core. The effect of this choke N
is different for common-mode and dif-
ferential-mode noise. A current flowing
through a winding generates a mag-
netic flux in the core. With common- PE
mode noise, the noise currents flow
through both windings in the same asymmetrical noise current
982032 - 15
direction, so that the two magnetic symmetrical noise current
fields add to each other. A common-
mode noise current thus sees the full
Figure 1. Basic operation of a simple filter between a noise source and a noise recipi-
inductance of the choke.
ent. Note the different paths for asymmetric (common-mode) and symmetric (differen-
The combination of the inductor and
tial-mode) noise currents.
the two capacitors Cy acts as a low-
pass filter for common-mode noise. In
order to quantify the attenuation char- form, are due to two LC networks with these are Y2-class capacitors with
acteristics of this filter, we can consider resonance frequencies fCM1 = superior mechanical and electrical
Figure 2, which depicts the filter ele- 1/2LCp and fCM2 = 1/2LpCy. safety characteristics. Y-class capaci-
ments for one mains lead together with In order to achieve the maximum pos- tors are constructed such that no
the parasitic components that are sible attenuation, it is preferable to use mains voltage can reach the safety
most significant for common-mode a toroidal core with a high relative per- earth lead under any circumstances
currents, namely the parallel capaci- meability (r) since this results in a cur- (including destructive failure). The
tance of the choke and the series rent-balanced choke with high induc- Siemens Y-class capacitors used here
inductance of the capacitor. This filter tance. However, non-linear effects are only available in values up to
33 nF. Although selecting a set of com-
Cp
ponent values for the common-mode
filter may appear to be as difficult as
squaring the circle, it has turned out to
Zg L be quite easy.
L, N The values of the parasitic compo-
nents depend not only on the con-
Lp
struction of the actual components
U CM used, but also on the capacitive cou-
Zv
Ug pling of the filter with its surroundings
Cy and the inductive coupling between
the input and output leads. For this
reason, (multistage) filters intended to
PE N, L
achieve very high attenuation are
always housed in well-screened
noise source filter noise recipient
tinned-metal enclosures. Such enclo-
982032 - 12

Figure 2. Equivalent circuit for common-mode noise. Only one lead (L or N) is shown.
100
D
has an attenuation characteristic with due to the saturation of the core are (dB) fDM
three regions, as shown by the dashed undesirable; in other words, the peak 80
line in Figure 3. (Most commercially noise currents should not exceed a
available mains filters have a similar certain value although it is precise-
DM
characteristic.) The low-frequency ly these unpredictable noise peaks 60
passband region is dominated by the which the filter is supposed to render CM

low-pass LC combination (fres = harmless. The capacitors can be rela-


1/2LCy) and has a slope of tively small, due to the high induc- 40

12 dB/octave; the effect of the para- tance of the choke windings. This is for- L Cp
sitic components is negligible in this tunate, since otherwise the leakage C
20
region. In the high-frequency region currents through the capacitors to PE Ls

the situation is exactly the opposite: could become large enough to trip
the parasitic components form a 12- the earth-leakage current breaker 0
dB high-pass filter (fres = 1/2LpCp) (ELCB). In addition, suitable capacitors 10 100 kHz 1
f
10 100 MHz
fCM1 fCM2
which allows very-high-frequency that are approved for use in such filters 982032 - 13

common-mode noise to pass with are only available with relatively small
almost no attenuation. The two points values. Specifically, only so-called
Figure 3. Attenuation characteristics for
of maximum attenuation, between EMI-suppression capacitors meeting
common-mode noise (dashed line) and
which the attenuation is relatively uni- the EN132400 standard can be used;
differential-mode noise (solid line).

PC TOPICS Elektor Electronics EXTRA 9 - 4/98


Zg L stray for the balanced choke (2 A). The two
L resistors R1 and R2 serve to quickly dis-
charge C1 and C2 when the mains
plug is pulled. Be sure to use two
U DM series-connected resistors as indi-
C X1 C X2
Ug
Zv cated, since a single (470-k) resistor
is normally not suitable for connection
across the mains voltage.
We now come to the last of the three
L stray functions of the filter: overvoltage pro-
N tection. As can be seen from the
attenuation characteristics, the filter
filter section 1 filter section 2 noise recipient has practically no effect on high-fre-
982032 - 14 quency noise. This also applies to
fast transients
Figure 4. Equivalent circuit for differential-mode noise. The source imped-
ance and input capacitor form the first filter stage.

sures are divided into several isolated mode noise. EMI-sup-


compartments for the individual filter pression capacitors in
sections. the X class (MKT or poly-
ester) meeting the
Antiphase operation EN132400 standard are
available with values
The impedance of the mains network up to 2.2 F in the
is negligibly small at low frequencies. series which is used
For higher-frequency differential- here. Significantly
mode noise the source impedance smaller demands are
can reach values of more than 100 , placed on X-class capaci-
which makes it a significant factor with tors than on Y-class capaci-
regard to the mains filter. As shown in tors, since they cannot
Figure 4, the combination of the cause much damage even
source impedance Zg and the capac- with when they are defective (a short-
itor Cx1 forms a 6-dB low-pass filter with ed capacitor will simply result in a (noise spikes)
a relatively high corner frequency blown fuse). With this set of component which can have amplitudes of
(f-3dB = 1/2ZgCx1)). For differential- values, the effect of the relatively small up to several kilovolts and durations of
mode noise the current flows in oppo- Cy in parallel with Cx is not significant. 0.1 s to 1 ms. In order to tame such
site directions through the two wind- The reactive current is of course rather disturbances it is fully adequate to
ings of the choke, so that the opposing large due to the large value of Cx, but connect a varistor (a voltage-depen-
magnetic fields cancel each other this does not have much effect on the
out. Differential-mode noise currents ELCB.
thus see only the small stray induc- COMPONENTS LIST
tance of the windings (Lstray), which Safety measures Resistors:
results from imperfect coupling and
amounts to roughly 1% of the nominal The mains filter presented here, whose R1,R2 = 220 k
inductance. The value of Cx2 is chosen complete schematic is shown in Fig- R3 = 275V SIOV-S20k275
to be a factor of 100 times that of Cy ure 5, includes certain components (Siemens)
in order to shift the attenuation curve which assure additional safety. The first Capacitors:
for differential-mode noise to the same of these is the fuse F1, which limits the
C1,C2 =470nF 250VAC class X2,
frequency range as that for common- current to the allowable nominal value Siemens B81133-D1474M000
C3,C4 =4nF7 250VAC class Y2,
Siemens B81121-CB143
K1 K2
F1 SIOV-S20K275
Inductor:
2A T L1 = 2 x 5.6mH/2A 250VAC,
P P
220k

R1
R3 Siemens B82723-A2202-N1
L1
C1 C2 C3
N X2 X2 Y2 N Miscellaneous:
470n 470n 4n7
220k

R2 B82723-A2202
-N1 275V
F1 = fuse, 2A slow, with PCB mount
2x 5mH6/2A holder.
K1,K2 = 3-way PCB terminal block,
C4 pitch 7.5mm.
Y2
4n7 Case: Bopla SE432DE.
982032 - 11
PCB, order code 982032-1, see
Readers Services page.
Figure 5. The complete schematic diagram of the mains filter with its nine components.

10 - 4/98 Elektor Electronics EXTRA PC TOPICS


1-230289 982032-1

H3

H2
F1 2AT
982032-1
L1

P K1 C2

C1 R1
C4
N
R3
R2

C3

K2

H1
H

N P

Figure 6. The circuit-board layout guarantees a safe construction in a mains-plug enclosure.

dent resistor) across the mains lines. the mains voltage (and for the varistor
Such a component has a very high characteristics) a nominal varistor volt-
resistance for voltages lower than its age of 275 volts appears to be appro-
rated voltage, and a very low resis- priate. For the varistor to do its job
tance for voltages above this value. properly, a series resistance is neces-
Considering the allowed tolerance for sary to absorb the excess voltage.
The source impedance of the mains
network, which rises with
increasing frequency,
signal wires
comes into play here. In the
frequency range in question
good (10 MHz and above), the
source resistance Zg is
greater than 150 , which is
circuit more than enough for prop-
er operation of the varistor.

filter Construction and


use
We have developed a cir-
Figure 8. Only these special components
cuit board for the mains filter
may be used in the construction of the
(Figure 6) with a layout
mains filter!
which meets all applicable
safety regulations. Mounting
the individual components is
no problem, but the follow- the circuit board do no allow this with
signal ing must again be empha- the specified enclosure. In order to
wires sised: keep the crosstalk between the input
Use only the components and output as small as possible and
which are specified in the meet the specified attenuation values,
components list. Only the input and output leads should be
these components (as kept well away from each other. The
circuit opposed to standard attenuation factors of commercial
types) meet the rather mains filters cannot be achieved with
strict safety requirements a plastic enclosure. One should there-
filter for this project! fore consider using a tinned-metal
The circuit board for the filter enclosure if the filter is to be perma-
should be built into a enclo- nently integrated into a piece of
sure with a mains plug and equipment. The manner in which the
socket in such a way that filter is mounted is then critical. Refer to
the plug and socket do not Figure 7, which shows what can go
sit directly across from each wrong and how to do it right.
other. The mounting holes of (982032)
not good
Figure 7. Good and bad ways of mounting of a fully screened mains
983032 - 16 filter in an equipment enclosure.

PC TOPICS Elektor Electronics EXTRA 11 - 4/98


Every modern computer has an advanced IEEE 1284
parallel port. Thanks to this interface, the printer port
can be used for more than just driving a printer. In
some respects, the performance of this interface
comes close to that of an 8-bit SCSI interface.

The modern printer port


IEEE 1284 is quickly gaining ground

The problems which have faced sys-


tem designers in the development of
these new applications can be gener-
ally attributed to three factors. The first
is that the performance level of the
parallel port has been stuck at rough-
ly 150 kbytes per second, while PCs
have become increasingly power-
ful. The second is that there is no
standard for the electrical inter-
face, which results in compatibil-
ity problems between various
platforms. Finally, due to the
lack of standards the maximum
practical cable length is limited
to about 1.5 metre.
In 1991, printer manufacturers
got together and started dis-
cussing a new standard. These
manufacturers, which included Lex-
mark, IBM, Texas Instruments and
many others, created the Network
Printing Alliance (NPA). The NPA in turn
defined a number of features which,
once they were implemented in the
computer and the printer, would allow
total control over the printer.
Already during the definition of these
features it became clear that this
objective could only be realized if a
The standards for the modern bi-direc- IBM chooses high-performance parallel port was
tional printer port are laid down in the built into the PC. The standard parallel
document IEEE Std. 1284-1994, Stan- When IBM introduced the PC in 1981, port could not be used for this pur-
dard Signalling Method for a Bi-direc- they opted for a fast 8-bit parallel pose.
tional Parallel Peripheral Interface for interface for driving the printer. This In response to an invitation from the
Personal Computers. This standard is approach was preferred to a serial IEEE, the NPA ultimately developed a
a conceptual description of a very fast interface (RS232), which was very pop- new standard for a high-speed bi-
bi-directional parallel connection ular at that time. directional printer port. The precondi-
which with regard to data communi- At the time of the PCs introduction the tions were that the new port must be
cation is 50 to 100 times faster than the printer was the most important client hardware- and software-compatible
original parallel port. Yet the new port for the parallel port. In the meantime with the existing port and that it must
is still compatible with the older paral- there have been many technological be able to achieve a data transfer
lel port and the printers which can be developments, and the parallel port is rate of at least 1 Mbyte/s in each
connected to it. Before looking at the now used to connect the PC to scan- direction. The working group was
principles of IEEE 1284, its a good ners, CD-ROM players, portable disk assigned the name IEEE 1284 and
idea to re-examine the standard par- drives, tape streamers and other PCs, the resulting standard, IEEE 1284, was
allel interface. as well as to printers. established in March of 1994.

12 - 4/98 Elektor Electronics EXTRA PC TOPICS


The parallel port
The parallel port of a PC utilizes 17 sig- 1 2 3 4
nal lines and 8 earth lines. The signal
Data Lines Data Valid
lines are divided into four control sig-
nals, five status signals and eight data BUSY
signals.
In the basic concept, the control lines
serve for driving the printer and pro- STROBE
viding the handshaking. The status
lines also play a role in the handshak- ACK
ing, and in addition they provide the 982041 - 11
Busy signal and indicate error condi-
tions in the interface or peripheral
device. Finally, the data lines are used Figure 1. The timing of the standard parallel port (SPP).
to transfer data from the PC to the
printer. Some time after its introduction,
the port was slightly improved to allow Table 1. Signal definitions.
bi-directional data transfers. Nibble
SPP-Signaal Mode Byte Mode EPP Mode ECP Mode Pin (DB25) In/Out
The first column of Table 1 lists the sig-
nals which are used with the Standard Strobe\ Strobe\ HostClk Write\ HostClk 1 Out
Parallel Port (SPP). The port itself
AutoFeed\ HostBusy HostBusy DataStb\ HostAck 14 Out
receives an address in the PCs I/O
space, where it utilizes three locations. SelectIn\ 1284Active 1284Active AddrStb\ 1284Active 17 Out
The base addresses of these ports,
which are often referred to as LPT Init\ Init\ Init\ Reset\ ReverseRequest\ 16 Out
addresses, are 3BCH, 378H and 278H Ack\ PtrClk PtrClk Intr\ PeriphClk 10 In
respectively. Newer implementations
of the parallel port, which support the Busy PtrBusy PtrBusy Wait\ PeriphAck 11 In
advanced-mode features of the IEEE
PE AckDataReq AckDataReq UserDefined AckReverse\ 12 In
1284 standard, use 8 to 16 locations
starting at I/O address 378H or 278H. Select Xflag Xflag UserDefined Xflag 13 In
The addresses may also be adapt-
able, as for example with a Plug and Error\ DataAvail\ DataAvail\ UserDefined PeriphRequest\ 15 In
Play-compatible parallel adapter Data[8:1] NotUsed Data[8:1] AD[8:1] Data[8:1] 2-9
card.
\ = actief laag niveau
IEEE 1284: the approach
Several different communication correspond to the functions which they Compatibility mode is available, and
modes are defined in the IEEE 1284 have within that mode. communication from the outside world
standard. For example, the Compati- toward the computer is possible with
ble and Nibble modes can be real- Five modes the Nibble mode (4-bit data, compat-
ized with any existing parallel port. ible with Hewlett-Packard Bi-tronics)
They allow data to be exchanged in If we look more closely at the IEEE 1284 and the Byte mode (8-bit data). Two-
two directions. The Compatibility and standard, we see that there are five way traffic is possible with the EPP and
Byte modes allow a bi-directional data modes which are defined in the stan- ECP modes.
channel to be opened, but a prereq- dard. Each of these has its own com- The EPP (Enhanced Parallel Port) mode
uisite is that the ports used must sup- munications possibilities. For communi- is intended to be used in combination
port the Byte mode. In practice this cation from the PC to the printer the with devices other than printers, such
means that it must be possible to read
a data byte from the external data
lines. This is usually implemented by
incorporating a direction bit in the
control register. Ports which provide this
1 2 3 4 5 6
support are commonly called bi-
directional parallel ports. The EPP and
Host Busy
ECP modes support two-way commu-
nications, since this is part of their pro-
PtrClk
tocol. However, these modes require
that the hardware includes arrange- DataAvail
ments for automatically generating XFlag BITS 1 - 4 BITS 5 - 8
the handshaking signals which are AckDataReq
PtrBusy 982041 - 12
necessary for high-speed data trans-
missions.
Finally, it should be noted that with the
exception of the Compatibility mode, Figure 2. Nibble-mode data transfers. Two cycles are necessary to send a single 8-bit
each mode renames the status lines to byte.

PC TOPICS Elektor Electronics EXTRA 13 - 4/98


to the PC. The peripheral device uses
1 2 3 4 5 6 7
these lines to send each data byte (8
bits) as two successive 4-bit nibbles.
IOW Figure 2 shows the timing diagram of
Nibble mode. Since the ACK line is nor-
WRITE mally used to allow the peripheral
device to communicate with the PC,
DataStrobe the bits which are packed into each
nibble are recovered from the status
register, but they are not arranged
WAIT
here in a logical order. The software
thus has to do quite a bit of translation
Data <8:1> Valid Data
in order to rearrange the bits in the
correct sequence. The second column
982041 - 13a
of Table 1 shows how the SPP signal
lines are used in the Nibble mode.
The Nibble mode is the most com-
pute-intensive with respect to the soft-
IOR
ware. For this reason the data transfer
rate is rather low: at most roughly
WRITE 50 kbyte/s. Such a low data rate is a
problem for fast peripheral devices
AddrStrobe such as LAN adapters and CD-ROM
drives. The most important advantage
of this mode is that it can be used on
WAIT
every PC (old and new).

Data Valid
Byte mode
982041 - 13b

In later versions of the parallel port, the


manufacturers switched over to chips
which made it possible to use the print-
Figure 3. Timing of Data_Write and Address_Write cycles in the EPP mode
er port in both directions. With such an
interface, a peripheral device can
send data to the PC eight bits at a
as (for example) CD-ROM drives, tape checked to see whether the Busy line is time. Splitting each byte into two suc-
streamers, hard-disk drives, networks active or the printer has reported an cessive transfers, as in the Nibble
and so on. The ECP (Extended Capa- error. After this, a strobe pulse is issued. mode, is thus no longer necessary.
bility Port) mode is an improved printer Figure 1 depicts the timing of the Com- The rate at which the PC can read in
port which can be used with a new patibility mode. In practice, the maxi- data with this mode is comparable to
generation of printers and scanners. mum speed which can be achieved the rate at which it can write data to a
The most important difference with this interface is 150 kbyte/s. peripheral device in the Compatibility
between the Compatibility, Nibble Many of the integrated-circuit 1284 mode. Column 3 of Table 1 shows how
and Byte modes on the one hand and controllers use a FIFO to manage the the SPP signal lines are used in the Byte
the EPP and ECP modes on the other data handling in the Compatibility mode.
hand is that with the first group the soft- mode. This arrangement is often
ware is responsible for handling the described as fast Centronics or par- EPP mode
complete communications protocol, allel port FIFO mode. If this feature is
while with the second group the han- available, then the hardware takes The Enhanced Parallel Port (EPP) mode
dling of data communications is in care of generating the strobe pulses was originally developed by Intel, Xir-
many cases almost completely imple- and manages the complete hand- com and Zenith Data Systems as a
mented in hardware (in the form of shaking process. In this way it is possi- parallel port which is compatible with
super-I/O chips). Thus with EPP mode a ble to achieve data transfer rates of the standard printer port but which has
simple OUT instruction is all that is 500 kbyte/s. However, you must keep a higher level of performance. Intel
needed to dispatch data to a periph- in mind that this feature is not part of built the protocol which is used for this
eral device. the IEEE 1284 standard. mode into the 386SX chip set (82360
I/O chip). This development occurred
Compatibility mode Nibble mode before IEEE 1284 was initiated.
The EPP protocol had many advan-
This mode defines a protocol which The Nibble mode is the method which tages, and was quickly adopted by
the PC can use to send data to the is most commonly used when data many manufacturers. A group of
printer. This protocol is commonly must be sent from the outside world to 80 manufacturers ultimately took the
known as the Centronics interface, the PC. It is often combined with the initiative to extend and promote the
named after the manufacturer which Compatibility mode in order to realize protocol. Subsequently, care was
originally developed the interface. In a bi-directional channel. Five lines of taken to see that this protocol was
this mode, data are first placed on the the standard parallel port are used to adopted by the IEEE 1284 group and
data lines and then the status lines are transfer data from a peripheral device incorporated into the standard as one

14 - 4/98 Elektor Electronics EXTRA PC TOPICS


Table 2. EPP register definitions. 3 Address_Write cycle, communication between the PC and
4 Address_Read cycle. the peripheral equipment. There are
PortName Offset Mode Read/Write
The purpose of the data cycles is to two types of cycles in the ECP proto-
SPP Data +0 SPP/EPP W exchange data between the comput- col:
er and a peripheral device. The
SPP Status +1 SPP/EPP R
address cycles are used either for 1 data cycle,
SPP Control +2 SPP/EPP W address, channel or control informa- 2 command cycle.
tion or for commands. Table 1 also
EPP Address +3 EPP R/W shows (in column 4) how the signal The command cycle can be further
EPP Data +4 EPP R/W
lines are used in EPP mode. Figure 3 divided into two types: Run Length
shows the timing diagrams for an EPP Count and Channel Address. Lets now
Not Defined +5...+7 EPP see what these mean in practice.
In contrast to the situation with EPP, a
standard register arrangement was
Table 3. ECP register definitions. proposed as part of the ECP protocol.
Offset Name Read/Write ECP Mode Function This arrangement is described in the
document The IEEE 1284 Extended
000 Data R/W 000-001 Data Register Capabilities Port Protocol and ISA Inter-
face Standard, which was published
000 ecpAfifo R/W 011 ECP Address FIFO
by Microsoft. This document describes
001 dsr R/W all Status Register supplementary features and functions
which fall outside the scope of the IEEE
002 dcr R/W all Control Register 1284 standard. In this regard it is worth
400 cFifo R/W 010 Parallel Port Data FIFO mentioning the following: Run Length
Encoding (RLE) data compression for
400 ecpDfifo R/W 011 ECP Data FIFO computers, FIFOs for data channels in
both directions, and DMA and pro-
400 tfifo R/W 110 Test FIFO
grammed I/O for the computer.
400 cnfgA R 111 Conf. Register A With the aid of RLE, a data compres-
sion factor of 64:1 can be achieved.
401 cnfgB R/W 111 Conf. Register B
This is ideal for scanning and printing
402 ecr R/W all Extended Control Register applications in which large blocks of
identical information can occur in
data files.
Table 4. ECP register modes. Data_Write cycle and an EPP Channel Addressing is conceptually
Mode Description Address_Read cycle. an extension of the addressing
One of the most important advan- scheme used in EPP. This technique is
000 SPP mode tages of this type of port is that the used to allow multiple functions to be
whole data transmission can be han- housed in a single physical enclosure.
001 Bi-directional mode
dled by a single ISA I/O cycle. The For example, consider the combina-
010 Fast Centronics transmission rate can thus range up to tion of a printer, fax and modem. Con-
a maximum of 2 Mbyte/s. In this way necting a single piece of equipment
011 ECP Parallel Port mode the printer port can achieve a speed to a single parallel port then effective-
100 EPP Parallel Port mode which is comparable to that of an ly results in having three separate
interface on an ISA card. functional devices available: a printer,
101 (reserved) a fax and a modem. Thanks to the
110 Test mode ECP mode channel protocol, data can be
received from the modem at the same
111 Configuration mode The most powerful mode used with the time that the printer is busy printing out
parallel port is the Extended Capabili- a document.
ty Port (ECP) mode. The protocol for this In the ECP mode a number of new
comes from Microsoft and Hewlett- functions are assigned to the signal
of the improved modes. Packard. It is intended to be a very lines of the SPP interface. Table 3
There four ways in which data can be advanced communication option shows the new register structures that
sent in the EPP mode: between a PC and peripheral devices are used in the ECP mode.
1 Data_Write cycle, such as printers and scanners. The ECP The Microsoft specification defines a
2 Data_Read cycle, mode allows high-speed bi-directional number of common registers for IEEE

PC TOPICS Elektor Electronics EXTRA 15 - 4/98


Figure 4. The three types of connectors which are allowed by the IEEE 1294 standard.

1284 adapters connected via the ISA are mirrored back into this region. For Connectors
bus and also support ECP. It addition- example, selecting addresses 0x378H The IEEE 1284 standard does not limit
ally specifies a number of modes that and 0x778H with newer types of ISA itself to defining the structures of the
the adapter must support. These are cards gives access to two different ports and the electrical signals to be
summarized in Table 4. registers located in two different used. The mechanical specifications
The ECP register model is comparable banks, while with older-model cards of the connectors to be used are also
to that of a standard parallel port, but these two addresses will both access included in the standard.
it also makes use of an important fea- the same register. Three different types of connectors
ture of the ISA interface. In the stan- The advantage of this technique (types A, B and C) are proposed in the
dard IBM architecture only the first (which is called aliasing) is that new standard. Type A is a 25-pin sub-D
1024 register or I/O addresses are cards can have invisible registers and connector, which is long since a famil-
used. This is the address space starting thus can increase the maximum num- iar feature of the PC. Type B is the well-
at 0x000H and ending at 03FFH. Ten ber of available registers. With this known 36-position Centronics connec-
address bits (AD0:9) are required to approach, other I/O registers located tor, which can be found on many print-
address this region. on other cards will never be disturbed. ers. Type C, a miniature 36-pin con-
In order to keep costs down, the hard- In this way the new cards remain com- nector with retaining clips, is especial-
ware of older-model ISA cards uses patible with the older cards, which ly intended for use in new designs. This
signals from the ISA bus to help in can only decode 10 address bits. last type of connector takes up less
decoding the address. This automati- The ECP register model makes use of space on the circuit board, and it is
cally limits the number of addressable the aliasing technique. It defines six easily attached and removed thanks
registers to 1024. PCs that are more registers that use only three I/O to the retaining clips. An additional
modern decode more address bits addresses (see Table 3). Two registers important advantage of this connec-
and thus have a larger I/O address located at addresses 0x000H and tor is that with it two additional signals
space available. A consequence of 0x400H, respectively, have somewhat are added to the interface: Peripheral
this is that locations in the first 1K block different names and functions Logic High and Host Logic High. These
of the address space can be doubly depending on the ECP mode in which signals can be used to ascertain
addressed, since the limited address- they are used, as can be seen from whether the equipment at the other
decoding logic of older-model ISA the table. The fourth and fifth columns end of the cable is powered on. In this
cards generates mirror addresses in of Table 3 list the various ECP modes way a certain degree of power man-
this block from higher-level addresses. and identify the functions these regis- agement is made possible by the IEEE
Software can address the new register ters have for each mode. The actual 1284 standard. (982041)
banks by adding 1024 (0x400H) to the mode must always be selected in
base address which is used. The new advance by writing one of the mode
addresses thus lie outside of the origi- codes to register 0x402H.
nal 1K address region, but in fact they

16 - 4/98 Elektor Electronics EXTRA PC TOPICS


20-metre
SSB/CW receiver
a budget receiver
based on direct conversion

The receiver
described here is of
the Direct Conversion
type and is designed
for the 20-metre band
or, in new money,
14 MHz. The compo-
nents used are read-
ily available from the
junk box or can be
modified from stan- The 20-metre amateur radio band The RF part is concerned with the
(14 MHZ to 14.350 MHz in IARU Region 1) receiving of the signal. It consists of
dard components. is great for daytime DXing. During two sub-circuits: RF amplifier and fil-
The whole idea of periods of increased sunspot activity,
the band is open all the time, and the
ter, T1-L3-C2, and a VFO (variable-fre-
quency oscillator) T3-L1-C11. The
building simple radio 20-m band is buzzing with activity. band-pass filter around IC1 serves to
When there is little or no solar-flare clean up the received signal and make
projects is that they activity, the band is still usable for it much better to listen to. The fourth
can be constructed medium-distance communication dur- essential building block is the LM386
ing daytime hours and at sunrise and audio amplifier, which raises the
from the bits and sunset. Because the so-called MUF cleaned signal to loudspeaker level.
pieces found in the (maximum usable frequency) only Inductors L1 and L3 are home
exceeds 14 MHz around noon during made and the two tuning capacitors in
shack (a shack is a the winter months, a fairly large skip the receiver are preferably made from
zone has to be taken into account. tuning capacitors having larger capac-
radio amateurs Unfortunately, discussions on the intri- itance values more about this fur-
shed). cacies of radio wave propagation and ther on.
the impact of the solar cycle on radio The received signal from the aerial
communication are beyond the scope is fed into the source of a FET-based RF
of this article. The good news, how- amplifier, T1, configured in grounded-
ever, is that there are excellent books gate mode to present a low impedance
available on these subjects. to the aerial. The amplified signal is
tuned to the desired frequency by
CIRCUIT DESCRIPTION means of inductor L3 and variable
The circuit diagram shown in Figure 1 capacitor C2. This selected output is
may appear to be rather complicated at taken to a pair of diodes wired as a bal-
By Eric Edwards GW8LJJ first blush. There are four sub-circuits. anced mixer. The other signal used for

Elektor Electronics 4/98


14
Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

12V
* see text A 12V E 5V7 I 3V2

1 voir texte
* siehe Text
R19
B 1V4 F 2V3 J 6V

100
* zie tekst C C 10V6 G 5V2 K 1V4
*
C29 C4 R3 D 4V9 H 3V8 L 11V9
12V

1k5
M 5V8
10 63V 100n
T2

D1
E
L1
*
12...13V6
L3
* 2H2
12V 31mA
P1 T3 K1
C3 C5 BC 0V
a b
2x 550C C8 D3
1N4148
100n 1n D
C10
1k D2 100p 1N4001
F BF256B
15p
A R2 R4 R5
C6 C7 C9 8 C27 C28
T1

470

680

15k
C11 IC1
BF256B 150p 50p 4 100n 1000
220p 470p 16V
C1 B
C2
R1
10p
1k

100p
12V 12V

0V
R12 R17
1k

10
12V C17
L2 * R7 C20 K K
L

4n7 C23
10k

C22
J R11
4n7
G 150k J R16 47 1000 16V
1mH 0V
C15 R9 C16 75k IC2 16V
R6 2 0V 8
10k J C19 6
R14 3
C26
1M

0V 1 6 1 M 0V
470n 4n7 IC1a 10k C21 5
C13 T4 3
4n7 IC1b
7 LM386
2
J 5 100
10 4
J 16V
J 63V 7
10 LS1
63V H

10
BC550C J R18
I C24
R8 R10 R13 R15
C12 C14 C18 P2
M
4k7

2k7

1k

33k

10k 22 C25
IC1 = TL072 log. 16V 8
10n 22 100 16V
16V 100n

980036 - 11

Figure 1. Circuit dia-


mixing comes from the oscillator tuned 2 kHz with a band- gram of the direct- Radio Rally (there are quite
by L1 and C11. This signal is tuned to width of 900 Hz. It conversion receiver a few of these all over the
very nearly the same frequency as the is a Butterworth 4- for the 20-metre ama- country all year round), or
RF input signal. The difference is, in pole type. Basically, teur radio band. one can be specially pur-
fact, the resultant audio output after the filter will allow chased (although the price
suitable filtering. The output of the FET a 2-kHz signal to go would be pretty high).
oscillator is buffered by a BC550C down a path 900 Hz wide to get to the Alternatively, get hold of a 250-pF vari-
emitter follower and then fed to the audio amplifier. In this process of fil- able capacitor as used in old radios,
diodes to be mixed with the incoming tering, all the unwanted stuff is signal generators etc. or obtain one
signal. removed, including high-pitched from a Rally if you cannot get a 100-pF
The output from the mixer diodes, whistles (which only your dog could at a sensible price. The vanes of these
D1 and D2, is first applied to an RF hear), and low frequency hum that is capacitors are usually crimped onto
choke, L2, to remove the RF compo- only good for the older valve radio (or the main spindle. With a good pair of
nent from the mixer output signal, wireless). It also ensures all the remain- pliers, grip one of the inside vanes and
allowing the audio to pass through to ing RF is removed. The filter provides tug at it until it pulls free. If whilst tug-
the band-pass filter. the gain that is so essential to this type ging away at one of these vanes you
Across L3b is a preset control, P1, of receiver. The older passive type of start to look like someone entering G-
which may also be a good quality filters using coils and capacitors intro- force, give up as it is probably welded
potentiometer fitted to the front panel duces losses, so this design was chosen (I havent come across any that were).
still using stiff wire. It is there to sup- because of its advantages and easily Remove every other until you only
press AM stations. Without this control, available cheap components. have half the number of vanes left. If
breakthrough of unwanted commer- The filtered output signal goes to your capacitor is of the gang type, i.e.,
cial stations will render the receiver the top end of the volume control, P2. it has more than one set of tuning
useless. This receiver is for the recep- The wiper is taken to pin 3 of the vanes then you need only remove
tion of SSB (single sideband) and CW LM386 audio output amplifier. An R-C vanes from one of these sections. If
(continuous wave; also called Morse supply decoupling network, R17-C22, you have a capacitance meter, you can
code), although I have also used it to provides the LM386 with a clean sup- at this stage check your capacitor
receive amateur fax and slow-scan ply voltage. value. It does not have to be exact
television (SSTV; very popular in the 20- because the iron dust core in the coil
m band). BUILDING THE will adjust allowing for this. Carry out
The band-pass filter (BPF) built RECEIVER the same procedure for C11, the VFO
around opamps IC1a and IC1b is The 100-pF variable tuning capacitor, variable capacitor, only removing more
tuned to a centre frequency of about C2, may either be obtained from a vanes to reduce the capacitor value

Elektor Electronics 4/98 15


COMPONENTS LIST
2 10K1 10K1 Resistors:
R1,R12,R13 = 1k
R2 = 470
R3 = 1k5
R4 = 680
L3b R5 = 15k
(3 turns) R6 = 1M
R7,R9,R14 = 10k
R8 = 4k7
R10 = 2k7
R11 = 150k
R15 = 33k
R16 = 75k
L3a R17,R18 = 10
L1 R19 = 1k preset H
(15 turns) (15 turns)
980036 - 12 P2 = 10k logarithmic potentiome-
ter
Figure 2. Illustrating
the construction of Capacitors:
even further. C2 could the two home-made have removed the C1 = 10pF
be of the trimmer type inductors in the vanes, check for short C2 = 100pF variable capacitor or
trimmer (see text)
providing it has a spin- receiver. circuits caused by bent
C3,C4,C25,C27 = 100nF
dle to attach a control vanes. The tuning C5 = 1nF
knob. Actually, the capacitors should be C6 = 220pF
same could apply for C11 as well, pro- connected to the board using the C7 = 470pF
viding it will allow the fitting of a shortest possible wires. C8 = 100pF
slow-motion dial control. After you Inductors L1 and L3 are made from C9 = 150pF
C10 = 15pF
C11 = 50pF variable capacitor or
trimmer (see text)
C12 = 10nF
T 1-630089
980036-1
C2 C14 C13,C21,C29 = 10F 63V radial
3 C15 C14 = 22F 16V radial
H4

H1
tnemgeS )C(

T
R8

R6
R7

C12 C15 = 470nF


T1 C16,C17,C19,C20 = 4nF7
K1
R1

C3
C18,C26 = 100F 16V radial
L3 T4
C1 L2 R12 C18 C22,C28 = 1000F 16V radial
R13

C13
R9

C27 C23 = 4F7 16V radial


D2 C24 = 22F 16V
R16
D1
IC1

P1 C19 C16
Inductors:
R19 C20 R11
C29 L1 = 15 turns, 36 SWG (0.2 mm dia)
R14 C17 enamelled copper wire on Neosid
C5 10K1 coil assembly (purple core).
R15 R10
T2
R3

C4 C6 C21 D3 Alternatives; 10T1 (yellow core),


C22 10F1 (blue core).
R17
L2 = 1mH choke (see text)
R18
IC2 L3 = primary 15 turns; secondary 3
T3
R4

L1
C23
turns, 36 SWG (0.2 mm dia.) enam-
C7
elled copper wire on Neosid 10K1
R5

C24 coil assembly. Alternatives: 10F1


R2

C26
C9 C8 C10 P2 C28 and 10T1.
C25
H2

H3

T T LS
C11
Semiconductors:
D1,D2 = 1N4148
D3 = 1N4001
T1,T3 = BF256B
T2,T4 = BC550C
IC1 = TL072CP
IC2 = LM386N-1

Miscellaneous:
K1 = mains adaptor socket, PCB
mount
Printed circuit board, order code
980036-1, see Readers Services
page.
Loudspeaker, 8 , 1 watt

Figure 3. Artwork for the (sin-


(C) Segment

gle-sided) printed circuit


board (board available ready-
made, see Readers Services
980036-1 page).

16 Elektor Electronics 4/98


Visit our Web site at
http://ourworld.compuserve.com/homepages/elektor_uk

36 SWG (0.2 or 0.25 mm dia.) enamelled rewind of the VFO coil may be neces-
copper wire wound on Neosid type sary to solve the problem. In general,
10K1, 10F1 or 10T1 formers. The RF however, you should not have trouble
input tuning coil, L3, consists of 15 in finding the centre of the band. Right
turns (L3a, primary winding) and you now have the signal from the sig-
3 turns (secondary winding, L3b). Both nal generator, which should be modu-
are close-wound and connected to the lated to help resolve it. Reduce the size
pins of the 10K1 base as illustrated in of the signal until it is just audible,
Figure 2. An idea may be to secure the adjust L3 for the strongest signal. You
main winding, L3a, with candle wax are now ready to try the receiver on
or super-glue. When set, wind L3b in air. Remove the signal generator and
the same direction on top of and in the switch it off. Also switch off your com-
centre of L3a. Secure this winding and puter because those things generate so
remove insulation for soldering to the much noise you will think your
base pins of the plastic former. Check receiver is hyperactive. Hopefully by
the continuity of the coils at the base now you would have picked up a sig-
pins, and make sure that the screening nal off air. Adjust C2 and C11 for the
cans may be fitted later without caus- most comfortable reception together
ing short-circuits with excess solder with adjustment of the volume con-
blobs at the pins. trol. If AM (Amplitude Modulation) is
The RF choke, L2, is a ready-made breaking through, carefully adjust pre-
miniature type. It should be noted, set P1 (across the diodes ) for maxi-
though, that it probably gives inferior mum attenuation. It works!
performance when compared with a Throughout the preparation of this
real RF choke removed from some old article I have been constantly listening
equipment, probably because of the to many DX (long-distant) amateur sta-
relatively low Q (quality) factors of tions in SSB and CW, and have received
those modern miniature chokes. Radio some very good SSTV pictures from dis-
rallies and amateur radio suppliers will tant stations.
have these older (physically larger) If a signal generator is not available
types. for calibration, a general coverage or
The audio amplifier is of a well- ham radio receiver could be used.
proven design with a chip that is eco- Place the aerial lead of the commercial
nomic to buy. receiver near the oscillator circuit of
The printed circuit board designed your home-brew receiver, but not too
for the receiver has large copper areas close as to pull the oscillator of your
at the solder side to reduce stray radi- home-brew. This is not as accurate as
ation, and to enable all component the signal generator but will give you
leads to be kept as short as possible, an idea where you are. Once you are
which is essential to keep the circuit receiving off-air stations, these can be
stable. Use a slow motion dial for the compared with those on the commer-
main tuning, and ensure all wiring is cial receiver providing that receiver is
rigid, with the receiver built on a solid good enough! The main tuning control
chassis or framework. Do not use a does exactly what it states and the RF
front panel that bends as you tune or tune control peaks the signal to maxi-
you will never be able to track anyone mum. You may have to back this off
down. Good rigid construction with for those stronger (S9+) signals
neat short wiring is the secret to this
good performer. START LISTENING!
Enjoy building and using this little
IN USE receiver, I think you will be surprised
Set the tuning capacitors about half with the results.
mesh (mid-way) and the coil cores half One thing to bear in mind whether
way down the former, adjusting with you are listening on a home-brew or
a non-metallic tool, otherwise you will commercial short wave receiver is that
be left with iron dust but no core. With the reception is very much affected by
the aerial and the all-important earth the time of day/night and also the time
connected, turn the volume to about of year. Weather and atmospheric pres-
half way. sure will also affect the reception.
If a signal generator is available, set Radio amateurs use different fre-
it to 14.20 MHz. This is centre of the 20- quency bands at different times of the
metre band. The output of the gener- year, day and night.
ator is connected to the aerial socket of Finally, a directional aerial is much
the receiver, and is adjusted so that the better than a long untuned wire,
signal is heard but not too strong. If no although you will receive many DX sta-
signal is heard and providing all is tions with a long wire aerial.
okay with your construction, tune the 73s and good DX.
main tuning capacitor to bring in the (980036-1)
signal. If still nothing is heard, you
may be too much off frequency; this is
easily detected by swinging the signal
generator until a signal is heard. A

Elektor Electronics 4/98 17


f parking sonar
range monitor
to make parking safer

At some time or another, we all have to


Parking in crowded streets often causes ones park our car in a crowded street or car
car to bump into another one. Even though this park. Now, parking is something that
many of us never master well and con-
normally happens at very low speeds, it should sequently tends to make us nervous.
be avoided. The range monitor is an aid to The fear is that we will bump our car
into the one behind the space we have
keeping an eye on the distance between the selected. An aid to warn us when we
get too close to that vehicle is, there-
bumper of your car and that of the one behind fore, very welcome.
you. It is a compact device that may prevent The circuit described in this article
is a fairly straightforward design that
angry faces. actuates an alarm when there is an
obstacle at a preset distance of
30300 cm from the bumper of a vehi-
cle in which it is fitted. Such a distance
is fine in all practical conditions. It
takes over from a human aid who
indicates by means of hand signals
Design by H Bonekamp how far you can reverse your car.

Elektor Electronics 4/98


20
THE DESIGN
The range monitor is based on ultra- 1 frame delay receive detector
sonic transducers: a sender and a generator frame
receiver. It makes use of the natural
property that sound travels through
air at a virtually constant speed of
340 m s1. Any obstacle will reflect the
sound emitted by the transmitter,
which is then intercepted by the 40 kHz amplifier comparator
receiver. A measurement of the inter- generator
val between the time the sound is sent
and the time the echo is received
enables the distance to be computed.
The block diagram of the monitor
is shown in Figure 1. The frame gen-
erator produces rectangular pulses in
a fixed rhythm. The width of the
transmitter receiver
pulses determines the duration of the
frame. The intervals between the
pulses are long enough to prevent sig-
nal echoes from interfering with the 980030 - 12
frames.
The frames are modulated by a
40 kHz signal produced by a second Figure 1. Block diagram of the parking
generator. The modulated pulses are sonar. The distance is computed from
then applied to the transmit module. the time delay between the transmitted
The frequency of 40 kHz is not chosen and received pulses.
randomly, but is equal to the reso-
nance frequency of the transducer.
The timing diagram in Figure 2
clarifies the process. The output of the from the frame generator. Only when the sounding of a buzzer then indicate
frame generator and the signal applied at least five 40 kHz pulses are detected that the minimum set distance has
to the transmit module are waveforms will the output of the detector become been reached and that the driver
1 and 2 in this diagram. active. The lighting of an LED and/or should stop.
To ensure that an alarm is actuated
when an obstacle is present at a cer-
tain distance, say, 50 cm, the receive
frame must have some relation
to the transmit frame. This is
arranged by passing the out-
put of the frame generator 2 frame
IC2b 6
through a delay line and
converting the consequent
signal to a pulse whose width
determines the window. See sig- transmit
window
nals 3 and 4 in the timing diagram. IC2a 3
Note that only signals that fit within
the window can be intercepted.
The reflected signal (or echo) is
intercepted by the receiver and delay
applied to an amplifier., which not IC2c 9

only raises the level of the signal but


also functions as band-pass filter. The
resulting signal is compared with a
receive
fixed voltage: the output of the com- window
parator is signal 5 in the timing dia- IC2d 12

gram. Note that this is identical to sig-


nal 2 but shifted in time.
The detector eliminates as many
spurious inputs as possible by check- comparator
IC1f 12
ing the number of received 40 kHz
pulses. Each receive frame should con-
tain at least five of these pulses. If this
is not so, the detector treats them as
noise, whereupon a new cycle is detector
IC1d 9
started at the arrival of the next pulse

output
Figure 2. Timing diagram IC1e 10
of the parking sonar.
t 980030 - 13

Elektor Electronics 4/98 21


C1 IC4
BZ1

3 IC1a
10p
IC1b
12V12V D8 L1

10H
7806 6V

R3 1N4001
1 2 3 4
1 1

470
D9
C14 C15 C16
IC2a IC1c
1 100 10
P1 3 5 6 100n
& 1 15V 25V 10V
4k7 C2 2 0 1W3
150k
R1

5k6
R2
1n 6V
f0
40kHz

14 C17 14 C18
R4 IC1 IC2 6V
1k 7 100n 7 100n
D1
R10
R5

120k
390k 1N delay
4148 30cm - 3m 6V
IC2c
4 P2 R6 9 C5 R8 IC2d IC1d
6 8 12 D3 R9
5 & 1k2 10 & 1k 11 9 8
13 & 2k2 1
47k 10n R11 R14
IC2b D2 1N4148
BZ2

1k8

1k8
window R7 R22 D7
C3 C4 20cm C6
6V 1N4148

82k

56k
detector D4 D5 D6
470n 470n >5 33n
R16
12
1N4148
120k

1N4001
IC1f
1 R12
4V

1k
13
P3 5 IC1e T1
3 7 6V 11 10
100k C13 R20 IC3b 1
1 6 R13
R15 IC3a 1k2 C7

2M2
2 R19
3k9 3n3
BC557B

100
C8
R18 R21 470n
1n 330k 100k
2V5
X1 R17
C11 C12 8
150k

C9 C10
IC1 = 74HC04 IC3
100n 220 4
10 100n IC2 = 74HC132 10V
10V
IC3 = OP279G
980030 - 11

0
Figure 3. Complete circuit
C15 C14
P3 C10 C9 diagram of the parking sonar.
4 D9
The transducers are X1 and
H4

H1

12V C8
L1
R19
R17
R16

Bz1, while Bz2 and D6 are the


IC4 D8 C16 IC3 X1
indicator elements.
R20 R15
R21 R18
T
1-030089 C13
tnemgeS )C(
C12 C11 C18
C2 C17 R7
R22
R1 R8
R10

D3
R2 R9
R5 C5
C6 R4
IC2 R6
IC1 D1 C4
R12 D2
C1
P1 D4
R13 C3 P2
R3 T1
R11
D7 Figure 4. Printed-circuit
D5 C7 R14
H3

H2

BZ1 980030-1 - BZ2 + A D6 K board for the parking sonar.

Parts list

Resistors:
R1, R17 = 150 k
R2 = 5.6 k
R3 = 470
R4, R8, R12 = 1 k
R5 = 390 k
R6, R20 = 1.2 k
(C) Segment
980030-1
R7 = 82 k
R9 = 2.2 k
R10, R16 = 120 k
R11, R14 = 1.8 k
R13 = 2.2 M
R15 = 3.9 k

22 Elektor Electronics 4/98


CIRCUIT
DESCRIPTION 5
The circuit diagram of the range mon-
itor is shown in Figure 3.
The frame generator is based on
gate IC2b. It is a simple oscillator that
produces pulses at a frequency of
about 10 Hz. Network R4-C3 deter-
mines the width of the pulses and thus
of the transmit frame. The pulse inter-
val is determined by network R5-C3.
The duration of each frame is equal to
a period of the frame generator out-
put.
The stability of the 40 kHz oscilla-
tor is rather better than that of the
frame generator, which is why it is
based on two op amps, IC1a and IC1b,
and the frequency can be fine-tuned
with P1.
The outputs of the two generators
are combined by IC2a, which ensures
that the transmit frame is modulated
(filled) with ultrasonic pulses. The
resulting signal is applied to the trans-
mit module, Bz1, via IC1c in a sort of
bridge circuit.
The delay line, consisting of IC2c,
P2, R6 and C4, is essential for the cor-
rect functioning of the monitor. The
distance between transmitter and
obstacle is set to between 30 cm and 3
metres with P2.
The output signal of gate IC2c is dif-
ferentiated by network R7-C5, where-
upon, in conjunction with the hys-
teresis of gate IC2d, it determines the
width of the receive frame. Figure 5. Photograph of the completed prototype.
Resistor R8 limits the current Because of the small current drain, regulator IC4
through IC2. does not need a heat sink.
The receiver module is indicated in
the circuit diagram by X1. It is followed
by two amplifier cum band-pass filter
combinations, based on IC3a and IC3b. the input capacitance of IC2d, form a ensures that the input voltage of IC1d
These op amps are arranged to give an low-pass filter for the comparator out- will be sufficiently low to cause its out-
amplification of 50 each at 40 kHz. put. put to change state only after five
Variable potential divider To prevent false alarms, the output pulses have been received (penulti-
R16-P3-R17 enables setting IC3a and of detector IC1d can change state only mate signal in the timing diagram).
IC3b to a reference voltage that ensures when the receive frame contains at When a suitable signal is received
that inverter IC1f, which operates as a least five 40 kHz pulses. This is effected that fits in the receive frame, a short
comparator, obtains the correct bias by applying the signal to network positive pulse appears at the output of
voltage. In this way, P3 sets the sensi- D3-R9-R10-C6 after it has passed IC1d. At the same time D5 lights briefly.
tivity of the circuit. Resistor R22 and through the receive frame. This The function of this diode is limited,

R18 = 330 k C10 = 0.1 F* Integrated circuits:


R19 = 100 C11, C15, C17, C18 = 0.1 F high stabil- IC1 = 74HC04
R21 = 100 k ity IC2 = 74HC132 (SGS Thomson see
R22 = 56 k C12 = 220 F, 10 V, radial text)
P1 = 4.7 k preset potentiometer C13 = 0.0033 F* IC3 = OP279G
P2 = 47 k preset potentiometer C14 = 100 F, 25 V, radial IC4 = 7806
P3 = 100 k preset potentiometer
* metallized polyester (MKT) Miscellaneous:
Capacitors: L1 = choke, 10 H
C1 = 10 pF Semiconductors: Bz1 = 400ET180 (Mercator)
C2, C8 = 0.001 F* D1D4 = 1N4148 X1 = 400ER180 (Mercator)
C3, C4, C7 = 0.47 F* D5, D6 = LED, red, low current Bz2 = active buzzer, 5 V, <100 mA
C5 = 0.01 F* D7, D8 = 1N4001
C6 = 0.033 F* D9 = zener diode, 15 V, 1.3 W
C9, C16 = 10 F, 10 V, radial T1 = BC557B

Elektor Electronics 4/98 23


however, to the calibration. To obtain (IC2) from SGS-Thomson since other The transducers specified in the
a clear indication that a proper signal makes may have a different hysteresis. part list are both watertight.
has been intercepted, the output pulse With the exception of the trans- The indicator diode and/or buzzer
needs to be stretched and this is done ducers, the indicator diode and the should, of course, be placed near the
by R12-C7-R13. The stretched pulse is buzzer, all components are housed on driver, for instance, in or near the
inverted by IC1e (last signal in the tim- the board. instrument panel.
ing diagram), whereupon an audible To minimize any interference, it is
and/or an optical indication (by Bz2 essential that the monitor is housed in CALIBRATION
and D6 respectively) are actuated. a properly earthed metal enclosure. When the monitor is switched on, it
Note that the receive frame can be The transmit and receive modules will be active for about a second,
widened or narrowed by adapting the should be mounted at some distance which is the time needed by C9 to get
value of R7 as appropriate. For most from each other, preferably in or near fully charged. No attempt has been
situations, however, a width of 20 cm, the rear bumper or, in older cars, the made to eradicate this power-on indi-
as in the present design, is a good rear spoiler. They must, of course, cation since it tells the driver that the
practical value. point in a direction immediately monitor is operating.
The regulator circuit based on IC4 behind the vehicle. The transducers The three preset potentiometers are
ensures a stable 6-V power supply. must be linked to the monitor (termi- adjusted with the aid of a good mul-
Inductor L1 and diode D9 protect the nals X1 and Bz1) via lengths of timeter.
supply lines against interference and screened cable (twin-core in case of 1. Set the multimeter to an appropri-
overvoltage peaks. the transmitter). The screens must be ate alternating voltage range and con-
Diode D8 provides protection connected to the supply line earth. nect it across R3. Short-circuit C3 with
against wrong polarity of the 12-V It is advisable to keep the lines to a length of circuit wire. Turn P1 until
lines. Note that these lines are best the transmit module as far away as the meter reading is a maximum. Seal
taken from the reversing lights. possible from the input amplifier to the preset with some nail varnish and
prevent transmit pulses being injected remove the short-circuit from C3.
CONSTRUCTION directly into the receiver. 2. Short-circuit terminals X1 and turn
The monitor is best built on the Note that the case of the transmit P3 until diode D5 just goes out.
printed-circuit board in Figure 4, module is connected internally to one 3. Place an obstacle at the desired dis-
which is, however, not available ready- of the terminals; it is, therefore, essen- tance from the rear bumper and adjust
made. Populating the board should tial that the module is isolated from P2 until diode D5 begins to flash.
not cause any undue difficulties. Note the monitor enclosure and/or the car [980030]
that it is advisable to use a 74HC132 chassis.

Elektor Electronics 4/98 25


PC-aided
BJT tester revisited
now with Windows
software

The tester pre-


sented in this arti-
cle is an update of
the design pub-
lished in our Sep-
tember 1993 issue.
The ZN425 then
used for the digi-
tal-to-analogue
converter (DAC) is
replaced by the
currently more
easily available
AD557. Also, the
1993 DOS-version of the software has been Measuring the direct-current gain hFE
or , of a bipolar junction transistor
replaced by a 32-bit program that runs only (BJT), p-n-p as well as n-p-n, is, in prin-
under Windows 95 or Windows 3.1 with a ciple, fairly simple. It is done by pass-
ing an accurately known direct cur-
Win32S extension. rent, IB, through the base-emitter junc-
tion and measuring the collector cur-
rent, IC. The ratio of the two is the cur-
Features rent gain, that is, IC /IB = hFE =. It is
important to note that hFE depends on
Suitable for n-p-n and p-n-p bipolar junction transistors (BJTs) the collector current, the collector-to-
To be connected to parallel printer port of a PC emitter voltage, UCE, and the tempera-
Graphic display of transistor characteristics (on PC monitor) ture. This means that a small base cur-
Integral power supply rent is associated with a smaller hFE
Windows software* than a large base current. This is the
Test range of UCE = 09 V reason that a transistor is usually
accompanied by a set of gain charac-
IC measured at seven base currents varying from 0 A to 175 A
teristics. It is clear that to obtain a good
Maximum measurable hFE = 570 idea of the operation of a BJT, a num-
ber of base currents should be used in
* Suitable for Windows 95 or Windows 3.1 with Win32S extension. the tests. The circuit described in this
The earlier DOS version of the software is also still available. article uses seven different base cur-
rents, varying from 25 A to 175 A.
For each of these currents, UCE varies
Design by S. Aaltonen from 0 V to 9 V in 256 steps.

Elektor Electronics 4/98


26
Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

THE DESIGN
The block diagram of the tester is 1 8 UCE
shown in Figure 1. The Centronics DAC
interface in the diagram is linked to 11-bit
the printer port of the computer. Six counter
2 C E
data lines of this port are used for con- IB
3
trolling the counter and the ADC, DAC B B
while a handshake line (input) is used Centronics
interface 4
to read back the serial data from the NPN E
PNP C

ADC. Clearly, the data transfer


IB
between tester and computer is the
DAC
same as that between a computer and
a printer; moreover, any type of
printer port may be used: standard
Centronics, Enhanced Parellel Port
(EPP) or Extended Capabilities Port ADC

(ECP).
IC
The tester is based
on an 11-bit counter,
IC1. This chip, which IB
9V

itself is driven by two UCE


0
lines from the printer 980022 - 12

port, controls a large


part of the circuit. Dur- Figure 1. Block dia-
ing a complete test gram of the BJT
cycle, it counts from 0 tester. Apart from the the 11-bit counter directly into a base
to 2047. The first eight interface and counter, current. Diodes D1D3 ensure that a
bits (LSBs) are used to the tester comprises low-level output bit cannot draw cur-
drive IC2, a DAC three DACs and one rent from the base current.
which generates the ADC. In case of a p-n-p transistor on test,
collector-emitter volt- matters are slightly more complex,
age, UCE. The remain- because the emitter is not at ground
ing three bits (MSBs) level, but follows UCE. To make certain
set the base current in that the transistor can switch on at low
steps of 25 A between UCE (about 0 V), it needs to be possible
0 A and 175 A. Dur- to pull the base to a negative potential.
ing the test, the UCE This is why a negative supply line is
rises from 0 V to 9 V in created with R12R20 and T2T4. The
256 steps. transistors and relevant resistors form
To display the tran- Figure 2. This oscillo- current sources that are switched via
sistor characteristics on gram shows which the three MSBs output by the counter.
the monitor screen, IC signal at input A0 is In a p-n-p transistor, the base current
and UCE need to be applied to the ADC. is equal to the sum of the currents pro-
measured, and this is Each pulse represents duced by the sources.
done with the earlier a different base cur- The resistance across which IC (in
mentioned ADC. Note rent. The slanting side case of an n-p-n transistor, IE) is mea-
that only the first at the top shows the sured is R23. To minimize the effect of
quadrant is used since this gives all the effect of a varying UCE. this component on the test setup, its
necessary information for most appli-
cations.
A close look at the block diagram
reveals that in case of an n-p-n BJT the
emitter current, IE, is measured, and in 2
an p-n-p transistor, the collector cur-
rent, IC. However, this is easily cor-
rected (automatically by the software),
since IC=IEIB.

CIRCUIT DESCRIPTION
The circuit in Figure 3 is largely iden-
tical to that of the 1993 tester: the only
real change is the substitution of an
AD557 for a ZN425 in the IC2 position.
The UCE for the transistor on test is
generated by digital-to-analogue con-
verter IC2, amplifier IC3a and driver T1.
The DACs generating the various
base currents are discrete designs. The
base currents for the n-p-n transistor
on test are produced in a simple man-
ner: resistors R8R11 convert the logic
level (5 V) of the three MSBs output by

Elektor Electronics 4/98 27


5V 5V 5V
3 R1 R2
C10 C1 C11 16V3
R7
16V3

100n 220 25V 100n

10
11
16

1k

1k
K1 9 1 16
0 D0 Vout C12 8
36 18 SELECT CTR12 7 2 15 3 T1
1 D1
IC2 A IC3
35 17 11 6 3 14 1 100n
IC3a
ERROR

CT=0 2 D2 B 4
34 16 5 4 2
3 D3
BD139

27k
33 15 3 5 R6
IC1 4 D4
AD557
32 14 2 6
5 D5 JN
31 13 CT 4 7 9
74 6 D6 CE IC3 = LM358
30 12 13 8 10 R3 R4 R5
HCT 7 D7 CS

27k

27k

33k
29 11 BUSY 4040 12
8
28 10 10 14
+ 9 12 13
27 9 15
10
26 8 D6 1
11
25 7 R8 D1
24 6 8 150k
NPN C E PNP
D4
23 5 D3 R9 1N4148
T5 T6
22 4 D2 150k D2
B B
21 3 D1 R10
20 2 D0 150k 1N4148
19 1 R11 D3
37k4 E C

Centronics 1N4148
T2
R12
5V
100k
T3
C13 R13
100k
100n T4
R14
100k

14 20 5
R19 R20 R17 R18 R15 R16
REF + 1 7
A0 IC3b

8k66

17k4

34k8
27k

27k

27k
2 6
IC4 A1
47k
16 3 R24
DATA A2
4
18 A3
IO CLK 5 R23 R21
3x BC547
A4
17 6

270k
ADDR A5 R25
1k

A6
7 1V82
19
SYS CLK 8
A7
15 TLC 9
CS A8
1541 11
A9
R22
12
A10
REF 270k
13 10
16V3
IC5 IC7
TR1
LM317 7805 5V
D4 D5
K2
150

2k2

4x R27 R26
1N4001

D6 D7 C2 C5 C9 D10
C7 C8
1k8

R28
100 100 100n 100n 100
63V 35V 25V

C4 C6
150

R29
2x 9V
3VA3 C3 100 100
35V 25V
100
IC6
332

35V R30

D8 D9
Figure 3. Circuit dia-
1V82
gram of the BJT980022 - 11
2x 1N4001 LM337
tester. All compo-
nents are readily
available types.

value is low. This has the drawback, stable, is that UCE is increased from 0 V between 0 V and 9 V. This value is
however, that the drop across it, that to 9 V in 256 steps during the test brought to the requisite level by atten-
is, the test voltage, is very small. It is period. This shows the effect of UCE on uator R21-R22. The resulting signal is
therefore raised 48 by IC3b, before it the current gain. applied to input A3 of the ADC.
is applied to digital-to-analogue con- The test value is limited because the The power supply is straightfor-
verter IC4. measurement range of the ADC is ward based on a traditional design.
The resulting signal to input A0 of only 5 V. Given a voltage amplification Only the auxiliary negative line is a lit-
the ADC is shown in Figure 2. This of 48 and a test resistance of 1 , it is tle out of the ordinary. An alternating
indicates that with seven base currents clear that IC (or IE) cannot exceed current flows through C3: one half
a voltage proportional to IC (in of an 104.2 mA. Since the base current is cycle via D8 and the other half via D9.
n-p-n device, IE) is measured. The rea- 175 A maximum, the current gain Each of the half cycles charges C4; the
son that the current rises in the course cannot be higher than 595. resulting potential across this capacitor
of time, although the base current is In practice, the measured UCE lies is held at a level of 1.8 V by IC6d.

28 Elektor Electronics 4/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Parts list
4

H2
R10 R7
C10 R9
Resistors: K1
R13 D2
R1, R2, R25 = 1 k R11
R3, R4, R6, R15, R17, R19 = 27 k R14

R1

IC2
R5 = 33 k C1 D3

IC1
C
R7 = 10 , 5 W 36 18
D1
R8R10 = 150 k R8 R22 B PNP
R12

C11
R11 = 37.4 k, 1%

R2
1
R21
R12R14 = 100 k R6 E
R16 = 34.8 k, 1% C13 R25
R5
R18 = 17.4 k, 1% T1 C

R24
R4

IC3
R20 = 8.66 k, 1% B NPN
R3
R21, R22 = 270 k 1
T2 T3 T4
R23 = 1.00 , 1% E

C12
IC4
R24 = 47 k

R23
R15
R16
R18
R17
R20
R19
R26 = 2.2 k 980022-1
R27, R29 = 150 1-220089
tnemgeS )C(
R28 = 1.8 k 1
R30 = 332 , 1% 19 1
Tr1
D8
C6
Capacitors: C3

D6

D4
D9
C1 = 220 F, 25 V, radial
C2 = 100 F, 63 V, radial C4 ~ K2
C3C5 = 100 F, 35 V, radial D10
C2
C6, C9 = 100 F, 25 V, radial
C7, C8, C10C13 = 0.1 F

D7
D5
C5

Semiconductors:
R26
R30

R29

R28
R27
D1D3 = 1N4148 C8 ~
IC6

IC5

D4D9 = 1N4001 C7
D10 = LED, high efficiency
T1 = BD139 IC7
C9
T2T4 = BC547B
T5 = n-p-n transistor on test
T6 = p-n-p transistor on test

Integrated Circuits:
IC1 = 74HCT4040
IC2 = AD557JN
IC3 = LM358
IC4 = TLC1541IN
IC5 = LM317 (SOT220)
IC6 = LM337 (SOT220)
IC7 = 7805

Miscellaneous:
K1 = 36-way Centronics socket,
right-angled, for board mounting
K2 = 2-way terminal block for board (C) Segment
mounting, pitch 7.5 mm 980022-1
Mains socket with integral fuse
holder and fuse (200 mA slow
blow)
2 off 2 mm banana socket, blue (c)
2 off 2 mm banana socket, black (b)
2 off 2 mm banana socket, red (e)
DPDT mains on/off switch
Mains transformer 29 V, 3.3 VA,
e.g., Monacor/Monarch VTR3209
Enclosure 11550135 mm
(4.5325.32), e.g., ESM
EB11/05)
PCB Order no 980022*
Software Order No. 986005-1* (The
DOS version of the software is still
available under Order no. 920144)
* These items are available as a sin-
gle item under Order no. 980022-C

Figure 4. The printed- CONSTRUCTION Start by laying the wire bridges and
circuit board is Building the tester is straightforward, fitting socket K1. Follow this by fitting
designed to house all particularly if it is done on the printed- first the passive and then the active
components, includ- circuit board shown in Figure 4. The components. Mind the polarity of the
ing the mains trans- board is compact and designed to electrolytic capacitors, transistors and
former, but excepting house all components except the integrated circuits.
the on/off switch. on/off switch, but including the mains No special sockets are used for the
transformer. test terminals, which instead consist of

Elektor Electronics 4/98 29


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Figure 5. Photograph
of the completed pro-
totype. The tester is
linked to the PC via a
standard printer cable.

coloured banana sockets. n-p-n or p-n-p, and the scale value of


There is no need for the regulators ICE: 80 mA, 100 mA, or 120 mA. Note
to be mounted on a heat sink. that the scale value affects only the
Since the mains transformer is scale of the characteristic, not the set-
housed on the board, a space of not tings of the hardware.
less than 5 mm must be allowed when For the calibration, state how many
the board is fitted in an enclosure. For settings of base current will be used.
securitys sake, the underside of the This may be as many as eight, that is,
board may be covered with a sheet of no base current or a base current that
PVC or polythene. increases from 25 A to 175 A in
seven steps. Next, set the number of
THE SOF TWARE steps (maximum 256) with which UCE
The software has been upgraded to a is to be composed from 0 V to 9 V.
32-bit version that runs only under The test results may be stored in
Windows 95 or Windows 3.1 with an CSV (Comma Separated Value) for-
Win32S extension. Note, however, that mat, which enables them to be
the DOS version of the software is still processed later on in a spreadsheet. In
available (see Readers Services section this way, a database with transistor
towards the end of this issue). data may be built up.
After the diskette with the program [980022]
(npnpnp.exe) has been loaded and the
printer port selected, check at which
address it is located. Then, in the pro- ELEKTUUR
gram, select the correct address loca-
tion: addresses 378HEX, 278HEX, and 230V ~ 50Hz
3F8HEX can be selected via the menu. A
No. 980022
choice then has to be made as to
which type of transistor is to be tested, F = 200 mA T

Elektor Electronics 4/98 31


Digital Audio
Broadcasting (DAB)
Part 2: Data management
of the DAB signal

Last months first


instalment of this two-
part article dealt with
the way the audio
data are transmitted.
This second and final
part looks at the flexi-
ble bit rate manage-
ment used in the pro-
duction of DAB sig-
nals, the likely design
of a DAB receiver,
and the spread of
DAB in the English-
speaking world today
and tomorrow.

BIT RATE ual service (or programme) providers


MANAGEMENT AND can transmit their services at com-
DATA SERVICES pletely different data rates.
The audio programmes and data ser- The Eureka 147 standard makes it
vices carried in a DAB ensemble nor- possible to reconfigure the DAB multi-
mally have different requirements as plex dynamically, that is, during an
to transmission quality and thus have ongoing programme. This is a useful
dissimilar bit rates. A high-quality feature in the case of programmes that
music programme obviously needs a include a five-minute newscast on each
larger transmission capacity than a and every hour. In that time, the data
simple news channel. But even differ- rate may be reduced and the capacity
ent data services may have dissimilar so freed used for other services. Such
By our Editorial Staff requirements. Consequently, individ- a reconfiguration may look like that

Elektor Electronics 4/98


34
shown in Figure 3. Figure 3. The intelligent bit rate manage-
In the DAB system, it is not possi- 3 ment of DAB makes possible a flexible
ble to allocate several frequencies to an reconfiguration of the individual bits during
individual service provider, since each an ongoing transmission.
of these is allocated a relevant data rate
in a DAB ensemble. However, data
rates in an ensemble may be variable: a
if, for instance, during a music pro-
gramme news is broadcast on the DAB-Multiplexer
hour, the data rate may be briefly
reduced from 192 kbit/sec to 96 kbit/sec Audio 1 Audio 2 Audio 3 Audio 4 Audio 5 Audio 6
or even 64 kbit/sec. The capacity so 192 KBit/s 192 KBit/s 192 KBit/s 160 KBit/s 160 KBit/s 128 KBit/s

freed can then be used for other ser-


vices that need only a small capacity, PAD PAD PAD PAD PAD PAD
such as the transmission of a software
update, or weather information that is Data Data Data Data Data Data Data Data Data
transmitted every hour. D1 D2 D3 D4 D5 D6 D7 D8 D9
Since, technically, the bit rate man-
980017 - 53
agement is effected in the multiplexer,
the additional services may come from b
different programme providers.
For the transmission of data in DAB-Multiplexer - temporarily reconfigured
addition to, or instead of, audio infor-
mation, DAB provides in principle Audio 3
Audio 1 Audio 2 Audio 4 Audio 5 Audio 7 Audio 8
three kinds of data service: Pro- 192KBit/s 192KBit/s 128 KBit/s 160 KBit/s 160 KBit/s 96 KBit/s 96 KBit/s

gramme Associated Data (PAD); radio PAD


data services independent of audio PAD PAD
Data Data
PAD PAD PAD PAD
D10 D11
information (non-PAD); and comple-
mentary services to closed user groups
(CA conditional access). Data Data Data Data Data Data Data Data Data
D1 D2 D3 D4 D5 D6 D7 D8 D9
As already mentioned, PAD is
embedded in, and transmitted with, 980017 - 54

the audio data frame. Normally, the


data to be included with the pro-
gramme are conveyed to the pro-
gramme providers. This may be data mation Channel (FIC); and a Main Ser- vices and their components (MCI
for the volume control of a receiver; or vice Channel (MSC). Data bits are nor- Multiplex Configuration Information),
data such as in the Radio Data Service mally transmitted via the MSC, but including position in the multiplex,
(TP*, TA*, TDC*, PTY*, RT, and so on), sometimes via the FIC. These two length, error protection, conditional
but also text and graphics as in teletext channels use dissimilar means to access, and addressing. If the multiplex
information. It is up to the service ensure error-free transmission. contains only few components, only
provider to decide whether the PAD is The FIC contains all necessary few bits are needed for the description
transmitted at a minimum of information on the audio and data ser- of these components. The capacity
667 bit/sec or a maximum of
64 kbit/sec.
Examples of non-PAD services are
electronic newspapers, service infor-
mation of a local tourist bureau, traffic
information direct from the traffic con-
4
trol computer, paging, aircraft flight service
information
details, and many more. An interesting multiplex
one is the transmission of correction information DAB signal
data for differential GPS. transfer trans-
Each and every data service in a multi- OFDM mitter
plexer
DAB ensemble may be used by groups
of users or single users with condi- audio audio channel
broadcast en- en-
tional access relevant encoding and programme coder coder MSC radio frequency
decoding functions are catered for. multi-
plexer
The transmission of non-PAD ser-
vices may be continuous or, in case of Figure 4. Principle of
small capacity ones, in a submultiplex data packet channel generating a DAB signal
services multi- en- at the transmitter end.
of a data packet. Three transmission plexer coder
(Courtesy: Eureka)
channels are used for this in DAB: a
synchronization channel; a Fast Infor-
980017 - 55

* TA = traffic announcement
TP = traffic programme **CD-quality audio broadcasts will in themselves be insufficient incentive for the majority
PTY = programme type of listeners to splash out on a DAB receiver.
TDC = transparent data channel Moreover, it is a well-established fact that although most of us spend a lot of money on
RT = radio text audio hi-fi equipment, this is usually installed in the living room, while most of our listen-
GPS = Global Positioning System ing is done on a simple (often portable) receiver in the kitchen, bathroom or bedroom.

Elektor Electronics 4/98 35


MUSICAM and
5 MPEG Layer II
The Moving Picture Experts Group
(MPEG) has chosen MUSICAM
after intensive tests from among 14
competing proposals for normal-
ization by the ISO/IEC (International
Standards Organization/Interna-
tional Electrotechnical Commis-
sion) as MPEG Audio Layer II.
MPEG Layer II enables the
pulse-code modulated (PCM) bit
rate required for recording a CD to
be reduced by a factor 7, that is, to
192 kbit/sec, without any audible
loss of quality.

Figure 5. Frequency
spectrum of a DAB eral services are divided into packets Although Eureka 147 is a combined
transmission in of fixed length. Each packet has as European development, great interest
Band III. (Courtesy: address the identification of the service in it has come from beyond Europe,
Eureka) to which it belongs. The capacity of culminating in the setting up of the
each service may be increased if cer- WorldDAB Forum early last year. The
tain service addresses are transmitted forum was set up to take DAB from the
then released is used for data services; more frequently than others. development laboratory into the indus-
this is termed Fast Information Data try and thence to the consumer.
Channel. The FIDC may be used for TODAY It is hoped by manufacturers and retail-
paging or alarm systems. Ten years have elapsed from the orig- ers alike that DAB will take off in
The MSC is divided into subchan- inal concept of Eureka 147 in 1987 to earnest this year. Unfortunately, the
nels (SC), whose capacity must be a the introduction of the first DAB con- signs for this to happen are none too
multiple of 8 kbit/sec. An arbitrary part sumer products (by a number of Euro- encouraging. There are two problems:
of the MSC may be used for data ser- pean as well as Japanese manufactur- one is the dearth of DAB receivers (since
vices. ers) at the International Consumer no one really knows what the consumer
In the so-called Stream Mode, a Electronics Fair in Berlin last year. wants** and is prepared to pay); the
subchannel will cater for only one ser- Design of suitable chips went hand second is that, in general, the public has
vice at a fixed allocated data rate. In in hand with the development of the not (yet) been converted to DAB.
certain circumstances, this leads to an equipment. This design was under- Nevertheless, the WorldDAB
uneconomical use of the capacity, but taken by a group of research estab- Forum reckons that this year about 100
it has the advantage that the receiver lishments led by Philips. The chips will million people in Europe will be in
can evaluate the data in a straightfor- be manufactured by Philips, Bosch, reach of DAB services: about 40 million
ward manner. Temic and SGS Thomson (at the time in Germany, 25 million in the UK, and
In the Packet Mode, the data of sev- of writing: early 1998). 35 million in Sweden, Belgium, Den-

DAB in the United Kingdom and plans for initial DAB services in late 1996. A group of
Toronto-based commercial broadcasters have established
some Commonwealth countries full-time transmitters on Torontos CN Tower to carry the
programming of 15 radio stations. At the same time, CBC
In the United Kingdom, the Government set the frame- announced some months ago that it would bring DAB to
work for the development of DAB in the 1996 Broadcast- 75% of the population over the next five years.
ing Act. The BBC began an operational DAB service in
September 1995 in the London area and is now building India is looking to the Eureka 147 system as the future
up its transmitter network so that 60% of the British pop- of radio there. The public broadcaster, All India Radio,
ulation will be covered by the middle of this year. The reg- started preliminary studies and experiments and set up a
ulatory body for commercial radio, the Radio Authority, has test transmission system in Delhi. Over the past year or
announced a fast burn approach to licensing private so, work has been orientated towards DAB planning, satel-
radio multiplexes at both national and local level. A num- lite distribution of a DAB ensemble and its relay in major
ber of private stations are already operating a pilot ser- cities.
vice.
In Singapore, DAB was demonstrated at the Asia Telecom
Australia looks to be moving ahead towards adopting the 97 by the Singapore Broadcasting Authority in association
Eureka 147 system. in 1996, the Government-appointed with Deutsche Telecom. Further trials, using both L-band
Digital Radio Advisory Committee expressed support for and VHF, took place last year.
Eureka 147 as the appropriate delivery system for Aus-
tralia. Pilot services are operating in three major Australian In South Africa, a seminar in late 1996 on DAB organized
cities. Tests have also been carried out of satellite-deliv- by the South African Broadcasting Corporation and Sen-
ered DAB. tech, the transmission provider, led to the formation of a
South African DAB Association. Sentech has set up a test
Canada has remained at the forefront of Eureka 147 devel- facility in Johannesburg to serve as a pilot and develop-
opments after commercial radio and CBC announced their ment system.

36 Elektor Electronics 4/98


mark, the Netherlands, Hungary and
Switzerland. Other countries intend-
ing to introduce DAB in the very near 6
future are Italy, France, Finland,
Switzerland, and Poland. part
Outside Europe, Canada is the of the
MSC audio
fastest mover to construct a DAB net- tuner
OFDM channel audio broadcast
demodulator decoder decoder programme
work. It is hoped that 75 per cent of
the population will be in reach of DAB
services within five years. Other coun-
tries that have made extensive prepa- independent
packet data service
rations for the introduction of DAB are demulti-
China, India, Singapore, South Africa, plexer
and South Korea.
control bus
In Japan, the industry is interested
in DAB, but only as far as production controller
for export markets is concerned. The
NHK, Japans national telecoms
authority, prefers the VHF In-Band
Digital Radio.
In the USA, the National Associa-
tion of Broadcasters (NAB) opposes
the introduction of DAB and has come
out in favour of In-Band Digital Radio
for operation in the VHF and
operating unit
medium-wave bands. The first licences 980017 - 57

for satellite-controlled In-Band Digital


Radio have already been awarded.
Figure 6. A DAB receiver is likely to
AND TOMORROW? away from the equator, so that the consist of a tuner, loudspeaker,
Although the Eureka 147 specification satellite can serve, say, Asia, Europe graphic screen, processor, and large
is for terrestrial networks (T-DAB), and North America. This requires sev- memory (and a user-friendly interface
consideration has been given to the eral satellites in time-spaced identical to operate it). (Courtesy: Eureka)
possibility of satellite-supported trans- orbits, since the transmission of a sin-
missions (S-DAB) to cater for supra- gle satellite can be received for only
national coverage and also to enable the few hours it is at its apogee. Apart
national coverage in large countries from the satellites large elevation
such as India and China. (>50), the relatively shorter distance
The European Space Agency (ESA) between it and the receiver results in
has already proposed a DAB satellite a lower transmitter power being
in their Archimedes programme. An needed.
unusual feature will be the use of satel- The first phase of the Archimedes
lites in a highly elliptical orbit (HEO) proposal foresees three satellites trans-
see Figure 8. The reason for this is mitting at 1.5 GHz. Each of the three active orbit part
that the elevation in northern Europe transmissions will be a circular spot- 8
of geostationary satellites circling beam with a diameter of about
above the equator is only about 30. 2000 km, so that the three would cover
The likely masking by mountains, tall West and Central Europe, South West
buildings and forests would seriously Europe, and South East Europe, and
degrade the reception of DAB trans- also provide a pan-European footprint.
missions in mobile units. An HEO [980017]
ensures that the satellite is more or less
at right angles to its target area at its
apogee (orbital point farthest away
from the earth). This would preclude
any masking of the transmission. Figure 7. Apart from
The paths of a satellite in an 8-hour chipsets, manufactur-
orbit (M-HEO) are 120 of longitude ers of DAB products
can also buy complete
DAB modules.

7
980017 - 58

Figure 8. The European Space


Agency (ESA) has already proposed
a DAB satellite in a Highly Elliptical
Orbit (HEO) for coverage of large
territories.

Elektor Electronics 4/98 37


E-meter to check the radiation
from your VDU

Brief specification
Measurement range 10100 V m1
Frequency range 10 Hz 2 kHz (1 dB)
5 Hz 5 kHz (3 dB)
Measurement error <10%
Sensor capacitance 80 pF
Input capacitance 5 pF
CMRR >60 dB

Computer users may have noticed that nowadays there are


guidelines as to the limits of radiation a monitor may produce.
This is sensible since there are people who believe that high
field strengths may adversely affect our well-being. It is a fact,
however, that, although we all find ourselves constantly in
electric fields, wherever we are in the world, there have as yet
been no reliably reported and proven cases of harm to the
health of a human being. Nevertheless, most major manufac-
turers of computer displays make sure that their monitors
meet MPRII/MPRIII Recommendations (although these are not
mandatory anywhere). Put your mind at rest by ascertaining
for yourself that the radiation of your monitor is well below
what is believed to be a safe level.
Design by H. Bonekamp

40 Elektor Electronics 4/98


Almost eighteen months ago, this conclusive studies that quantify the people maintain that there must be
magazine carried an article Magnetic- hazards, if any. But, of course, there is some effect since, for instance, a pace-
field meter, a small H-meter to check no harm in being cautious. When you maker with an output of only 1 mV
the presence or otherwise of alternat- are about to buy a monitor, you has a biological function, that is, to
ing magnetic fields. In the present arti- should know whether it meets MPRII contract and expand muscles in the
cle, an E-meter is described to check or MPRIII. Buy it from a reputable heart.
the presence and strength of alternat- supplier, or bring your H-meter and
ing electric fields. E-meter along and purchase the one CIRCUIT DESCRIPTION
Like the H-field, the E-field is sus- with the lowest emission levels (see The circuit of the E-meter, shown in
pected of being harmful to our health, box). Figure 1, consists basically of four sec-

R17
U
10k
C11 U
R6
D1
1M8 3
2x 3V R16 47p

1 C1
BAS45A

R1
3
1
100
1
IC2a
2
R18
C15

10p D2 IC1a C10 100n D14


22M

6k8
500V 2
100V/m
10
10V D13
C4 R2
C2 C3
90V/m
3
22M

D12
R12 9 10 80V/m
1n 47p 10p MODE L10
R3 15k 11
C8 6 L9 D11
1%
2M2

RHI 12
E1 R9 1% 7 L8 70V/m
6 REFOUT 13
3V 22 10k R14 L7 D10
7 5 IC3 14
E0 IC2b 100k SIG L6 60V/m
R7 5 R15 15
10k L5 D9
15k

3k9
P1 16 50V/m
E2 R10 1% LM3914 L4
P2
4M7 17
4k7 L3 D8
C7 R5 8 18
C6 R11 R13 REFADJ L2 40V/m
22M

C9 4 1
U RLO L1
15k

4k7

D7
1n 100p 30V/m
R4 22 2
D3 1% 10V D6
22M

6 20V/m
7
C5 IC1b D5
5 S1 D15 U 10V/m
10p D4
500V 2x R8 BT1 1N4001
D5 MPR (10V/m)
BAS45A 1M8
8 8 D6, D7 MPR (25V/m)
C12 C13 C14
9V
IC1 IC2
100 4 100n 4 100n
16V IC1 = TLC272
IC2 = TLC272
980039 - 11

Figure 1. Circuit dia-


gram of the E-meter.
ELECTROMAGNETIC tions. The sensor is formed by a DIY air
but there are no scientific studies that FIELDS capacitor that is linked to the input
conclude that levels of these fields well All equipment connected to a source stage, which is based on a capacitive
above the MPRII levels (see box) are of electricity and switched on gener- attenuator. Because of the attenuation,
hazardous. ates electromagnetic fields. These fields the common-mode voltage may be
Sweden has been a leader in devel- can be separated into magnetic and well outside the limits of the power
oping recommended electromagnetic electric fields, each of which can be a supplyhere, some 300 Vpp.
emission standards for computer dis- static or an alternating field. The circuit The attenuator is provided with a
plays. In 1987, the Swedish National described in this article monitors alter- calibration point to enable a low input
Board for Measurement and Testing nating E-fields. These fields ensue capacitance to be combined with a
introduced the first, non-mandatory when an apparatus is linked to the large common-mode suppression. The
testing procedures for monitors. Called mains supply. Every mains outlet, input capacitance must be low to
MPRI, they were followed in 1991 by cable, and equipment connected to ensure that the sensor is loaded as
MPRII. These guidelines have gener- them generates an E-field. lightly as possible. Capacitive coupling
ally been adopted by many major Of course, in a well-designed instal- with a physically large capacitance is
manufacturers of computer displays. lation with good earth connections used since this closely resembles a
Yet, even in Sweden, there is no con- (obligatory in the UK), the field human being in the E-field.
sensus on the limits. The Board strength remains well within what are The circuit is given a d.c. offset of
stresses that there are no proven bio- considered safe levels. about 3 V via resistors R1R5 and pre-
logical reasons for limiting the radia- When a human being is within an set P1. This offset is used to set up
tion from monitors and that their E-field, his/her body behaves as an operational amplifiers IC1a and IC1b.
guidelines are not based on health antenna, so that tiny voltages are So as to obtain good common-
risks. Rather, the recommended limits induced in the body. Some people mode suppression and a balanced load
are based on what is technically feasi- maintain that because of these they from the sensor, a traditional instru-
ble to measure and on what is achiev- become more susceptible to colds and mentation amplifier is used.
able now or in the foreseeable future. flu, and headaches or stress. It must, The d.c. amplification of the input
however, be stressed again that there stage is 1.5 and its a.c. amplification,
SAFETY FIRST is no scientific evidence that even very 361.5. Because of the low d.c. ampli-
So, if a computer display meets the high field strengths are hazardous. fication, it is not necessary to provide
Swedish guidelines, is it safe? No one Nevertheless, it is not clear what the compensation to counter the d.c. off-
can say for sure, since there are no effects are on human beings. Some set of the op amps.

Elektor Electronics 4/98 41


( )
300 300

2 4 4 4 4

10

10
150

150
front plate rear plate
30 x 30 cm 30 x 30 cm
6
3 3 3
300

300
20 20

10

10
4 4 4 4

10 150 10 10 10
150
(dimensions in mm) 980039 - 12
300

Figure 2. Drilling diagram for the sensor plates. They


Op amp IC2b functions as a half-wave are separated by five 10 mm nylon spacers to form an
rectifier. This is possible because, 80 pF air capacitor.
although the op amp raises the differ-
ence between the signals at its ve and
+ve inputs, the asymmetric power
supply allows only positive voltages to spacers are used since these do not damage the inputs of the operational
be generated. The level of amplifica- affect the capacitance, which is about amplifiers. Such damage is normally
tion is set with P2. Network R14-C9 80 pF. not immediately noticeable, but it does
averages the rectified signal. The direct Populating the printed-circuit board debase the performance.
voltage so obtained is applied to dis- (see Figure 3) should not present The board is fitted in the enclosure
play driver IC3. undue difficulties. Start by placing the on 15 mm spacers to ensure that the
The output of the display driver wire bridges, followed by all passive LEDs protrude slightly through the lid
feeds ten LEDs. The first of these, D5, components. of the enclosure. The battery is best fit-
lights when the input voltage reaches Use good-quality sockets for the ted with some suitable tape or bluetack
125 mV, and the last, D14, when it ICs, since static charges can easily to the bottom panel of the enclosure
reaches 1.25 V. This makes possible a
meter scale gradated from 10 V m1 to
100 V m1, which is more than ample
for the purposes of the present meter.

C12
C11
Note that for emissions complying 3 D3 H3
C10

R18
R17
R16
H2

with the MPRII and MPRIII recom-


R4 R5 D4
C5

-
mendations (which is the case with
R7
E2

BT1
most modern VDUs) only the three R8
C8

IC2
C6

R11

lowest LEDs are required.

+
IC1

C14
D15
After it has been buffered and
E0

P1
C4 C7

S1
amplified, the reference potential of
980039-1
C13

R6
R10

R12
R9

the display driver is also used as the


C3

R3

C15
D1
D2

common-mode voltage for the instru- R15


E1

P2
C2

tnemgeS )C(
1-930089

mentation amplifier.
C9
IC3

Power for the meter is derived from


R14

R13

R2
a single 9-V (dry or rechargeable) bat-
C1

R1

tery. Diode D15 protects the circuit H1


D14

D13

D12

D11

D10

against wrong polarity.


D9

D8

D7

D6

D5

H4

CONSTRUCTION
The most demanding part of the cir-
cuit is the sensor, a DIY air capacitor.
This is produced from two 3030 cm
(C) Segment
980039-1

sheets of aluminium cut and drilled as


shown in Figure 2. The sheets are fas-
tened together with four nylon screws,
nuts and 10 mm long spacers: one at
each corner. Nylon screws, nuts and

Figure 3. Component
layout of the single-
sided printed-circuit
board for the E-meter.

42 Elektor Electronics 4/98


underneath the board (under IC2).
The sensor is fitted to the front MPRII/MPRIII Recommendations
panel of the enclosure with two
10 mm long and one 20 mm long M3 Magnetic fields ELF (5 Hz 2 kHz) <250 nT*
size nylon screws and nuts. Place a sol- VLF (2 kHz 400 kHz) <25 nT*
der tag under one of the nuts at the
back plate. For this purpose the back Electric fields ELF (5 Hz 2 kHz) <25 V m1
plate of the sensor has 3 mm holes at VLF (2 kHz 400 kHz) <2.5 V m1

*nT = nano Tesla (1 Tesla = 1 Weber m2)

For the MPRII recommendations, these limits are measured at 48 different


Parts list positions around the monitor at a distance of 50 cm. For the MPRIII recom-
Resistors: mendations, the measurements are taken at a distance of 30 cm from the mon-
R1, R2, R4, R5 = 22 M
itor, also at 48 positions.
R3 = 2.2 M
R6, R8 = 1.8 M
R7 = 15 k
R9, R10 = 10 k, 1%
R11, R12 = 15 k, 1%
R13 = 4.7 k either side of the 6 mm centre hole. Finally, fit the on/off switch on the
R14 = 100 k These three holes should also be front panel of the enclosure.
R15 = 3.9 k drilled in the front panel of the enclo-
R16 = 100 sure at the appropriate positions. The CALIBRATION
R17 = 10 k 20 mm long screw should pass Ideally, a function generator and a dig-
R18 = 6.8 k through a 10 mm nylon spacer and the ital multimeter are required for setting
P1 = 4.7 M preset potentiometer front plate of the sensor where it is fas- up the instrument. If a function gen-
P2 = 4.7 k preset potentiometer
tened with a nylon nut, under which erator is not to hand, a bell trans-
Capacitors: a solder tag is placed. The nylon fas- former may be usedsee later.
C1, C5 = 10 pF, 500 V, 5% teners ensure electrical isolation of the To ensure good common-mode
C2, C6 = 0.001 F, metallized poly- two plates. suppression, the attenuators must be
ester (MKT), 5% The front plate is linked to input E1 well balanced. Below frequencies of
C3, C11 = 47 pF via a short length of insulated circuit about 100 Hz the resistors are domi-
C4 = 10 pF trimmer wire from the solder tag under the cen- nant, at higher frequencies, the capac-
C7 = 100 pF trimmer
tral fixing nut. The rear plate is linked itors.
C8 = 2.2 F, metallized polyester
(MKT) to input E2 via a short length of insu- Connect the multimeter, set to a rel-
C9 = 2.2 F, 10 V, radial lated circuit wire from the solder tag evant direct voltage range, across C9.
C10 = 10 F, 16 V, radial under one of the fixing nuts. The pho- Short-circuit E1 to E2 and connect the
C12 = 100 F, 16 V, radial tograph of the completed prototype in function generator between E1 and
C13C15 = 0.1 F. high stability Figure 4 shows how it is all done. E0 (earth).
Semiconductors:
D1D4 = BAS45A (Philips)
D5D7 = LED, green, high efficiency Figure 4. Photograph of the completed prototype.
D8D10 = LED, orange, high effi-
ciency
D11D14 = LED, red, high efficiency
D15 = 1N4001 4
Integrated circuits:
IC1, IC2 = TLC272CP
IC3 = LM3914N

Miscellaneous:
BT1 = 9-V battery with terminal clips
S1 = single-pole on/off switch
Enclosure = Bopla E430 (from
Phoenix Mecano Ltd, phone 01296
398 855) or similar
Aluminium sheet, 1 mm thick, 2 off
300300 mm
4 off M4 nylon screw, 15 mm long
4 off M4 nylon nut
1 off M3 metal screw, 15 mm long
2 off M3 metal screw, 10 mm long
4 off M3 metal screw, 20 mm long
(for board mounting)
4 off spacers, 15 mm long (for board
mounting)
5 off M3 nut, nylon or metal
5 off nylon spacer, 10 mm long (for
sensor)
2 off solder tag, 3 mm
Insulated circuit wire as required.
PCB Order no. 980039 (see Read-
ers services towards the end of
this issue)

Elektor Electronics 4/98 43


Apply a sinusoidal signal at a fre-
quency of 1 kHz and maximum out-
put. Turn first C7 (coarse) and then C4
(fine) for minimum reading on the
multimeter.
Lower the frequency to 10 Hz and
adjust P1 for minimum reading on the
multimeter.
Remove the short-circuit from E1
and E2 and connect the function gen-
erator between these terminals. Con-
nect the multimeter, set to an appro-
priate alternating voltage range, in
parallel with the function generator
output, making sure that the leads of
the multimeter are not in the vicinity
of the attenuators (so as to avoid an office, or
crosstalk). Set the output of the func- in a workshop, it will be
tion generator to 1 V rms and adjust P2 noticed that there are appreciable dif-
until D14 just begins to light. ferences in field strength. Some of the
If a function generator is not avail- other terminals of stronger fields may be caused by inad-
able, use a 12 V bell transformer. Short- the potentiometer across E1 and E2. equate or faulty earthing.
circuit E1 to E2 and connect the sec- Connect the multimeter, set to an
ondary of the transformer between appropriate alternating voltage range, TESTING YOUR VDU
these terminals and earth (E0). Con- across E1 and E2. Adjust the poten- The alternating electric field of a VDU
nect the multimeter, set to an appro- tiometer until the meter reads 1 V rms. is a maximum when the background
priate direct voltage range, across C9. Turn P2 until D14 just begins to light. is a bright white. This can be set eas-
Turn first C7 (coarse), then C4 (fine) If it appears that the range of C7 is ily on most modern monitors.
and finally P1 for minimum reading on not large enough (which may happen If the VDU meets the recommen-
the multimeter. when the tolerance of C1, C2, C5 or C6 dations of MPRII, D7 will light at dis-
Remove the short-circuit from E1 is too large), alter the value of C3 by tances between the meter and VDU of
and E2. Connect the secondary of the trial and error. up to 50 cm. The recommendations of
transformer across a 1 k potentiome- During measurements of the MPRIII specify this distance as 30 cm;
ter. Link the wiper and one of the E-field at home, at school or college, in only D5 should then light. [980038]

Elektor Electronics 4/98 45


IC tester
Part 2: menu structure
and test-vector building
Last month we gave
you the low-down on 1 IC Tester
1:Test
Normal keyboard functions:

up/dn = scroll up/down


the hardware aspects ent = accept next menu
esc = return to main menu

of this powerful and Select Library up/dn


ent
74 x x x
versatile IC tester. In esc

this second and con- Figure 1. Structure of


Menu option 1: Test.
cluding instalment, Select IC:
74 : 00
up/dn
ent
esc
we turn to program-
ming matters. Insert IC,
Press Enter ent
esc

Testing, don't
To be able to apply the information remove IC !
D6 lights
presented in this instalment, you have
to have a working IC tester available,
together with all the files found on the
OKAY not OKAY
diskette with order number 986014-1 or
CD-ROM 986001-1 (see further on).
The tester is very likely to function
ICCL : x mA Test failed:
properly if the message
ICCH : x mA Ent: rep Esc: exit
IC Tester ent = repeat test
1:Test esc
any key

appears on the LCD when you switch


the power on. However, this project
features a number of clever hardware Test ok
ent = repeat test
checking options. Although you may Ent: rep Esc: exit esc
980029 - 2 - 11
not need to do any hardware checking
at all, the relevant routines are briefly
mentioned further on. For now, it is
assumed that the tester works properly. the functions of the (few) keys on the more advanced users among you who
keyboard. Fortunately, the use of these require a deeper knowledge of the
MENU STRUCTURE keys is consistent in most menus. To way the instrument uses built-in soft-
As already mentioned in last months help you stay oriented, the structure ware to test logic integrated circuits.
instalment, you are looking at a test of each of the major sub-menus For a good understanding of the hard-
instrument which offers three commu- offered by the tester is shown in ware/software interaction, it is neces-
nication channels with the real world: Figures 1 through 8. Where a key has sary to analyse the structure of the file
a keyboard, an LCD and a serial com- a non-standard function, this is indi- Test Vector File which is permanently
puter interface. Throughout the oper- cated separately. stored in the system EPROM, together
ation of the IC tester, menus are used to Many of you will be perfectly with the program executed by the
interact with you, the user. Selecting happy to use the 1:Test menu most of microcontroller.
from the plethora of functions offered the time, or the 3:Retest menu if you A copy of the test vector file which
by the instrument is basically very sim- are looking at a pile of identical ICs is compiled, converted to binary and
ple and easy to learn once you know which should be subjected to a then stored in the default system
go/non-go test. EPROM (order code 986507-1) may be
found on the project diskette, order
TEST VECTOR FILE code 986014-1, as well as on the P-C
Design by L. Lamesch From here on, we are addressing the Hard & Software 97-98 CD-ROM, order

Elektor Electronics 4/98


46
Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

code 986001-1 (look in the subdirectory


IC Tester Normal keyboard functions:
/INT/BIN). The file is called VECT.TVC, and 2 2:Identify
contains all information the system up/dn = scroll up/down
needs to check the massive amount of ent = accept next menu
esc = return to main menu
ICs listed in Table 1 in last months
instalment. For now, lets load Select Pincount: up/dn
ent
VECT.TVC into a word processor, and 14 esc
examine the syntax used. What do all
these keywords mean?
Select VCC Pin: up/dn
; Unknown ent
esc
Comment delimiter. All characters fol-
lowing the semicolon are treated as
comment, and ignored by the system. up/dn Figure 2. Structure of
Select GND Pin:
Unknown
ent Menu option 2: Identify.
esc
LIBRARY lib_name
Defines the start of an IC library. This
should be the first keyword in the .TVC
file (except comment, of course). All IC Mark Libraries: up/dn
ent
types which follow this keyword 74 x x x esc
belong to the library with the name
lib_name. The name of the library
may consist of up to 15 characters. press dn to scroll press dn to scroll
to last but one entry to last entry
There is no limit to the number of
libraries in a .TVC file.
Mark Libraries: Mark Libraries: up/dn
NAME ic_name ent
Cancel Accept esc
Defines the start of IC data, and
launches the test vector set for the IC up/dn
ent = return to main menu
with the name ic_name (max. length esc
is 15 characters). There is no limit to Insert IC
the number of ICs in a library. The end Press Enter
of the test vector set is marked by the
next occurrence of NAME, LIBRARY, or
dn = show child ICs (if available),
the end of the .TVC file. else library of IC found 74 x x x during
ent = continue scanning scan
74 : 00
esc = return to main menu
CHILD parent_ic_name
If an IC employs the same test vectors
as one already defined, it is sufficient
to identify it as a child of a parent. IC found no IC found

For example, the 74:132 has the same


function and pinout as the 74:00,
except that the gates are of the Schmitt IC found, Parent: No IC found
trigger type (which is not recognised 74 : 00 Press Enter
by the tester). A 74:132 is defined as ent = return to main menu
follows:
has 'child' ICs
NAME 74:132 ;define new IC
CHILD 74:00 ;declare as 74:00 up = show previous child IC (if available),
else parent IC
offspring Child ICs: dn = show next child IC (if available),
74 : 24 else library of IC found
ent = continue scanning
A parent may have up to 100 children. esc = return to main menu

up = show previous child IC (if available),


PINS pin_count Library: else parent IC
dn = show ent/esc option
Unless a certain IC is a child, its test 74 x x x ent = continue scanning
vectors have to be defined. In that esc = return to main menu
case, the first keyword to use is always
PINS which defines the number of up = show library of IC found
Ent: Continue
pins on the IC. ent = continue scanning
Esc: Exit esc = return to main menu

PINORDER pin_order
Library of IC found is shown 980029 - 2 - 12
Links the individual IC pins to the
columns that supply the test vectors.
PINORDER may only follow PINS, and
the pins are identified using their pin This defines the function of each indi- separated by spaces (not obligatory,
numbers. Individual pin numbers vidual pin. The following functions are though), and all pins must be included
should be separated by a space char- available: in pin_definition. Pins which should
acter. All IC pins have to be identified O output not be tested are defined as outputs
in pin_order , including pins which I input (O), and not tested in the VECT line
are not tested. G ground pin (X). PINDEF should precede the first
V Vcc (+supply) pin VECT. After a VECT line, the pin func-
PINDEF pin_definition The individual pin functions may be tions may be redefined using PINDEF.

Elektor Electronics 4/98 47


vector. Likewise, VCC should be
IC Tester Normal keyboard functions:
3 3:Retest
matched with a 1.
up/dn = scroll up/down
ent = accept next menu count, ENDR
REPEAT
esc = return to main menu
This keyword allows a loop to be
74 x x x implemented, containing test vectors
74 : 00 (VECT) and pin function definitions
(PINDEF). The loop is repeated count
times. Each loop has to be
any key Figure 3. Structure of terminated with an ENDR
Menu option 3: Retest IC. keyword. Nested loops
are not allowed.
Insert IC, ent
Press Enter esc PULL on_off
This keyword tells the IC tester hard-
ware to connect the IC outputs to pull-
insert IC in socket down resistors during the test (on_off
= 1) or not (on_off = 0). When on_off
is at 0, the outputs are continuously
Testing, don't loaded by a pull-up resistor, and test-
remove IC ! ing for a high-Z state is not possible.

ICCL
When this instruction is encountered,
test OKAY test not OKAY the regulated power supply measures
the IC supply current. After the test,
the supply current is indicated as
Test ok Test failed! ICCL. ICCL may only be used once for
Ent: rep Esc: exit Ent: rep Esc: exit any one IC.
ent = repeat test ent = repeat test
esc esc ICCH
980029 - 2 - 13
When this instruction is encountered,
the regulated power supply measures
VECT test_vector Z test if pin is at high impedance. the IC supply current. After the test,
A test vector may consist of the fol- X do not test this pin. the supply current is indicated as
lowing elements: ICCH. ICCH may only be used once for
1 output pin: check if pin is at 1; The individual elements may be sep- any one IC.
input pin: apply 1 to pin. arated by spaces (not obligatory). If a
0 output pin: check if pin is at 0; pin is defined as GND, it should have The following points should be noted
input pin: apply 0 to pin. a 0 at the relevant position in the test when writing your own test vectors
for ICs not included in the default
library.
IC Tester Normal keyboard functions:
4 4:Trace
w All IC inputs have to be made logic 0
up/dn = scroll up/down and logic 1 at least once, in a manner
ent = accept next menu
esc = return to main menu that ensures that this change can be
detected on at least one IC output.
Select Library up/dn
ent
w All IC outputs have to go 0 and 1 at
74 x x x esc least once during the test, and also Z
(high-impedance or tri-state) when an
output can assume this state.
Select IC: up/dn w With ICs having a sequential internal
ent
74 : 00 esc circuit, IC inputs driving the clock
input of a register flip-flop may not
change state in unison with inputs of
Insert IC:
these flip-flops, if this transition equals
Press Enter
ent the active edge of the clock input. For
esc
example, the clock input of a 74:74
may not change from 0 to 1 when the
pin 1 = lower left-hand position level at the data input changes at the
pin 14 = upper left-hand position ent, up/dn = next test vector
V = Vcc pin V11 0011 00 esc same time. This proviso also applies to
G = GND pin 01 1111 00G dn = skip repeat loop (if used)
clock and enable inputs of synchro-
0 = IC input at 0
1 = IC input at 1 nous counters.
Z = IC output at high-Z (3-state)
0
0
0 = IC output at 0, should be 0 D6 lights w If an enable input of a latching flip-
1 = IC output at 1, should be 0
0
Z = IC output at Z, should be 0
flop toggles, the level at
1
1
0 = IC output at 0, should be 1
Figure 4. Structure of the data input of the flip-
1 = IC output at 1, should be 1 measure ICCH, ICCL,
1
Z = IC output at Z, should be 1 end of test Menu option 4: Trace. flop is not allowed to tog-
ERR = error in output state
gle at the same time. This
applies to rising as well as
Ent: Restart ent = repeat test falling pulse edges.
Esc: Exit esc
980029 - 2 - 14 To close off this section, Figure 9 shows

48 Elektor Electronics 4/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

an example of a set of test vectors writ-


ten for the type 4040 CMOS 12-stage rip- 5 IC Tester Normal keyboard functions:
ple-carry binary counter. Although not 5:Options
up/dn = scroll up/down
all compiler keywords are used, the ent = accept next menu
example is still useful to unravel the esc = return to main menu
structure of the vectors in relation to
Mark Options: up/dn
the internal operation of the IC. A Disp ICC
ent = mark /unmark Figure 5. Structure of
esc
pinout diagram is included for your Menu option 5: Options.
convenience. Note how the repeat
Options:
instruction is used to toggle the logic
Disp ICC: show ICCL or ICCH after IC test
level at the clock pulse input (cp). Ident: show all IC types during scanning
Depending on the number of clock Retain Selectn: selected ICs, libraries, pin count,
Vcc/GND pin positions, are always retained.
pulses applied in this way, a particular
IC output (Qx) should go high. The
hardware monitors this output, and its press dn to press dn to
last entry last but one entry
level is compared with that stated by
the test vector. For example, a logic 1
should occur on output Q8 of the 4040 Mark Options: Mark Options:
after 128 clock pulses. If this logic one Accept Cancel
is not measured after the endr
instruction, in other words, if the up/dn up/dn
ent ent = return to main menu
response of the IC under test does not esc esc = return to main menu
match the test vector after endr, the 980029 - 2 - 15

IC is identified as faulty, and may be


binned! Comment is also used in this
test vector script: the fourth line con-
tains the logic labels of the IC pins. 6 IC Tester Figure 6. Structure of
Note that some manufacturers of the 6:Info Menu option 6: Info.
4040 start with output label Q1 rather
than Q0 as indicated by the comment.
This does not affect the operation of
the IC, however. IC Tester 1.0 (C) any key main menu
L. Lamesch 1997
More IC test vector scripts and inter-
980029 - 2 - 16
nal diagrams are given on this months
Datasheets.

TEST VECTOR EPROM. File appending, by the way, is ICTVC VECT.TVC.


COMPILING AND achieved with the aid of the DOS com-
DEBUGGING mand copy ict.bin+vect.out It generates the following files:
The purpose of analysing the master /b eprom.bin.
test-vector file as we just did is to The compiler is invoked by typing TVC.OUT: test vector file (binary);
enable you to write your own test ERR.OUT: error report;
scripts for ICs not included in the ICTVC [source file.TVC] LIST.OUT: list-file containing informa-
default library (see Table 1 in part 1). tion on the source file, binary file, a
In principle, you only need a datasheet For example, copy of the source file with line num-
of the IC to reason how it should work.
Eventually, you may want to add the
ent = start test
new test vectors to the ones already IC Tester Figure 7. Structure of
available in vect.tvc, and burn the lot 7 7:Self Check
esc
up/dn Menu option 7: Self
up2/dn2
into a new system EPROM. The pro- Check.
grams and general procedures to do so
will be described below. Remember HW Check: Test GND transistors
that all of the information presented 1:GND switches
below may be totally academic to you
if you are satisfied with the collection
of ICs in the default library.
Do not launch the programs HW Check: Test VCC transistors
2:VCC switches
directly from the floppy disk. First run
CHECK 1 from the DOS prompt as
indicated on the floppy to make sure
the data is intact and virus-free. Next, HW Check: Set/Clear DUT pins
copy all files on the floppy to a suitably 3:Set Pins
named subdirectory on the hard disk.

ICTVC.EXE HW Check: connect pull up/down


This is the Test Vector Compiler. Its to DUT pins
4:Pull
function is to turn a test vector source
file (like VECT.TVC) into a test vector
binary file. Next, the latter file has to
HW Check: Show ICC value
be appended to the microcontroller
5:ICC
program, ICT.BIN, to create a large
980029 - 2 - 17
binary file that can be burned into an

Elektor Electronics 4/98 49


bers added as well as the bytes gener-
8 IC Tester
8:Remote Mode
Normal keyboard functions: ated from each line;
up/dn = scroll up/down TMP.OUT: temporary file used by
ent = accept next menu ICTVC.EXE.
esc = return to main menu

Waiting for Host esc Any errors occurring during the com-
Esc: Cancel pilation process are recorded in
Figure 8. Structure of ERR.OUT only. They do not appear on
Menu option 8: the PC screen.
sync detected on no Remote mode.
RS232 i/f ?
TVCHK.EXE
This is a kind of shell program that
yes launches ICTVC.EXE, and enables test
Synchronized to host vector scripts to be debugged. For this
program to operate you have to con-
* * Connected * * esc nect the IC Tester to your PC via the 3-
Esc: Exit wire serial link. TVCHK should be
980029 - 2 - 18 launched with an appended parame-
ter which is either the COM port num-
ber (1-4), or the COM port address (in
name 4040
hex) followed by the associated inter-
9 ; 12-bit CMOS ripple carry counter
pins 16 rupt line (1-7). Example: TVCHK 2.
pinorder 10 11 1 15 14 12 13 4 2 3 5 6 7 9 8 16 Obviously, we are talking of the COM
; /cp mr q11 q10 q9 q8 q7 q6 q5 q4 q3 q2 q1 q0 gnd vcc port to which the IC Tester is con-
pindef I I O O O O O O O O O O O O G V
vect 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 nected! A screendump illustrating
vect 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 some of the options offered by TVCHK
vect 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 is shown in Figure 9.
vect 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1
vect 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1
EDT.BAT
vect 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
vect 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 This extremely small batch file is used
vect 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 to launch the word processor you will
vect 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 be using to load, modify and save test
vect 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1
repeat 4 vector files. If you do not want to
vect 0 0 0 0 0 0 0 0 0 0 0 X X X 0 1 employ EDIT.COM, change EDT.BAT as
vect 1 0 0 0 0 0 0 0 0 0 0 X X X 0 1 required to make it point to your
endr favourite DOS text editor. Type the
vect 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1
repeat 8 name of the file you want to process
vect 0 0 0 0 0 0 0 0 0 0 X X X X 0 1 after EDT. In case VECT.TVC is too
vect 1 0 0 0 0 0 0 0 0 0 X X X X 0 1 large for your wordprocessor, consider
endr creating the part to be appended as a
vect 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
repeat 16
separate file. Once the new test-vector
vect 0 0 0 0 0 0 0 0 0 X X X X X 0 1
vect 1 0 0 0 0 0 0 0 0 X X X X X 0 1
endr
vect 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1
Figure 9. Example
repeat 32 illustrating the opera-
vect 0 0 0 0 0 0 0 0 X X X X X X 0 1 tion of a test vector
vect 1 0 0 0 0 0 0 0 X X X X X X 0 1 script. The diagram
endr and the script are all
vect 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1
repeat 64
you need to put the
vect 0 0 0 0 0 0 0 X X X X X X X 0 1 4040 12-bit counter
vect 1 0 0 0 0 0 0 X X X X X X X 0 1 through its paces.
endr
vect 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1
repeat 128
vect 0 0 0 0 0 0 X X X X X X X X 0 1
vect 1 0 0 0 0 0 X X X X X X X X 0 1 CD4040
endr
vect 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 Q11 1 V 16
DD
repeat 256
Q11
vect 0 0 0 0 0 X X X X X X X X X 0 1 Q5 2 Q5 Q10 15 Q10
vect 1 0 0 0 0 X X X X X X X X X 0 1
endr Q4 3 Q4 Q9 14 Q9
vect 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1
repeat 512 Q6 4 Q6 Q7 13 Q7
vect 0 0 0 0 X X X X X X X X X X 0 1
vect 1 0 0 0 X X X X X X X X X X 0 1 Q3 5 Q3 Q8 12 Q8
endr
vect 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 Q2 6 Q2 R 11 RESET
repeat 1024
vect 0 0 0 X X X X X X X X X X X 0 1 Q1 7 Q1 CLK 10 CLOCK
Q0
vect 1 0 0 X X X X X X X X X X X 0 1
endr 8 GND 9 Q0
vect 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1
vect 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1
vect 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 980029 - 2 - 19
iccl ; measure IC current
icch ; measure IC current

50 Elektor Electronics 4/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Indicate the name Quit the program.


of the binary file COM Port Addr: xxx Int: y
to be burned into Tell the PC which COM port to use for
the EPROM. communication with the IC Tester.
7: Generate EPROM
file. LARGER epromS
Remember, the Those of you who wish to add test
output format is vector scripts for ICs not supported by
binary! the default system EPROM may soon
8: Write GAL source find that the size of the .BIN file gen-
file GAL.PLD. erated by TVCHK option 7 exceeds the
capacity of a 512-kbit (64-kByte) EPROM
Test Vector like the 27(C)512. That is not a prob-
Checking lem, however, because the IC tester
A: Lib name: hardware accommodates larger
74xxx EPROMs like the 2-Mbit (256-kByte)
Indicate name of 27020 without problems. Because these
Figure 10. The TVCHCK the library contain- giant EPROMs are divided into 64-kByte
scripts have been program offers a use- ing the test-vector banks, bank-switching then has to be
debugged, they may be ful shell around the set to be implemented by means of outputs B6
appended to VECT.TVC with- utilities for test vector tested/debugged. and B7 of PIO device IC2. Address line
out using TVCHK. Next, the testing and compiling. B: IC name: 74:00 A17 is then also required, so you have
option Compile tv source Indicate name of to set jumper JP1 to the not-A position
from TVCHK is used to com- test-vector set to be when using a 27C020 EPROM.
pile the complete file for burning an tested/debugged.
EPROM. C: Test IC CONCLUSION
A good start for practising is the file This may take a while when many test You have been reading an article dis-
SMALL.TVC. To get the feel, try replac- vectors have to be applied (e.g., more cussing a test instrument which, in its
ing VECT.TVC by SMALL.TVC under than 10 minutes when testing a script standard version, allows a vast num-
menu option 2 in TVCHK. for the 4020). ber of integrated logic circuits from the
D: Trace Test Vectors 74 (TTL) and 4000 (CMOS) series to be
The main menu of TVCHK comprises This is the actual debugging tool. For subjected to some pretty thorough
the following options: each test vector, the expected logic testing. If you are not satisfied with the
states and the ones actually measured range of ICs that can be tested, a num-
Test Vector Compiler on the DUT are indicated. Errors are ber of powerful software tools are
1: Test vector source: VECT.TVC highlighted in red. Pin 1 is always available to roll your own, just using
Indicate name of test vector source file. indicated at the left-hand side, and the a common-or-garden PC (running
2: Edit & Compile tv source file. pin with the highest pin number, at plain old DOS) and, optionally, an
3: Compile tv source file. the right-hand side. REPEATENDR EPROM programmer capable of han-
4: View error report ERR.OUT. loops may be skipped by pressing the dling EPROMs with a capacity of at least
5: View list file LST.OUT. s key. 512 kbits. Happy testing!
6: EPROM binary file: EPROM.BIN Z: Exit (980029-2)

The 100% DIY approach


Although the best guarantee to successful construction of this pro-
ject is to order a ready-programmed GAL and EPROM from the
Publishers, together with a PCB and a floppy disk (order as a set, order
code 980029-C), there is are two alternative, cheaper, ways for the
more audacious.
The CD -ROM entitled P-C Hard & Software 97-98 (order code
986001-1) contains THE WORKS, i.e., all files to program your own
GAL and EPROM for this project, in addition to the master test vector
file, the 535s executable code, source code files in C and assem-
bly language, and all software utilities mentioned in this instalment.
So, if you are completely self-supporting, that is, have access to a PC,
a GAL programmer and an EPROM programmer, we suggest buying just
the PCB and the CD-ROM. The relevant subdirectory on the CD-ROM is
/INT. Remember, you can not run the test vector utilities from the CD-
ROM since they need to create files!
The second option for the more advanced among you is to buy only
the PCB and the floppy disk. The floppy contains a sub-set of the files
on the CD-ROM: not included are the assembler files and the PCB art-
work and circuit diagrams as originally supplied by the author. For the rest, everything is included to create and debug
your own test vector files, and prepare a binary file for burning into an EPROM, as described in this article. The .JED file
for programming your own GAL is also included.
Whichever option you choose, remember that any hardware or software component needed to build (and understand)
this project is available separately through our Readers Services.

Elektor Electronics 4/98 51


Processor
System Hardware
Single IC monitors Monitor
APPLICATION NOTE

whole system Features


Temperature sensing
Five positive voltage inputs
Two op amps for negative voltage monitoring
Three fan speed monitoring inputs
Input for additional temperature sensors
Chassis Intrusion Detector input
WATCHDOG comparison of all monitored values
POST code storage RAM
ISA and I2C Serial Bus Interfaces

A computer system or, indeed, any


microprocessor-based system, can
operate reliably only when its inter- GENERAL DESCRIPTION
nal temperature and supply rails The LM78 is intended for hardware
monitoring of servers, PCs, or virtually
are held stable within specified any microprocessor-based system. In a
limits. The hardware monitoring of PC, the LM78 may be used to monitor
power supply voltage, temperatures,
these quantities, and others, is sim- and fan speeds. Actual values of these
plified by National Semiconductors quantities can be read at any time, and
programmable WATCHDOG limits in
new Integrated Data Acquisition the LM78 actuate a fully programma-
ble and maskable interrupt system
System Type LM78.

Figure 1. Block diagram of the LM78.


manufacturers
from manufacturers
and does
their representatives and

1
or its consultants.
received from
information received

Electronics or
experience by Elektor Electronics
electronics industries or their
on information

WATCHDOG is a trademark of National


Semiconductor Corporation
based on
note is based
and electronics
imply practical experience

I2C is a registered trademark of the


Philips Corporation
this note
electrical and
of this
in the electrical
content of
The content

not imply

A National Semiconductor
Application
The

not
in

Elektor Electronics 4/98


52
Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

with two outputs.


The LM78 has an on-chip tempera- 2
ture sensor, five positive analogue
inputs, two inverting inputs (for mon-
itoring negative voltages), and an
eight-bit Delta-Sigma analogue-to-dig-
ital converter (ADC). See the block dia-
gram in Figure 1.
An input is provided for the
overtemperature outputs of additional
temperature sensors and this is linked
to the interrupt system.
The LM78 provides inputs for three
fan tachometer outputs. Additional
inputs are provided for chassis intru-
sion detection circuits, VID monitor
inputs, and chainable interrupt.
The LM78 provides both ISA and
Serial Bus interfaces. A 32-byte auto-
increment RAM is provided for POST
(Power On Self Test) code storage. Figure 2. Examples of
the analogue inputs
FUNCTIONAL that monitor the sup- Chip Reset/ID Register which allows
DESCRIPTION ply rails in a PC. The the resetting of all the registers to
The LM78 continuously converts ana- resistor values shown the default power-on reset value. It
logue inputs to 8-bit digital words with provide about 3 V at provides a bit for identification
a 16 mV LSB (least significant bit) these inputs. between the current version of the
weighting, yielding input ranges of device and an older version which
04.096 V. The two negative analogue does not have this reset capability.
inputs provide inverting op amps with internal registers as detailed in Fig- POST RAM. This FIFO RAM stores up
their non-inverting input referred to ure 3. These include to 32 bytes of 8-bit POST codes.
ground. With additional external feed- Configuration Register providing con- Overflow of this register will set an
back resistors, these inputs provide trol and configuration of the chip. interrupt. The register, located at
measurements of negative voltages Interrupt Status Registers. providing base address x0h and x4h, allows
(such as 5 V and 12 V power rails). the status of each WATCHDOG
The values of these resistors for a limit or event.
number of voltage measurements are Interrupt Mask Registers allowing
shown in Figure 2. The result of the masking of individual interrupt
various processes is stored in a bank of sources, as well as separately mask- 3
registers (20H2AH) which are found ing each of both hardware inter-
under Value RAM in Figure 1. The rupt outputs.
analogue inputs are useful for moni- VID/Fab Divisor Register for reading
toring several power supplies present the status of the VID input lines.
in a typical computer. The high bits of this register contain
Temperature is converted to an the divisor bits for Fan1 and Fan2
8-bit twos-complement digital word inputs.
with a 1 C LSB. Serial Bus Address Register which
Fan inputs measure the period of contains the Serial Bus address. At
tachometer pulses from the fans, pro- power on, it assumes the default
viding a higher count for lower fan value of 0101101, and can be altered
speeds. The fan inputs are digital via the ISA or Serial Bus Interface.
inputs with an acceptable range of
05 V and a transition level of about
1.4 V. Full-scale fan counts are 255 (8-bit Figure 3. Register
counter) and this represents a stopped structure of the LM78.
or very slow fan. Nominal speeds, Relevant software
based on a count of 153, are program- sets the limits at
mable from 1100 to 8800 rev/min. Sig- which interrupt lines
nal conditioning circuitry is included will be set. Monitoring
to accommodate slow rise and fall results are easily
times. read.
The LM78 provides a number of

Elektor Electronics 4/98 53


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

for easy decoding to address 80h nal that indicates to the LM78 that it ISA is active will not be a problem,
and 84h, the normal addresses for may drive data on to the ISA data bus. since even a single bit of Serial Bus
outputting of POST codes. Inter- IOWR# is the standard ISA com- communication requires 10 microsec-
rupt will be set only when writing mand to the LM78 that it may latch onds, in comparison to less than a
to port x0h or x4h is taking place. data from the ISA Bus. microsecond for an entire ISA com-
The register can be read via ports SYSCLK is the standard ISA system munication.
85h and 86h. clock, typically 8.33 MHz. This clock is
Value RAM containing the monitoring used only for timing of the ISA inter- TYPICAL APPLICATION
results: temperature, voltages, fan face. All other clock functions within The setup of a typical application is
counts, and WATCHDOG limits. the LM78, such as the ADC and fan shown in Figure 4. It monitors tem-
This register consists of a total of 64 counters, are done with a separate perature, the speed of three fans, and
bytes. The first 11 bytes are all of asynchronous internal clock. seven power supply voltages. The
the results, the next 19 bytes are the A typical application designed to chassis intrusion detector is based on
WATCHDOG limits, and are use the POST RAM would decode the a photodiode and discrete bistable.
located at 20h3Fh, including two LM78 to the address space starting at When the chassis has been opened
unused bytes in the upper loca- 80h, which is where POST codes are
tions. The next 32 bytes, located at output to. Otherwise, the LM78 can be Figure 4. In this application, the
60h7Fh, mirror the first 32 bytes decoded into a different desired LM78 monitors temperature, fan
with identical contents. The only address space. speed of three fans, and seven
difference in the upper bytes is that To communicate with an LM78 reg- power supply voltages. It also mon-
they auto-increment the LM78 ister, first write the address of that reg- itors the O.S. output of up to eight
Internal Address Register when ister to Port x5h. Read or write data LM75 digital temperature sensors
read from, or written to, via the ISA as well as an optical chassis intru-
Bus (auto-increment is not available sion detector.
for Serial Bus communications).
4
When the LM78 is started, it cycles
through each measurement in
sequence, and it continuously loops
through the sequence about once
every second. Each measured value is
compared to values stored in WATCH-
DOG or Limit registers.
When the measured value violates
the programmed limit, the LM78 will
set a corresponding interrupt in the
Interrupt Status. Two hardware inter-
rupt lines, SMI# (System Management
Interrupt) and NMI/IRQ# (Non-mask-
able interrupt/interrupt request), are
fully programmable with separate
masking of each interrupt source, and
masking of each output. In addition,
the Configuration Register has control
bits to enable or disable the hardware
interrupts.

INTERFACE
The LM78 decodes only the three low- from or to that register via Port x6h. A (intruded), the relevant data are stored
est address bits on the ISA Bus, result- write will take IOWR# low, while a thanks to a battery backup. The
ing in the following base addresses. read will take IORD# low. bistable may be reset via the LM78.
If the Serial Bus interface and ISA A link with the System Manage-
Port x0h: POST codes from the ISA Bus interface are used simultaneously, ment Serial Bus of the PC may be
Bus. there is the possibility of collision. To established via the I2C Bus.
Port x4h: POST codes from the ISA prevent this from occurring in appli- A software-controlled 5 V power
Bus. cations where both interfaces are used, supply is provided with the aid of a
Port x5h: The LM78 Internal Address read Port x5h and if the Most Signifi- MOSFET. This supplies the entire cir-
Register. cant Bit (MSB), D7, is high, ISA com- cuit, which draws a current of only
Port x6h: Data Register. munication is limited to reading Port about 1 mA during normal operation,
x5h only until this bit is low. A Serial and about 10 A in the standby mode.
IORD# is the standard ISA Bus sig- Bus communication occurring while [980009]

Elektor Electronics 4/98 55


introduction to digital
signal processing
Part 4 From echo to FIR filter
attenuation constant and skM is the
source of sound wall
21 Q
delayed signal. How can this be
arranged as a program? It is clear that
to determine signal yk at a point in
time k, the input signal M samples ago
must be known. For this, a buffer is
required that can hold at least M sam-
ple values. The most appropriate for
this is a circulating register in which a
data stream circulates in a loop. It is
direct sound reminiscent of the old echo generators
that used an endless magnetic tape for
echo storage. The difference is, however,
that in a circulating register the read
and write heads move, but not the
data as with the endless magnetic tape.
receiver A program (ECHO1.PAS) for M=8192
samples is given in Figure 2.
980015 - 4 - 11 The time delay depends on the
Figure 21. An echo is sampling rate. If, for example, the rate
caused by reflection of is 22050 samples/s, the time delay is
the original sound by an 8192/22050 = 0.37 s. First, listen to the
object, and is subject to SINGLE ECHO original file WD1R.WAV, then produce it
attenuation and delay. An echo is the repetition of a sound by with the instruction
reflection of sound waves by an object
in the path of the original sound. Thus, ECHO1\inp=wd1r.wav
the reflected sound is identical to the out=tmp.wav
An important function original sound, except for some atten-
uation and a time delay. If the delay and furnish it with an echo that can be
of digital audio signal is M samples long, the received signal heard clearly in file TMP.WAV.
processing is the is
M U LT I P L E E C H O E S
generation of rever- yk = sk + askM, A single echo is not often satisfactory.
To obtain two or more echoes, the orig-
beration and echo. where sk is the original sound, a is the inal sound must be combined with a
This instalment looks
at how echoes can
be generated in a Window functions
simple manner and The frequency characteristic of a digital filter is a periodic function related to the
sampling period, T, which can be expanded as a Fourier series. The coefficients
how the knowledge of this series represent the impulse response of the filter. When, in a practical
gained in this can be case, this infinite series has to be truncated to n terms, the sharp cut-off leads to
overshoots and oscillations in the characteristic. This is know as the Gibbs phe-
put in a general form. nomenon and the effect can be minimized by multiplying the impulse response
by a weighting factor described as a window function w(n). This function can eas-
These findings lead ily be incorporated in the design of an FIR. Some of the common window func-
naturally to digital fil- tions have the mathematical form listed below.
ters. Rectangular w(n) = 1 0 n (N1)
Triangular w(n) = 2n/(N1) 0 n (N1)/2
Bartlett w(n) = 2[(2n)/(N1)] (N1)/2 n (N1)
Hanning w(n) = 0.50.5cos[(2 n)/(N1)] 0 n (N1)
Hamming w(n) = 0.540.46cos[(2 n)/(N1)] 0 n (N1)
By Dr. Ing. M. Ohsmann

Elektor Electronics 4/98


56
number of reflections that have been program echo1 ;
delayed by times L and M, and atten- 22 uses dos,crt,graph ;
uated by factors a and b. {I SIGLIB.PAS }

yk = sk + askL + bskM. var k:int;


x,y:float ;
buffer:array[0..8191] of float ;
If still more echoes are desired, use pointer:int ;
more addends as appropriate. There is
a program for this on the CD-ROM begin
entitled FIRFIL1. The true meaning of start(simple echo) ;
this name will be revealed later. It inp_fn:=tmp1.wav ; set_par_string(\inp=,inp_fn) ;
enables the computation of echoes in out_fn:=tmp.wav ; set_par_string(\out=,out_fn) ;
general. The number of echoes
required must be specified, together open_inp(inp_fn) ;
with their time delay and amplitude, open_out(out_fn) ;
by a number in a file. For example,
pointer:=0 ;
with the file XECHO2.SPP for k:=0 to 8191 do buffer[k]:=0 ;

\\file exec.bat for k:=1 to nsamples do


firfil1\inp=speech1.wav\out= begin
tmp.wav\filter=fir1.fir x:=input ;
\\eof y:=buffer[pointer] ;
buffer[pointer]:=x ;
\\file fir1.fira simple test filter0 pointer:=pointer+1 ;
0 0.5 if pointer>=8192 then pointer:=0 ;
output(x+0.5*y) ;
3000 0.4 end ;
6000 0.3
12000 0.2 stop ; Figure 22. Program for generating
16000 0.1 end. an echo.
\\eof

\\end Figure 23. When a sweep signal is


23 passed through an echo-filter, the
five echoes are obtained with delay result is a band-pass characteristic.
times 0, 3000, 6000, 12000 and 16000
samples long, and amplitudes 0.5, 0.4,
0.3, 0.2, 0.1. The maximum delay is
16383 samples long, and the maximum
number of echoes is 1000.
Try these echoes with XECHO2.SPP.
In file TMP.WAV, a number of beautiful
echoes may be heard. The addition of
a sufficiently large number of echoes
results in reverberation.
980015 - 4 - 13

F I R F I LT E R S *
The program FIRFIL1 is capable of
much more than the generation of
echoes. As an experiment, generate a Figure 24. Impulse response of a
sweep signal and pass it through the 24 band-pass filter.
filter defined in ECHO3.SPP. This results
in 256 echoes with rather unusual val-
ues as may be seen on the oscillogram
in Figure 23. This clearly indicates that
the sweep signal is passed over a cer-
tain frequency range only: that is, the
filter is a band-pass section.
Unfortunately, it is not easy to aver-
age the sound intensity of 256 echoes
in a manner that results in a band-pass
function. Before the actual technique 980015 - 4 - 14
is discussed, we will take a look at how
finite impulse response (FIR) filters*
function. y0 = a0x0+a1x1+a2x2+
A FIR filter that generates echoes yk = a0xk+a1xk1+a2xk2+
with time delays 0, 1, 2, and sound Only the first term remains, so that
intensities a0, a1, a2, is described by where xk and yk are the input and out- y0 = a0.
the equation put values respectively.
To find the impulse response of the When k = 1,
filter, that is, the value of yk when x0=1
* Also known as non-recursive filters or and all other values xj=0, we must first y1 = a0x1+a1x0+a2x1+
transversal filters. calculate the value of

Elektor Electronics 4/98 57


Figure 25. Noise and
pulse signals contain
25 H (f)
all frequencies.

only the second term remains, so that


y1 = a1.
f Continuing this process shows that
for all values of k 0, yk = ak. This
noise generator filter spectrum analyser means that the impulse response is the
filter coefficient. In other words, if an
impuls is passed through such a filter,
the result is the filter coefficient. This
is due to the second part of XECHO3.SPP.
The impuls response of the filter just
H (f)
discussed is shown in Figure 24. It
resembles that of an oscillating circuit.
This is to be expected because hard-
ware band-pass filters behave like cou-
f pled oscillating circuits.
pulse generator filter spectrum analyser
ALL-FREQUENCY
980015 - 4 - 15
SIGNALS
In Part 3, a noise signal was used to
determine the frequency response of a
filter. This is possible since one of the
26 properties of white noise is that it con-
tains all frequencies at the same ampli-
tude. After the signal has been passed
through a band-pass filter (Fig-
ure 25 top), all frequencies in the out-

Figure 26. Determining


the frequency response
with a noise signal
(left) or a pulse (right).
At the top, the input
signals, and below the
output signals.

put still have the same amplitude (see


Figure 26 left) (Experiment
XPULSE1.SPP).
When noise signals are used, arriv-
ing at a result through averaging takes
a fairly long time. Researchers there-
fore asked themselves whether there
is another kind of signal that gives
quicker results and still contains all fre-
quencies. The answer is: yes, a pulse
as produced by signal generator
PULSE1.EXE.
27 h (t)
The spectrum of this pulse shows a
H (f) virtually constant amplitude for all fre-
filter
DFT
quencies (Figure 26 right). Thus, the
noise signal used for determining the
frequency response may be replaced
t f
by a pulse.
impulse response frequency response A filter reacts to a pulse in accor-

Figure 27. A DFT


enables the frequency
H (f ) response to be deter-
filter mined from the impulse
IDFT
response. An IDFT
enables the impulse
f response to be deter-
frequency response impulse response
mined from the fre-
(weighted) quency response.
980015 - 4 - 17

58 Elektor Electronics 4/98


dance with its impulse response. This \\file exec.bat
contains all frequencies at the same 28 \\ generate filter
level as they are passed by the filter, or, specfil1 \filter=tmp.fil \fir=tmpa.fir \bitmap=pic.ps
in other words, the spectrum of the \\eof
impulse response is the same as the
frequency response of the filter, as \\ filter specification
shown by tmp3.wav and tmp4.wave
in Figure 26. This is an important prin- \\file tmp.fil
ciple of DSP, which can also be a simple filter as example
expressed in mathematical terms. normal
When the spectrum and impulse 44100 ; sample frequency
response are to be determined by a 128 ; number of taps
spectrum analyser, the window func- 7 ; alpha for window
tion (see box) must be disabled to 7 ; number of data points in frequency domain
avoid erroneous results. It is important 0 0
that the impulse response is short 1990 0
enough (here, 4096 samples) to ensure 2000 100
that it fits in the DFT (Discrete Fourier 5000 100
5200 10 Figure 28. Data file
Transform) of the spectrum analyser. XFILDES1.SPP
8000 10
Determining the frequency
8200 0
response of a filter by means of a DFT
\\eof
of its impulse response (see Figure 27)
is a fast, simple and accurate method.
However, when the frequency
response of an amplifier is to be deter- Figure 29. Default fre-
mined, care must be taken to ensure 29 100 quency response for
that the input pulses cannot overload use in the filter design.
the amplifier. If this means the use of
low-level pulses, the result may be a
very poor signal-to-noise ratio. In such
cases, pseudo-noise signals, which
have a limited amplitude over the
whole frequency range, are often used.

F I LT E R D E S I G N
10
Since the frequency response of a fil-
ter may be determined by a DFT of its 0
impulse response, the question arises 0 1990 2000 5000 5200 8000 8200
whether the impulse response can be f (Hz) 980015 - 19
derived from the frequency response
by an Inverse Discrete Fourier Trans-
form (IDFT), to which the answer is:
yes. Moreover, when the impulse 30 Figure 30. Screen
response is known, the filter may be images of the filter
simulated with the aid of program FIR- design program.
FIL1.EXE. Filters in digital signal proces-
sors are frequently designed in this
way.
The design of FIR filters is simpli-
fied by program SPECFIL1.EXE. The oper-
ation is shown diagrammatically in the
lower row of Figure 27. From the fre-
quency response of a filter, its impulse
response is determined by an IDFT,
which is modified by a window func-
tion (see box). This enables the prop-
erties of the filter to be fine-tuned. The
impulse response of the filter is then
written into a file, which processes the
FIR program as a data input. A file
(XFILDES.1.SPP) to compute a simple fil-
ter is shown in Figure 28.
The filter specification, the sam-
pling rate, the number of samples in
the impulse response, the parameters
of the window function, and the value 980015 - 4 - 20

of amplification at the desired fre-


quencies are given in file TMP.FIL. The
amplification between the stated fre- in Figure 30. At the top left are the frequency response on a linear scale is
quencies is interpolated linearly as default and actual frequency responses at the bottom right.
shown in Figure 29. on a logarithmic scale. The impulse [980015-4]
The result of the program is shown response is at the bottom left, and the

Elektor Electronics 4/98 59


READERS
Letters
We can only answer questions or remarks of general interest to our readers, concerning projects not
Box
older than two years and published in Elektor Electronics. In view of the amount of post received,
O . it is not possible to answer all letters, and we are unable to respond to individual wishes and
P. 14 requests for modifications to, or additional information about, Elektor Electronics projects.
14
9V...17V

12V 220 9V6...11V2

NiCd

PCB Design System was a little disappointed, howev- 8x 1V4

Dear EditorI am looking for a PCB er, when I saw the output config-
design system that allows me to uration: unbalanced! I had already
first simulate the electrical opera- omitted the unbalanced input from
tion of a circuit and then use turn the A/D conver ter circuit. How 987010 - 11
the approved circuit diagram into about doing a microphone pre-
PCB artwork. Having read all amplifier with a balanced input to
reviews and adver ts in Elektor match the above mentioned con-
14V...17V
Electronics, I am none the wiser. verter?
9V...15V
Therefore, I am curious to know B. Gillisberger (by email) 12V B80
what software is being used in the C1000
Elektor Electronics design labora- Were pretty sure that the micro- 4x 1N4001
tory. phone preamplifier meets your 220
T. Will (by email) demandsit just lacks a bal- 0W25 9V6...11V2
anced output. Enter our
The PCB design process adopt- SSM412-based converter from 1N4148 NiCd
ed by ourselves is by no means the article Balanced/Unbalanced
1k

unusual: once a certain software Converters for Audio Signals 8x 1V4


system has been accepted, it is (March 1998), which offers the grn
22 470
25V 20V
updated and extended whenev- perfect solution. Preset P1 is vert groen
er necessary, enabling it to grow then the equivalent of P1a (or green

with our requirements. P1b for the other channel) at the


987010 - 12
In our design lab, the cad age output of the microphone pre-
dawned about 10 years ago with amp. The SSM4142 board is
the introduction of Ultimate conveniently powered by the The no-load voltage of 17 V is a one of the best known solutions
Technologys Ultiboard pcb 18-volt supply for the micro- bit too high, I think, because the to this kind of problem, but it is
design program suite. At that phone preamplifier. print on original mains adaptors no more original than a relay. At
time, the dos version was used usually reads something like 9.0- some moment, the original
on at computers. Because Ulti- 15 V. Additional voltage regulation designer of this circuit, Pradeep
board was just a pcb design pro- Diodes instead of a is, however, by no means required G. (a reader of our Indian sister-
gram at that time, a different relay? because that is usually catered for magazine) decided in favour of
program had to be used for Dear EditorSince I was for tu- by the telephone set itself. A cou- the relay-based solution, which
schematic drawing: Orcad sdt. nate enough to receive a cordless ple of diodes are all it takes to works fine, and was no cause for
This combination is still in use telephone as my Christmas pre- replace the (expensive) relay, and our lab staff to do major revi-
as we write this. Pspice has sent, your article Uninterruptible an indicator LED is, no doubt use- sions on the circuit. Not men-
been in use since 1989 for cir- Power Supply for Cordless Tele- ful (circuit diagram no. 2Tech. tioning the fact that a relay
cuit simulation tasks. phones came at the right time. Ed.). An alternative would be to contact does not introduce a
The article Printed Circuit Board Notwithstanding the obvious mer- use a transformer with a 10-V sec- serious voltage drop, it has the
Production in Elektor Electron- its of the circuit, I wish to criticise ondary. However, I realise that the distinct advantage of electrical-
ics November 1994 briefly you on the use of a relay. Are you battery charging voltage may then ly disconnecting the telephone
describes our pcb production out of diodes? Normally (circuit be on the low side. from the mains outlet. Surely
process. diagram no. 1Tech. Ed.), the W. Pressner this has to be a great boon in a
battery pack is charged via the country where the mains supply
resistor. When the mains voltage Thanks for your positive criti- is, at best, unpredictable. The
Stereo Microphone disappears, the voltage across the cisms. Even if we do not have relay does not respond immedi-
Amplifier reservoir capacitor drops until the enough diodes to start trading, ately when the mains voltage
Dear EditorA while ago you pub- diode starts to conduct, eventual- stocks levels easily meet our lab disappears or returns, the short
lished a superb audio A/D converter ly enabling the battery to take over. requirements, so that is not the delay enabling voltage surges to
(20-bit A/D Converter, December A much smaller reservoir capaci- reason for using a relay. The be kept away from the telephone
1996Tech. Ed.), so I really tor may be employed because it point is that there are always dif- set. Finally, it is our opinion that
looked forward to seeing the is no longer necessary to cover ferent ways of arriving at circuits there is nothing improper about
Stereo Microphone Amplifier the time needed by the relay to with relatively simple function- using a relay!
(November 1997Tech. Ed.). I change state. ality. True, the use of a diode is

60 Elektor Electronics 4/98


Elektor Electronics

IC Tester AD557

Elektor Electronics Integrated circuits


March & April 1998 DATASHEET 4/98 Special Applications DATASHEET 4/98
IC Test Vectors (illustrated examples) Extract from: vect.tvc AD557 Thin-film silicon-chromium resistors provide the sta-
DACPORT, Low-Cost Complete P-Compatible 8- bility required for guaranteed monotonic operation
Note: tabbed formatting and IC functional diagrams added for claritys sake, these are not available in file vect.tvc. bit DAC over the entire operating temperature range, while
1 = logic high 0 = logic low G = ground V = positive supply voltage laser-wafer trimming of these thin-film resistors per-
I = input O = output nc = not connected XX = dont care
Manufacturer mits absolute calibration at the factory to within
* = vectors not yet verified with a correctly operating IC
iccl = measure supply current icch = measure supply current
Analog Devices, One Technology Way, P.O. Box 2.5 LSB; thus, no user-trims for gain or offset are
9106, Norwood, MA 02062-9106, USA. Tel. (617) required. A new circuit design provides voltage set-
4/98

329-4700, fax (617) 326-8703. tling to 12 LSB for a full-scale step in 800 ns.
name 4001 Internet: www.analog.com. The AD557 is available in two package configura-
pins 14
tions. The AD557JN is packaged in a 16-pin plastic,
pinorder 1 2 3 6 5 4 13 12 11 8 9 10 7 14
pindef I I O I I O I I O I I O G V Features 0.3-wide DIP. For surface mount applications, the
vect 0 0 1 1 1 0 1 1 0 1 1 0 0 1 4001 Complete 8-Bit DAC AD557JP is packaged in a 20-pin JEDEC standard
vect 1 0 0 1 1 0 1 1 0 1 1 0 0 1 1A 1 14 Voltage Output: 0 V to 2.56 V PLCC. Both versions are specified over the operating
vect 0 1 0 1 1 0 1 1 0 1 1 0 0 1 Internal Precision Band-Gap Reference temperature range of 0C to +70C.
1B 2 13 4A
vect 1 1 0 0 0 1 1 1 0 1 1 0 0 1
vect 1 1 0 0 1 0 1 1 0 1 1 0 0 1 1Y 3 12 4B
Single-Supply Operation: +5 V (10%)
vect 1 1 0 1 0 0 1 1 0 1 1 0 0 1 Full Microprocessor Interface Application Example
2Y 4 11 4Y
vect 1 1 0 1 1 0 0 0 1 1 1 0 0 1 Fast: 1 s Voltage Settling to 12 LSB PC-aided BJT transistor tester revisited, Elektor Elec-
vect 1 1 0 1 1 0 0 1 0 1 1 0 0 1 2A 5 10 3Y
Low Power: 75 mW tronics April 1998.
vect 1 1 0 1 1 0 1 0 0 1 1 0 0 1
vect 1 1 0 1 1 0 1 1 0 0 0 1 0 1
2B 6 9 3A No User Trims Required
vect 1 1 0 1 1 0 1 1 0 0 1 0 0 1 7 8 3B Guaranteed Monotonic Over Temperature
vect 1 1 0 1 1 0 1 1 0 1 0 0 0 1 983004 - 13 All Errors Specified TMIN to TMAX
vect 1 1 0 1 1 0 1 1 0 1 1 0 0 1 Small 16-Pin DIP or 20-Pin PLCC Package
iccl
Low Cost
vect 0 0 1 0 0 1 0 0 1 0 0 1 0 1
icch
General description
The AD557 DACPORT is a complete voltage-out-
put 8-bit digital-to-analogue converter, including out-
name 4002
pins 14 put amplifier, full microprocessor interface and preci-
pinorder 2 3 4 5 1 12 11 10 9 13 7 14 6 8 sion voltage reference on a single monolithic chip.
61

; 1a 1b 1c 1d 1y 2a 2b 2c 2d 2y gnd vcc nc nc No external components or trims are required to


4002
pindef I I I I O I I I I O G V O O interface, with full accuracy, an 8-bit data bus to an
vect 1 0 0 0 0 0 0 0 0 1 0 1 X X 1Y 1 14
functional block diagram
vect 0 1 0 0 0 0 0 0 0 1 0 1 X X analogue system.
1A 2 13 2Y
vect 0 0 1 0 0 0 0 0 0 1 0 1 X X The low cost and versatility of the AD557 DACPORT
vect 0 0 0 1 0 0 0 0 0 1 0 1 X X 1B 3 12 1A are the result of continued development in monolithic
vect 0 0 0 0 1 1 0 0 0 0 0 1 X X 1C 4 11 1B bipolar technologies.
vect 0 0 0 0 1 0 1 0 0 0 0 1 X X
vect 0 0 0 0 1 0 0 1 0 0 0 1 X X 1D 5 10 1C The complete microprocessor interface and control
vect 0 0 0 0 1 0 0 0 1 0 0 1 X X NC 6 9 1D
logic is implemented with integrated injection logic
vect 0 0 0 1 0 0 0 0 1 0 0 1 X X (I2L), an extremely dense and low-power logic struc-
7 8 NC
iccl ture that is process-compatible with linear bipolar
vect 0 0 0 0 1 0 0 0 0 1 0 1 X X 983004 - 14
fabrication. The internal precision voltage reference
icch
is the patented low-voltage band-gap circuit which
permits full-accuracy performance on a single +5 V
power supply. pin configuration (DIP)
#
AD557 IC Tester

4/98
Integrated circuits Elektor Electronics
Special Applications DATASHEET 4/98 March & April 1998 DATASHEET 4/98
name 4009*
Electrical Specifications (@ TA = +25C, VCC = +5 V unless otherwise noted) pins 16
Model Min Typ Max Units pinorder 3 2 5 4 7 6 9 10 11 12 14 15 8 11 16 13 4009
pindef I O I O I O I O I O I O G I V O 1 VCC VDD 16
RESOLUTION 8 Bits vect 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 X 1Y 2 15 6Y
vect 0 1 1 0 1 0 1 0 1 0 1 0 0 1 1 X

Elektor Electronics
RELATIVE ACCURACY1 0 to + 70C 1/2 1 LSB 1A 3 14 6A
vect 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 X 2Y 4 13 NC
OUTPUT Ranges 0 to + 2.56 V vect 1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 X 2A 5 12 5Y
Current Source +5 mA vect 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 X
3Y 6 11 5A
Sink Internal Passive vect 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 X
Pull-Down to Ground2 vect 1 0 1 0 1 0 1 0 1 0 0 1 0 1 1 X
3A 7 10 4Y

8 9 4A
OUTPUT SETTLING TIME3 0.8 1.5 s vect 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 X
iccl 983004 - 15
FULL-SCALE ACCURACY4 @ +25C 1.5 2.5 LSB
vect 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 X
TMIN to TMAX 2.5 4.0 LSB
icch
ZERO ERROR @ +25C 1 LSB
TMIN to TMAX 3 LSB name 4010*
MONOTONICITY5 TMIN to TMAX Guaranteed pins 16
pinorder 3 2 5 4 7 6 9 10 11 12 14 15 8 1 16 13
DIGITAL INPUTS TMIN to TMAX 4010
pindef I O I O I O I O I O I O G I V O
Input Current 100 A vect 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 X 1 VCC VDD 16

Data Inputs, Voltage Bit OnLogic 1 2.0 V vect 0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 X 1Y 2 15 6Y

Bit OnLogic 0 0 0.8 V vect 1 1 0 0 1 1 1 1 1 1 1 1 0 1 1 X 1A 3 14 6A

Control Inputs, Voltage OnLogic 1 2.0 V vect 1 1 1 1 0 0 1 1 1 1 1 1 0 1 1 X 2Y 4 13 NC

OnLogic 0 0 0.8 V vect 1 1 1 1 1 1 0 0 1 1 1 1 0 1 1 X 2A 5 12 5Y

Input Capacitance 4 pF vect 1 1 1 1 1 1 1 1 0 0 1 1 0 1 1 X 3Y 6 11 5A


vect 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 X 3A 7 10 4Y
TIMING tW Strobe Pulse Width 225 vect 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 X 8 9 4A
TMIN to TMAX 300 icch
983004 - 16
tDH Data Hold Time 10 vect 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 X
ns iccl
TMIN to TMAX 10
tDS Data Setup Time 225
TMIN to TMAX 300 name 4011
pins 14
POWER SUPPLY Operating Voltage Range (VCC) pinorder 1 2 3 6 5 4 13 12 11 8 9 10 7 14
2.56 Volt Range +4.5 +5.5 V pindef I I O I I O I I O I I O G V
Current (ICC) 15 25 mA vect 0 0 1 1 1 0 1 1 0 1 1 0 0 1
Rejection Ratio 0.03 %% vect 0 1 1 1 1 0 1 1 0 1 1 0 0 1 4011
vect 1 0 1 1 1 0 1 1 0 1 1 0 0 1
POWER DISSIPATION, VCC = 5 V 75 125 mW

62
1A 1 14
vect 1 1 0 0 0 1 1 1 0 1 1 0 0 1
OPERATING TEMPERATURE RANGE 0 +70 C vect 1 1 0 0 1 1 1 1 0 1 1 0 0 1
1B 2 13 4A

1 1Y 3 12 4B
Relative Accuracy is defined as the deviation of the code transition points from the ideal transfer point on a straight line from the zero vect 1 1 0 1 0 1 1 1 0 1 1 0 0 1
the the full scale of the device. 2Y 4 11 4Y
vect 1 1 0 1 1 0 0 0 1 1 1 0 0 1
2 Passive pull-down resistance is 2 k.
vect 1 1 0 1 1 0 0 1 1 1 1 0 0 1 2A 5 10 3Y
3 Settling time is specified for a positive-going full-scale step to 12 LSB. Negative-going steps to zero are slower, but can be improved
vect 1 1 0 1 1 0 1 0 1 1 1 0 0 1 2B 6 9 3A
with an external pull-down. vect 1 1 0 1 1 0 1 1 0 0 0 1 0 1 7 8 3B
4 The full-scale output voltage is 2.55 V and is guaranteed with a +5 V supply.
vect 1 1 0 1 1 0 1 1 0 0 1 1 0 1 983004 - 17
5 A monotonic converter has a maximum differential linearity error of 1 LSB.
vect 1 1 0 1 1 0 1 1 0 1 0 1 0 1
Specifications subject to change without notice.
vect 1 1 0 1 1 0 1 1 0 1 1 0 0 1
iccl
vect 1 0 1 1 0 1 1 0 1 1 0 1 0 1
icch
#
electronics on-line
Radio stations
Free radio! on the Internet
The Radio Carolines which some
of you may fondly remember have
been towed ashore and super-
seded by radio stations not using
transmitters at all. The Internet has
been discovered as a replacement
for those good old radio waves.
From now on, free radio will reach
you by telephone line.

These days you do not to take for granted that each CD is pre-
need to have a general cov- ceded by a commercial. Likewise you
erage receiver anymore to can pick a book title, sit back and lis-
be able to listen to radio sta- ten to the book being read to you. The
tions from distant shores service called AudioBooks at
and exotic regions. The http://www.audionet.com/#audiobooks
modern equivalent of the has a number of titles available.
short-wave receiver consists
of an Internet browser, an SCANNER FANS
Internet connection (via an The above mentioned web site also
Internet Service Provider) offers some very special services. For
and the so-called RealAudio example, AudioNet allows you to lis-
plug-in module. ten in on certain non-broadcast radio
communication channels. For example,
An interesting web site the site
demonstrating the many http://www.policescanner.com
possibilities of webbed radio allows you to eavesdrop on the mobile
may be found at radio network used by the police in
http://www.audionet.com. Dallas, New York, Los Angeles or
Audionet calls itself The Plano.
Broadcast Network on the Aeroplane spotters are probably
Internet. Its web site pro- more interested in the site
vides access to a wide vari- http://www.audionet.com/simufite
ety of radio programmes which provides a live feed to the Dal-
and radio services. Using las/Fort Worth Traffic Control Tower. In
various menus you may this way, you can listen to communi-
choose from sports reports, cation between Traffic Control and
news, lectures, shows and pilots.
concerts.
Thats not all, however. REALAUDIO
The web site also offers If you want to listen to these webbed
exclusive services to listen- Free Radio stations, you need to
ers, like the spoken book extend the functionality of your
and compact disc (CD) lis- Netscape or Microsoft Internet
tening. Pick a CD title from explorer with the Real Audio plug-in.
the stock list, and listen to it This program, RealPlayer 5, may be
via the Internet. Because of downloaded free of charge from
the American principle http://www.realaudio.com
There Aint No Such Thing after supplying your name and e-mail
As Free Lunch address.
(TANSTAFL), you will have (985029-1)

66 Elektor Electronics 4/98

Vous aimerez peut-être aussi