Vous êtes sur la page 1sur 58

In a situation where we have two or more computers

which exchange large amounts of data, share a printer


and are separated by 10 metres or more, setting up a net-
work is the best solution. If you have never worked with a
network, this may appear to be a complicated task.
Nonetheless it is a lot easier than you might expect; in
addition the cost of a pair of network adapter cards is not
all that high and a standard Ethernet network can achieve
data transfer rates of 10 Mbit/s.
By P. Smit

How do I set up
a network?
termination resistor T piece termination resistor

network card network card network card


982001 - 11

Figure 1. A simple network for three computers, based on three BNC network cards. The network cable must be terminated at each
end by a suitable impedance.

In addition to simple data exchange, a implementations. The so-called operating system which worked with
network can be used to pep up a 10Base-2 network uses coaxial cables windows, called Smalltalk. This was the
less-powerful PC. For example, a 200- with BNC connectors. The more mod- basis from which Apple latter distilled its
MHz Pentium computer with a 3-GB ern version is called 10Base-T and GEM and Microsoft its Windows.)
hard disk could loan 1 GB of disk works with Unshielded Twisted Pair Ethernet is based on a mechanism
capacity to a 486DX4-100 machine (UTP) cables. called Carrier Sense Multiple
with a 500-MB drive. The CD-ROM drive A bus structure consists in principle of a Access/Collision Detection (CSMA/CD).
in the Pentium computer can also be long cable with a terminating resistor A network station which wants to trans-
read by the 486DX4-100 computer, so at either end. Network cards (some- mit data first checks whether the carri-
that in many cases a second CD-ROM times called transceivers, from a con- er tone is present on the cable (Carri-
drive for the 486 PC is no longer need- traction of transmitter and receiver) er Sense). If it is not, then the station
ed. Even a floppy-diskette drive and are connected to the bus cable via itself can send data. However, multiple
an internal 100-MB Iomega Zip drive short branch cables. The protocol stations can be attached to the net-
can be shared via the network. which governs how data is exchanged work bus (Multiple Access). The net-
via the cable can for example be Eth- work checks whether two or more net-
An Ethernet network ernet. work stations attempt to send data via
The Ethernet protocol was originally the network at the same time. If this
There is actually only one network developed by Xerox in 1976. (The think happens then there is a collision
topology which is suitable for smaller tank of the Palo Alto Research Center, between the data transmissions of the
networks, namely the bus topology or PARC, where Ethernet was devel- various senders, which results in cor-
based on Ethernet. In this case there oped was also responsible for the ruption of the data. The senders are
are two completely different physical development of the mouse and the first thus forced to resend their data. The

2 - 3/98 Elektor Electronics EXTRA PC TOPICS


ripcord
conductor A router serves to contain local traffic within a particular section of a network, so
that it does not load the entire network. When routers are used, the network is
insulation configured as several interconnected local regions, and the only traffic which
is passed out of a given region to the remainder of the network is that which is
destined for a different region.
A repeater amplifies the network signals, so that a greater distance can be
twisted reached.
pairs A hub in its simplest form is equivalent to an electrical multiple outlet box.
More expensive hubs are suitable for higher data rates, support more connec-
tions and provide additional functions. An intelligent hub can be remotely con-
trolled.
A patch cable is a ready-made extension cable, available in various standard
jacket 982001 - 12 lengths (up to 20 m).

Figure 2. A UTP cable (Unshielded Twisted


reconnecting the terminator to the work. Every station which is included in
Pair) contains eight conductors arranged
other arm of the third T-connector. A the affected loop can no longer work
as four twisted pairs.
network card for the third computer when this happens. The use of BNC
can then be attached to the third T- connector boxes helps to remedy this
Ethernet protocol manages the net- connector. As one can see, the termi- shortcoming, since such a box is con-
work traffic. It determines which net- nators are always located at the structed such that the network cable is
work card may communicate at a extreme ends of the bus cable (see automatically connected through
given time and performs collision Figure 1). inside the box when the extension
detection for Ethernet data packets. The same bus structure is used for a cable is disconnected from the box. It
larger network. However, with a larger is thus possible to remove an extension
UTP or BNC? network a special kind of connector cable without disturbing the operation
box is used, to which a special sort of of the network.
If we want to set up an Ethernet net- BNC extension cable is attached. Sev-
work for two computers, we are faced eral T-connectors can then be incor- A UTP network
with the fundamental choice between porated into this extension cable. UTP is a more recent development. It is
UTP and BNC. For somewhat larger net- A disadvantage of a BNC network is preferred in place of BNC for new
works UTP is preferred. In the case of that a single open cable or bad con- installations. For a continuously
only a few computers which are con- nection can bring down the entire net- expanding network, UTP offers clear
nected to each other, BNC is just as
good a choice.
cross-over patch cable

A BNC network
The simplest BNC network consists of
two computers each equipped with a
BNC network card. A BNC T-connector
is attached to the BNC connector of
each network card. A terminator is
attached to one arm of each of the T-
connectors, and a standard coaxial
cable (patch cable) is connected
between the other two arms. The pur- network card network card
982001 - 13a
pose of the termination resistors is to
avoid signal reflections in the cable.
A single network cable may be up to
185 metres long. A maximum of 30 sta- HUB
tions (PCs) can be connected to the
cable. The minimum separation
between two connection points (T-
connectors) is 0.5 metre. Several BNC
cable sections may be connected
together via hubs, routers and
repeaters, so that it is possible to cre-
ate a Local Area Network (LAN) which
is much larger in extent than the length
of a single cable section.
For two computers we need two net-
work cards with T-connectors and two
terminators. A third computer is added
to the network bus by simply removing
network card network card network card
the terminator from the T-connector of 982001 - 13b

one of the network cards, connecting


a coaxial patch cable from that T-con- Figure 3. For a UTP network with two computers, a cross-over patch cable is sufficient
nector to a third T-connector, and (a). With three or more computers a hub is required (b).

PC TOPICS Elektor Electronics EXTRA 3 - 3/98


advantages. The cable is less expen- cabling a hub is not required. Windows 95 this technique does not
sive, and the network is more reliable A hub works as a central connector always work properly with some older-
and easier to maintain. In addition, an box for UTP cables. The actual bus model PnP cards. The network card
ISDN-based telephone network and structure is based on the hub, and the chooses an address and an interrupt
an Ethernet network can use the same hub manages the bus. For each com- vector while Windows 95 is still starting
cable, which makes for a simpler infra- puter connected to the network, there up, and then when Windows 95 is up
structure in a large building. A stan- is one UTP port necessary in the hub. and running it sees that this combina-
dard BNC or UTP Ethernet runs at 10 Multiple hubs can be connected to tion is not free and thus assigns a dif-
MHz, but a UTP Cat 5 cable can be each other via patch cables and ferent address/interrupt set to the Win-
used at up to 100 MHz. This allows for uplink ports. The smaller sorts of hubs dows 95 driver. Subsequently, the net-
the possibility of a migration to a faster have 4, 8 or 16 UTP ports. work card and the operating system
100Base-T or 100Base-T4 network at a Ethernet cards are available for prices cheerfully chatter away without
later date. A UTP Cat 5 cable, as illus- ranging from 20 apiece to over 70. achieving any communication, and
trated in Figure 2, contains eight leads If we assume a price of 25 per card Windows 95 insists that there is no net-
arranged as four twisted pairs. When and a separation of 10 metres work card installed. The only remedy in
the same signal flows back and forth between the two computers, then we such a situation is to disable the PnP
in the two wires of a twisted pair, the can set up a two-computer network for function of the network card via a MS-
resulting magnetic fields cancel each roughly 70. The cost difference DOS utility program. With more modern
other out. This allows for interference- between BNC and UTP for a two-com- systems, Plug and Play means that
free data transfers. For 10Base-T and puter network is negligible. With three Windows 95 automatically recognizes
100Base-T two of the four pairs are computers the cost of the network the card during the startup and asks
used. All four pairs are used for using BNC rises to roughly 100, while for software. This does not always
100Base-T4. In principle, all four pairs with UTP the cost jumps to roughly 170 mean that the user does not have to
can be connected, since the system is due to the addition of the hub. assist with the system configuration.
upwards-compatible. A PnP motherboard reports during
10Base-T and 100Base-T systems use The Ethernet card startup which interrupts have been
the D1 and D2 pairs, while ISDN uses assigned in hardware by the PnP logic
the D3 and D2 pairs. Thus, if we con- Network cards are available for the to the PCI VGA-card and a PCI network
nect a UTP connector box as though standard ISA bus which is present in card. If the network card is an ISA card
we were using 100Base-T4 (all four every PC, and also for the more recent which has been software-configured
pairs), it is then possible to use it for PCI bus. A PCI network card is faster, for IRQ10 and there is a PCI card
ISDN, 10Base-T, 100Base-T or 100-Base- but also more expensive. For home installed (for example, a VGA card)
T4. To be sure, it is extremely important use an ISA card is adequate. which is automatically assigned IRQ10
to take care that an ISDN primary lead With older-model cards, one must by the PnP logic, then you naturally
does not become (accidentally) con- configure the address and the inter- have a problem. In such a case IRQ10
nected to the UTP network. A supply rupt channel on the card using must be explicitly assigned to the ISA
potential of up to 90 V can be present jumpers. Modern cards are set up with card. This can be done by invoking
with an ISDN NT1 connection, and this the help of configuration software. the Setup screen during the startup
can find its way into the UTP network With some operating systems the com- and configuring the computer to allow
via the D2 pair. If this ever happens, puter must be first started up using a IRQ10 to be used for ISA cards only.
you had better hope that you have MS-DOS boot diskette in order to con- The PnP BIOS will then skip this interrupt
good insurance coverage figure the card, since the operating channel when assigning interrupts dur-
In a 100Base-T4 network, all four pairs system will otherwise not be able do ing subsequent startups.
are used. For this reason such a net- anything with the card. If you decide to start with BNC, but you
work is sometimes called a 200-MHz The most obvious choices for the inter- anticipate that your network will even-
network. In fact it is a doubled 100- rupt channel for a network card are tually grow significantly, then you
MHz network, which is adequately sup- IRQ5, 10 and 11. A sound card usually should go for a combination card.
ported by a 100-MHz UTP Cat 5 cable. uses IRQ7 or IRQ5. THe standard Such a card supports both BNC and
There are cables which allow even Soundblaster value is IRQ7, which is UTP. At a later date you can add a hub
faster data transfers, such as Cat 5+ also shared with the printer port (LPT1). and replace the BNC cable with UTP.
(up to 300 MHz) and Cat 6 (up to With the current generation of printer For a small firm which is just starting up
600 MHz), but these are not of interest ports (ECP/EPP) this is no longer possi- it is in any case advisable to begin
for everyday applications. They are ble. In such cases, the sound card with combination cards or go directly
naturally also more expensive. interrupt usually moves to IRQ5, and all to UTP.
interrupt channels below IRQ9 are thus There are several characteristics of
To hub or not to hub already allocated. IRQ9 is not recom- network cards which together deter-
mended. IRQ11 is sometimes used for mine the overall speed of the network.
When only two computers are to be a third IDE port (CD-ROM), and IRQ12 The most important of these is the net-
connected together, then UTP and is used by a PS/2 mouse (if present). work type (10 MHz or 100 MHz), but
BNC cabling are equally suitable. The most-commonly used interrupt for features such as duplex mode, paral-
However, as soon as a third computer the network card is IRQ10, with a stan- lel tasking and bus mastering are also
is added there is a financial disadvan- dard address of 300h. significant.
tage associated with UTP. With UTP a In a Plug-and-Play system (PnP) the The duplex-mode capability of a net-
central hub must be acquired to allow network card itself searches for a free work card can only be used if the cen-
more than two computers to be con- address and interrupt channel. The tral hub also supports this feature. In
nected to the network (see Figure 3), selected values are passed to the duplex mode the network card can
and this can easily cost 70. With BNC operating system via the driver. With simultaneously send and receive data

4 - 3/98 Elektor Electronics EXTRA PC TOPICS


TCP/IP protocol. In actual fact the net-
Ethernet 10/100Base-T
work card is generated by the Internet
pair 1 pair 2
1 TX + D1 Transceive Data + service provider and the combination
2 TX- D1 Transceive Data- of the modem and telephone con-
1 2 3 4 5 6 7 8 3 RX + D2 Receive Data +
4 NC
nection acts as a sort of extension of
5 NC this network card. The TCP/IP protocol is
6 RX- D2 Receive Data- required for the Internet connection.
7 NC In the worst case you will have a net-
8 NC
982001 - 14a
work card plus a modem (for Internet),
with the following standard installation:
pair 2
Ethernet 100Base-T4
Client for Microsoft Networks
pair 1 pair 3 pair 4
1 TX + D1 Transceive Data + white/orange 10 /100 Base -T Adapter:network card
2 TX- D1 Transceive Data- orange 10 /100 Base -T Adapter:dial-up adapter
3 RX + D2 Receive Data + white/green 10 /100 Base -T, ISDN B1
1 2 3 4 5 6 7 8
4 BI D3 Bi-direct. Data + blue ISDN B2 Protocol:NetBEUI network card
5 BI D3 Bi-direct. Data- white/blue ISDN B2 Protocol:NetBEUI dial-up adapter
6 RX- D2 Receive Data- green 10 /100 Base -T, ISDN B1 Protocol:IPX/SPX network card
7 BI D4 Bi-direct. Data + white/brown
Protocol:IPX/SPX dial-up adapter
8 BI D4 Bi-direct. Data- brown
982001 - 14b Protocol:TCP/IP network card
Protocol:TCP/IP dial-up adapter
File and printer sharing for Microsoft
Figure 4. UTP cable connections.
Networks

via the hub. This results in an effective brought to a successful conclusion, Its truly a technological wonder that
doubling of the network speed. one is faced with a choice between a such a babelesque situation actually
With parallel tasking, several different number of different network operating works: here we have two adapters
activities can be processed by the systems. Ethernet is only the low-level speaking three different languages
network card concurrently (and thus network protocol. What is communi- (protocols), all mixed together.
faster overall). This also reduces the cated via Ethernet is a different sub- In principle it is possible to have multi-
load on the computers processor ject entirely. One can compare Ether- ple network operating systems all
chip. This feature is certainly advisable net to the alphabet, and the network working over the same cable, but this
for a central server. operating system to a particular lan- is not to be recommended. Perfor-
Bus mastering means that the network guage which uses the alphabet. mance will certainly suffer in such a
card can take over control of the PCI situation.
bus and thereby reduce the load on There are three important types of net- There are only two reasons to use
the processor chip. Not all mother- work operating systems for use with IPX/SPX. The first reason is that one will
boards support bus mastering. In some Ethernet: be working together with a Novell net-
cases this can be remedied by a BIOS 1. NetBEUI Windows 4.11, Win- work. For home applications this will
update. dows 95 and Windows NT practically never be the case. The
If you are interested in picking up sec- 2. IPX/SPX Novell Netware second reason is somewhat more
ond-hand network cards at a jumble 3. TCP/IP Internet important for the home situation: there
sale, you should make sure that you are many multiplayer games which
get 16-bit cards which allow the inter- If we work with Windows 95 as our use IPX/SPX or TCP/IP to establish a con-
rupt to be set higher than IRQ9, and operating system, then the choice is nection between the various comput-
that a suitable driver is available easy: NetBEUI. Windows 95 has a nasty ers. Some of these games run faster
(NE2000 or 3Com-compatible). Every tendency to also routinely install with IPX/SPX than with TCP/IP. In such
imitation-brand manufacturer takes IPX/SPX. This is a leftover from several cases it makes sense to leave IPX/SPX
care that his card is compatible with years ago, when Novell Netware had coupled to the network card in those
NE2000, for which generic drivers are a large market share. In the meantime computers.
always available. The disadvantage of that is ancient history, but Microsoft For the Internet only TCP/IP is neces-
generic drivers is that they do not has not quite caught up to the current sary, so that all couplings of NetBEUI or
always realize the full performance situation. IPX/SPX with the dialup card can be
which a particular card can provide. Under Windows, you can see what is removed. Throw away everything
The performance of a driver which is installed via the selections Start/Set- which is not required! After a rigorous
matched to the card is usually better. tings/Control Panel/Network. A clear cleanup exercise our minimal net-
Support for 3Com Ethernet cards is distinction is made between adapters work/Internet system configuration
generally adequate but not more than (network cards) and protocols (network appears as follows:
that. Even Linux (freeware Unix) first operating systems). If more than one
supported NE2000-compatible net- network card is present, then the cou- Client for Microsoft Networks
work cards and only later 3Com Ether- pling between each adapter and its Adapter:network card (eg NE2000)
link cards. associated protocol is also shown. The Adapter:dial-up adapter
second adapter is as a rule the dial-up Protocol:NetBEUI network card
Installing adapter which is used for an Internet Protocol:TCP/IP dial-up adapter
the network software connection. This dial-up adapter File and printer sharing for Microsoft
makes the computer appear to the Networks
After the cables have all been pulled Internet as though it has a network continued on page 11
and the PnP adventure has been card installed which works with the

PC TOPICS Elektor Electronics EXTRA 5 - 3/98


In a situation where we have two or more computers
which exchange large amounts of data, share a printer
and are separated by 10 metres or more, setting up a net-
work is the best solution. If you have never worked with a
network, this may appear to be a complicated task.
Nonetheless it is a lot easier than you might expect; in
addition the cost of a pair of network adapter cards is not
all that high and a standard Ethernet network can achieve
data transfer rates of 10 Mbit/s.
By P. Smit

How do I set up
a network?
termination resistor T piece termination resistor

network card network card network card


982001 - 11

Figure 1. A simple network for three computers, based on three BNC network cards. The network cable must be terminated at each
end by a suitable impedance.

In addition to simple data exchange, a implementations. The so-called operating system which worked with
network can be used to pep up a 10Base-2 network uses coaxial cables windows, called Smalltalk. This was the
less-powerful PC. For example, a 200- with BNC connectors. The more mod- basis from which Apple latter distilled its
MHz Pentium computer with a 3-GB ern version is called 10Base-T and GEM and Microsoft its Windows.)
hard disk could loan 1 GB of disk works with Unshielded Twisted Pair Ethernet is based on a mechanism
capacity to a 486DX4-100 machine (UTP) cables. called Carrier Sense Multiple
with a 500-MB drive. The CD-ROM drive A bus structure consists in principle of a Access/Collision Detection (CSMA/CD).
in the Pentium computer can also be long cable with a terminating resistor A network station which wants to trans-
read by the 486DX4-100 computer, so at either end. Network cards (some- mit data first checks whether the carri-
that in many cases a second CD-ROM times called transceivers, from a con- er tone is present on the cable (Carri-
drive for the 486 PC is no longer need- traction of transmitter and receiver) er Sense). If it is not, then the station
ed. Even a floppy-diskette drive and are connected to the bus cable via itself can send data. However, multiple
an internal 100-MB Iomega Zip drive short branch cables. The protocol stations can be attached to the net-
can be shared via the network. which governs how data is exchanged work bus (Multiple Access). The net-
via the cable can for example be Eth- work checks whether two or more net-
An Ethernet network ernet. work stations attempt to send data via
The Ethernet protocol was originally the network at the same time. If this
There is actually only one network developed by Xerox in 1976. (The think happens then there is a collision
topology which is suitable for smaller tank of the Palo Alto Research Center, between the data transmissions of the
networks, namely the bus topology or PARC, where Ethernet was devel- various senders, which results in cor-
based on Ethernet. In this case there oped was also responsible for the ruption of the data. The senders are
are two completely different physical development of the mouse and the first thus forced to resend their data. The

2 - 3/98 Elektor Electronics EXTRA PC TOPICS


ripcord
conductor A router serves to contain local traffic within a particular section of a network, so
that it does not load the entire network. When routers are used, the network is
insulation configured as several interconnected local regions, and the only traffic which
is passed out of a given region to the remainder of the network is that which is
destined for a different region.
A repeater amplifies the network signals, so that a greater distance can be
twisted reached.
pairs A hub in its simplest form is equivalent to an electrical multiple outlet box.
More expensive hubs are suitable for higher data rates, support more connec-
tions and provide additional functions. An intelligent hub can be remotely con-
trolled.
A patch cable is a ready-made extension cable, available in various standard
jacket 982001 - 12 lengths (up to 20 m).

Figure 2. A UTP cable (Unshielded Twisted


reconnecting the terminator to the work. Every station which is included in
Pair) contains eight conductors arranged
other arm of the third T-connector. A the affected loop can no longer work
as four twisted pairs.
network card for the third computer when this happens. The use of BNC
can then be attached to the third T- connector boxes helps to remedy this
Ethernet protocol manages the net- connector. As one can see, the termi- shortcoming, since such a box is con-
work traffic. It determines which net- nators are always located at the structed such that the network cable is
work card may communicate at a extreme ends of the bus cable (see automatically connected through
given time and performs collision Figure 1). inside the box when the extension
detection for Ethernet data packets. The same bus structure is used for a cable is disconnected from the box. It
larger network. However, with a larger is thus possible to remove an extension
UTP or BNC? network a special kind of connector cable without disturbing the operation
box is used, to which a special sort of of the network.
If we want to set up an Ethernet net- BNC extension cable is attached. Sev-
work for two computers, we are faced eral T-connectors can then be incor- A UTP network
with the fundamental choice between porated into this extension cable. UTP is a more recent development. It is
UTP and BNC. For somewhat larger net- A disadvantage of a BNC network is preferred in place of BNC for new
works UTP is preferred. In the case of that a single open cable or bad con- installations. For a continuously
only a few computers which are con- nection can bring down the entire net- expanding network, UTP offers clear
nected to each other, BNC is just as
good a choice.
cross-over patch cable

A BNC network
The simplest BNC network consists of
two computers each equipped with a
BNC network card. A BNC T-connector
is attached to the BNC connector of
each network card. A terminator is
attached to one arm of each of the T-
connectors, and a standard coaxial
cable (patch cable) is connected
between the other two arms. The pur- network card network card
982001 - 13a
pose of the termination resistors is to
avoid signal reflections in the cable.
A single network cable may be up to
185 metres long. A maximum of 30 sta- HUB
tions (PCs) can be connected to the
cable. The minimum separation
between two connection points (T-
connectors) is 0.5 metre. Several BNC
cable sections may be connected
together via hubs, routers and
repeaters, so that it is possible to cre-
ate a Local Area Network (LAN) which
is much larger in extent than the length
of a single cable section.
For two computers we need two net-
work cards with T-connectors and two
terminators. A third computer is added
to the network bus by simply removing
network card network card network card
the terminator from the T-connector of 982001 - 13b

one of the network cards, connecting


a coaxial patch cable from that T-con- Figure 3. For a UTP network with two computers, a cross-over patch cable is sufficient
nector to a third T-connector, and (a). With three or more computers a hub is required (b).

PC TOPICS Elektor Electronics EXTRA 3 - 3/98


advantages. The cable is less expen- cabling a hub is not required. Windows 95 this technique does not
sive, and the network is more reliable A hub works as a central connector always work properly with some older-
and easier to maintain. In addition, an box for UTP cables. The actual bus model PnP cards. The network card
ISDN-based telephone network and structure is based on the hub, and the chooses an address and an interrupt
an Ethernet network can use the same hub manages the bus. For each com- vector while Windows 95 is still starting
cable, which makes for a simpler infra- puter connected to the network, there up, and then when Windows 95 is up
structure in a large building. A stan- is one UTP port necessary in the hub. and running it sees that this combina-
dard BNC or UTP Ethernet runs at 10 Multiple hubs can be connected to tion is not free and thus assigns a dif-
MHz, but a UTP Cat 5 cable can be each other via patch cables and ferent address/interrupt set to the Win-
used at up to 100 MHz. This allows for uplink ports. The smaller sorts of hubs dows 95 driver. Subsequently, the net-
the possibility of a migration to a faster have 4, 8 or 16 UTP ports. work card and the operating system
100Base-T or 100Base-T4 network at a Ethernet cards are available for prices cheerfully chatter away without
later date. A UTP Cat 5 cable, as illus- ranging from 20 apiece to over 70. achieving any communication, and
trated in Figure 2, contains eight leads If we assume a price of 25 per card Windows 95 insists that there is no net-
arranged as four twisted pairs. When and a separation of 10 metres work card installed. The only remedy in
the same signal flows back and forth between the two computers, then we such a situation is to disable the PnP
in the two wires of a twisted pair, the can set up a two-computer network for function of the network card via a MS-
resulting magnetic fields cancel each roughly 70. The cost difference DOS utility program. With more modern
other out. This allows for interference- between BNC and UTP for a two-com- systems, Plug and Play means that
free data transfers. For 10Base-T and puter network is negligible. With three Windows 95 automatically recognizes
100Base-T two of the four pairs are computers the cost of the network the card during the startup and asks
used. All four pairs are used for using BNC rises to roughly 100, while for software. This does not always
100Base-T4. In principle, all four pairs with UTP the cost jumps to roughly 170 mean that the user does not have to
can be connected, since the system is due to the addition of the hub. assist with the system configuration.
upwards-compatible. A PnP motherboard reports during
10Base-T and 100Base-T systems use The Ethernet card startup which interrupts have been
the D1 and D2 pairs, while ISDN uses assigned in hardware by the PnP logic
the D3 and D2 pairs. Thus, if we con- Network cards are available for the to the PCI VGA-card and a PCI network
nect a UTP connector box as though standard ISA bus which is present in card. If the network card is an ISA card
we were using 100Base-T4 (all four every PC, and also for the more recent which has been software-configured
pairs), it is then possible to use it for PCI bus. A PCI network card is faster, for IRQ10 and there is a PCI card
ISDN, 10Base-T, 100Base-T or 100-Base- but also more expensive. For home installed (for example, a VGA card)
T4. To be sure, it is extremely important use an ISA card is adequate. which is automatically assigned IRQ10
to take care that an ISDN primary lead With older-model cards, one must by the PnP logic, then you naturally
does not become (accidentally) con- configure the address and the inter- have a problem. In such a case IRQ10
nected to the UTP network. A supply rupt channel on the card using must be explicitly assigned to the ISA
potential of up to 90 V can be present jumpers. Modern cards are set up with card. This can be done by invoking
with an ISDN NT1 connection, and this the help of configuration software. the Setup screen during the startup
can find its way into the UTP network With some operating systems the com- and configuring the computer to allow
via the D2 pair. If this ever happens, puter must be first started up using a IRQ10 to be used for ISA cards only.
you had better hope that you have MS-DOS boot diskette in order to con- The PnP BIOS will then skip this interrupt
good insurance coverage figure the card, since the operating channel when assigning interrupts dur-
In a 100Base-T4 network, all four pairs system will otherwise not be able do ing subsequent startups.
are used. For this reason such a net- anything with the card. If you decide to start with BNC, but you
work is sometimes called a 200-MHz The most obvious choices for the inter- anticipate that your network will even-
network. In fact it is a doubled 100- rupt channel for a network card are tually grow significantly, then you
MHz network, which is adequately sup- IRQ5, 10 and 11. A sound card usually should go for a combination card.
ported by a 100-MHz UTP Cat 5 cable. uses IRQ7 or IRQ5. THe standard Such a card supports both BNC and
There are cables which allow even Soundblaster value is IRQ7, which is UTP. At a later date you can add a hub
faster data transfers, such as Cat 5+ also shared with the printer port (LPT1). and replace the BNC cable with UTP.
(up to 300 MHz) and Cat 6 (up to With the current generation of printer For a small firm which is just starting up
600 MHz), but these are not of interest ports (ECP/EPP) this is no longer possi- it is in any case advisable to begin
for everyday applications. They are ble. In such cases, the sound card with combination cards or go directly
naturally also more expensive. interrupt usually moves to IRQ5, and all to UTP.
interrupt channels below IRQ9 are thus There are several characteristics of
To hub or not to hub already allocated. IRQ9 is not recom- network cards which together deter-
mended. IRQ11 is sometimes used for mine the overall speed of the network.
When only two computers are to be a third IDE port (CD-ROM), and IRQ12 The most important of these is the net-
connected together, then UTP and is used by a PS/2 mouse (if present). work type (10 MHz or 100 MHz), but
BNC cabling are equally suitable. The most-commonly used interrupt for features such as duplex mode, paral-
However, as soon as a third computer the network card is IRQ10, with a stan- lel tasking and bus mastering are also
is added there is a financial disadvan- dard address of 300h. significant.
tage associated with UTP. With UTP a In a Plug-and-Play system (PnP) the The duplex-mode capability of a net-
central hub must be acquired to allow network card itself searches for a free work card can only be used if the cen-
more than two computers to be con- address and interrupt channel. The tral hub also supports this feature. In
nected to the network (see Figure 3), selected values are passed to the duplex mode the network card can
and this can easily cost 70. With BNC operating system via the driver. With simultaneously send and receive data

4 - 3/98 Elektor Electronics EXTRA PC TOPICS


TCP/IP protocol. In actual fact the net-
Ethernet 10/100Base-T
work card is generated by the Internet
pair 1 pair 2
1 TX + D1 Transceive Data + service provider and the combination
2 TX- D1 Transceive Data- of the modem and telephone con-
1 2 3 4 5 6 7 8 3 RX + D2 Receive Data +
4 NC
nection acts as a sort of extension of
5 NC this network card. The TCP/IP protocol is
6 RX- D2 Receive Data- required for the Internet connection.
7 NC In the worst case you will have a net-
8 NC
982001 - 14a
work card plus a modem (for Internet),
with the following standard installation:
pair 2
Ethernet 100Base-T4
Client for Microsoft Networks
pair 1 pair 3 pair 4
1 TX + D1 Transceive Data + white/orange 10 /100 Base -T Adapter:network card
2 TX- D1 Transceive Data- orange 10 /100 Base -T Adapter:dial-up adapter
3 RX + D2 Receive Data + white/green 10 /100 Base -T, ISDN B1
1 2 3 4 5 6 7 8
4 BI D3 Bi-direct. Data + blue ISDN B2 Protocol:NetBEUI network card
5 BI D3 Bi-direct. Data- white/blue ISDN B2 Protocol:NetBEUI dial-up adapter
6 RX- D2 Receive Data- green 10 /100 Base -T, ISDN B1 Protocol:IPX/SPX network card
7 BI D4 Bi-direct. Data + white/brown
Protocol:IPX/SPX dial-up adapter
8 BI D4 Bi-direct. Data- brown
982001 - 14b Protocol:TCP/IP network card
Protocol:TCP/IP dial-up adapter
File and printer sharing for Microsoft
Figure 4. UTP cable connections.
Networks

via the hub. This results in an effective brought to a successful conclusion, Its truly a technological wonder that
doubling of the network speed. one is faced with a choice between a such a babelesque situation actually
With parallel tasking, several different number of different network operating works: here we have two adapters
activities can be processed by the systems. Ethernet is only the low-level speaking three different languages
network card concurrently (and thus network protocol. What is communi- (protocols), all mixed together.
faster overall). This also reduces the cated via Ethernet is a different sub- In principle it is possible to have multi-
load on the computers processor ject entirely. One can compare Ether- ple network operating systems all
chip. This feature is certainly advisable net to the alphabet, and the network working over the same cable, but this
for a central server. operating system to a particular lan- is not to be recommended. Perfor-
Bus mastering means that the network guage which uses the alphabet. mance will certainly suffer in such a
card can take over control of the PCI situation.
bus and thereby reduce the load on There are three important types of net- There are only two reasons to use
the processor chip. Not all mother- work operating systems for use with IPX/SPX. The first reason is that one will
boards support bus mastering. In some Ethernet: be working together with a Novell net-
cases this can be remedied by a BIOS 1. NetBEUI Windows 4.11, Win- work. For home applications this will
update. dows 95 and Windows NT practically never be the case. The
If you are interested in picking up sec- 2. IPX/SPX Novell Netware second reason is somewhat more
ond-hand network cards at a jumble 3. TCP/IP Internet important for the home situation: there
sale, you should make sure that you are many multiplayer games which
get 16-bit cards which allow the inter- If we work with Windows 95 as our use IPX/SPX or TCP/IP to establish a con-
rupt to be set higher than IRQ9, and operating system, then the choice is nection between the various comput-
that a suitable driver is available easy: NetBEUI. Windows 95 has a nasty ers. Some of these games run faster
(NE2000 or 3Com-compatible). Every tendency to also routinely install with IPX/SPX than with TCP/IP. In such
imitation-brand manufacturer takes IPX/SPX. This is a leftover from several cases it makes sense to leave IPX/SPX
care that his card is compatible with years ago, when Novell Netware had coupled to the network card in those
NE2000, for which generic drivers are a large market share. In the meantime computers.
always available. The disadvantage of that is ancient history, but Microsoft For the Internet only TCP/IP is neces-
generic drivers is that they do not has not quite caught up to the current sary, so that all couplings of NetBEUI or
always realize the full performance situation. IPX/SPX with the dialup card can be
which a particular card can provide. Under Windows, you can see what is removed. Throw away everything
The performance of a driver which is installed via the selections Start/Set- which is not required! After a rigorous
matched to the card is usually better. tings/Control Panel/Network. A clear cleanup exercise our minimal net-
Support for 3Com Ethernet cards is distinction is made between adapters work/Internet system configuration
generally adequate but not more than (network cards) and protocols (network appears as follows:
that. Even Linux (freeware Unix) first operating systems). If more than one
supported NE2000-compatible net- network card is present, then the cou- Client for Microsoft Networks
work cards and only later 3Com Ether- pling between each adapter and its Adapter:network card (eg NE2000)
link cards. associated protocol is also shown. The Adapter:dial-up adapter
second adapter is as a rule the dial-up Protocol:NetBEUI network card
Installing adapter which is used for an Internet Protocol:TCP/IP dial-up adapter
the network software connection. This dial-up adapter File and printer sharing for Microsoft
makes the computer appear to the Networks
After the cables have all been pulled Internet as though it has a network continued on page 11
and the PnP adventure has been card installed which works with the

PC TOPICS Elektor Electronics EXTRA 5 - 3/98


For many applications, the use of an on-site computer to
perform measurements or control processes is a good
solution. A limitation of all of the data-acquisition systems
which we have published up to now is that a direct elec-
trical connection is required between the computer and
the acquisition system. The system described here works
via a modem, which allows data to be exchanged with
the PC via the telephone line. This makes possible a con-
siderable physical separation between the computer
and the acquisition system. For example, one no longer
needs to guess at the temperature in the weekend cot-
tage: with a suitable sensor you can just ring up, log in
and read it out.
Design by J. Joostens

Data acquisition by
modem
remote measurement and control by telephone line

to modem D3 D2 software of the card are configured so


that they can control a standard
Hayes-compatible modem via a serial
1 interface. This system supports a data
MAX
I/O ports
rate of 2400 or 9600 baud. This means
232
that even rather ancient modems can
16 be given a new lease on life.
counter input
The design is based on an Atmel
AT89C52 AT89C52 processor. In addition to a
frequency meter
RS232 input number of analogue and digital inputs,
it has a serial port which can be con-
nected to a standard modem. There is
DCF analogue
8591 input
also a separate A/D-D/A converter and
an EEPROM. In the present design there
are 16 digital I/O lines available. These
S2 S1 JP1 JP2
analogue
are supplemented by four 8-bit ana-
output logue inputs, one 8-bit analogue out-
AUTO RESET
ANSWER AT put, a 16-bit counter and an input for
93C46 measuring the frequency of signals up
2400/ Menu
9600 on/off 982031 - 11 to 65 kHz.
The available software includes a ter-
Figure 1. Block diagram of the complete circuit. A lot of capability is bundled into a
minal emulator, which allows it to com-
few components.
municate with an ANSI or VT102 termi-
nal program on the PC. Password pro-
Our demand for information seems to tems are the natural choice when the tection is incorporated in the software,
increase in step with the progress of computer is located at the site where and the password can be stored in the
technology. Now that a PC can be the measurements are to be made. EEPROM.
found in almost every household, users The data acquisition card which is For the user, logging in to the data
desire to expand their horizons. Adding described here allows measurements acquisition system is similar to connect-
a data acquisition system is an obvious to be made, or functions to be ing to a bulletin-board system. After
possibility. Most such systems are con- switched on or off, at almost any starting the terminal program, one
nected to the PC via a parallel or serial desired location. The only condition is selects the proper telephone number,
port; a few of them are connected that there must be access to a tele- waits for the connection to be estab-
directly to the internal bus. Such sys- phone connection. The hardware and lished and then logs in with the correct

6 - 3/98 Elektor Electronics EXTRA PC TOPICS


Two jumpers enable the selection of the
Technical specifications communication data rate (2400 or
16 digital I/O lines 9600 baud) and select whether or not
4 analogue inputs (8-bit resolution) with a range of 02.55 V the built-in menu functions are used.
Finally, there are two LED indicators
1 analogue output (8-bit resolution) with a range of 02.55 V
which display the operating status of
1 16-bit counter with reset and overflow indication the board.
1 frequency measurement input (range 0 to 65 kHz) Note that the modem is not shown in
supports Hayes-compatible modems the block diagram. In practice, the
compatible with ANSI and VT102 terminal programs modem will be an external device
which is connected to the serial port of
two data transmission rates: 2400 and 9600 baud the data acquisition card.
built-in password protection
user-configurable communications protocol A compact circuit
password. For those who have the form a 16-bit digital I/O port. The third Given its specifications, one might think
ambition to do so, it is possible to write port (P0) is used to control the operation that the data-acquisition card would
ones own communication program of the PCF8591. This integrated circuit be a large and complex construction.
and disable the built-in terminal pro- incorporates a four-channel A/D con- Nothing could be less true, and in fact
gram. verter and a single D/A converter. An we have here a project using very few
AT93C46 EEPROM with a capacity of components. Figure 2 shows the full
A flexible approach 128 8 bits is also present. This chip schematic of the card. It incorporates
has a guaranteed lifetime of 1 million only seven integrated circuits, includ-
Figure 1 shows the system block dia- write cycles and will retain data for ing the voltage regulator and the ref-
gram. The heart of the system is the at least 100 years. It is used in this case erence source.
Atmel AT89C52. This processor is com- to store configuration data. The con- The central element is IC4, the AT89C52
patible with the well-known MCS51 version of signal levels between TTL and processor, which runs at a clock rate of
processor family, and has the advan- RS232 is handled by an old friend, the 12 MHz. The required clock oscillator is
tage that it includes an 8-kB flash mem- Maxim MAX232. constructed using C1, C2, X1 and logic
ory for storing program code. A Reset switch is provided to allow the internal to the processor chip. I/O ports
The processor has three 8-bit parallel board to be re-initialized. The Auto- P1 and P2 are connected via 2.7-k
ports and a single serial port. The P1 answer switch allows the board to be series resistors to the C-row of the 64-
and P2 ports are made available for temporarily placed in a mode in which way connector K1. A set of eight pullup
external connections; together they it does not respond to the ring signal. resistors is provided for the third port

Figure 2. The complete schematic. Only seven ICs are needed to implement the design.

PC TOPICS Elektor Electronics EXTRA 7 - 3/98


Figure 3. The copper track layout and the component overlay of the circuit board for this project (not available ready-made).

(P0), which is connected to the EEPROM P3.7 drive the two LED indicators. The MAX232 chip (IC1) used here works
IC3 (an AT93C46), jumpers JP1 and JP2, The design of the serial port is straight- with a supply potential of 5 V and con-
the auto-answer switch S2, the SDA and forward, although it is wired as a DCE verts signal voltages between the TTL
SCL lines for IC2 (A/D-D/A converter (data communication equipment) levels used by the processor and the
PCF8591) and finally to the AA input of instead of DTE (data terminal equip- levels employed for the external RS232
K1. The fourth and final port (P3) is also ment). The serial port has five leads: connection. The DCD signal is inverted
used for a variety of tasks. P3.0P3.3 RxD and TxD, DCD (input) and DCR by a logic element consisting of R28,
are assigned to the serial communica- (output) and of course the earth R29 and T1. A change in signal level on
tion port, P3.4 and P3.5 are used for the (Ground) connection. In addition, the the P3.3 input indicates to the proces-
counter and frequency-measurement RTS and CTS lines are directly con- sor that a connection is being made
functions respectively, and P3.6 and nected to each other at the connector. and that a response is desired.

8 - 3/98 Elektor Electronics EXTRA PC TOPICS


COMPONENTS LIST (T1) and a voltage reference chip (IC7). The software
The reference potential of IC7 is 5.0 V;
Resistors: this is reduced to the desired value of The software can be installed without
R1-R16 = 2k7 2.55 V by a resistive divider consisting having a modem connected to the sys-
R17-R20 = 10k of R26 and R27. For expansion pur- tem. However, a special cable is nec-
poses, the reference potential is also essary for this. Make up the cable using
R21 = 470
bought out to K1. Resistors R17R20 two female 9-pin sub-D connectors.
R22 = 8k2
protect the inputs of the A/D converter Cross-connect pins 2 and 3 between
R23 = 100 against excessive input voltages. the two connectors, and directly inter-
R24 = 330 Not much needs to be said about the connect the remaining pins. The board
R25 = 820 interface to the EEPROM. This IC has a can be directly connected to the PC as
R26 = 33k capacity of 128 8 bits and is used by a peripheral device by means of this
R27 = 47k preset, multiturn the software for storing configuration cable. Select the desired serial port set-
settings. tings (2400, N, 8, 1 or 9600, N, 8, 1) and
R28 = 100k
The last item is the power supply. This start the terminal emulation program
R29 = 4k7 part of the circuit is based on a proven (ANSI or VT102). The Xon/Xoff communi-
R30 = 10k SIL array design and provides a stabilized poten- cations protocol is used. Now press
tial of 5 V. The unregulated input volt- both Reset (S1) and Auto-answer (S2) at
Capacitors: age is connected directly to the refer- the same time and hold the latter
C1,C2= 22pF ence-potential generator. switch pressed until the setup menu
C3-C7 = 10F 16V, radial appears on the screen. The menu
C8,C9 = 4F7 10V, tantalum Construction: selections provide access to a set of six
C10 = 220F 25V relatively simple functions which are self-explanatory.
C11,C13 = 100nF The password may contain numerals
Although this is a reasonably advanced and letters. Note that the software dis-
Semiconductors: project, its construction should certainly tinguishes between uppercase and
T1 = BC557 not be difficult for an experienced hob- lowercase letters.
T2 = BC547 byist. Even making ones own circuit The modem initialization function is suit-
D2 = LED 5 mm, green board should not be all that challeng- able for all commonly-available mod-
D3 = LED 5 mm, red ing, seeing that it is single-sided and ern modems. In case a modem is not
D4,D5 = 1N4148 the layout is relatively open. Figure 3 used, such as with a direct serial con-
D6 = 1N4002 shows the copper track layout and the nection to the PC, the initialization string
IC1 = MAX232 component overlay. If you solder care- can be deleted. If desired, a user-
IC2 = PCF8591 fully and use IC sockets to avoid possi- specified initialization string can be
IC3 = AT93C46 ble damage to the ICs, success is prac- installed. Note the following restrictions
IC4 = AT89C52-PC16 (order code tically guaranteed. Mount the wire links with regard to modem configuration:
986504-1) and connectors K1, K2 and K3 before
IC5 = LF356 mounting other components. a connection must be indicated
IC6 = 7805 Check the supply voltage after IC6 and via the DCD signal (&C1)
IC7 = LM336-5.0 IC7 have been installed, and then a falling edge on DTR invokes the
insert the remaining chips in their indi- command mode (&D1)
Miscellaneous: cated positions. The system is now just use Xon/Xoff (&K4)
X1 = 12-MHz-kristal about ready for use; it is only necessary the modem must be in auto-
K1 = 64-pin DIN connector, AC row to first adjust the reference potential. answer mode and respond after
K2 = 2-way PCB terminal block Use a digital multimeter to measure the three ring tones (S0=3)
K3 = 9-way sub-D connector voltage between pins 14 and 8 of IC2.
S1,S2 = single-pole push-button Adjust R27 until this measures exactly The following menu options are used to
JP1,JP2 = jumper 2.55 V. enter the basic configuration settings
Disk (program source codes), order It is not necessary to connect a for the I/O port and the D/A converter.
code 986504-1. modem at this point. Connect the These settings are used after a hard
power and wait for a little while. If reset (cold start). If the Reset switch is
everything is in order, the red LED pressed, the last-used configuration set-
should start to flash after about 1 sec- tings are retained. Note that port lines
ond, which is a sign that the EEPROM which are used as inputs will first be
checksum is incorrect. This is a normal briefly set to a high level (1) as a con-
occurrence with a new (and thus sequence of the internal design of the
The A/D-D/A converter design is simple. empty) EEPROM. The processor will now processor. If one selects the option
It is based on the Philips PCF8591 chip. install the default configuration settings Load default settings in ROM then the
This device communicates via the I2C in the EEPROM. Press briefly on the Reset controller selects the settings which
bus. The required control signals are switch (S1) and then wait about 25 sec- have been stored in ROM by the
generated by the processor via its P0.6 onds. The red and green LEDs will light designer. These are as follows:
and P0.7 I/O port connections. In addi- alternately for 5 seconds. Afterwards
tion to an 8-bit analogue output, the the green LED will start flashing, as a system ID: none
PCF8591 has four 8-bit analogue sign that the system could not initialize password: a single space charac-
inputs. The required 2.55-V reference the modem. This cycle repeats itself ter
potential is generated by a reference every 25 seconds, which is evidence modem initialization string:
source built around a current source that the system is operating. AT&FE0L0V0&D1&K4&R1S0=3S7=90

PC TOPICS Elektor Electronics EXTRA 9 - 3/98


the startup sequence, so that any
changes made between startups will
not affect the current selection.) The
system is now ready for use. First switch
on the modem, and then apply power
to the data acquisition card. The red
and green LED indicators will flash alter-
nately. As soon as the modem initial-
ization has been successfully com-
pleted, the green LED will light continu-
ously. By the way, the configuration of
the modem initialization string can be
easily checked out by sending it from
the PC in terminal mode to the modem.
The response from the modem should
be OK or 0.
Disable the auto-answer mode by
briefly pressing the Auto-answer switch.
The green LED will flash at a slow rate,
and the modem will now not respond
to a ring tone on the telephone line.
Press the Auto-answer switch again to
re-enable the normal auto-answer
Figure 4. The assembled board can communicate with any ANSI or VT102-compatible
mode.
terminal via a modem.

Logging in and more


after a cold start, all 16 I/O lines are while leaving the setup menu. By this
high and the output potential of the means a supplementary 10-second Logging in to the system is similar to
D/A converter is 0 V. delay is programmed. Whenever the logging in to a BBS. Immediately after
setup menu is subsequently exited with- the connection is established, the user
The system also stores these default set- out holding the Auto-answer switch is requested to enter the password. If
tings in the EEPROM if an incorrect EEP- depressed, this extra delay is deleted. an incorrect password is entered, the
ROM checksum is detected. request is repeated. Pressing ESC or
The (new) configuration settings are Operation Ctrl-C terminates the login process. If
stored in the EEPROM upon exiting the the correct password is entered, then
setup menu. In the case of certain Now its time to put the card to use. the initial menu appears. The following
older-style modems for which a delay Attach a modem to connector K3 via a functions are available in turn:
of several seconds is desired between normal serial cable. Select the desired
carrier detection and the start of data baud rate with JP1 and leave JP2 open real-time I/O status
exchange, the Auto-answer switch must for the time being. (Note that the write to output register PORT1
be activated and held (depressed) jumper positions are only read during write to output register PORT2
write to the D/A output
reset the counter register
** disconnect **

The functions of the various options are


self-explanatory. You will find that a few
minutes experimenting is enough to
familiarize yourself with cards opera-
tion. As previously noted, the menu
function can be disabled by means of
a jumper setting. In this case a user-
written procedure must be used to pro-
vide the communications functions. All
commands are formed by a combi-
nation of the upper-case letters AF
and the numerals 09, followed as
appropriate by a carriage return
(Return character). After the connec-
tion has been established the system
sends the text ID: followed by a sys-
tem identification string and a carriage
return. Following this the password must
be entered. The correct password is
confirmed via the ACK character; the
system responds to an incorrect pass-
Figure 5. The status of all inputs and outputs appears on the screen at the press of a key.
word with the NACK character. The

10 - 3/98 Elektor Electronics EXTRA PC TOPICS


C3 Reset counter
LED indicators This command resets the counter to
Red LED Green LED Status
zero and clears the counter overflow
off on standby/operation without modem
flag.
on off connection with another modem
flashing off EEPROM checksum error
C4 Break the connection
off slow flashing auto-answer disabled
This command only works in combina-
off fast flashing modem initialization error
tion with a modem. If it is used in the
alternately flashing waiting for modem initialization absence of a modem, a NACK char-
acter is sent in response.
procedure can be terminated by II = D/A output register data
sending the ESC character. JJJJ = value of 16-bit counter In general, the interval between a
KKKK = frequency measurement result command and its associated data
Summary of the commands LL = flag register data: string may not exceed one second.
C0 Control command - bit 0 indicates an I2S communication
This command is answered with OK. error Perhaps this has been a bit much in
This only works if no modem is being - bit 1 indicates a counter overflow one go, but weve now gotten through
used; otherwise a NACK character is - bit 3 indicates a frequency measure- the complete design description. From
sent in response. ment overflow now own, you should remember the
- bits 47 are not used rule that experience is the best
C1 Request I/O data MM = checksum value teacher, and thus put the system to
This command causes a string of char- use in some practical applications. This
acters to be sent after a delay of one C2 Write to I/O means soldering and programming,
second. This string has the following This command should be followed and looking for suitable applications.
construction: within one second by a character string Here we limit ourselves to the interface
containing the following data: provided by the data acquisition sys-
AABBCCDDEEFFGGHHI- AA = new value for Port 1 register tem and leave the question of its appli-
IJJJJKKKKLLMM<CR> BB = new value for Port 2 register cation to you. However, numerous
in which the data is presented as fol- CC = new value for D/A output register potential applications may be found in
lows: DD = checksum past issues of Elektor Electronics, so
happy hunting! (tip: use the Elektor
AA = Port 1 register data If the received checksum is correct Electronics Item Tracer).
BB = Port 1 input levels then the system responds by sending (982031)
CC = Port 2 register data an ACK character; if the checksum is
DD = Port 2 input levels incorrect then the system responds with
EE-HH = A/D channels 14 values a NACK character.

continued from page 5 configuration menu we can make the the option Map Network Drive. Here
subdirectory shareable, assign a name we can enter a drive letter. The most
With this configuration there is no longer to it and determine whether it is shared important option appears at the bot-
any extra ballast, but we have a func- read-only or read/write. We can also tom: Reconnect at logon. If we wish to
tioning local network connection (via protect shared access with a password. create a permanent coupling, then we
NetBEUI) and an Internet connection Further down in Windows Explorer we enable this option.
(via TCP/IP). find Network. If we open this, we see a A network printer may be assigned to
The options Client for Microsoft Net- presentation of the various workgroups ones own system by selecting Start/Set-
works and File and printer sharing and computers. The sharable subdi- tings/Printers/Add Printer. In the second
must be present to allow our computer rectories are listed under the individual window we can specify whether we
to share devices or files via the network. computers. If both file and printer shar- want a local printer or a network printer.
We can use File and printer sharing to ing are disabled in a particular com- Select network printer. A particular net-
individually configure our computer for puter, then it is not visible to the NetBEUI work printer can then be selected via
printer sharing alone or file sharing as network. the Browse option. If we wish to print
well. In a small network we work with a single from a system running MS-DOS, then we
workgroup, which has the default must reply yes in response to the ques-
Lets share name of workgroup. We can assign a tion Do you print from MS-DOS based
name of our choice via Network/iden- programs?. This option can also be
If we wish to share files, we must clearly tification. If a lot of data is exchanged enabled at a later stage via Capture
indicate this via the MS Explorer. If we with a particular computer via the net- Printer Port.
wish to make the contents of a subdi- work, then it is as a rule more conve- With this information presented in this
rectory available on the network, then nient to assign the hard-disk drive of the article it should not prove difficult to set
we identify the subdirectory and click other computer to our own computer in up a small Windows 95/3.11 network.
once on the subdirectory with the right- the form of a drive letter. To do so we Such a network need not be all that
most mouse button. The option sharing first use the Explorer to display the net- expensive, and it offers a lot more pos-
is displayed in the menu which then work directories. A click on the desired sibilities than a collection of isolated
appears. After this option is clicked a subdirectory with the rightmost mouse computers.
configuration menu appears. In the button causes a menu to appear with (982001-2)

PC TOPICS Elektor Electronics EXTRA 11 - 3/98


Many older PCs have accumulated lots of dust inside the case and can
benefit from cleaning a number of areas and essential components.
Although the build-up of dirt, dust, grime and debris inside the PC case will
rarely be the cause of immediate hardware malfunctions, it does obstruct
to some extent the absolutely vital airflow inside the computer case. This,
in turn, lessens the cooling capacity of ventilators, in particular, the noisy
one at the most dreaded and ugliest side of computer: the back! Spring-
cleaning PC hardware is often forgotten as most PC users seem to associ-
ate the term maintenance with orphan-DLL clearing, hard-disk defrag-
menting and the like.

dust in the PC
spring-cleaning old dust eaters

Browsing through the latest computer


magazines and reading about new
and ever faster machines (and some
of the incredible problems they pre-
sent), its easy to forget that there are
thousands of PCs around that have
been in use for many years in homes
and offices. In most cases, theres
nothing amiss with these trusty 386 and
486 based machines, except, per-
haps, that they are slow and their
street value may be a disappointing
few tenners or so. So, many of you will
argue that such old beasts are best
left to do whatever they are still able to
do. And yet, cleaning the inside of
these oldies is rewarding because it
ensures that they continue to function;
sometimes even better than before!

Airflow in a PC
If you put your hand near the ventila-
tor at the rear of a running PC, you will
notice that the fan produces an out-
ward bound air stream. The tempera-
ture of the air stream will depend on
the size of the PC and the amount of
electronics inside. In our experience,
desktop and tower PCs for home and
office use never produce hot air. If
your PC does, its high time to review
the situation inside the case!
The function of the PSU (power sup-
Figure 1. Illustrating the airflow in a typical medium-size tower case. Assuming that the ply unit) ventilator is to establish a
cover is fitted on to the case, the ventilator at the rear of the power supply unit (PSU) steady flow of (relatively) fresh air
causes air to be sucked into the case along various paths. Unfortunately, the main air- across and around electronic compo-
flow causes dust particles from the floor to be carried into the case. For obvious rea- nents that may be damaged if they
sons, the air intake of the PSU may not be obstructed by cables. Note that this PC was become too hot. The PSU fan has been
being overhauled when we made the photograph. Normally, it contains a number of an essential component in PC design
extension cards, and all slot cover plates at the rear are fitted so there is no air intake in ever since the first PC-XTs and clones
this area. appeared on the market about

12 - 3/98 Elektor Electronics EXTRA PC TOPICS


15_years ago. Okay, modern PCs
have temperature-controlled ventila-
tors which are much quieter than the
early types, but that does not detract
from the necessity of a cooling air
stream in the case. The reason for
mentioning the PSU fan in this article is
that it has two unwelcome side-effects.
The first is that it produces noise. Noise,
although not the main subject of this
article, may be reduced to a certain
extent, as will be discussed further on.
The second problem with the fan is
that it collects dust which may ulti-
mately cause it to run slower, and so
endanger the life of the components
that should be cooled, because the
airflow is vastly reduced.
The build-up of dust in certain areas
inside the PC may be explained on the
basis of the air flow created by the PSU
fan. Basically, (relatively) cool air is
sucked into the case along various
paths, passed through the PSU case,
and blown out of the case. The air flow
in a typical (medium-size) tower case is
illustrated in Figure 1. It is, of course,
assumed that the PC case is closed.
Usually, fresh air is sucked into the
tower case via openings (slots, a perfo-
rated area or a grille-like structure) in
Figure 2. Illustrating the airflow in a typical desktop PC (this vintage one happened to be
the PC front side, near the base of the
partly salvaged).
case. Air flows over the motherboard,
along extension cards, and is eventual-
ly sucked into the PSU through ventila-
tion holes in the PSU case. PC PSUs are
typically switched-mode types which
contain a number of components that
run pretty hot, so cooling is really in
order here. As you can see in Figure 2,
the typical air flow in a desktop PC
case is basically the same as in a tower
case. You may not have realized that a
small amount of air is also sucked in via
the small openings in and around a
floppy disk drive, hard disk drive, CD-
ROM drive or tape drive mounted in the
drive bay. Some cooling of these drives
is essential, however, as some hard disk
drives and tape drives run much hotter
that one would imagine.

The PSU and CPU fans


There is a fairly simple way to make an
educated guess about the amount of
dust waiting to greet you when you
open up an antediluvian PC. Without
opening the PC case, look at the
amount of dust which has settled in
and around the PSU fan. In some
cases, you may have to remove the
protective grille. Typically, desktop PCs
collect less dust than big-towers. This is
logical in view of the air stream dis-
Figure 3. A dusty PSU fan like this one indicates that the inside of the PC is long overdue
cussed above: tower cases inhale
for cleaning.
more dust because the main air intake

PC TOPICS Elektor Electronics EXTRA 13 - 3/98


point is nearer the floor. Figure 3 shows
a likely candidate for cleaning. Dust is
rife and clearly visible on this PSU fan
boasting ten years of faithful opera-
tion.
Before we continue our story, an
important point must be mentioned.
Removing dust from the inside of a
PC involves opening the case and
disassembling some of the internal
components. This should not be
attempted by beginners, or if the PC
is still covered by a warranty. Also, all
actions should be carried out with
the mains cord and all peripherals
disconnected. Observe all precau-
tions relevant to electrical safety.
Fortunately, cleaning the PSU fan is
not required on a weekly or even
monthly basis, the amount of dust hav-
ing settled in and around the fan
blades depending mainly on the num-
ber of hours the PC has been in use,
and its location the office, study, cel-
lar, broom cupboard, kitchen, attic or
living room!
In some cases, it will be sufficient if
the dust on and around the fan is
removed using a small brush and a
vacuum cleaner. However, for a thor-
ough spring-cleaning job, you have to
Figure 4. Dismantled PSU case with the fan removed separately. It is easily cleaned with
remove the PSU from the case. Usually,
a small brush and a vacuum cleaner fitted with a small nozzle. Check the fan for
two or three Phillips screw drivers are
smooth operation, and if necessary replace it by a new, quieter, one.
all you need for this purpose. Be care-
ful not to damage the screw heads as
doing so may make it impossible to
secure the screws properly again later.
All power supply cables inside the
case have to be disconnected from
the motherboard, the drives (floppy
disk, hard disk, tape drive, CD-ROM
drive, etc.) and the CPU fan, if fitted.
Sometimes the entire PSU has to be
removed before you can get your
hands on the motherboard supply
connectors, insertion cards being in
the way, and the connectors stashed
away under the PSU block. Most PSUs
have an attached cable for the mains
switch connections, and this cable
may only be disconnected at the
power switch. Its just as well to disas-
semble the switch unit and give the lot
a thorough cleaning, too, as it is an
unexpected but serious dust collector.
The PSU is typically secured with four
or six screws on the rear panel of the
PCs internal frame. In many desktop
cases, it is additionally secured to a
bracket close to the bottom of the
case. Fortunately, none of these con-
structions are complex or tricky to dis-
assemble (were not talking of the lat-
est notebooks and other crammed
Figure 5. A dusty CPU fan like this ultra-low cost one we found in an ageing 486 PC can PC technology here).
be the cause of a costly repair job if it is not cleaned and inspected for wear and tear. The next step is to open the PSU
Like the PSU fan, the CPU fan is often best replaced by a more up to date type. proper. As there are countless varia-

14 - 3/98 Elektor Electronics EXTRA PC TOPICS


tions on this theme, it is difficult to give
hard and fast advice here. Take some
time to study the structure of the PSU
casing. The screws that need to be
loosened at this point should be near
the edges of the casing. Others further
removed from the edges are best
given a miss because they typically
secure internal components like power
semiconductors that require the metal
side panels for cooling.
Take the PSU casing apart, and give
the inside a thorough cleaning using
the brush-and-vacuum-cleaner
method already mentioned. Nows
also a good opportunity to remove the
fan, and clean it separately (Figure 4).
Make sure you know how the thing is to
be mounted again, however, as you
run the risk of accidentally reversing
the air flow on re-assembly. Sometimes
these fans have an arrow printed on
them to indicate the direction of the
airflow at the correct polarity. You may
not want to mount the same old fan
again, however, because an attrac-
tive opportunity is available to replace
it with a new and better one, i.e., tem-
perature-controlled, quieter and/or
with real (metal) ball bearings. Such an
(inexpensive) upgrade is sure to elimi-
nate much of the appalling noise pro-
duced by many ageing PC.
Figure 6. Mice eating dust? The ones in our offices do.
If you have access to an air com-
pressor (the local garage may be able
to help you) which you can use out of the CPU fan will result in reduced cool- Of mice and dust
doors, then the PSU casing and the fan ing capacity, and, eventually, total
may be cleaned in one go. In gener- breakdown with possibly catastrophic Instructions on cleaning the mouse
al, however, it is not recommended to consequences for the CPU. And then, should be given in the manual that
remove dust by any kind of blowing to add to the misery, a replacement came with it. Figure 6 shows a small
action as it presents a potential health for, say, a once stalwartly 486DX66 will dust ball collected by a mouse used
hazard, and may cause the stuff you be surprisingly hard to get, making the in office surroundings over a period of
wanted of get rid off to end up a cou- whole PC useless. about six months. In general, cleaning
ple of inches further on, in places Heaps of dust may also be found at the mouse will only involve removing
where it wreaks havoc. other spots in the PC, for example, in the internal ball and gently removing
The other, much smaller, fan which the rear corners of the metal frame, any dust build-up inside. In rare
may need cleaning is the one fitted on near the slot cover brackets, and at cases, the internal rollers or wheels
top of those hot-headed 486 and Pen- the outside of the air intake grille that keep the ball in place may need
tium CPUs (Figure 5). Dusting off and where the loudspeaker is secured. cleaning also.
inspecting it will be relatively simple as Once the PSU is in place again, you
there are no screws involved, and the may want to inspect its air intake area. Keyboard shake-out
same general guidelines apply as In not a few cases, this is partly
those for the PSU fan. This fan, too, is a blocked by power supply cables and Youll be amazed at the amount of
good candidate for replacement as disk drive flatcables squeezed togeth- debris collected by an ordinary PC
much quieter and longer lasting types er in a chaotic manner. Organize keyboard which is not protected by a
are now readily available from many these cables to clear the PSU air intake plastic cover. Most PC users do not
computer shops. Note, however, that area, and remove any dust you may seem to bother about this, however,
486-type coolers are becoming find lodged on the flatcables. These until one or more keys remains stuck,
scarce, and that they are not inter- may be zigzag-folded where neces- or does not produce a particular
changeable with Pentium coolers sary, and held in place by a paper- character any more. Such problems
(which is not to say that the fan cant clip (watch out for short-circuits howev- may be prevented by holding the key-
be removed and replaced separate- er). In some cases, its even worthwhile board upside down and shaking it vig-
ly). Here, too, go for a fan with ball to reshuffle the disk/CD-ROM/tape dri- orously, say, once a month. You may
bearings rather than friction bearing ves in the drive bay and, of course, also rap one of the keyboard corners
as found in most inferior, all-plastic, extension cards in older PCs. Reshuf- on the desktop (Figure 7). Dont be
incredibly-cheap products. Remem- fling also allows you to properly secure afraid to do this; all reasonably built
ber, any dust permanently lodged on all cables. keyboards will survive this gentle mal-

PC TOPICS Elektor Electronics EXTRA 15 - 3/98


treatment. For extra fun, put a large
sheet of white paper on your desk. We
found (among other bits best left
unmentioned) hairs, bits of paper,
bread crumbs, chocolate sprinkles,
cigarette ash and tobacco.
Only if you are really serious about
cleaning the keyboard, you may want
to take it apart and remove each and
every foreign particle encountered
therein. This may be tricky however as
some low-cost keyboards contain a
single, very fragile circuit board.

The monitor
When it comes to cleaning, the PC
monitor is a separate story. There are a
number of risks to be taken into
account before opening any PC dis-
play. The main dangers are the high
CRT (picture tube voltage, implosion of
the CRT, and upsetting the (delicate)
picture geometry adjustments. The
undaunted among you may have a
look at Figure 8 which shows typical
dust build-up spots: around the CRT
high-voltage connector, the high-volt-
age cage, and the picture controls at
the edge of the PCB (on modern mon-
itors, these controls are usually digital
and fitted at the front side). Cleaning
Figure 7. Illustrating the keyboard shake-out. Youll be amazed at the amount of debris
the HV parts in particular will result in
lodging in a PC keyboard.
fewer crackling and other unnerving
sounds from the monitor when it is
switched on and off. It also allows you
to get rid of the stuffy smell produced
by some older monitors.

Sales ploys
Although the shelves of computer
stores are loaded with special prod-
ucts for computer cleaning, most of
the products on sale are overkill, and
none are essential in our view. Com-
puter sales people will first try to dis-
suade you from cleaning the comput-
er internals yourself, and then try to talk
you into buying professional prod-
ucts. This is just sales talk, however.
Plain pressurized air in a can (like Dust
Blaster from HCS Global), for instance,
is pretty expensive, yet only marginally
useful for cleaning the debris found in
keyboards. Other aerosol dusters are
not all they are cracked up to be, and
should be used with extreme care
because they make existing dust land
in other places. By contrast, a clean
brush and the vacuum cleaner bor-
rowed from The Mrs do a much better
job. Whats more, these tools are safer
and available in nearly every house-
hold.
Figure 8. Internal cleaning of a PC monitor should not be attempted by beginners. The
(982033-1)
arrows in this photograph point at spots which are likely to be covered in dust.

16 - 3/98 Elektor Electronics EXTRA PC TOPICS


variable power supply
024 V, 1 A or 2 A
ideal for the small workshop

The variable power supply described in A variable power supply, a soldering iron
and a multimeter form the minimum
this article is the latest in a long line of basic equipment required in a small elec-
tronics workshop. Unfortunately for
power units published in this magazine many, a commercial variable power unit
over the past fifteen years or so. is not exactly cheap, which is an excellent
reason for building one from scratch. The
Because of its wide voltage range and power source described in this article is
ideal for that purpose. It has a number of
presettable current limiting, it is ideally preset facilities, its design is straightfor-
suited to general-purpose applications in ward, and it has the facility to be con-
nected to a digital voltmeter DVM
a small electronics workshop. module to display the output voltage and
current. Moreover, apart from some
power field-effect transistors FETs it is
constructed from readily available stan-
dard components. Finally, it may be con-
structed to provide an output current of
Design by K.A. Walraven 1 A or of 2 A.

Elektor Electronics 3/98


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

DESIGN Figure 1. Circuit diagram of the variable power supply.


The basic setup of a power source is The output voltage is set with P1 and the output current
fairly simplesee Figure 1. The alter- limit with P2. Digital voltmeter and ammeter modules may
nating voltage available at the sec- be connected to +V and V, and +I and I, respectively.
ondary of the mains transformer is
converted into a direct voltage by full-
wave rectifier bridge B1. The level of K1
TR1
*
the direct voltage is raised by two par- +U 9V
allel-connected field-effect transistors, 1 C3 C5 IC3
T1 and T2, located between the nega- 160mA T
7809 A +9V
tive output terminal and ground. B1
C4 C6
The transistors are driven by two
control circuits based on operational *
C7 *
C8 C11 C9 C10
amplifiers op amps IC1 and IC2.
10 100 100n
These circuits continuously compare 24V 1A25 B80C2200 63V 16V

the output voltage and the output cur- C3 ... C6 = 4x 100n 2x 1000 0
63V
rent with preset wanted values.
In contrast to usual power supply +U

designs, the FETs are not arranged as


R24
source followers. This is a deliberate 9V

100k
choice intended to save energy. This
becomes clear when it is realized that R1 R3 R17 R5
1%
+V
the potential at the gate of the transis-
1k

274k

3k3

3k9
tors needs to be about 6 V higher than D6
R15
1% D2 C1 C2
that at the source. In the present V

3k3
B D 1
7
design, this is effected by driving the 2
D1 100n 100
C 6
1N 1W 40V
gate with reference to the internal R2 IC1 4001 V
3 R22
earth of the power unit and not with 46k4 5 E BAT85
4

100k
1%
reference to the positive output rail as 8

is usual. TLC271 R6 1%
An auxiliary voltage of +9 V for the R4
274k
1% R23 R21
control circuits is provided by regula- F G
46k4

V P1

1k02

1k02
tor IC3. This voltage also functions as 1k
reference potential: the wanted values 1%
9V 1% 1%
for the voltage control and current
control circuits are set with P1 and P2 K
respectively. R7* R16
3k3
15k

T1
V O LTA G E R E G U L AT I O N (8k2)
D4
The output voltage across capacitor C2 R8
I
1
R10
7 220
floats, that is, the positive capacitor H 4k7
3
D3 T2
6
terminal is linked to the non-regulated IC2 K
2 R11
5 L
supply voltage (++). The negative out- 4
BAT85
220
put rail is linked to the drains of tran- I P2
8
R9 M K
sistors T1 and T2. 1k
TLC271 4k7 2x
The reference voltage is measured R14 BUK455 N
4k7
with reference to the negative output J
D7 R12 R13
D5
rail, which is why the input of IC1 is
1

connected via R3-R4 and R6-R2. These 1N4001


5V6 5W 5W
resistor combinations ensure that the
R18 R20
output voltage is compared with the
22k

22k

wanted value set by P1


A 8V86 F 4V25 K 2V3
This arrangement works fine as
+I
long as the ratios R3:R4 and R6:R2 are B 4V4 G 4V69 L 1V9

precise, which means that the resistors C 4V17 H 1V1(0V56) M 0V48


R19

must have a tolerance 1%. * zie tekst


A
2k7

D 4V24 I 0V5 N 0V47 see text


The differential voltage at the out- * siehe Text
put of IC1 is used to control the poten- E 1V J 0V48 * voir texte I

tial at the gates of the FETs via diode * 980024 - 21

D1. Normally, the transistors are dri-


ven into saturation via R5 and cut off traditional manner by measurement of each resistor is 1 V.
by the voltage circuit or the current the voltage drop across a shunt resis- The two voltages are averaged by
control circuit. Diode D7 is added to tor. In the present circuit, this shunt resistors R9 and R14, so that, even if the
limit the maximum gate potential of resistor is formed by the source resis- split between the two transistors is far
the two transistors; this shortens the tors, R12 and R13, of the FETs. from ideal, the total current is mea-
reaction time when the devices are in Since the differences between indi- sured at all times. The average voltage
the saturation mode. vidual FETs may be significant, the level is compared with the wanted
Resistors R10 and R11 prevent any transistors have been given a fairly value, set with P2, in IC2. If the current
high-frequency oscillations. large source resistor of 1 . So, when is unduly large, the output voltage of
the output current is, say, 2 A, that is, the op amp drops and the transistors
CURRENT REGULATION a current of 1 A flows through each are cut off via diode D3. To ensure that
The output current is monitored in the transistor, the potential drop across they are firmly cut off, diodes D1 and

Elektor Electronics 3/98 17


Figure 2. The design of the printed-circuit board allows it to be mounted
2 behind and in parallel with the front panel of the enclosure.

OUT2

0V +9V
H1

H6 H5 H2

+I -I
R12 R13 R14
C9
B1 R20 R18

C10
P2 T1 R1 P1
~ IC3
R16
T2
R7

IC2 IC1

R17

R19

R23

R21
C3

D1
H11 H12

C5

D2 +V -V

D7
R10

R11
R5
R9
R8

R4
R3
R6
R2
D3
C11
C6 D4

R24

R22
~ C1
+ -
OUT1
OUT

H10 H9

C8 R15 C7

D6

D5
C4
C2
1-420089 980024-1

H3
H4 H8 H7

tnemgeS )C(

(C) Segment
980024-1

D3 are Schottky types.


3 Light-emitting diodes D2 and D4
serve to indicate that the voltage reg-
ulation and current regulation respec-
tively operate correctly. Note that these
diodes cannot be connected in series
with D1 and D3, since then the tran-
sistors cannot be cut off completely.
It would be possible to give the
op amps a negative supply line, but it
is, of course, much simpler (and less
expensive) to place the LEDs as shown.
It is true that this raises the current by
about 2 mA, but in a power unit this
hardly matters.

ALSO
Diodes D5 and D6 protect the circuit
against too high a voltage and against
an incorrectly polarized voltage.
Resistor R15 drains away the tiny

Figure 3. Photograph
of the completed pro-
totype of the variable
power supply. The
mains transformer
dictates the height of
the enclosure.

18 Elektor Electronics 3/98


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

Parts list Capacitors: IC3 = 7809


C1, C3C6, C10 = 0.1 F
Resistors: C2 = 100 F, 40 V, radial Miscellaneous:
R1 = 1 k C7, C8 = 1000 F, 63 V (1 A version); K1 = mains entry with integral on/off
R2, R4 = 46.4 k, 1% 2200 F, 63 V (2 A version) switch and 0.16 A slow-blow fuse
R3, R6 = 274 k, 1% C9 = 100 F, 16 V, radial Tr1 = mains transformer, 24 V, 1.25 A
R5 = 3.9 k C11 = 10 F, 63 V (1 A version) or 24 V, 2.5 A (2 A ver-
R7 = 15 k (1 A version); 8.2 k sion)
(2 A version) Semiconductors: heat sink (for T1-T2): 1.2 K W1
R8, R9, R14 = 4.7 k B1 = B80C3300/2200 rectifier 2 off chassis socket, 3.5 mm
R10, R11 = 220 D1, D3 = BAT85 enclosure 80100200180 mm
R12, R13 = 1 , 5 W D2, D4 = LED, red, high efficiency (1 A version) or 100120200180
R15 = 3.3 k, 1 W D5, D6 = 1N4001 mm (2 A version)
R16, R17 = 3.3 k D7 = zener diode 5.6 V, 400 mW PCB order no. 980024 (see Readers
R18, R20 = 22 k T1, T2 = BUK455-100A or Services towards the end of this
R19 = 2.7 k BUK106-50S (Philips Semiconduc- issue)
R21, R23 = 1.02 k, 1% optional: instruments for measuring
tors) see text
the output voltage and output cur-
R22, R24 = 100 k, 1%
rent see text
P1, P2 = 1 k linear potentiometer Integrated circuits:
IC1, IC2 = TLC271CP

current through R6 and any leakage of ules with an IC from the 7106 family holes in the enclosure, both above and
the FETs and so, in fact, determines the do not meet this requirement and underneath the heat sink. Considera-
minimum output voltage. these must, therefore, be given a sep- tion should be given to the use of a
Capacitors C1 and C2 improve the arate supply. small fan, because the inside of the
stability of the circuit and its perfor- There are, however, digital modules small enclosure gets very hot. Stan-
mance at sudden variations in load. that can be used with the aid of a small dard 12 V PC fans run well on 9 V (and
integral voltage converter. The specifi- are then also quieter). It is, of course,
V O LT M E T E R S A N D cation of these invariably states possible to provide a 12 V line with the
AMMETERS emphatically that they do not need an aid of an additional 7812 voltage reg-
Several potential dividers (R18R24) are auxiliary voltage. In all other cases, it ulator.
provided on the printed-circuit board must be assumed that the module It is advisable to use a mains entry
to enable digital measuring instru- needs an auxiliary voltage. with integral fuse mounted at the back
ments to be connected. of the enclosure. This keeps the pres-
Divider R18R20 is intended for cur- CONSTRUCTION ence of mains voltage inside the unit
rent measurement. It is in parallel with The power supply is best built on the to a minimum
source resistors R12 and R13 (I1 and I2). printed-circuit board shown in Fig- Note that DVM modules with inte-
The digital ammeter or DVM module is ure 2. gral lighting draw a current of
connected to +I and I. Most digital Depending on the enclosure, 2030 mA, and it is, therefore, advis-
modules have a sensitivity of 0.2 V. potentiometers P1 and P2 may be able to mount the voltage regulator on
Since the potential drop across R12 and mounted directly on the board, since a separate heat sink of about 20 K W1.
R13 is 1 V when the output current is this is to be mounted behind, and in A photograph of the completed
2 A, the attenuation of R18-R19 is 5. parallel with, the front panel on a prototype is shown in Figure 3. Note
The attenuator for voltage mea- number of spacers. The heat sink for that the operating controls on the front
surement consists of resistors R21R24 the power transistors is mounted at panel are limited to the two poten-
(remember that the output voltage the back of the board. With luck, the tiometers, the indicator LEDs, and two
floats). Assuming the same sensitivity fixing holes of the board coincide with chassis sockets for the output.
of the module (0.2 V), the attenuation the space between two adjacent fins of
should be 100 (20/0.2). The module is the heat sink. This would give a com- CHOICE OF OUTPUT
connected between +V and V. pact unit and ensure that the heat sink CURRENT
Since most standard 312-digit mod- cannot be touched accidentally it If the power unit is intended to pro-
ules can measure up to 1.999 only, the gets pretty hot! vide a current of up to 1 A only, a
maximum voltage that can be dis- The transistors are soldered to the 212 V, 1.25 A mains transformer can
played is 19.99 V. This difficulty may be underside of the board and screwed be used. It may then be possible to fit
overcome by the use of a module that firmly to the heat sink. It is best to do the unit in an enclosure of 810 cm
can measure up to 3.999, or by increas- this in reverse order: bend the terminals high. If an output current of up to 2 A
ing the attenuation to 1000 (that is, of the transistors to the required shape, is envisaged, the current rating of the
giving R21 and R23 a value of 100 ). mount the board on the heat sink, transformer must be doubled, in
In the latter case, the hundredths screw the transistors in place and then which case the enclosure needs to be
digit is no longer available. solder them carefully with the solder- 1012 cm high.
ing iron between board and heat sink. The values of the components in
M O D U L E S U P P LY It is not necessary to isolate the Figure 1 are for the 1 A version. Some
LINES transistors; in fact, from a thermal alterations in addition to the trans-
Power for the modules may be drawn point of view, it is better not to. It is, former are necessary for the 2 A ver-
from the regulated +9 V rail (via 0 V however, essential to make sure that sion: the value of smoothing capacitors
and +9 V), but this is not always pos- the heat sink does not touch other C2 and C7 must be increased to 2200 F,
sible. Many standard inexpensive parts and is well isolated from its sur- and the value of R7 must be halved to
modules need a separate supply. In roundings. The use of insulating wash- 8.2 k to ensure that when P2 is fully
fact, the available +9 V line may be ers, provided they are of good quality, open, the output current is 2 A.
used only when the supply rails and is safer (use aluminium oxide types,
the test voltage can be equal, that is, not mica). Also, the use of heat con- TEST AND INSPECTION
the common-mode range must lie ducting paste is a must. When the construction has been com-
within the power supply range. Mod- Drill some additional ventilation pleted, switch on the mains and check

Elektor Electronics 3/98 19


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

the voltage at the test points indicated tained that the output voltage is 24 V the output voltage is a minimum.
in Figure 1 with a digital voltmeter. and that an output current of 1 A or In case of the voltage module con-
Note that the values in the voltage reg- 2 A, depending on the version, can be nected to +V and V, the meter may
ulation section based on IC1 refer to an attained. show a voltage that is not there. The
input voltage of 28 V, an output volt- Also, check that the output voltage only possible reason for this is an
age of 24 V and no load. Those in the can be reduced to nearly 0 V with P1. A apparent inequality in the ratios
current regulation section based on IC2 value of 0.20.3 V is acceptable, but if R22:R22 and R24:R23, which may hap-
and around the transistors refer to an the output voltage cannot be reduced pen even if resistors with a 1% toler-
input voltage of 28 V, an output volt- to below 1 V, the ratios R3:R4 and R6:R2 ance are used. The error may be erad-
age of 20 V, and a load of 1 A. are not equal. This may be remedied by icated by shunting R21 or R23 with a
The circuit does not require setting shunting R2 or R4 with a resistor of resistor of about 100 k (the precise
up or calibration, but after verification about 1 M (the precise value needs to value needs to be ascertained by trial
of the test voltages, it should be ascer- be ascertained by trial and error) until and error). [980024]

course, theoretical values (cooling would have to be perfect), but


BUK series field-effect transistors in practice, with a heat sink of 1.2 K W1, the transistor would
be able to dissipate 62.5 W at a T of 150 , which is a lot. Nev-
ertheless, to play safe, the dissipation in the power supply is
divided over two transistors.
The BUK106-50S, a so-called TOPFET from the same series,
may also be used. This device is more expensive but has some
special properties. It has two additional pins: one for a protec-
tion supply input and the other for a flag output. When a supply
voltage is applied to the protection supply input, the device will
auto-protect itself against voltages higher than 50 V. When that
happens, the transistor conducts slightly, which is not necessar-
ily a good thing in a power unit. It will switch itself off when its
temperature rises above 150 C, which is a worthwhile facility in
Many readers will be familiar with the BUZ and IRF types of field-
a power supply.
effect transistor, but the BUK series used in the present power sup-
The flag output indicates when a protection circuit is enabled.
ply is not (yet) so well-known.
This circuit is disabled by briefly switching off the supply volt-
The BUK series comprises a number of versions permitting ever
age at the protection supply input.
larger voltages and currents. The BUK455-100A used in the power
Both types of FET may be used on the printed-circuit board.
unit, for instance, can handle voltages up to 100 V. A noteworthy
The protection supply input pin of the BUK106-50S is then auto-
property of this FET is its low thermal resistance of 1.2 K W1. This
matically linked to the +9 V rail provided by IC3. The flag output
enables it to dissipate more power (125 W) in a TO220 case than
is not used.
the popular 2N3055 in an SO3 case (115 W). These are, of

Elektor Electronics 3/98 21


Balanced/unbalanced
converters for audio signals
for high-end applications

In the Quest For


Quality, a quasi-meta-
physical activity zest-
fully practised by
countless audio-
philes, the use of
balanced (or sym-
metrical) signals is
believed to contribute
considerably to the
end result. In this arti-
cle we take pleasure First things first. Lets recall that an noise is effectively cancelled out by the
unbalanced (asymmetrical) signal is differential effect. The floating signal
in presenting bal- defined as existing with respect to the on the two wires arrives at the inputs
anced/unbalanced ground line in a circuit. Consequently, of the differential circuit. Whereas the
conveying an unbalanced audio signal wanted audio signal arrives with
converters for audio from one preamplifier stage to another opposite phases on the two wires, any
signals. The designs, by way of a cable may pose various
problems including parasitics and radi-
noise picked up by the symmetrical
cable will have the same phase on the
we are convinced, ation which degrade the quality of the two wires. Consequently, this noise is
audio signal. The use of shielded cable effectively eliminated by the subtract-
offer a solution to is an insufficient remedy, particularly ing operation of the differential circuit.
many problems you when the signal source supplies low There are, without doubt, many cir-
signal levels (say, a couple of milli- cuits which enable an audio signal to
may stumble on volts). be converted from balanced to unbal-
when it comes to The panacea in these cases is to
make the signal balanced, that is, float-
anced and the other way around. The
operational amplifier (opamp) lends
conveying small ing with respect to ground. Doing so itself quite well to this kind of opera-
allows a weak source signal to be con- tion. Provided you use quality audio
audio signals over veyed over long distances (if neces- opamps, ample results will be
large distances. sary) without it being modified obtained. However, a couple of pre-
underway. Sure, the problem of para- cautions should be taken to prevent
sitics remains. However, the balanced degrading the performance that may
signal being converted to unbalanced be achieved in theory. One of these
Design by J. F. Brang again at the input of the receiver , conditions is the use of hand picked

Elektor Electronics 3/98


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

resistors with a tolerance of 0.1 per


15V
cent or better.
1 R3

UNBALANCED -TO -

100
BALANCED
CONVERSION
There is a modern solution to this C2 C1

problem. Analog Devices has devel-


100n 100
oped integrated circuits which are 25V
totally geared to this application. These 6 7
IC1
ICs boast internal resistors which are S R1

301
laser-trimmed to a precision of F 8
0.0001%! Not surprisingly, these ICs 4 V IN
achieve professional-grade perfor- F 1
3 R2
mance as far as noise rejection, para- P1

301
S
* 5 2
10k SSM2142

C4 C3

100n 100
25V
* zie tekst
see text
R4
* siehe Text

100
* voir texte
* 15V

980026 - 12

ble common-mode rejection. Those of Figure 1. Circuit dia-


you who are interested in the chief gram of the unbal-
technical specs of the SSM2142 will no anced-to-balanced
doubt find this months Datasheet converter based on
pages of particular interest. the SSM2142 from
The input signal is applied to the Analogue Devices.
chip via a 10-k preset, P1, whose
function is to adjust the output signal
level while also matching the IC input Figure 2. The bal-
impedance recommended by the man- anced-to-unbalanced
ufacturer. The preset may, of course, be converter is designed
replaced by either a potentiometer around the SSM2142
with the same value, or a 3-way pin- and an NE5534 buffer
header on to which a jumper is opamp.

15V
R5
2
100

C6 C8
sitics suppression and distortion are
concerned. These ICs now being rela- 100n 47
C3 25V
tively well distributed in Europe, we C2

have few hesitations about presenting 100n 100


you practical circuits for a stereo appli- 25V
cation. Obviously, the two stereo chan- IC1 C1
nels being identical, it will be sufficient 7
R1 22p
to describe only one of these.
23k2

8
2
IN
The circuit diagram of the unbal- 6 2
5
7
OUT

anced-to-balanced converter is shown 3


8
6
P1 IN IC2
in Figure 1. The SSM2142 opamp from 1k 5 3
1 SENSE
Analog Devices is a buffer/amplifier REF 4
1
with an internal differential output dri- R2
P2 R3 R4
NE5534
23k2

4
680

ver. Its main function is to convert an


1M

SSM2141
unbalanced input signal into a high-
level balanced signal. Based on an elec- 10k

tronically balanced cross-coupled chip C4 C5 C7 C9


topology, the SSM2142 comes close to
achieving the performance of balanc- 100n 100 100n 47

ing circuits that make use of a trans- 25V R6 25V

former for line driving. As a matter of


100

course, the IC has the advantage of a 15V


much smaller footprint than that of a
transformer, while offering compara- 980026 - 11

Elektor Electronics 3/98 23


C6 T OUT1
C6 T OUT1

Figure 3. Copper track installed which


3 layout and component takes the signal

H2

H2
H3 H3

C1

C1
R4

R4
mounting plan of the from the input
IC2 IC2 printed circuit board pin to the centre

C8

C9
C8

C9
0
C7 - 0
C7 - designed for two bal- pin. This is the

R5

R5
R3 620089 R3 620089 anced-to-unbalanced solution we

R6

R6
tnemgeS )C( tnemgeS )C(

P2

P2
+ C3 C4 + C3 C4 converters and two adopted. The
C5 C5
C2 C2 unbalanced-to-bal- output is also
IC1 IC1 anced converters simple: pin 8 of
(board available ready- the SSM2142
R1 R2 R1 R2 made through the supplies in-
Readers Services). phase (+) out-

H4

H4
H1 H1

P1

P1
+ T - + T -
put signal, while
OUT1 OUT1
pin 1 supplies
-
T
+ 6980026
20089 -
T
+ 6980026
20089 the inverted () signal. Since both out-
H3

H3
H2 H2

R2 R1 R2 R1 puts are loaded with a 301- resistor


T )C( + T )C( +
tnemgP1
eS tnemgP1
eS to ground, an output impedance of
R3

R3
IC1

IC1
0 0 about 600 is created.
C1

C1
The SSM2142 is protected against
C4

C4
- -
parasitic signals arriving by way of the
C3

C3
H4

H4
supply lines. This is achieved by con-
H1 H1
C2

C2
R4 R4
necting elementary RC filter networks
comprising of R3-C1-C2 and R4-C3-C4
to the respective supply pins of the
SSM2142. The output of the circuit
supplies an audio signal which should
be worthy of the very best home-brew
audio projects.
Segment
(C)
Segment
(C)
A final word or two about the
power supply: although a 12 V sym-
980026 980026
metrical supply will be fine in many
cases, we recommend using 15 V as
shown in the circuit diagram because
that value results in an improved
dynamic range. The absolute maxi-
mum supply voltage is 18 V.

BALANCED -TO -
(C) Segment (C) Segment
UNBALANCED
980026 980026 CONVERTER
For this purpose you need the
SSM2141. This IC, a direct relative of
the SSM2142, is an integrated differ-
ential-amplifier designed to receive
balanced line signal levels in audio

Figure 4. Finished prototype of


each of the converters.

24 Elektor Electronics 3/98


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

COMPONENTS LIST converter, it may be replaced by wire points to be made here are to observe
links. This was also done on our pro- the polarity of the electrolytic capaci-
Printed circuit board: order code totype. Note, however, that the source tors and the orientation of the inte-
980026-1. impedance has to be perfectly con- grated circuits when they are inserted
trolled, as the slightest imbalance of into their sockets. Also be sure not to
Balanced-to-unbalanced converter the source resistance will reduce the mix up the two 8-pin integrated cir-
achievable CMR value. For example, a cuits on the balanced-to-unbalanced
Resistors:
R1,R2 = 23k22 1% difference of just 5 is punished with converter board.
R3 = 1M a CMR increase of no less than 20 dB. The large unetched copper areas on
R4 = 680 The output signal of the SSM2141 the boards acts as ground planes
R5,R6 = 100 is applied to an NE5534 voltage fol- which help to make the circuits
P1 = 1k preset vertical lower by way of a 10-k preset. The immune to noise and other stray sig-
P2 = 10k logarithmic potentiome- (low-impedance) output of the NE5534 nals.
ter (may be replaced by jumper) should be able to drive almost any pre- Having finished the construction of
Capacitors:
amplifier input. The remarks on the the converter boards you may mount
C1 = 22pF supply filtering of the SSM2142 also them in small boxes, and wire them up
C2,C4,C6,C7 = 100nF apply to the SSM2141. to the external parts. The input and
C3,C5 = 100F 25V radial If used, the CMR fine-tuning preset output connectors may be mini-DIN
C8,C9 = 47F 25V radial has to be adjusted with the aid of a dif- types of which only three pins are
ferential input signal. What better way used. The unbalanced-to-balanced
Semiconductors: to generate such a signal than use the converter is best located close to the
IC1 = SSM2141 (Analog Devices)
SSM2142? Apply a 50-Hz, 100-mV sig- signal source. Its complement, the bal-
IC2 = NE5534 (Philips Semiconduc-
tors) nal to the input of the 2142. Connect anced-to-unbalanced converter, will
its output signal to the 2141. Next, typically be installed near the
tweak P1 for the smallest possible sig- receiver . Note the connections: the
Unbalanced-to-balanced converter nal at the output. This setting corre- outputs of the unbalanced-to-balanced
sponds to the best possible CMR. converter are the mirror-image of the
Resistors: Those of you who do not have an inputs of the balanced-to-unbalanced
R1,R2 = 301 1%
oscilloscope (or access to one) may converter.
R3,R4 = 100
P1 = 10k logarithmic pot (or replace the 1-k preset by two wire The circuits should function spot-
jumper) links, as mentioned earlier. If you can on. The photograph in Figure 4 should
get hold of two 23.2-k resistors with allow you to compare your own efforts
Capacitors: a tolerance of 0.1%, no adjustment at building the circuits with those of
C1,C3 = 100F 25V radial should be necessary. our engineering laboratory. In particu-
C2,C4 = 100nF As already mentioned, the circuits lar, you should be able to detect miss-
are powered by a 15-V symmetrical ing components immediately in the
Semiconductor:
supply. Current consumption being (unlikely) case of a problem.
IC1 = SSM2142 (Analog Devices)
very modest indeed, you can make do A final note aimed at those with a
with a mains adaptor with stabilized keen interest in figures: Below are the
15 V outputs. very encouraging results of exhaustive
measurements on a pair of these con-
circuits requiring high noise immunity CONSTRUCTION verters built up in our design lab:
and common-mode noise rejection. As you can see from the artwork in
This IC achieves a typical CMR (com- Figure 3, a printed circuit board was l unbalanced-to-balanced converter:
mon-mode rejection) spec of 100 dB. designed for the two converters. The THD (total harmonic distortion)
By comparison, an opamp with four artwork comprises the copper track between 0.0008% and 0.0015% from
regular resistors around it will be hard layout and the component mounting 20 Hz to 20 kHz.
pressed to achieve a CMR rating of plan (overlay). The PCB design for l balanced-to-unbalanced converter:

anything over 40 dB or so, which is by each converter is duplicated so you THD between 0.0008% and 0.0011%
no means enough for high-end audio need just this one board for a stereo from 20 Hz to 20 kHz; CMR between
designs. Lets cast a look at Figure 2 application. 140 dB and 70 dB from 20 Hz to
which shows the schematic of this sub- As a matter of course, it is best to 20 kHz.
circuit. The resistor networks between start by separating the four small
the SIG+ (pin 3) and SIG (pin 2) inputs boards. The two smaller boards are All measurements were made with an
of the SSM2141 fix the input imped- used to build the unbalanced-to-bal- Audio Precision test system.
ance at about 47 k. Preset P1 (1 k) anced converters, while the boards (980026-1)
allows the CMR value to be fine-tuned with two IC sockets on them are
(see also further on). This component intended for the balanced-to-unbal-
is optional, however, and may be omit- anced converters. Neither of these cir-
ted. As indicated by the component cuits should present undue difficulty
overlay of the balanced-to-unbalanced when populating the boards. The only

Elektor Electronics 3/98 25


introduction to
digital signal processing
Part 3 Digital bandpass filters
13

4096 4096 4096 t


samples samples samples
After last months dis-
course on the com-
putation of frequency window window window window
spectra, that knowl-
edge is used in this,
the third, instalment DFT DFT DFT DFT
to acquaint the reader
with the ins and outs
of digital
bandpass filters. +

log. display

980015 - 3 - 11

Figure 13. Schematic puted, the r.m.s. amplitudes are added


showing how longer together, so that the entire signal may
signals are computed. be analysed, whereupon the resultant
spectrum is displayed.

SPECTRA APPLICATION
OF LONG SIGNALS We now wish to view the spectrum of
In the foregoing, the DFT (Discrete a real signal and take for this purpose
Fourier Transform) of a signal of fixed file morse2.wav. This contains two
length (that is, n = 4096) was used to morse (telegraph) signals of different
compute the spectrum. The computa- frequency.Experiment XMORSE1.SPP
tion of a much longer signal may be then computes the spectrum, which is
carried in a number of ways described shown in Figure 14. The spectrum
in a number of books (see References). clearly shows two peaks, whose fre-
Our analyser makes it much simpler quency may be determined by mea-
(see Figure 13). The input signal is surement, even when the signals are
divided into segments all 4096 bits weak and superimposed on many
long which are multiplied with the other signals. The reader is invited to
window function described in Part 2. try to analyse the 19 kHz stereo pilot
By Dr.Ing. M.Ohsmann The DFT of each segment is then com- carrier which is frequently still present

Elektor Electronics 3/98


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

in the output signal of an FM receiver


(available on the CD-ROM as a file). 14
N O I S E A N A LY S I S O F A
L O W- PA S S F I LT E R
Now for experiment XLP6.SPP, which
simulates the setup shown in Fig-
ure 15. Signal generator NOISE1.EXE pro-
vides white noise, which is applied to
a simple low-pass filter. The input sig-
nal and output signal are analysed
with spectrum analyser SPEC1. The
result is shown in Figure 16.

DFT AND FFT


The algorithm that computes the spec-
trum from the sampled values is called
a Discrete Fourier Transform (DFT). 980015 - 3 - 12

The Fast Fourier Transform (FFT) is a


method for carrying out the DFT com- Figure 14. Two morse (tele-
putations rapidly and effectively. The tal sine wave generator to be realized graph) signals almost sub-
number of multiplications carried out from which, with some modifications, merged in noise.
with both transforms is given below a bandpass filter may be derived.
for three values of n, that is, the num- Enter these values into the upper
ber of sampling points. In the table, c line: and cosine equations, we obtain
is the factor indicating how much p = cos
faster a computation with an FFT is q = sin ck+1 = pckqsk
than one with a DFT. ck = cosk sk+1 = qck+psk
sk = sink
n DFT FFT c This means that once parameters p
16 256 64 4 If = 2 f/fs, ck and sk are the sampled and q have been decided, the values of
128 16 384 896 18 values of, respectively, a cosinusoidal ck+1 and sk+1 can be computed by four
4096 16 777 216 49 152 341 and a sinusoidal signal of frequency f multiplications, one addition and one
that is sampled at a rate fs. subtraction from the values of ck and
To digitally generate these signals,
FROM SINE WAVE the values of ck and sk must be com-
GENERATOR TO puted rapidly, starting, for instance, Figure 15. The removal of
B A N D PA S S F I LT E R with k = 0. By substitution in the sine white noise with the aid of a
Readers who may have forgotten most low-pass filter.
of the trigonometry they learned at
school are reminded that
NOISE1.EXE LP1.EXE SPEC1.EXE
cos(+) = coscossinsin 15
sin(+) = sinsin+coscos

These simple equations enable a digi-

Figure 16. Spectrum of white


noise before (left) and after white noise low-pass spectrum analyser
being passed through a low- 980015 - 3 - 13
pass filter.

16

980015 - 3 - 14

Elektor Electronics 3/98 29


program sin0 ; sk. This can be done very rapidly and
17 uses dos,graph,crt ; is readily programmed on a signal
processor. For example, programming
{$I SIGLIB.PAS} of a simple oscillator as in program
SIN0.PAS (or .EXE) is childs play. The list-
var k:int ; ing is given in Figure 17.
f0,scale:float ; The program generates a sinusoidal
p,q,ck,sk,ck_new,sk_new:float ; signal (XSIN1.SPP), which is displayed in
Figure 18. To start the oscillator, start
begin values c0 and s0 must be entered as rel-
start(sin-wave-generator) ; evant, since these determine the phase
nsamples:=10000 ; set_par_long(\n=,nsamples) ; and amplitude of the signal.
fs:=22050 ; set_par_long(\fs=,fs) ; Although so far matters have not
f0:=100 ; set_par_real(\f0=,f0) ; been very complicated, we have
scale:=500 ; set_par_real(\scale=,scale) ; already simulated an undamped reso-
out_fn:=sin1.wav ; set_par_string(\out=,out_fn) ; nant circuit. In this, the value ck repre-
sents, say, the value of the current
open_out(out_fn) ; through the inductor, and sk the value
of the potential across the capacitor.
p:=cos(2*pi*f0/fs) ;
We have come very close to a
q:=sin(2*pi*f0/fs) ;
damped resonant circuit as shown in
ck:=1 ;
Figure 19. In the case of a damped
sk:=0 ;
oscillation, the values within succes-
for k:=1 to nsamples do sive sampling intervals reduce by a
begin factor r, that is, the damping factor <1.
output(scale*ck) ; Consequently, the computation
ck_new:=p*ck-q*sk ; instruction must include a multiplica-
sk_new:=q*ck+p*sk ; tion by r1. Moreover, to excite the res-
ck:=ck_new ; onant circuit, the instruction must also
sk:=sk_new ;
end ;
stop ; Figure 17. Program for Figure 18. A constant sinu-
end. digitally generating a soidal signal (upper curve)
sinusoidal signal. and a decaying one.

18

980015 - 3 - 15

30 Elektor Electronics 3/98


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

include an input signal uk. The result-


ing equations are: 19
ck+1 = r(pckqsk)+uk U
sk+1 = r(qck+psk) t

This represents a simple bandpass fil-


ter and also forms the basis of the asso-
ciated program SINFIL1.PAS (or .EXE). To
test that this is really a bandpass func-
tion, a single pulse is used as input sig-
nal and the output of the filter
observed. If all is well, this should be
a damped oscillation, constituting
XSIN1.SPP as shown by the lower curve
in Figure 18. This is an exponentially t
U
damped waveform generated by the
bandpass filter, that is, the resonant cir-
cuit.
Experiment XBANDP1.SPP enables a 980015 - 3 - 17

sweep signal to be passed through the


filter. Again, various values of f0 and r Figure 19. A damped and an
may be used; particularly interesting undamped oscillator circuit
are the values r = 0.5; r = 0.9; r = 0.99; and associated oscillations.
r = 0.999; and r = 0.9999. signals. A bandpass filter enables one
An unusual aspect of the filter is of these signals to be enhanced sig-
that it computes not only the cosinu- nigicantly. Detection of the signal may References
soidal, but also the sinusoidal, oscilla- be effected automatically with experi-
tion. This may be inverted to obtain ment XMORSE3.SPP, which passes signal Electronic Filter Design Handbook, ISBN
0 07 070434 1, by Arthur B. Williams and
MORSE3.WAV through two bandpass fil-
Fred J. Taylor; McGraw-Hill, 1988
ck+2 = b1ck+1+b2ck+uk ters with centre frequencies of 700 Hz
and 1400 Hz respectively. The two sep- Digital Audio Signal Processing, ISBN 0
which yields with the aid of the so- arated signals are clearly recognizable 471 97226 6, by Udo Zlzer, John Wiley
called filter coefficient: in Figure 20. & Sons, 1997.
Working with these associated files Digital Signal Processing, by Schafer &
b1 = r2 and experimenting with the filter para- Oppenheim, Prentice-Hall, 1975
b2 = 2rcos(2 f0/fs) meters quickly clarifies the operation
of a bandpass filter. Pass a music signal Digital Processing of Signals, C.M. Rader
The filter is realized in program (MUS1.WAV) through a bandpass filter and B. Gold, McGraw-Hill.
BANDP1.PAS (or .EXE). and listen to the result.

INFINITE IMPULSE Next months instalment will discuss an


R E S P O N S E F I LT E R echo generator and show how this can be Figure 20. Two morse signals
A comparison between the filter just modified to make it suitable for digital fil- at 700 Hz and 1400 Hz
derived and the earlier low-pass filter tering. respectively before and after
shows a general aspect. The output at [980015-3] filtering. After filtering, the
one clock period affects the output two separated signals are
during the next period. This will have clearly recognizable.
some sort of exponential effect, so that
each output has a smaller effect on the
next output. These filters are called
Infinite Impulse Response (IIR) filters,
20
sometimes recursive filters.
The output value of the low-pass
filter depends on only the preceding
output value and the filter is, there-
fore, a first-order IIR filter.
The output of the bandpass filter
refers back two output values and is
thus a second-order IIR filter.
There are, of course, higher order
filters, but these normally consist of a
number of cascaded second-order sec-
tions.

APPLICATIONS OF
B A N D PA S S F I LT E R S
Bandpass filters are normally used to
select a specific frequency or band of
frequencies. File MORSE2.WAV contains
the signal of an amateur radio set
receiving two closely spaced morse 980015 - 3 - 18

Elektor Electronics 3/98 31


Digital Audio
Broadcasting (DAB)
Radio programmes with CD quality

The European Unions


Eureka* 147 DAB Pro-
ject is the only digital
audio broadcasting
system to be fully
specified and to meet
the ITUs (International
Telecommunications
Union) requirements
for a world standard. It
provides radio broad-
cast data transmission
at a bit rate of 1.21.5
Mbit/sec and is highly
immune to noise and
interference, even in mobile use. Its main The VHF broadcasting system intro-
application is a radio system with CD quality duced in 1949 has reached the end of
the road. Owing to the overcrowding
for mobile and domestic use. It is intended to of the 88108 MHz band and signal
echoes, serious interference, especially
replace VHF/FM broadcasts within the next 10 in mobile use, is inevitable. Also, the
years. Apart from providing additional data transmission of additional digital data
(RDS radio data services) is possible
services for graphics and text, the new multi- in only a limited way. And finally, the
VHF/FM service could never achieve
media system can also transmit television pro- the quality associated with compact
grammes disks (CD).
Against this background, the Digital
Audio Broadcasting system (DAB) was
* Eureka is an enabling organization set up by the Commission of the European Union in 1985 to introduced to provide CD-quality
promote and fund research, development and cooperation for the implementation of advanced audio services, as well as a host of addi-
technologies. tional data services, to domestic and
in-car receivers. It was originally devel-
oped under the Eureka* 147 (E147)
By our Editorial Staff programme within the European

Elektor Electronics 3/98


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

Union, but is now being accepted by Figure 1. The MUSICAM technique uses
many countries outside Europe. Unlike 1 psychoacoustic effects to reduce the data
FM transmissions, DAB does not suffer rate of DAB transmissions.
from multi-path effects.
The manufacturers and research Sound level
organizations that took part in the (dB) 80
absolute hearing minimal audible
Eureka 147 development project asso- threshold field threshold
ciated themselves in 1995 into the
EuroDAB Forum to promote DAB 60
additional sounds
technology in Europe and to develop not audible
the formal standards for E147. But
interest was shown also from outside 40
Europe and so the EuroDAB Forum
became the WorldDAB Forum early
last year. 20
The two most important steps
toward the realization of DAB were
the development of MUSICAM (Mask-
0
ing Universal Subband Integrated
0.02 0.05 0.1 0.2 0.5 1 2 5 10 20
Coding And Multiplexing) for signal
encoding and an innovative modula- Pitch (kHz) 980017 - 51

tion technique called COFDM (Coded


Orthogonal Frequency Division Multi-
plexing). single DAB channel (1.5 MHz band- information about the radio pro-
In the past, the large bandwidth width) without resulting in interfer- gramme.
required to digitize audio signals pre- ence. In conjunction with a single-fre- In addition to, or instead of, radio
vented the use of digital broadcasting quency network, a block of at least six programmes, the transparent and flex-
techniques, but the MUSICAM encod- stations per country can be broadcast ible transmission path opens the way
ing method allows a significant reduc- nationwide via the same DAB channel. for many new and innovative services:
tion in bit rates without affecting the By using one or more additional DAB from text and picture information to
audio quality. It uses irrelevance and channels, it is possible to provide fur- the transmission of moving pictures or
redundancy reduction by using certain ther blocks of stations for regional and even television programmes, which
psychoacoustic properties of human local programmes. In theory, DAB may be received in a car or train.
hearing. Consequently, high audio enables three times as many stations as Many electronics companies are
quality can be achieved with bit rates before to be broadcast in the same fre- building and developing a range of
as low as 192 kbit/sec per stereo chan- quency range. DAB-compatible units, ranging from
nel, compared with the 1411 kbit/sec Since a block of stations can be car radios and multimedia mobile
required in the recording of CDs, in transmitted via DAB and the output handsets to PC cards that will capture
which a non-compressed technique is power required to broadcast COFDM- the data transmitted alongside the
used. modulated signals is reduced, the audio signal and display it on a PC.
The COFDM technique enables a energy required for a DAB network is
high-quality, reliable and efficient significantly smaller (up to 90 per cent) AUDIO ENCODING
transmission to be obtained. It is a than that needed for a current FM net- Recording a stereo audio signal on to
multi-carrier, digital modulation sys- work. This also means a much smaller a compact disk (CD) requires a data
tem based on the principle of dividing E-field around the transmitter. rate of 1411 kbit/sec. At a comparable
the information over a large number A DAB provides the associated dig-
of close-spaced, orthogonal (mutually ital receiver with indication of
perpendicular) carriers. There are 1536 the transmitter name and the Figure 2. The continuous redistribution of
orthogonal carriers in a 1.5 MHz DAB type of music programme. It the programmes over 1536 carriers, in con-
Band III block, and 384 or 768 orthog- also gives accompanying text junction with extensive error protection,
onal carriers in a 1.5 MHz DAB L-band prevents a partial loss of data through
block. interference and reflections from affecting
The technique uses advanced error the received signal.
detection and correction methods to
provide unimpaired reception even 2
under difficult conditions. DAB can
operate with a signal-to-noise level as SAY, 6 PROGRAMMES
low as 10 dB without any degradation
as compared with 50 dB for a VHF/FM
transmission. Furthermore, it avoids 1 2 3 4 5 6
interference, and the resulting distor- interference
tion, caused by multipath propagation.
The resistance to multipath propaga-
tion prevents reflection from buildings
or mountains to affect reception qual-
ity. In fact, these signals increase the
reliability of the DAB service. The resis-
tance makes it possible to provide a
DAB service via a terrestrial single-fre-
quency network.
In contrast to VHF/FM stations, Bandwidth of the DAB signal: 1.5 MHz divided into 1536 carrier frequencies
DAB allows blocks of stations on one 980017 - 52

Elektor Electronics 3/98 35


Table 1 Specification of DAB coding with MUSICAM
Audio modes mono
stereo
two-channel
multi-channel (MUSICAM surround)
Sampling frequency 48 kHz
Lower sampling frequency* (LSF) 24 kHz
Transmitted AF range 0 Hz to 20.25 kHz
With LSF* 0 Hz to 11.25 kHz
Resolution of PCM signal up to 22 bit/sample
Audio bit rate 32 kbit/sec (mono) to 384 kbit/sec (stereo) in 14 steps
With LSF* 8 kbit/sec (mono) to160 kbit/sec (stereo) in 14 steps
Duration of audio frame 24 ms, equivalent to 1152 PCM samples
With LSF* 48 ms

* Halving the sampling frequency during transmission enhances the audio quality at low bit rates of about 3264 kbit/sec.
This is of particular interest in spoken-word programmes, such as newscasts. Owing to the doubled duration of the audio
frame, only half the bit rate is available for Programme Associated Data (PAD) services.

Other applications of MUSICAM comprise:


Astra Digital Radio (ADR)
Cable and satellite television (DVB, DirectTV in the USA)
Dubbing between radio stations over telephone/ISDN lines
Multimedia applications in PCs
Electronic interfaces for sound processing in computers

Table 2 Technical parameters of DAB transmissions


Radio-frequency characteristics Mode I, Mode II, Mode II, Mode IV
Bandwidth 1.536 MHz (all modes)
Number of carriers 1536 (I); 384 (II); 192 (III); 768 (IV)
Symbol duration 1.246 ms (I); 312 s (II); 156 s (III); 623 s (IV)
Guard period 246 s (I); 62 s (II); 31 s (III); 123 s (IV)
Modulation differential quadrature phase-shift keying (QPSK)
Error protection grade 1: 0.39
(convolution code rate, grade 2: 0.47
average for sound, grade 3: 0.55 (for mobile services)
greater for control data) grade 4: 0.64
grade 5: 0.80 (for instance, for cable services)

Service characteristics
Frequency range mountainous terrain: <375 MHz (individual transmitters) (Mode I)
flat terrain: <1.5 GHz (Mode II)
flat terrain: <3.0 GHz (Mode III)
flat terrain: <1.5 GHz (Mode IV)
supra-national: satellite
Transmitter spacing up to about 80 km (<375 MHz Mode I)
(terrestrial networks) up to about 20 km (<1.5 GHz Mode II))
up to about 10 km (<3 GHz Mode III)
up to about 40 km (<1.5 GHz Mode IV)

Multiplex characteristics
Gross transmission bit rate 2.304 Mbit/sec
Net transmission bit rate about 1.2 Mbit/sec (grade 3)
Configuration up to 64 audio programmes and data services;
typically 58 audio programmes and several data services
Reconfiguration dynamic during ongoing transmission
Non-uniform configuration typically six stereo programmes at a rate of 192 kbit/sec, incl. Programme
Associate Data (PAD), and several data services at a rate of 24 kbit/sec

Data services Programme Associated Data (PAD) at 0.616 (later 64) kbit/sec,
embedded in the audio signal
stream mode: capacity selectable in steps of 8 kbit/sec
packet mode: capacity selectable as necessary

36 Elektor Electronics 3/98


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

Table 3 Frequency ranges available for DAB


Band I 4768 MHz; previously used for television broadcasts (24 channels) and mobile communications;
can accommodate 12 DAB blocks (2A4D)

Band III 174230 MHz; previously used for television broadcasts (512 channels) and mobile communications;
can accommodate 32 DAB blocks (5A12D)

Band III 230240 MHz; previously used for mobile and military communications*; can accommodate six blocks
(13A13F)

L-band 14521467.5 MHz; previously used for mobile and fixed communication services; can accommodate
nine blocks (LALI)

The DAB blocks are identified by the number of the previous TV channel and a letter. For instance, since four DAB blocks
can be accommodated in each former TV channel, the four blocks replacing TV Channel 12 are identified by 12A, 12B,
12C and 12D.

* These frequencies are apparently still used by the military in France, since it is feared there that the introduction of
DAB could interfere with French defence communications.

rate, DAB, thanks to MUSICAM, can modulated (amplitude, frequency or can contain between 192 and 1536
transmit up to 20 audio signals (with- phase) with the audio information. orthogonal carriers, depending on the
out additional services) without loss of The DAB system uses coded mode of transmission and the fre-
audio quality. MUSICAM was devel- orthogonal frequency division modu- quency band.
oped under the European Eureka Ini- lation (COFDM), whereby a group of A single television channel, 7 MHz
tiative by the Institute of Radio Tech- programmes are multiplexed into a wide, can contain four DAB blocks,
nology (IRT) in Munich, Germany, single broadcast channel. Although which means that in practice a single
Philips in the Netherlands, and this requires a relatively wide band- television programme can be replaced
CCETT, a French research centre. width, the concept allows the use of a by 24 stereo audio programmes and a
MUSICAM is based on special algo- single frequency network (SFN) with number of digital services. The com-
rithms, which are founded on two a number of interleaved parallel pro- bined information (programmes and
psychoacoustic effects in humans. The grammes, thus making better use of data) is transmitted in one of these
first one of these is that human hear- the limited spectrum. blocks, termed an ensemble, at a gross
ing is not capable of discerning sounds The system operates in various fre- bit rate of 2.304 kbit/sec, equivalent to
that lie below the absolute hearing quency bands (see Table 3). There are an overall net bit rate of
threshold. The second is that soft four modes of operating conditions 1.21.5 Mbit/sec, depending on the
sounds which lie below the minimal that depend largely on the transmis- degree of error-protection. The most
audible field threshold cannot be per- sion frequency and the degree of important technical parameters of a
ceived when they are masked by loud acceptable Doppler shift. DAB transmission are listed in Table 2.
ones of about the same frequency. The audio signals are first MUSI- The frequency bands allocated to
MUSICAM makes use of these CAM encoded to achieve bit rate the introductory DAB transmissions
effects and conveys only those parts of reduction and then applied to the are listed in Table 3. For national cov-
the sound information that can really COFDM modulator using binary erage, Band III was deemed most pro-
be perceived (see Figure 1). QPSK coding. pitious, and the L-band for regional
Depending on the signal content The time slot structure is also mode and local stations. A simple rod suffices
and the quality requirements, different dependent; for instance, Mode III has as the receive antenna.
data rates may be used the band- a frame of 24 ms, a symbol* duration Table 2 also shows that, depending
width of each mono(phonic) channel of 156 s (of which only the last 125 s on the frequency range, a different
stretches from 8 kbit/sec to 192 kbit/sec. is quality critical) and a guard period mode of transmission may be selected.
Stereo signals are conveyed in the nor- between time slots of 31 s. The sys- Mode I provides the highest number of
mal stereo mode as 2-channel signals tem defeats multi-path effects because carriers and the longest guard periods,
(that is, double the mono rate). the first part of each symbol is dis- and is therefore particularly suitable for
Low bit rates result in the common carded. VHF co-channel networks in which
stereo mode, in which the information Continuous redistribution of the the transmitters are well spaced. Mode
common to both channels is conveyed programmes over the carriers prevents II is for use in local co-channel net-
only once. sequential data of a given source to be works. Mode III is best suited to use in
During the audio encoding, bits are affected simultaneously by reflections cable and satellite systems, and also
already reserved for (additional) Pro- (see Figure 2). However, use of the mobile systems operating at frequen-
gramme Associated Data (PAD). reflections intercepted during the cies up to 3 GHz. It is particularly
The most important parameters for guard periods enhances the quality of immune to phase noise. Mode IV is
audio encoding are listed in Table 1. the transmission. intended for use in L-band systems
After long and extensive research with well-spaced transmitters. It is sus-
TRANSMISSION into the best ratio between bandwidth ceptible to interference, particularly in
CHARACTERISTICS and received signal quality, it was the case of fast-moving mobile stations.
In a VHF/AM or FM transmission decided to use frequency blocks
there is only one carrier frequency 1.5 MHz wide. Each of these blocks continued next month

* In modern data communications, the symbol replaces the baud as the unit of transmitted data. Like the baud, a symbol may (and frequently does) repre-
sent more than one data bit.

Elektor Electronics 3/98 37


80C32 BASIC
control computer
Part 2: construction and testing
Because of their double-sided layouts,
the printed circuit boards are probably
difficult to reproduce with hobbyist
tools. Thats why we advise to buy
them ready-made through our
Readers Services, or as part of a kit
from a kit supplier. Populating
the boards is not likely to cause
problems as all integrated cir-
cuits are inserted in sockets.
The most difficult part is
probably the fitting of
the pinheaders which
enable the two
boards to be assem-
bled in sandwich fash-
ion. On the main com-
puter board (Figure 1),
these pinheaders are
best fitted from the
underside of the
board. They are
inserted the
wrong way
around, i.e.,
with the long sides
to the board. Next, the
isolating plastic part is carefully
pried off by pushing it downwards.
On the multifunction extension
board (Figure 2), you have to fit three
solder pins: one for 0 V (ground), one
for the PWM output of the CPU, and
one the EOC output of the A-D con-
verter. Although solder pins may also
be used for the I/O pins, it is more
practical to employ the PCB terminal
blocks stated in the parts list. Unfortu-
nately, these may prove hard to obtain
Main Features locally as they have a rather unusual
pin distance of 3.5 mm.
Programmable in BASIC To enable them to lose at least a
16 digital inputs small amount of their dissipated heat,
8 digital outputs, max. 24 V, 0.5 A the two voltage regulators have to be
4 analogue inputs bolted to the board. The piezo-buzzer
2 analogue outputs, max. 22 V, 400 mA should be an all-passive type, i.e., with
All interrupt and counter inputs available no internal electronics. It should also
have a plastic enclosure because it sim-
Watchdog timer
ply goes into the space between the
All inputs and outputs accessible on screw terminal blocks circuit boards. The buzzer is soldered
straight to the 0 V and PWM pins.
Before you take the circuit into use,
you should connect the extension
Design by H.-J. Bhling board to the 12-V supply, with no ICs

Elektor Electronics 3/98


40
C15 C8 C3
C11 X1
COMPONENTS LIST 1 K4 C1

H1
H2

C9
Main computer board

980002-1
C2

IC7
C10

IC1
IC6
K1
Resistor: C7
R1 = 8k2
A= 2764/27128
C13 A B B= 27256
Capacitors: C14 C5
C1,C2 = 22pF JP1 C6
C3-C6,C13,C14,C15 = 100nF

IC5
C7-C11 = 10F 16V radial

Semiconductors:
IC1 = 80C32

IC2
IC4

IC3

R1
IC2 = 74HC573
IC3 = 62256 RAM
IC4 = 27256 (BASIC EPROM,
986503-1) C12
IC5 = 27128 C4
IC6 = 74HC00

H3
H4

IC7 = MAX232 K3 K2

Miscellaneous:
K1 = 20-way SIL pinheader with
long pins (Fischer SL5 156 20 G)
X1 = 11.0592MHz quartz crystal
JP1 = 3-way pinheader w. jumper
K2,K3 = 14-way SIL pinheader with
long pins (Fischer SL5 156 14 G)
K4 = 9-way sub-D socket (female),
PCB mount, angled pins.

Order codes for available products:

Main computer board: 980002-1


Multifunction extension board:
980002-2
Diskette (example programs and Ter-
minal program): 986007-1
EPROM loaded with MCS51-BASIC:
986503-1
(C) Segment
980002-1
For prices and ordering information,
please refer to the Readers Services
pages elsewhere in this issue.

installed, and not connected to the


main computer board. Carefully check
the presence of the 5 V supply voltage
on all IC sockets. Switch off, and insert
IC4 on the extension board. Fit jumper
JP1 and apply power. LED D5 should
light at this stage, and go out for about
3 s when the reset switch, S1, is
pressed. If JP1 is removed, then D5
flashes at an interval of 10 s. If this
works so far, you may insert all other
ICs (watch their orientation).
The main computer board is also
tested step by step. Having checked
the supply voltage, and switched off
again, you may insert the CPU into its
socket. Switch on again, and use an
oscilloscope to verify that the CPU
oscillator comes alive (CPU pins 18
and 19). Pin 11 of the socket for IC2 modem cable. Run a terminal emula- Figure 1. The main com-
should supply a periodic signal. tion program like HyperTerminal, puter is accommodated
Switch off and insert IC2, IC3, IC7 and Telix or Procomm on the PC. Press the on this board, wich is
IC4 (the EPROM programmed with reset switch, S1, and then the space- fitted on top of the multi-
the MCS-51 BASIC interpreter). Next, bar on the PC keyboard. The welcome function extension board.
hook up a PC to K4, using a null- message

Elektor Electronics 3/98 41


C7 C4 C5
2

C10
H1
H11 H10 H2

R33

D4
R29
R30
R31
R32

R56

R58
R57
R34

R47
R48
R49
R50
R51
R52
R53

R5

R1
R2
D11

D10
S1

D7
D9

D6

D8

JP1
R35

IC4
IC3
EOC

R20
R21
R22
R23
R24
R25
R26
R27
R28
R38
R39
R40
R41
R42
R43
R44
R45
R46
IC2
C11
IC9
C21

C23

C16
C3 R4

IC11 IC10

C13
C14

C20

C19
C18
C17
R18
R19

D44
980002-2 C15
X1

D40
D41
D42
D43
R6 IC1

R10
R11
R12
R13
R17
R16
R15
R14
C8 C24

IC5 IC6 IC7 0


C1
C22
C2 PWM
C9

IC12
R37
R36

R54
R55
IC8
R59
R60
R61
R62
R63
R64
R65
R66

R67
R68
R69
R70
R71
R72
R73

R74
H12

K3 K2 K1 H13

C6
C12
P1 P2
R7 R8 R9

D36
D37
D38
D39

R3
D16

D32
D12
D13
D14
D15

D17
D18
D19

D20
D21
D22
D23
D24
D25
D26
D27

D28
D29
D30
D31

D33
D34
D35
D5

D3

D2
D1
K4 K5 K6 K7 K8 K9 K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 K20 K21 K22 K23 K24 K25 T
DI10
DI11
DI12
DI13
DI14
DI15
DI16

+24V

P1.0
P1.1

+12V
+24V
AI1
AI2
AI3
AI4

AO1
AO2

IT1
IT0
T
DI1
DI2
DI3
DI4
DI5
DI6
DI7
DI8

DI9

DO1
DO2
DO3
DO4
DO5
DO6
DO7
DO8

+5V
T

T
H5

H6
T1
T0
(C) Segment
980002-2

Figure 2. Multifunction extension board featuring digital and analogue I/O as well
as some auxiliary functions.

COMPONENTS LIST R6 = 8-way 4k7 SIL array


R7,R8 = 8-way 820 SIL array Capacitors:
Multifunction extension board R9 = 8-way 1k5 SIL array C1,C2,C3,C7-C10,C16,C21-C24 =
R18,R19 = 10k 1% 100nF
Resistors: R20-R28,R38-R46 = 200k 1% C4 = 100F 16V radial
R1,R4,R10-R17 = 220k R29-R35,R47-R53 = 100k 1% C5 = 47F 16V radial
R2,R36,R37,R54,R55,R59-R74 = R56,R57,R58 = 47k C6,C12 = 100F 40V radial
100k P1,P2 = 100k preset (optionally C11 = 33F 10V radial
R3 = 1k5 multiturn) C13,C14 = 22pF
R5 = 1k C15,C17-C20 = 15nF

42 Elektor Electronics 3/98


*MCS-51(tm) BASIC V1.1 ing (only in the full version) of MCS51- 19,200 bits/s (the highest speed
READY > BASIC programs. It also comprises an depends on the serial cable), 8 data
should appear on the display. On MCS51-BASIC line editor and allows bits, no parity, 1 stop bit. Select: Flow
being powered up, the CPU checks any ASCII word processor to be control: none. Under Settings, Text
the size of the available RAM (memory embedded. A shareware version of this Transfer, enable the options Line at a
top), and indicates it if you type program may be found on the project time and Wait for prompt string. Enter
>PRINT MTOP. The BASIC inter- diskette supplied through the Readers ^M> for this prompt, where ^M
preter is now ready to run your appli- Services or a kit dealer. stands for carriage return and > for
cation programs. Its complete instruc- Alternatively, use the terminal pro- the prompt returned by the MCS51
tion set may be found on the datasheet gram that comes with Windows to BASIC interpreter. This setting is
pages in last months issue. establish communication with the extremely important because the MCS-
80C32 BASIC computer. In general, all 51 BASIC interpreter needs some time
you have to do is select the communi- to tokenize (evaluate) the received text.
TERMINAL SOF TWARE cations port and the protocol. Then HyperTerminal which comes with
The project diskette, order code you press the reset button, followed by Windows 95 is set up in a slightly dif-
986007-1, contains a number of test, any key on the PC keyboard. The ferent way. Run the program
auxiliary and example programs, 80C32 computer will report back with (Start/Programs/Accessories) and first
which are briefly described in the the message MCS51 ... (depending on think of a name and select an icon for
inset. The disk also contains extensive the BASIC version) and READY>. the communication sessions with the
descriptions of the programs. The pro- Next, you may type in a line of (syn- BASIC computer (Figure 3). If no
grams may be burned into EPROM tactically correct and hopefully mean- modem is installed on the PC, the
IC5, or downloaded to the 80C32 com- ingful) BASIC, and send it to the 80C32 Modem Wizard is automatically
puter using one of the terminal pro- computer by pressing the Enter key. launched. Do not select a modem!
grams mentioned above. The BASIC interpreter on the 80C32 Quit the Wizard by pressing cancel.
The author has supplied a terminal computer turns the received ASCII text You are then allowed to create a new
emulation program called Terminal- into tokenized BASIC, and returns connection. Use direct to COMx (x =
MCS-51, which aims to meet the spe- the > prompt to the PC to signal that 1-4) and select the right COM port. To
cific requirements of the 80C32 BASIC it is ready to accept a new line. make sure you use a free COM port,
computer and other MCS51-BASIC If you use Terminal.exe under Win- check the relevant information in the
systems. This program enables simple dows 3.1, go to Settings/Communica- System Control Panel (Start/Control Pan-
downloading, storing and renumber- tion and set up this protocol: up to els/System/Device Manager/Ports). Unfor-

IC5,IC6 = 74HCT541 K1 = 20-way SIL socket (Fischer


Semiconductors: IC7,IC10,IC11 = 74HCT574 BL5 20 S)
D1,D2,D3 = 1N4001 IC8 = ULN2803 BZ1 = buzzer 5V
D4,D6-D11,D36-D43 = 1N4148 IC9 = UPD7002C (NEC) (Farnell) X1 = 2.4576MHz quartz crystal
D5,D12-D35 = LED IC12 = LM324 PC1 = PCB solder pin
D44 = 5V6 zener diode K2,K3 = 14-way SIL socket (Fischer
IC1 = 7808 Miscellaneous: BL5 14 S)
IC2 = 7805 S1 = switch, single-pole make con- K4-K25 = 45 PCB solder pins or 5 off
IC3 = 74HCT139 tact, CTL3 9-way PCB terminal blocks (pitch
IC4 = 74HCT14 JP1 = jumper 3.5mm, Lumberg type KRMC9)

Elektor Electronics 3/98 43


tunately, this screen will not tell you to b
which COM port the mouse is con- 3
nected, so some experimenting may be
in order if you cant tell from the labels a
at the rear of the computer. If a
modem is installed on your computer,
the Wizard is not started. In that case,
select direct to COM instead of
[modem type]. The Modems Control
Panel will then also reveal the mouse
connection (use Diagnostics).
Once the COM port has been
selected, a window appears showing
the port settings. The required com-
munication parameters are identical
with those for Windows 3.1 (see
above). The Advanced button in this
window is not relevant to our appli-
cation. Once the connection with the
BASIC computer has been defined, all d
c
relevant setting are recalled simply via
the File/Open menu.
Now, select Properties from the File
menu, then the Settings tab. Check
ANSI Terminal Emulation. Press the
ASCII Setup button, and enter 500 for
Line Delay. Although a value of 400 ms
also worked during our lab tests,
smaller values are bound to cause
problems with the tokenizing of rela-
tively long BASIC lines. Unfortunately
HyperTerminal does not allow the
data exchange to be synchronized by
a specific character sequence (like the
MCS-51 prompt). Consequently, com-
munication with the 80C32 BASIC
computer will be slower than with Ter-
minal running under Windows 3.1.
(980002-2)

Whats on the disk?


The program CLOCK.LIS (background clock) with watchdog a matter of course, that requires fitting eight wire links between
timer shows how an Ontime interrupt may be used to generate the relevant inputs and outputs.
a pulse for the watchdog timer. The clock may run in the back- The program DA-AD.LIS (digital-analogue / analogue-digital
ground of your main program. To be able to use it, the clock test) produces output voltages on the two D-A channels.
program has to be stored in a boot EPROM (IC5) on the com- These voltages may be read back via the A-D channels. This
puter board, and jumper JP1 on the multifunction board has to is achieved by first adjusting the two D-A outputs to +5 V
be removed. An INPUT instruction is not allowed in your pro- using presets P1 and P2. The program writes the highest
gram, because the Ontime interrupt is then no longer serviced, value, 255, to the relevant D-A outputs and then prompts you
causing the system to be reset. Input into the running program to do the adjustment. To perform this test, you obviously have
is then only possible by means of the GET instruction, which to link the respective D-A (output) and A-D (input). Next, the
is also used to adjust the clock. The keys on the terminal output value of channel 1 is indicated, along with the current
(console) then have the following functions: values of all four A-D channels.
The other programs on the disk are not specifically designed
H increase hours for the 80C32 BASIC computer described in this article.
h decrease hours Rather, they are intended for MCS-51 BASIC boards in gen-
M increase minutes eral. The program ROMCOPY.LIS (see also Elektor Electronics
S increase seconds September 1990) extracts the 8-kByte large BASIC interpreter
s decrease seconds from the ROM of an 8052AH-BASIC chip, and copies it into an
T increase day EPROM. Alternatively, you may find the interpreter on the Inter-
t decrease day net, Intel having released it in the freeware domain! The
W increase day of the week source code (BASIC52.ZIP or BASIC-52.ZIP) may be down-
w decrease day of the week loaded from the Intel ftp server at
O increase month ftp://intel.com/pub/mcs51/tools
o decrease month or
J increase year ftp://funet.fi/pub/microprocs/MCS-51/signetics-bbs
j decrease year The latter server also supplies the file BASIC31.ZIP, which
does basically the same as ROMCOPY.LIS.
The program DO-DI.LIS (digital-out, digital-in test) performs a Finally, the disk contains a file called EPROM.LIS, which turns the
cyclic count from 0 to 255 on the digital output port. The out- control computer into an EPROM programmer. For that function,
put value may be read back via one of the two input ports. As however, certain hardware conditions have to be satisfied.

Elektor Electronics 3/98 45


f
ionization circuit
do negatively charged ions
improve the quality of life?

Do you suffer from recurring headaches, In this article, the definition of an ion
(there are several) is an electrically
chronic tiredness or a general feeling of being charged atom or group of atoms. Posi-
(slightly) unwell? It may well be that in your tively charged ions have a deficiency of
electrons, and negatively charged ions
home or place of work there is an imbalance have a surplus of electrons. Some peo-
ple say that in gases the negatively
between positively charged ions and nega- charged ions are, in fact, free electrons,
tively charged ions. Although not medically while the positively charged ions are the
remaining parts of the atom where most
proven, it appears that some people are of the mass resides.
adversely affected by a surplus of positively In air, there is normally a balance
between negatively charged ions and
charged ions. The balance may be restored by positively charged ions, but in some
circumstances this balance is disturbed.
the present circuit, which form a simple means Some people seem to be affected by
of producing negatively charged ions. This this, as shown, for instance, by the fact
that they feel (more) pleasant or more
addition to the range of alternative medicine alive in the vicinity of waterfalls and in
air spas. Is this psychosomatic, coin-
may help sufferers, but readers with the symp- cidence, or what?
toms described are well advised to seek the This phenomenon can also be
observed after a thunderstorm, when
help of a qualified medical practitioner. some people have an overwhelming
desire to go for a brisk walk in the
Design by H.Bonekamp fresh air (this may also be due to the

Elektor Electronics 3/98


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

D4 R5 R6
3kV
Figure 1. The oscilla- 1 BY709 C7
1M 1M

tory voltage is raised


by 60 by transformer 1n
2000V
Tr1. After the sec-
ondary voltage has C6

been rectified and 1n 0'


D3 R7 R8
doubled, a direct volt- 2000V
1M 1M
age of about 3 kV is
BY709
available. TR1

ETD29

fact that a thunderstorm drives all dust U


particles from the air, so the air is C5
cleaner). 100n
The reverse can also be seen in D1 D2

Mediterranean countries where some 30V 30V


500mW U 500mW U
people feel nervous or depressed
when the mistral (cold northerly or
12...15V D6 R9
northwesterly wind) or the Fhn 39
(warm dry wind on the ice side of 1N4001
R1 R3 R10
mountains) blows. These weather con- C1 C3

3k9

3k9

2k7
ditions frequently (but not always) go
10n 10n M1
hand in hand with high concentra- T1 T2
C8 C9
tions of positively charged ions. The M
10 100n D5
people who appear to be sensitive to BC BC 25V
R2 C2 C4 R4
390

390
12V
the imbalance of ions say that they feel 546B 546B
900mW
the effect not only out of doors but 47n 47n

also indoors. There are people who


980016 - 11
maintain that certain buildings exude
a bad air. Again, there is no impartial
evidence for these sensations. it is possible to ionize the air and so particles in the air is applied in some
produce negatively charged ions. In industries to remove soot from smoke
POSSIBLE REMEDIES the present circuit, the field is pro- gases.
If you suffer at home or at work from duced with the aid of four electrodes
feelings of discomfort or difficult-to- that carry a direct voltage of about CIRCUIT DESCRIPTION
define ailments, it may not always be 3 kV. Owing to the small diameter of The high direct voltage is generated by
necessary to rush to the doctor. Maybe the electrodes, there is such a strong a Meissner oscillator.see Figure 1. In
the culprit is the atmosphere (which electric field around their pointed ends this, feedback is arranged via a trans-
may be dusty or humid) in the build- that the spray effect, typical of ioniza- former. which has an additional high-
ing. Often, this may be improved by tion, occurs. Because of the effect, dis- voltage winding that provides a poten-
added or improved ventilation. Fresh lodged electronics fly away in all direc- tial of about 3 kV.
air not only provides more oxygen, but tions. After they have travelled only a The circuit is based on transistors T1
also tends to contain more negatively short distance, they collide with air and T2, and transformer Tr1 which is
charged ions. molecules and ionize them. Since oxy- connected between their collectors.
Unfortunately, it is not always pos- gen molecules also become ionized, The requisite positive feedback for the
sible to add or even improve the ven- ozone (triatomic oxygen, O3) is oscillator so created is provided by
tilation. In air-conditioned buildings, formed. However, because the poten- capacitive potential dividers C1-C2 and
windows often cannot be opened (if tial is not very high, the amount of C3-C4. The d.c. operating point of the
the air-conditioning is sound, this ozone is not great. Nevertheless, use of transistors is set with resistors R1R4.
should, of course, not be necessary) the ionizer is not recommended in the The tuned circuit of the oscillator is
and cold or wet weather outside may vicinity of asthma sufferers. Also, do formed by the primary winding of Tr1
also prevent the opening of windows. not place the ionizer too close to and capacitor C5. The resonance fre-
(It may be argued, of course, that good where humans sit, since even a small quency is about 50 kHz. With a supply
ventilation should not depend on amount of reactive ozone may cause line of 12 V, the oscillatory voltage
open windows). In these circum- irritation of the respiratory system. across the primary is about 25 V per
stances, some people may like a source The ionizer has a secondary func- branch. Zener diodes D1 and D2 pre-
of negatively charged ions and this is tion: the dislodged electrons not only vent this voltage from exceeding too
provided by the present circuit. ionize air, but also give dust particles high a level. Networks R2-C2 and
an electric charge. Such charged parti- R4-C4 provide the requisite time con-
V E RY H I G H V O LTA G E cles are deposited on the ionizer and stants and determine the operation of
With the aid of a strong electric field, its immediate vicinity. This removal of the transistors, that is, the level of the

Elektor Electronics 3/98 47


Parts list 0

+
12V 0

Resistors:
2 H2

C8
D5
C9
M1
R7 R8
H1

C6

D3
R10
R9
R1, R3 = 3.9 k D6
R2, R4 = 390 R2
R5R8 = 1 M, 1.6 kV d.c. T1 TR1

D1
R9 = 39

R1
C2
R10 = 2.7 k
C1 C5

R6
Capacitors:

C7
C3
C1, C3 = 0.01 F, metallized poly-
ester (MKT) C4

R4
C2, C4 = 0.047 F, metallized poly-

D2

R5
ester (MKT) T2
C5 = 0.1 F, metallized polyester H4

(MKT) H3

R3
C6, C7 = 0.001 F, 2 kV d.c. D4
tnemgeS )C( 1-610089 980016-1
C8 = 10 F, 25 V, radial
C9 = 0.1 F, high-stability
980016-1 (C) Segment
Semiconductors:
D1, D2 = zener diode, 30 V, 500 mW
D3, D4 = high-voltage silicon diodes,
e.g., Type BY709 (Philips Compo-
nents)
D5 = LED, red, high efficiency
D6 = 1N4001
T1, T2 = BC546B

Miscellaneous:
M1 = miniature fan, 12 V, 900 mW,
404010.5 mm
ETD29 former with N27 cores
Enamelled copper wire as described
in the text.
Plastic enclosure, e.g., Bopla E430

current pulses driving them. wire placed at a distance of about Figure 2. The printed-
The turns ratio of the transformer 2 mm from the mother electrode. circuit board for the
ensures that the potential across the Resistors R5R8 reduce the risk to life if ionizer, which is how-
secondary winding is about 60 that the electrodes are accidentally touched. ever, not available
across the primary. This potential is Network R10-D5 forms an on/off ready-made.
rectified and doubled by high-voltage indicator.
diodes D3-D4 and capacitors C6-C7. Capacitors C8 and C9 are decou-
Ionization takes place around the pling elements. Figure 3. The requisite
electrodes formed by four lengths of Diode D6 provides protection parts for making the
transformer. Plastic
foil or insulating tape
must be used to
3 ensure that the two
E-shaped cores just
do not touch each
other in the centre.

48 Elektor Electronics 3/98


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

Figure 4. Photograph of the com-


pleted prototype. The capacitors
used in the C6 and C7 positions
are fairly small and occupy only
against wrong polarity. between the electrodes must be 2 mm. half of the available space for
Fan M1 provides better dispersion them on the board.
of the exigent electrons. Series resistor TRANSFORMER
R9 ensures that the fan does not make Unfortunately, transformer Tr1 cannot
too much noise while still displacing be purchased ready-made. It is wound turns and solder the wire, without cut-
sufficient air. on a Type ETD29 former which con- ting it, to the centre pin (10). Next, lay
The circuit may be powered via a tains two E-shaped Type N27 cores the remaining seven turns in the same
12 V or 15 V standard mains adaptor, see Figure 3. Laying the windings is direction as the first seven and solder
which need not be a heavy-duty type, not difficult but time-consuming. the end to pin 11. Wind a double layer
since it draws a current of only about The secondary winding consists of of insulating tape over the primary
150 mA. 900 turns enamelled 0.2 mm dia.cop- winding.
per wire in 12 layers of 75 turns each. Finally, push the two E-shaped
CONSTRUCTION Place a short length of insulating cores into the former after taping a
The ionizer is best built on the printed- sleeve over the start of the winding double layer of insulating tape on the
circuit board shown in Figure 2. Pop- and solder this to the outer pin (1) of two outer edges of one of the cores.
ulating the board should prove the former. This ensures an air-gap between them
straightforward. Plenty of space has Each layer must be well insulated of about 0.25 mm. Subsequently, clamp
been reserved for high-voltage capac- from the adjacent one(s) by two layers the assembly together with two spring
itors C6 and C7, so that a variety of of appropriate tape. Note that more clips and solder the transformer on to
types may be used for these compo- than two layers make the winding too the board.
nents. These capacitors should have a fat and one provides insufficient insu- A photograph of the completed
working voltage rating of not less than lation. Seal the edges of each layer as board is shown in Figure 4.
2 kV d.c. well as the sides of the completed
The reverse bias rating of diodes D3 winding with nail varnish or similar. F I N A L LY
and D4 as specified is 14 kV, but lower When the winding has been com- In view of the necessary safety mea-
rated types, down to 4 kV, may be pleted, place a short length of insulat- sures, the ionizer must be housed in a
used as long as their recovery time ing sleeve over the the end of the wire strong, plastic enclosure. This must, of
does not exceed 0.2 s. and solder this to pin 6 of the former. course, be provided with fixing holes
The electrodes are mounted on sol- Cover the secondary winding with for the on/off indicator and a number
der pins and may be made from an additional layer of insulating tape of holes for air inlet and ion outlet.
11.5 mm dia. circuit wire (mother elec- and lay the primary winding on top of Fit the fan just above the electrodes
trode: 54 mm long) or 0.6 mm dia. this. The primary consists of 14 centre- with either plastic screws and nuts or
(slave electrodes: 7 mm long). The slave tapped turns of 0.4 mm dia. enamelled strong double-sided sticky tape. Look
electrodes may be filed to a sharp point, copper wire Solder the start of the at the introductory photograph.
but this is not essential. The distance wire to pin 9 on the former, lay seven [980016]

Elektor Electronics 3/98 49


IC tester
Part 1: circuit description
and construction
In the January 1998 issue we promised
a full-blown and tested version of the
IC Tester, complete with PCB layouts
and a ready-programmed GAL and
EPROM. Many of you will have
eagerly looked forward to the present
article, which, we hope, lives up to
expectation.
The IC tester is a fairly complex
project, and an interesting combina-
tion of mixed-mode (analogue/digital)
electronics on the one hand, and soft-
ware (microprocessor as well as PC-
hosted), on the other. The IC tester is
capable of working in stand-alone
mode, i.e., any connection to a PC is
entirely optional. The standard version
of the tester is capable of testing all ICs
listed in Table 1. A number of software
utilities are available which allow
advanced users to add ICs to the
library as listed in Table 1, and this
subject will be covered in detail in
part 2 of this article. We do, however,
reckon that the default library will be
sufficient in the majority of cases
extending it with new devices is spe-
cialist work!
This tester is a great tool for anyone
whos ever had to do go/non-go testing
on a vast amount of integrated circuits
from the 74 TTL and 4000 CMOS
series. These ICs are still extensively
used by hobbyists because (1) they can
often be salvaged from surplus equip-
This article describes a stand-alone IC tester for ment or bought ten a penny or at least
logic ICs (with up to 24 pins) from the well-known at knock-down prices, and (2) their
datasheets are widely available, so you
74xx (TTL) and 40xx (CMOS) series. The elemen- know how to use them in a design of
tary building blocks that make up the design are your own. As a matter of course, the
tester is also perfectly suitable for use
an 80C535 microcontroller, a large EPROM, an in an electronics repair shop, where it
will be necessary from time to time to
LCD display, a small keyboard and an RS232 check suspect devices. Lastly, the IC
interface. In this first instalment, our main subjects tester may also be used to identify
unknown ICs, i.e., those with obscure
will be hardware-related. print or a label someone painstakingly
ground off

HOW IT WORKS
The circuit diagram of the IC tester is
This design was awarded the International First prize in the Elektor Electronics shown in Figure 1. It may be divided
1997 Design Competition. A condensed description of the project appeared in into a digital control (microcontroller)
the January 1998 Supplement on prize-winning contest entries. section, a precision power supply, an
RS232 interface, a zero-insertion-force
(ZIF) socket (which receives the device
under test, DUT), a keyboard section,
Design by L. Lamesch an LCD and a power supply.

Elektor Electronics 3/98


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

80C535 CPU via its AN0 (analogue) of its instructions and data from the
Around the DUT input. The current-sense resistors are system EPROM. None the less, it
Lets start with a look at the electron- R94 and R95. The output voltage is directly controls the LC display and a
ics around the ZIF socket, position 5.2 V rather than 5.0 V (the typical sup- keyboard with 6 keys. The GAL, IC5,
IC12. All input pins of the DUT ply voltage of all TTL ICs) in order to looks after the address decoding, and
inserted in the zero-insertion force compensate the collector-emitter drop also generates the PHI signal for the
socket may be pulled to the logic high of the BC640 transistors when they are Z80PIOs, as well as other essential con-
(H) or logic low (L) level using current switched on. trol signals in the circuit. The GAL, like
limiting resistors and appropriate con- Logic circuitry and firmware EPROM the EPROM, is supplied ready-pro-
trol levels at the outputs of two The control program of the IC tester grammed by the Publishers, the order
Z80PIO I/O blocks, IC2 and IC4. The and the test vectors for the ICs that code is 986506-1.
output states of the DUT may be inter- may be tested are contained in a sin- The reason for using the Z80PIO to
rogated via the same PIOs for subse- gle 27C512 EPROM, which may be control and monitor the DUT inputs
quent evaluation by the CPU (IC3). obtained ready-programmed from the and outputs is that this chip is the only
The power supply pins of DUTs with Publishers under order code 986507-1. widely available 16-bit parallel port IC
14, 16, 18, 20, 22 and 24 pins may be Larger (32-pin) EPROMs like the of which all port line directions are
connected to ground or a current-lim- 27C020 or 27C021 may also be used in individually controllable, while the
ited supply voltage via BC639/BC640 this design. For the 27C021 EPROM, output drivers for all port lines consist
switching transistors. These are con- jumper JP1 has to be set to the A17 of push-pull circuits.
trolled by outputs on counter cascade position. More about this in next
IC1-IC9. While the PIOs enable the months concluding instalment. The User I/O
exact logic states of the DUT outputs selection between the 64-kByte banks The system interacts with the user via
to be checked (i.e., 0 or 1), ports P1, P4 in the EPROM is accomplished by out- a small keyboard (circuit diagram in
and P5 of the 80C535 are used to puts B6 and B7 of IC2. These lines are Figure 2), an LED, D6, and an LCD
detect which DUT pins represent a applied to GAL IC5, which contains (liquid crystal display). The LCD is a
high impedance (high-Z). logic to control the A16 and A17 general-purpose type with 216 char-
address lines of EPROM IC7. Basically, acters, optionally with back-lighting.
DUT power supply when a 28-pin EPROM is used, JP1 is Its contrast is adjustable with preset
The voltage source used to power the set to the bevelled edge position (A). P1. The LED lights to inform the user
DUT is built around quad opamp IC6. When a 32-pin EPROM is used, the that the DUT is being powered and
It supplies an accurately regulated A17 signal is required, so JP1 is set to should not be removed from the ZIF
voltage of 5.2 V, and its output current the other position. socket.
is limited to about 0.2 A. The output The 80C535 CPU runs at a clock An RS232 serial interface, tradition-
current is converted into a propor- speed of 12 MHz. The CPU does not ally designed around the MAX232,
tional voltage for measurement by the contain firmware code, and fetches all enables the IC tester to (optionally)

Table 1. Index of ICs that may be tested (default EPROM contents)


Library: 74xxx 74:38 74:139 74:239 74:386* 74:596* 74:758 74:7541* 4050** 40161
74:00 74:39* 74:140* 74:240 74:390 74:620* 74:759* 4051 40162
74:01* 74:40 74:147 74:241 74:393 74:621* 74:760* Library: 40xxx 4052 40163
74:02 74:42 74:145* 74:242* 74:412 74:622* 74:762* 4001 4053 40174
74:03 74:45 74:148 74:243 74:425* 74:623* 74:763* 4002 4056 40175
74:04 74:46* 74:150 74:244 74:426* 74:638* 74:810* 4009* 4060 40192
74:05 74:47 74:151 74:245 74:445* 74:639* 74:811* 4010* 4066 40193
74:06 74:48* 74:153* 74:247* 74:447* 74:640 74:1000* 4011 4067 40194
Parent: 74:05 74:49* 74:154 74:248* 74:465* 74:641* 74:1002* 4012 4068 -RCA* 4502
74:07 74:51 St,S* 74:155 74:249* 74:466* 74:642* 74:1003* 4013 4068 RCA* 4508
74:08 74:51 LS,L 74:156* 74:250* 74:467* 74:643* 74:1004* 4014* 4069 4510
74:09 74:54* 74:157 74:251 74:468* 74:644* 74:1008* 4015 4070 4511
74:10 74:55* 74:158* 74:253 74:518* 74:645 74:1010* 4016 4071 4512
74:11 74:73 74:159* 74:257 74:519* 74:646 74:1020* 4017 4072 4514
74:12* 74:74 74:160 74:258* 74:520* 74:647* 74:1032* 4019 4073 4515*
74:13 74:75 74:161 74:259 74:521 74:648* 74:1034* 4020 4075 4516*
74:14 74:76 74:162 74:260* 74:522* 74:649* 74:1035* 4021 4076 4518
74:15* 74:83 74:163 74:266 74:533* 74:668* 74:1036* 4022* 4077 4520
74:16 74:86 -C,-L 74:164 74:273 74:534* 74:669* 74:1240* 4023 4078 -RCA* 4522
74:17 74:86 C,L* 74:165 74:280 74:540* 74:670 74:1244* 4024 4078 RCA* 4526
74:18* 74:90 74:166 74:283 74:541 74:682 74:1245* 4025 4081 4529
74:19* 74:92 74:168* 74:290* 74:563* 74:683* 74:1640* 4027 4082* 4539
74:20 74:93 74:169 74:293 74:564* 74:684 74:1645* 4028 4093 4543*
74:21 74:95A,B 74:170 74:299 74:573 74:685* 74:2240* 4029 4094 4555
74:22* 74:100 74:173 74:323 74:574 74:688 74:2241* 4030 4099* 4556*
74:24* 74:107 74:174 74:347* 74:576* 74:689* 74:2244* 4040 40014* 4584
74:25 74:109 74:175 74:348* 74:580* 74:699 74:2540* 4041* 40102 4724
74:26 74:119 74:180* 74:352* 74:590 74:746** 74:2541* 4042 40103
74:27 74:125 74:184* 74:353* 74:591* 74:747** 74:7245* 4043 40105
74:28* 74:126* 74:185* 74:365 74:592 74:756* 74:7266* 4044* 40106
74:30 74:128* 74:190 74:366* 74:595 74:757* 74:7540* 4049** 40160
74:31* 74:131* 74:191 74:367
74:32 74:132 74:192 74:368* * Test vector for this IC not yet verified with a correctly operating IC.
74:33 74:133* 74:193 74:373 ** This IC has not been fully tested using the IC test vectors.
74:34* 74:136* 74:194 74:374 : Any TTL family identifier, except if the type number has a suffix.
74:35* 74:137 74:237* 74:375 -X Test vectors not valid for X family device of this IC (e.g. 74:86 -C means not for 74C86).
74:37 74:138 74:238* 74:377* X Test vectors apply only to X family device of this IC (e.g. 74:86 C means for 74C86 only).

Elektor Electronics 3/98 51


1
SSTR 1
C2
SOE 15 IC9
EN3
5V SRG8 * R25 ... R48 = SMD 5V
SCLK 3 C8
C1/

SD 2 4 V17 100n
16 C20 16 C11 1D 2D 3
5 V19
IC1 IC9 26 26
8 100n 8 100n 6 V21
Z8 *
180
R48 15
PA0 D0
19 D0 D0 19
D0 PA0
15 R40 *180 Z24
7 V20
Z7 R47 14 20 D1 D1 20 14 R39 Z23
14 180 PA1 D1 D1 PA1 180
Z6 R46 13 1 D2 D2 1 13 R38 Z24
13 V16 180 PA2 D2 D2 PA2 180
Z5 R45 12 40 D3 D3 40 12 R37 Z21
12 V22 180 PA3 D3 D3 PA3 180
Z4 R44 10 39 D4 D4 39 10 R36 Z20
11 V24 180 PA4 D4 D4 PA4 180
Z3 R43 9 38 D5 D5 38 9 R35 Z19
180 PA5 D5 D5 PA5 180
5V Z2 R42 8 3 D6 D6 3 8 R34 Z18
9 10 74HC4094 180 PA6 D6 D6 PA6 180
Z1 R41 7 IC2 2 D7 D7 2 IC4 7 R33 Z17
C13 180 PA7 D7 D7 PA7 180
18 18
ARDY ARDY
100n SSTR 1 16 23 5V 23 16
C2 ASTB INT INT ASTB
SOE 15 IC1 24 24
20 EN3 IEI IEI
Z80-PIO Z80-PIO
XTAL 1
I0 F0
12 PIO1 SRG8 V9 27
PB0
IEO
22 22
IEO
PB0
27 R32 * Z16
SCLK 3 180
SD 2 13 PHI C1/ V10 28 28 R31 Z15
I1 F1 PB1 PB1 180 5V U
A13 3 14 EPROE 2 4 G22 V12 29 4 PIO1 PIO0 4 29 R30 Z14
I2 IC5 F2 1D 2D 3 PB2 CE CE PB2 180
A15 4 15 IORQ 5 G21 G24 30 35 RD RD 35 30 R29 Z13
I3 F3 PB3 RD RD PB3 180 P1
WR 5 16 PIO0 6 G20 31 36 IORQ IORQ 36 31 R28 Z12
I4 GAL F4 R80 PB4 IORQ IORQ PB4 180
PSEN 6 16V8 17 LCDE 7 G7 32 37 SOE SOE 37 32 R27 Z11
I5 F5 390 PB5 M1 M1 PB5 180 10K
RD 7 18 A16 14 G10 B6 33 5 A11 A11 5 33 R26 Z10
I6 F6 PB6 C/D C/D PB6 180
B7 8 19 A17 13 G17 B7 34 6 A14 A14 6 34 R25 Z9
I7 F7 PB7 B/A B/A PB7 180
B6 9 12 G12 21 21 K3
I8 BRDY BRDY
11 11 G15 17 25 PHI PHI 25 17
I9 BSTB CLK CLK BSTB 5V
LED
10 9 10 74HC4094 11 11
A14
A15
LCDE LCDE
D0
D1
EPROE
D2
5V 5V
D3
C1 C2 D4
5V
D5
R100 1 8x 4k7 R82 1 4x 4k7
100n 10
D6
C5 16V
D7
100n IC8
11 37 68
32 31 74HC573
VAREF VCC VCC 2 3 4 5 6 7 8 9 2 3 4 5
12 A0 A0 12 9 D0 D0 52 9 R1 Z1
A0 1D P0.0 P4.7 10k
11 A1 A1 13 8 D1 D1 53 8 R2 Z2
A1 P0.1 P4.6 10k
24 10 A2 A2 14 7 D2 D2 54 7 R3 Z3
OE/VPP A2 P0.2 P4.5 10k
9 A3 A3 15 6 D3 D3 55 6 R4 Z4
A3 P0.3 P4.4 10k
IC7 8 A4 A4 16 5 D4 D4 56 5 R5 Z5
A4 P0.4 P4.3 10k IC12
D0 13 7 A5 A5 17 4 D5 D5 57 3 R6 Z6
D0 A5 P0.5 P4.2 10k
D1 14 6 A6 A6 18 3 D6 D6 58 2 R7 Z7
D1 A6 P0.6 IC3 P4.1 10k
D2 15 EPROM 5 A7 A7 19 2 D7 D7 59 1 R8 Z8 Z1 1 24 Z24
D2 A7 P0.7 P4.0 10k
D3 17 27 A8 Z2 2 23 Z23
D3 A8 50 60 R9 Z9
D4 18 27C512/ 26 A9 ALE P5.7 10k Z3 3 22 Z22
D4
D5 19 27C021 A9 23 A10 C1
11
A8 41 P5.6
61 R10
10k
Z10
Z4 4 21 Z21
D5 A10 1 P2.0 62 R11 Z11
D6 20 25 A11 EN A9 42 P5.5 10k Z5 5 20 Z20
D6 A11 P2.1 63 R12 Z12
D7 21 4 A12 A10 43 P5.4 10k Z6 6 19 Z19
D7 A12 P2.2 64 R24 Z13
28 A13 A11 44 P5.3 10k Z7 7 18 Z18
A13 P2.3 65 R23 Z14
29 A14 A12 45 P5.2 10k Z8 8 17 Z17
A14 P2.4 66 R22 Z15
3 A15 A13 46 P5.1 10k Z9 9 16 Z16
A15 P2.5 67 R21 Z16
2 A16 A14 47 80C535 P5.0 10k Z10 10 15 Z15
A16 P2.6
30 A15 48 29 R20 Z17 Z11 11 14 Z14
A17 P2.7 P1.7 T2 10k
30 R19 Z18 Z12 12 13 Z13
CS P1.6 CLKOUT 10k
31 R18 Z19
A17

16 22 5V P1.5 T2EX 10k


32 R17 Z20
5V P1.4 INT2 10k ZIF 24
20 33 R16 Z21
5V AN0 P1.3 INT6 CC3 10k
19 34 R15 Z22
AN1 P1.2 INT5 CC2 10k
K4 18 35 R14 Z23
JP1 AN2 P1.1 INT4 CC1 10k
20 C6 17 36 R13 Z24
A AN3 P1.0 INT3 CCO 10k
IC8 16 2 3 4 5 6 7 8 9 2 3 4 5
AN4
10 100n
15
AN5
14
AN6
13
AN7
C16
R101 1 8x 4k7 R81 1 4x 4k7 10 / 16V

UIN 28 RD
T3
U+ P3.7 RD 2
R95 R94 27 WR 5V
P3.6 WR 5V 1 V+ 16
1 1 26 C17 C1+
C14 C4 P3.5 T1
1% 1% 25 SSTR
P3.4 T0 3 IC10
10 C1
BD139 10 25V 100n PSEN 49
P3.3 INT1
24 SCLK
16V
T1 PSEN 11 14
R98 23 SD T1IN T1OUT
P3.2 INT0 10 7 K1
47k R85 22 T2IN T2OUT
P3.1 TxD 12 13
RS232

1M 21 R1OUT R1IN
P3.0 RxD
10k

4 9 8
1% PE R2OUT R2IN
BC547 R86 12 10 4 C22
9 VAGND RESET 5V 5V C18 C2+
R92 100k R99
8 EA VSS X1 X2 R96 R79 MAX232
R87 1% IC6c 27 10 5 15 100n
10 51 38 40 39 C2
10k

10k

100k 16V V-
X1
R90 1% R93 6
2k2

C19 SOE
5V
10k

1k

C12 C9 T2
C15 R97 C21 D2
1n 10 / 16V
13 R83 1%
27p 27p
1N4001
D3 12MHz
14 47 16V
1k

R89 R88
XTAL

IC6d
BC547 U IN
39k

1M

12 IC11
1N4148
P2 D4 7805 5V
1%
K2
3 1k
IC6 = LM324 U IN 1N4001
D1
1 C10 C7
IC6a R91
2 5 4 C23 9 ... 15V
1N4148 100k
R84 7 IC6 470 100n
IC6b D5 35V
11 100n
6k8

C3 6

1n
1N4001
U

Figure 1. Circuit diagram of the IC


tester, an interesting mixed-mode communicate with a PC running spe- test vectors and debug them without
design based in the powerful 80C535 cially written programs. Details on removing the system EPROM. The
microcontroller from Siemens. these programs will be given in next link between the 9-way sub-D socket
months final instalment. Briefly, the and the MAX232 on the board is
PC may be used to write your own IC accomplished via pinheader K1 as

52 Elektor Electronics 3/98


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

Power supply Figure 2. RS232 con-


The on-board 5-volt power supply for 2 nection diagram and
Z7 the IC tester is based on a single 7805 circuit diagram of the
U+
T18 3-pin voltage regulator (IC11). A small keyboard.
R67
1k
G7
negative voltage is created mainly for
10k

R78
T11
older LCDs by a stealer diode (D5)
R74
V9
1k between the negative line of the
ENT
Z9 unregulated input voltage and the cir- 5V' S1

U+
cuit ground. This negative voltage pro-
vides a proper range for the LCD con- R102 1 8x 10k
UP2
10k

R77
T12 trast setting, P1. S2
R73
V10
1k The circuit may be powered by an K5
Z10 inexpensive mains adaptor with an 2 3 4 5 6 7 8 9 UP
U+
T20
R65
output voltage between 9 VDC and S3
G10
1k 15 VDC. Battery powering is also pos-
10k

R76

R72
T13 sible. The unregulated voltage is also ESC
V12
1k applied to the DUT supply discussed S4

Z12 above. The current consumption of the


T22
R64 circuit will be of the order of 150 mA. DWN
1k
G12 S5
5V'
CONSTRUCTION D6
Z15 DWN2
T21
As you can see from the photographs S6
U+ R63
1k
G15 on this article and the artwork in Fig-
ure 3, the printed circuit board
10k

R62
LED
T10
V16
R55 designed for the IC tester is densely
1k
populated. The board being double-
Z16
sided and through-plated, production 1 DCD

with hobbyists tools will be almost DB9 6 DSR


2
U+ impossible, hence our recommenda- K1'
7 RTS RXD
tion to buy it ready-made through our
10k

R60 3 TXD
R53
T9
Readers Services or one of the kit sup- 8 CTS GND
V17
1k
pliers advertising in this magazine. 4 DTR
9
Z17
T19
Remember, successful construction
5
U+ R66
G17
almost entirely depends on accuracy
1k 980029 - 12
and soldering skills.
10k

R59

V19
R52
T8
Start by separating the keyboard
1k
from the main board. Put the key-
Z19
board section aside for later.
U+
Populating the main board may although you have to be careful not to
take quite some time as there are rela- mix up the BC639s and the BC640s. All
10k

R57
T7
V20
R50 tively many components to sort and ICs are mounted in sockets. With the
1k
solder in place. possibility of future extensions in
Z20
T17 Resistors, diodes, capacitors, crystal mind, it is recommended to fit a 32-pin
U+ R68
1k
G20 Start by fitting the SMD (surface- IC socket in position IC7. However, as
mount device) resistors, R25-R48. 32-pin wide-DIL are few and far
10k

R58
T6
V21
R51
1k
This should be done with a low- between, you may have to make one
Z21
power (8-watt) soldering iron and yourself by truncating a 40-pin socket.
T16 lots of care and precision. Use an If you use the ready-programmed (28-
U+ R69
1k
G21 ohm-meter to check your work on pin) 27C512 EPROM supplied through
each and every SMD resistor. All the Readers Services, its pin 14 should
10k

R56
T5
V22
R49
1k
other resistors are mounted upright go in socket pin 16. In other words, the
Z22
to save space on the board. Make EPROM is then inserted with its cor-
T15 sure you know the value of each and ner pins 14/15 close to the edge of the
U+ R70
1k
G22
every resistor and capacitor before board.
mounting it. If necessary, use your The CPU socket has a bevelled
10k

R61 9 8 7 6 5 4 3 2
T4
V24
R54
1k
DMM and the component overlay edge which is also indicated on the
Z24
printed on the board (and shown in overlay to assist in positioning.
R103 1 8x 10k
T14
R71
Figure 3) to be absolutely sure. Also, The socket in position IC12 is not
T4 ... T13 = BC640
R75
1k
G24
the SIL resistor arrays on the board intended for an integrated circuit and
T14 ... T22 = BC639
must be fitted the right way around, it is fitted at the solder side of the
10k

980029 - 11 so make sure you know where the board. You can (carefully) solder the
common terminal goes. Likewise, socket pins at the component side of
observe the orientation of the elec- the board.
trolytic capacitors and diodes. Capac- Do not insert the ICs in their sock-
itors C1 (100 nF miniature ceramic) ets yet.
and C2 (10F, 16V, also miniature) are
mounted at the solder side of the Connectors and ZIF socket
illustrated in Figure 2. Note that no board. The two presets are fitted and Simple 3-way pinheaders are used in
active handshaking is used; the IC set to mid-travel. positions K1 and JP1. The former
tester only uses RxD (received data), Semiconductors receives a mating socket, the second, a
GND (ground) and TxD (transmitted Fitting the transistors and the voltage jumper. There are two longer pin-
data). regulator should not present problems, headers, K4 and K3. The latter is

Elektor Electronics 3/98 53


C20
LED 980029-1

H1
H2

C8
1-920089
R80 P1

R48
R47
R46
R45
IC1

R44
R43
R42
R41
IC2
R79

R64
R65

R70
R71
R72
R73
R74
- - - -

IC5

IC8
R63

R84

IC7
JP1
R40
R32 R39
R31 R38
R30 R37

R28 R36
R27 R35
R26 R34
R25 R33
R76 IC4

R29
R103 R77 R83
C4 R78 C6 P2
R62 R91
T9 T10 T11 T12 T13

C13 A C3
R55 R24 R82 R99
R12
T14 T15 T16 T17 T18 T19 T20 T21 T22

D1

C23
- - - - - - - - - - - -
R11 K3 C5 IC6 C10
R10 C12
R9

R85
- - - - - -

R90
C9
IC12

D3
IC3 X1

R81
R8 R93
R7 C1 C21 C18 C17 R92

IC11
R6

C19
T8

R98
R5
K1

R100

R101
R4 C2 T1
T7

C16
R3
IC10

C22
R13 R2
T5 T6

R1
R60 T3
R53

D2
D4
D5
R94
R95
R59 R52
R75

R97

C11
C15 C14
R58 R51 IC9 K2
T4

K4 T2
C7

R96
R57 R50
R49

H3
H4

R61 R54 R56 + 0

980029-1

COMPONENTS LIST R93 = 1k 1% C2,C16,C17,C18,C21 = 10F 16V


R94,R95 = 1 1% radial
Resistors: R97 = 2k2 C3,C19 = 1nF
R1-R24,R56-R62,R75- R98 = 47k C9,C12 = 27pF
R79,R90,R92,R96 = 10k R99 = 27 C10 = 470F 35V radial
R25-R48 = 180 SMD R100,R101 = SIL resistor array 8 x C14 = 10F 25V radial
R49-R55,R63-R74,R83 = 1k 4k7 C15 = 4F7 16V radial
R80 = 390 R102 = SIL resistor array 8 x 10k
R81,R82 = SIL resistor array 4 x R103 = SIL resistor array 8 x 10k Semiconductors:
4k7 P1 = 10k preset D1,D3 = 1N4148
R84 = 6k8 P2 = 1k preset D2,D4,D5 = 1N4001
R85,R88 = 1M 1% D6 = LED
R86,R87 = 100k 1% Capacitors: T1,T2 = BC547
R89 = 39k C1,C4-C8,C11,C13,C20,C22,C23 = T3 = BD139
R91 = 100k 100nF T4-T13 = BC640

54 Elektor Electronics 3/98


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

980029-1
H4
H3

R102 K5

DWN2
UP2

S2

S6

DWN
S3

S5
UP
ESC

ENT
S4

S1
980029-1
1-920089

LED

D6

H2

H1

Items available from the Publishers:


PCB, disk, GAL and EPROM; set, order code 980029-C.
Figure 3. Copper track layouts and component
PCB only, order code 980029-1.
overlays (actual size) of the double-sided,
GAL 16V8 only, order code 986506-1.
through-plated printed circuit board.
EPROM 27C512 only, order code 986507-1.
Disk only, order code 986014-1.

980029-1

T14-T22 = BC639 Miscellaneous: mounted at the solder side of the


IC1,IC9 = 74HC4094 X1 = 12MHz quartz crystal board (and soldered at the component
IC2,IC4 = Z80PIO K1 = 3-pin SIL header side). Its long pins receive a mating
IC3 = SAB80C535-N K2 = 2-way PCB terminal block socket whose pins are soldered to the
IC5 = GAL 16V8 (order code (pitch 5mm) 14 copper spots on the LCD module.
986506-1) K3 = 14-pin SIL header Doing so allows the LCD to be given a
IC6 = LM324 K4,K5 = 8-pin SIL header
IC7 = EPROM 27C512 (order code S1-S6 = Digitast push button (ITT
slant angle for optimum viewing.
986507-1) (but use 32-pin socket!) Schadow), 4 black caps, 1 white Insert a second 24-pin socket into
IC8 = 74HC573 (Ent), 1 red (Esc) the one you soldered at the solder side
IC10 = MAX232 JP1 = 3-pin SIL header + jumper in position IC12, and then insert the
IC11 = 7805 LCD module, 2x16 characters ZIF socket to make a nice stack.
IC12 = 24-pin ZIF-socket (wide slots; 9-way sub-D socket (female) K2 is a two-way PCB mount termi-
Aries, Farnell) nal block which receives the mains
adaptor output voltage.

Elektor Electronics 3/98 55


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

Keyboard Figure 4. The LCD is


This is a simpler and smaller board 4 mounted at a slant
which should not present any diffi- angle of about 15
culty. Although a connector (K5) is degrees at the solder
indicated on the overlay, the 8-way side of the board.
flatcable between the keyboard PCB
and the main board may be soldered
directly to the spots at the solder side.
One separate wire is used to control
the LED, D6. It goes to a solder pin
marked LED on the main board.

That concludes the construction of the


PCBs. Nows a good time to review
your work so far. Any blatant errors?

TESTING
With the ICs still waiting to be inserted
in the respective sockets, connect-up
the input voltage and run a quick
check on the presence of the 5-volt
supply voltage at the relevant pins of
all IC sockets. Switch off and insert the
LM324 (IC6). Connect the DMM to
ground and the top wire of R61,
switch on again and adjust P2 for a
reading of 5.2 V. only those test vectors are used that 8. Remote Mode: connect a PC to the
Switch off and carefully insert all have the GND and Vcc pins at the RS232 interface and debug test vectors
ICs. Note their orientations on the same positions. The GND/Vcc pin using the DOS program TVCHK.EXE.
board! Switch on again. The LCD entry is optional. Next, you can select
should read the libraries that have to be scanned. The up/dn keys are used to scroll one
3. Retest IC: once an IC has been item up or down. The up2/dn2 keys
IC Tester tested or identified, it may be tested do the same, but then five items at a
1:Test again without having to pick it from time. The Ent key is used to confirm a
the libraries. selection. Esc, finally, jumps to the
Okay so far? Congratulations! 4. Trace: all test vectors and the main menu.
response of the DUT to these vectors
ADJUSTMENTS appear in succession on the LC dis- NEXT MONTH
The DUT supply output voltage, U+, play. Next months second and final instal-
has to be set to 5.2 V 0.05 V using 5. Options: here, you can define global ment will discuss the structure of the
preset P2. Next, P1 is adjusted for opti- options. various menus which appear on the
mum contrast of the texts that appear 6. Info: information on version and LCD, as well as the ins and outs of test
on the LCD. copyright. vector creation, downloading, debug-
7. Self Check: the IC tester hardware ging and EPROM programming.
OPERATION may be checked using this function (980029-1)
The tester is operated using six keys and a voltmeter.
labelled Ent (enter), Esc (escape), dn
(scroll down), up, dn2 (fast scroll
down), and up2 (fast scroll up). The up
and dn keys have an auto-repeat func- 5
tion which causes the repeat rate to be
automatically increased as the key is
held depressed. LED D6 lights to indi-
cate that the IC under test is being
powered, and should not be removed
from the ZIF socket. All ICs to be
tested should be aligned towards
pins 12/13 of the ZIF socket. Their
top notch is at the side of the ZIF
socket lever.
Pressing the Esc (escape) key takes
you to the main menu. There, the fol-
lowing functions may be selected:
1. Test IC: the user picks an IC from an
IC library, and the DUT is checked for
correct operation. The test may be
repeated. If indicated by the test vec-
tors, the current consumption of the IC
under test is measured and displayed. Figure 5. General view
2. Identify: this allows you to identify of the completed main
the type number of an unknown IC. If board and keyboard.
the GND and Vcc pins are unknown,

Elektor Electronics 3/98 57


electronics on-line
semiconductor overviews
The Chip Direc- circuits, mainly memory chips. Semi-
tory is probably dex also supplies data on PC mother-
the largest inde- boards, as well as information on man-
pendent IC ufacturers and the latest news on
overview on the memory technology. The search
Internet. It can be engine on this site provides you with
found at a search system based on number,
www.xs4all.nl/ function, manufacturer and keyword.
~ganswijk/chipdir/ For the time being, the search service
chipdir.htm. is offered free of charge. This will be
This site, con- changed to a paid-up service shortly.
structed and The IC overview may also be bought
maintained by on CD-ROM.
Jaap van Ganswijk If your chief interest is in processors,
from the Nether- then the Chiplist (einstein.et.tudelft.nl/
lands, contains ~offerman/chiplist.html) is certainly
information on worth a visit. This site contains a hefty
many semicon- overview of CPUs and coprocessors.
ductors, with spe- Finally, if you are looking for data
cial emphasis on on distributors, representatives, ser-
IC used in com- vices and semiconductor manufactur-
puter technology. ers in the electronics industry, the
The collection grows every day, as address to go to is www.electrobase.com
anyone is invited to contribute rele- which takes you to the site run by
vant data and/or links to interesting Electrobase. (985021-1)
sites. The Chip Directory has
many mirror sites, including
sites in Africa, North America,
Australia and Europe.
Most major semicon- The Chip Directory allows
ductor manufacturers users to search for semiconduc-
tor families, names, numbers
have their own web and prefixes. Information on
ICs from the former Soviet
site which presents Union is also available. In addi-
new products and tion to all this IC data the Chip
Directory also offers a substan-
allows datasheets to tial list of other electronics-
related web sites. Furthermore,
be downloaded. A theres information on impor-
problem arises, how- tant electronics venues, manu-
facturers, CD-ROMs with com-
ever, if you are stuck ponent data, and addresses of
with an IC or a tran- all important electronics maga-
zines (yes, including Elektor).
sistor of unknown Questlink at www.questlink.
com is another search engine for
make. Fortunately, integrated circuits. The site also
there are a number offers quite some information
on motherboards. It is, however,
of manufacturer-inde- mainly a source for semicon-
ductor company profiles and
pendent overviews the latest industry news.
and search engines Questlink is a free service for
engineers by engineers, as they
on the Web. call it.
Yet another address you may
want to use for finding compo-
nent data is Semidex
(www.semidex.com). The makers
of this site claim that it offers
data on about 75,000 integrated

62 Elektor Electronics 3/98


Corrections & Updates
C10
Simple Electronic

Q5
LS

Q4
R9
Metronome

D4
R8

R7
S1 T2
February 1998 980006-1

IC2
C4
980006-1
T1
The PCB artwork for this project D3
was not properly reproduced by
C3
our image setter. The correct T3 C7

drawings are given here. C9

R2

R1

R4
C8

R16
R15
HOLE35E

C1

IC1

R5

R6
1-600089
tnemgeS )C(

R3
P3
Prize Contest P1 P2
February 1998, page 9. C6 C5
C2

D1
R17
R10

R11

R12

R14

R13
D2
IC3
We apologize for a few errors in S2

Q3
Bt1
the final instalment of the you
Q2

- + S3
can Win this magnificent prize
contest on page 9 of our Febru-
ary 1998 issue. At the right-hand
bottom of this page it is stated:
... the correct answer to ques-
tion 3 and stick ...; this should
have read: ... the correct answer
to question 4 .... Also, the
months on the four stickers were
incorrect: they should have read (C) Segment

February 1998 (Ionization cir-


980006-1

cuit: March 1998) and not Jan-


uary 1998. Obviously, these
stickers will be accepted as if
they had carried the correct
month.

SWITCHBOARD
Switchboard allows PRIVATE READERS of Elektor Electronics one untested and sold as seen. First SWAP Tektronix/Telequipment D65
FREE advertisement of up to 106 characters, including spaces, com- 50 secures. Trevor Wiltshire, dual-beam scope in g.w.o. for Bb
mas, numerals, etc., per month. The advertisement MUST relate to Reading (0118) 9701163. clarinet, must also be in g.w.o.
electronics, and it MUST INCLUDE a private telephone number or
Phone Graham on (01142)
name and address; post office boxes are NOT acceptable.
Elektor Electronics (Publishing) can not accept responsibility for any
FOR SALE kits for 80C32/51 com- 483587.
correspondence or transaction as a result of a free advertisement or puter, Elektor Oct. 92, complete
of any inaccuracy in the text of such an advertisement. with doc. and PCB, 25 incl. P&P FOR SALE 30 textbooks Tec 2,3,4
Advertisements will be placed in the order in which they are (Europe). Anita, fax (+31) 43 HNC C & Guilds on computers,
received. Elektor Electronics (Publishing) reserve the right to refuse 6014470, email techtext@worl- processors, colour TV, video. Price
advertisements without giving reasons or without returning them. donline.nl. 1 each, or 25 for all 30. Suitable
for club or school. W. Allen, 47
FOR SALE PSU PCBs, 45W, I/P Westhorpe Gdns, Hendon, London
WANTED Understand Electrical & Phillips, phone (01376) 323164 240VAC, O/P DC +5V (x2), +12V, NW4 1TU. Tel. (0181) 203 6023.
Electronic Maths by Owen Bishop. (Essex). 12V, 5 each. Tel. Paul on
P. Hall, phone (01623) 26969. (01942) 706769 after 6pm. WANTED Printer Buffer; stand
FOR SALE Sony SMC-70GP video alone version (Elektor 6/92); any
FOR SALE Due to workshop clear- titler with books, software, etc. Twin FOR SALE CCD camera module, condition considered. Please phone
ance: 3 multimeters, transistor 3.5 drives, integral keyboard, gen- B&W, 6 IR LEDs, 0.2 Lux, 1 Vpp Michael John Rutland on +44
tester, frequency counter, valve volt- locker, PAL superimposer and sep- composite video output, 49. (0)1256 881338.
meter. Phone for detailed list. Ken arate colour monitor. Job lot: Phone Alan on (0181) 755 3509

Elektor Electronics 3/98 63


flashing brooch
optoelectronics in pocket format

This is the third and


last in a series of
three miniature
designs for beginners
in electronics. Each
of the designs is
powered by a 3 V
lithium manganese
dioxide non-
rechargeable battery
and is provided with
some sort of visual
indication. The
brooch presented in With its, dare we say, intricate light necessity be repetitive. So, the second
effect, the flashing circuit may be seen, counter serves to avoid monotony.
this article is an ele- in all its simplicity, as a cute little trin- Should IC1 work on its own, diodes
mentary flashing ket that will, no doubt, catch a few
glances at a party or some similar get-
D2D7 would light in perfect order and
regularity, since they are linked to the
circuit which has no together. And, indeed, like the die and successive outputs (Q7Q13) of the
trinket published in the past few counter. However, with IC2 also in cir-
pretensions other months, the brooch is intended pri- cuit, when Q7 of IC1 is high, D2 can
than that of an marily as an eye-catching, optical orna- light only if Q13 of IC2 is low at the
ment. same time. In the same way, when Q8
optoelectronic toy. of IC1 is high, D3 can light only if Q12
CIRCUIT DESCRIPTION of IC2 is low at the same time. And so
Designed to create an optically inter- on
esting miniature effect, the brooch has So, whether the diodes will actually
absolutely no practical use. However, light, although they are driven in per-
the designer wanted the light effect to fect succession by IC1, depends on
be quite different from the usual array other factors as well. Not only are they
of flashing and running lights, most of linked to outputs Q7Q13 of IC2 in
whose patterns quickly become drab, opposite order from their connections
dreary, and predictable. to IC1, but the integrated circuits count
The aim was therefore to drive a in different tempi. This is effected by
number of LEDs in a way to produce making the value of C3 almost five
a truly random light pattern and with times greater than that of C2.
an absolute minimum of electronic Consequently, the clock oscillator in
components. This resulted in a tiny IC1 runs at a frequency about five
circuit containing only two 14-bit times higher than that in IC2. These
counters and six LEDssee Figure 1. factors combined result in the LEDs
The use of two counters prevents lighting in a truly random way.
the circuit exhibiting the same pre- Power for the circuit is derived from
dictability of so many others. If only a 3 V lithium battery. Switch S2 is the
Design by K.A. Walraven one were used, the effect would of on/off switch.

Elektor Electronics 3/98


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

Figure 1. The use of S2

two counters enables 1


a completely random
light pattern to be D1 D8
obtained.
1N4148 1N4148
IC1 16 D2 IC2 16
7 7
Push-button switch S1 serves to 3 3
CTR14 5 5 CTR14
briefly enable the counters if the circuit R1 4
4
D3
4
4 R3
BT1 5 5
is used as a die, but if this function is 1M
11 !G 6 6 !G 11
1M
R2 RCX 6 6 RCX R4
not envisaged, this switch, as well as 10
+ 7
14 D4 14
7 +
10
220k RX RX 220k
D1 and D8, may be omitted. 3V C2
9
CX
CT
8
13 13
8
CT
CX
9
C3
15 15
9 D5 9
12 1 1 12
CONSTRUCTION 1n CT=0 11 11 CT=0 4n7
2 2
The brooch circuit is best built on the C1 12
3 D6 3
12
13 13 S1
printed-circuit board shown in Fig- 10
ure 2, which is, however, not available 63V 8 4060 8 4060
D7
ready made.
Completing the board cannot be
simpler. Start with the passive compo-
980028 - 11
nents (resistors, capacitors), followed
by the ICs and LEDs. The use of IC

Parts list
0
D3

tnemgeS )C(
-820089
D7
D5

2 R2
Resistors:
C1

1BT1
C2

R1, R2 = 1 M
IC2

R1
R2, R4 = 220 k
IC1

R3
D1

+
S2

R4
Capacitors:
D8

C1 = 10 F, 63 V
D4

D6

PC1
C3
D2

C2 = 0.001 F
S1

980028-1
C3 = 0.047 F

Semiconductors:
D1, D8 = 1N4148 (may be omitted
see text)
D2D7 = LED, high efficiency

Integrated circuits:
(C) Segment
980028-1

IC1, IC2 = CD4060

Miscellaneous:
S1 = push-button switch with single
break contact (may be omitted
Figure 2. The tiny see text)
printed-circuit board replaced by a three-pin PCB jumper S2 = SPST or three-pin PCB jump
for the flashing system, where- system (wire-wrap pin-strip header
brooch is not available upon on/off with shorting link available from
ready made. switching is RS Components) see text
BT1 = 3 V lithium manganese diox-
effected ide non-rechargeable battery Type
by the CR2025 or CR2032 with holder for
sockets is left to personal choice: their board mounting (there are types
use prevents any risk of damage to the available for direct mounting on a
ICs during soldering, while without PC board from RS Components)
them, the brooch is rather flatter. Mind
the polarity of C1 and D1D8.
The circuit is powered by a 3 V
lithium manganese dioxide non- Figure 3 shows the completed proto-
rechargeable battery, Type type brooch.
CR2032 or the rather flatter short- With components as specified in
CR2025. The diameter of ing link. the Figure 1, the circuit draws a cur-
both types is 20 mm. The The clip rent of about 10 mA. At that rate, a
battery is fitted on to for fastening CR2025 battery will have a life of
the board with the the brooch to 1012 hours, and a CR2032 one of
aid of a specially clothing should 1417 hours.
available holder. be soldered or glued
Note that its (superglue!) at the EXPERIMENTATION
+ve terminal underside of the board A simple circuit as described lends
must point near the battery. itself readily to experimentation. For
upward. (Recently, instance, the light effect may be altered
types have become avail- Figure 3. Completed by changing the clock frequencies of
able for direct mounting on prototype of the flash- the two counters. This only requires
the PC board see Parts list). ing brooch. altering the value of C2 and C3.
On/off switch S2 may be [980028]

Elektor Electronics 3/98 65


Elektor Electronics

SSM2142 SSM2141

Integrated circuits Integrated circuits


Audio DATASHEET 3/98 Audio DATASHEET 3/98
SSM2142 The SSM2142 in tandem with the SSM2141 differ- SSM2141 without the problems of distortion, EMI fields, and
Balanced Line Driver ential receiver establishes a complete, reliable solu- High common-mode Rejection high cost.
tion for driving and receiving audio signals over long Differential Line Receiver Additional applications for the SSM2141 include
Manufacturer cables. The SSM2141 features an Input Common- summing signals, differential preamplifiers, and 600
Analog Devices, One Technology Way, Mode Rejection Ratio of 100 dB at 60 Hz. Specifica- Manufacturer low distortion buffer amplifiers.
P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. tions demonstrating the performance of this typical Analog Devices, One Technology Way,
Tel: 617/329-4700 Fax: 617/326-8703. system are included in the full data sheet. P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Features
3/98

Internet: www.analog.com. Tel: 617/329-4700 Fax: 617/326-8703. - High Common-Mode Rejection


Features Internet: www.analog.com. DC: 100 dB typ
General description - Transformer-like balanced output 60 Hz: 100 dB typ
The SSM2142 is an integrated differential-output - Drives 10 V rms into a 600 load General description 20 kHz: 70 dB typ
buffer amplifier that converts a single-ended input - Stable when driving large capacitive loads The SSM2141 is an integrated differential amplifier 40 kHz: 62 dB typ
signal to a balanced output signal pair with high out- and long cables intended to receive balanced line inputs in audio - Low Distortion: 0.001% typ
put drive. By utilizing low noise thermally matched - Low distortion: 0.006% typ, 20 Hz20 kHz, applications requiring a high level of noise immunity - Fast Slew Rate: 9.5 V/s typ
thin film resistors and high slew rate amplifiers, the 10 Vrms into 600 and optimum common-mode rejection. The - Wide Bandwidth: 3 MHz typ
SSM2142 helps maintain the sonic quality of audio - High slew rate: 15 V/s typ SSM2141 typically achieves 100 dB of common- - Low Cost
systems by eliminating power line hum, RF interfer- - Low gain error (differential or single-Ended); mode rejection (CMR), whereas implementing an op - Complements SSM2142 Differential Line Driver
ence, voltage drops, and other externally generated 0.7% typ amp with four off-the-shelf precision resistors will
noise commonly encountered with long audio cable - Outputs short-circuit protected typically achieve only 40 dB of CMR inadequate Applications
runs. Excellent rejection of common-mode noise and - Available in space-saving 8-Pin mini-DIP package for high-performance audio. - Line Receivers
offset errors is achieved by laser trimming of the - Low cost The SSM2141 achieves low distortion performance - Summing Amplifiers
onboard resistors, assuring high gain accuracy. by maintaining a large slew rate of 9.5 V/s and high - Buffer Amplifiers drives 600 load
The carefully designed output stage of the SSM2142 Applications open-loop gain. Distortion is less than 0.002% over
is capable of driving difficult loads, yielding low dis- - Audio Mix Consoles the full audio bandwidth. The SSM2141 comple- Application Example
tortion performance despite extremely long cables or - Distribution Amplifiers ments the SSM2142 balanced line driver. Together, Balanced/Unbalanced Converters for Audio,
loads as low as 600 , and is stable over a wide - Graphic and Parametric Equalizers these devices comprise a fully integrated solution for Elektor Electronics March 1998.
range of operating conditions. - Dynamic Range Processors equivalent transformer balancing of audio signals
Based on a cross-coupled, electronically balanced - Digital Effects Processors
topology, the SSM2142 mimics the performance of - Telecommunications Systems
71

fully balanced transformer-based solutions for line - Industrial Instrumentation


driving. However, the SSM2142 maintains lower dis- - Hi-Fi Equipment
tortion and occupies much less board space than
transformers while achieving comparable common- Application Example
mode rejection performance with reduced parts Balanced/Unbalanced Converters for Audio,
count. Elektor Electronics March 1998.

Functional diagram

pin connections
8-Pin Plastic DIP (P Suffix)
16-pin Wide Body SOL (S suffix) Common-mode rejection vs frequency
Pin connections 8-Pin Plastic Mini-DIP (P Suffix)
#
SSM2141 SSM2142

3/98
Integrated circuits Integrated circuits
Audio DATASHEET 3/98 Audio DATASHEET 3/98
Total harmonic distortion vs
frequency

Elektor Electronics
Dynamic intermodulation distortion Functional block diagram Maximum output swing vs. frequency
vs frequency

Electrical characteristics (VS = 18 V, 40C TA +85C, operating in differential mode unless otherwise noted.
Typical characteristics apply to operation at TA = +25C.)
Parameter Symbol Conditions Min Typ Max Units
INPUT IMPEDANCE ZIN 10 k
INPUT CURRENT IIN VIN = 7.071 V 750 900 A
GAIN, DIFFERENTIAL 5.8 5.98 dB
GAIN, SINGLE-ENDED Single-Ended Mode 5.7 5.94 dB
GAIN ERROR, DIFFERENTIAL RL = 600 0.7 2 %
POWER SUPPLY REJECTION RATIO
PSRR VS = 13 V to 18 V 60 80 dB
STATIC
Electrical characteristics (@ VS = 18 V, TA = +25C, unless otherwise noted) OUTPUT COMMON-MODE REJECTION OCMR f = 1 kHz 38 45 dB
Parameter Symbol Conditions Min Typ Max Units OUTPUT SIGNAL BALANCE RATIO SBR f = 1 kHz 35 40 dB
TOTAL HARMONIC DISTORTION 20 Hz to 20 kHz, VO = 10
OFFSET VOLTAGE VOS VCM = 0 V 1000 25 1000 V THD+N
V rms, RL = 600
0.006 %
PLUS NOISE
No Load, VIN = 10 V,
GAIN ERROR 0.001 0.01 % SIGNAL-TO-NOISE RATIO SNR VIN = 0 V 93.4 dBu
RS = 0
IVR HEADROOM HR CLIP Level = 10.5 V rms +93.4 dBu
INPUT VOLTAGE RANGE (Note 1) 10 V
SLEW RATE SR 15 V/s

72
COMMON-MODE REJECTION CMR VCM = 10 V 80 100 dB
OUTPUT COMMON-MODE VOLTAGE
POWER SUPPLY REJECTION RATIO PSRR VS = 6 V to 18 V 0.7 15 V/V VOOS RL = 600 250 25 250 mV
OFFSET1
OUTPUT SWING VO RL = 2 k 13 14.7 V
DIFFERENTIAL OUTPUT VOLTAGE
SHORT-CIRCUIT CURRENT LIMIT ISC Output Shorted to Ground +45/15 mA VOOD RL = 600 50 15 50 mV
OFFSET
SMALL-SIGNAL BANDWIDTH (3 dB) BW RL = 2 k 3 MHz
DIFFERENTIAL OUTPUT VOLTAGE
VIN = 7.071 V 13.8 14.14 V
SLEW RATE SR RL = 2 k 6 9.5 V/s SWING
RL = 100 k 0.001 OUTPUT IMPEDANCE ZO 45 50 55
TOTAL HARMONIC DISTORTION THD %
RL = 600 0.01 SUPPLY CURRENT ISY Unloaded, VIN = 0 V 5.5 7.0 mA
CAPACITIVE LOAD DRIVE CAPABILITY CL No Oscillation 300 pF OUTPUT CURRENT, SHORT CIRCUIT ISC 60 70 mA
SUPPLY CURRENT ISY No Load 2.5 3.5 mA Notes 1 Output common-mode offset voltage can be removed by inserting dc blocking capacitors in the sense lines. See
Note 1. Input Voltage Range Guaranteed by CMR test. Applications Information.
#

Vous aimerez peut-être aussi