Documente Academic
Documente Profesional
Documente Cultură
computer emulators
Using a PC to mimic other systems
Apple II
The Apple II computer, based on the
6502 microprocessor, is generally con-
sidered the worlds first personal com-
puter which was graced with a vast
number of popular programs. To be
able to run these programs on an MS-
DOS machine you need to have, for
Acorn computers
The British-designed Acorn Atom was
one of the earliest 6502-based com-
puters sporting a few kilobytes of
memory. Its emulator may be found at
wwwis.cs.utwente.nl:8080/~faase/Ha/
Atom
Figure 4. Yes, there are video-console addicts! On Pauls Emulator Pages
In 1981 Acorn introduced a much
www.cs.tamu.edu/people/pforeman/emualtor/index.shtml?
more powerful computer, the BBC B.
they find what they want.
Later, the Electron appeared, this
was basically a BBC B with lower
Atari original version of Pacman and many specifications. The BBC B computers
Atari has an eventful history and has other famous games. Such an emula- were immensely popular, but in their
gone through a lot of changes, pro- tor may be downloaded from Classic home country only. For die-hards
ducing various computer models. A Gaming at and addicts theres BeebEm, an
tremendously popular games com- www.classicgaming.com/pcae/main. emulator for the model B. As
puter was the type 2600 video com- html opposed to many other emulators
puter. This was basically a game con- which, if you are interested, also sup- using plain DOS, BeebEm runs under
sole with two joysticks. The unit had plies the source code file. Windows. The source code is also
two joysticks, no control buttons (bliss- The regular personal computers available from
ful days), and it could be connected from Atari also received a lot of interest members.aol.com/mikebuk/beebem/i
directly to a TV set. A cartridge con- in those days. Some great games ndex.html
taining the game program had to be derived from arcade blockbusters Another BBC emulator may be found
inserted in a slot in the top cover of were also available for the type 400 at a web site run by Tom Seddon:
the case. and 800 8-bit models. The Atari 5200 w w w. n c l . a c . u k / ~ n 5 0 1 3 7 8 4 / b b c -
This machine proved to be a mile- game computer was based on these emu.htm
stone in the history of game comput- computers, and most 8-bit Atari emu-
ers. The good news is that emulators lators will be able to emulate this Commodore C64
are available to once again play the game console. Here, too, we would Looking around on the Internet for
information on the C64 it would
appear that this is the most popupar
Figure 5. Free64 is a Commodore C64 emulator written in C by a 16-year old American
computer ever made. This is partly
pupil.
true, of course, the C64 was afford-
able and designed to do interesting
things at home. By the end of the
eighties, Commodore sold more
C64s than IBM and Apple sold PCs
together.
The C64 at its time was endowed
with an ample amount of memory
(64 kB RAM), and excellent graphics
and sound specifications. All of this
contributed to the fact that games did
very well, while the more serious appli-
cations played a lesser role. No won-
der a lot of C64 emulators have been
written.
A shareware version of the emula-
tion program CCS64 may be found at
www.fatal-design.com/ccs64
Free64 also deserves a mention
because it was written by a 16-year
old who set his mind on getting hand-
MSX
The MSX computer appeared on the
market in 1980 and was based again
on the Z80. The MSX specification was
the unified effort of a number of man-
ufacturers to establish a new standard
in the home-computing market.
Hard work, clever designing, brisk
marketing and the odd success in
some countries could not forestall the
demise of MSX after a couple of years.
None the less, some really fine soft-
ware was produced for this platform.
FMSX is an emulator capable of run-
ning under DOS and Windows.
Figure 6. Daves Classics is the most interesting site if your are after emulators and
Because it appears to be around in a
games. Dave has one of the largest collections in this area.
fair number of versions, we once
again turn to Daves Classics where a
best of collection is available: The MAME (Multiple Arcade Machine original computer. This is often the
www.davesclassics.com/msxemu.html Emulator) site deserves a special men- case if the designers of the original
tion in this article. MAME was devel- computers used hardware tricks and
Macintosh oped by a team of programmers. This other hidden features. So, if you are
Broadly speaking, todays computer wonderful program is capable of mim- after an emulator for a particular com-
scene has two large camps: Mac and icking a vast number of arcade puter brand and type, it is always
PC. Of course, emulators are around machines, and available in a DOS worthwhile to try out a number of dif-
to mimic a Mac on the PC. Using and a Windows version. Here, too, you ferent emulators. In this way, you can
iMac, for instance, enables you to have to note that the ROM images do a few experiments to see which
use your PC to emulate an Apple may not be copied if you are not the emulator works best (or, better).
Macintosh Plus computer. The program rightful owner of the relevant comput- Some computers are followed in the
may be found at er. So far, some 350 games are avail- wake by ten or even more emulators.
Leb.net/vmac/main.html able for MAME. The address of the There are also commercial suppliers
As already mentioned (and this MAME home page is and producers of emulators, but they
goes for several of the emulators dis- www.media.dsi.unimi.it/mame are not mentioned here. Fortunately, if
cussed here), a ROM image of the your are looking for a specific emula-
original Mac SE is required to be able Experiment! tor to relive the feeling of your first little
to use the emulator! computer, the Internet usually offers
A number of emulators are, regret- plenty to choose from.
Game computers tably, not 100% compatible with the (980044-1)
SCSI
Fast, flexible and versatile
History
The history of SCSI starts in 1979, when
Shugart, an American manufacturer of
hard-disk drives, developed a new
interface for its drives and called it the
SASI interface (for Shugart Associates
System Interface). This newcomer to
the world of computer interfaces
included a number of fundamentally
novel concepts. Such a radical
change was urgently needed, since at
the time the pace of development of
both PCs and peripheral devices was
rapidly accelerating. The most impor-
tant advantage of the SASI concept
was that it decoupled the internal
structure of the peripheral device from
its interface to the PC. This meant that
it was no longer necessary to develop
device
device
device
device
SCSI
SCSI
SCSI
SCSI
SCSI adaptor
Terminator Terminator
fitted fitted
device
device
SCSI
SCSI
SCSI adaptor
Terminator
activated
Terminator
fitted
device
device
SCSI
SCSI
SCSI adaptor
Terminator
activated 982034 - 12
Terminator
fitted
nous communication, then the initiator supports Fast-SCSI. Normal SCSI nected to a single bus (four times as
and target devices switch over to syn- devices operate at their usual data many as standard SCSI).
chronous mode. rates on a Fast-SCSI bus. A disadvan-
tage of Fast-SCSI is that the maximum Identification
Fast SCSI total cable length is reduced to
and Wide SCSI 3 metres. When more than one device can be
Wide-SCSI increases the data trans- connected to a single bus, there must
Fast-SCSI and Wide-SCSI are both fer rate by expanding the width of the be some system allowing each device
extensions of SCSI-2 which make signif- bus to 16 or 32 data bits. If in addition to be identified. For this reason, each
icantly higher data transfer rates possi- an improved communication protocol device connected to a SCSI bus must
ble. is employed on such a bus, the data be assigned a unique identifier num-
Fast-SCSI is an optional variant of transfer rate can reach 40 Mbytes/s. ber. On an 8-bit SCSI bus, identifier
normal 8-bit SCSI, in which the syn- Obviously, different cables and numbers can be assigned to up to 8
chronous data rate is increased from connectors must be used for buses devices (including the bus adapter).
5 Mbytes/s to 10 Mbytes/s by reducing that are 16 or 32 bits wide. Both 8-bit For this reason, each device can be
the durations of the REQ and ACK sig- and 16-bit devices can be used with configured with an identifier number
nals. The higher data rate is only possi- modern 16-bit Wide-SCSI cards, inter- ranging from 0 through 7. Since num-
ble if the interface adapter and at nally as well as externally. Wide-SCSI ber 7 has the highest priority, it is usu-
least one of the peripheral devices allows up to 32 devices to be con- ally assigned to the adapter or host
DB6
the active terminator has the advan-
voltage DB7
Vin regulator Vout
tage that the voltage levels on the
signal Imax > 600mA DBP individual data lines are independent
Vout = 2.85V
ATN of the loads placed on these lines. In
121
BSY
addition, an active terminator places
47 22 100n
330
a noisy PC
(and what you can do about it)
the help of a bit of sound-muffling
material. Lets start with the enclosure.
The side panels of certain tower-model
PCs which we have in our offices (yes,
even new models) started to vibrate
quite noticeably after we mounted
high-speed CD-ROM drives. The high
rotational speeds of such drives pro-
duce a lot of resonances, which prin-
cipally cause the side panels of the
enclosure to vibrate. Firmly tightening
the CD-ROM drives in place does not
help. The best solution is to attach a
few pieces of self-adhesive bituminous
lead sheet to the side panels, in order
to increase their mechanical inertia
and deaden the vibrations. Bituminous
lead sheet is available from automo-
tive-parts suppliers (often under the
name muffling sheet or anti-rumble
sheet) and DIY loudspeaker shops. A
piece of bituminous lead sheet rough-
ly 10 cm square, attached to the mid-
dle of the panel, is usually sufficient
(see Figure 1). By the way, this trick is
also used by manufacturers of audio
CD players, primarily to deaden vibra-
tions in the top cover.
The second culprit, the hard-disk
drive, is more difficult to deal with. You
The modern PC is not only faster than most often used, such as writing letters. can of course replace it with a new
its predecessors, it is also generally less Such an old beast can be made model, since the current generation of
likely to catch your attention. quieter by means of a few inexpensive drives (with the exception of the very
A few years ago, the hard disk drive and relatively simple measures, as you latest models running at 10,000 rpm) is
was usually the noisiest part of the PC, will see. Naturally theres a bit of elec- especially quiet, with an average
closely followed by the power supply tronics in the solution, since otherwise sound level of roughly 40 dBA.
fan. With these items you right away you wouldnt be reading this in Elektor It is not possible to pack a hard-disk
have the two main rowdies in the PC. Electronics but it is not essential! drive in sound deadening material,
The mere fact that a PC is noisy does since it must dissipate a certain
not mean that you must replace it with Mufflers amount of heat. A modern drive dissi-
a new one. In many cases it is still very pates between 5 and 10 watts, but
well suited to the tasks for which it is Quite a bit can be accomplished with older models dissipate quite a bit
Fans
There are usually one or two fans in a
computer enclosure: the first one in
the power supply and the other one
Figure 1. Vibration of a side panel or cover of a PC enclosure can be prevented by
on the processor. The latter fan is only
sticking a piece of self-adhesive bituminous lead sheet to the inner surface.
present if the processor is a Pentium
type or one of the fast 486 versions. It
often happens that the processor fan
starts to rattle after it has been in ser- able replacement assembly (for a different heat sink. If possible, buy a
vice for some time, due to worn-out 486, for example) is no longer avail- fan with ball bearings, since it will usu-
bearings. The only remedy is to able from your supplier, see whether it ally last longer than a less-expensive
replace the combination of the heat is possible to dismount the fan and type with bushings. However, ball
sink and fan with a new set. If a suit- replace it with a fan removed from a bearings do not necessarily guaran-
Figure 2. A rubber ring mounted between the fan and the enclosure can significantly reduce the amount of vibration which is coupled
from the fan to the enclosure.
10k
1k
+ T3
Fan regulator
KTY10
R7
BD140
Figure 3 shows the schematic dia-
gram of a simple fan regulator. This is
3k9
T1 T2
based on a circuit published several
2x years ago in one of our Summer Cir-
BC547B cuits issues.
The objective is to make the speed
R2 R5 R4
M of the fan depend on the amount of
C1 heat produced by the power supply.
9k
3k9
1-150089
tnemgeS )C(
C1 term temperature variations. In addi-
tion, C1 causes a high voltage to be
COMPONENTS LIST applied to the fan for a short time after
the PC is first switched on, so that it
starts up properly.
Resistors:
R1 = KTY10
Transistors T1 and T2 have a com-
mon emitter resistor, so that the differ-
R2 = 9k (2x18k in parallel)
ence between their base voltages
R3 = 10k
determines which of the two transistors
R4 = 39k
conducts more current. The collector
R5,R7 = 3k9 of T2 controls the driver transistor T3,
980051-1 R6 = 1k which in turn determines the voltage
(C) Segment
applied to the fan. If the temperature
Capacitor:
increases then the resistance of the
C1 = 470F 10V PTC also increases, and the voltage at
Figure 4. If you set store by neatness, you
the base of T1 decreases. T2 then con-
can etch your own circuit board from this Semiconductors:
T1,T2 = BC547B
ducts more, which causes T3 to be
layout (board not available ready-
T3 = BD140 turned on harder, so that the fan runs
made).
faster.
Fine tuning
A small printed circuit board (see Fig-
ure 4) has been designed for the fan
regulator circuit, but you can of
course also mount the necessary com-
ponents on a small piece of perf-
board, veroboard or stripboard.
Constructing the regulator should cer-
tainly not present any difficulties. How-
ever, before you go ahead and build it
into your PC, we would first like to
acquaint you with the various fine tun-
ing possibilities of the circuit. This is
because the exact component values
are strongly dependent on the actual
fan used. Temporarily connect the cir-
cuit to a separate 12-V supply and
connect the fan to its output. When the
circuit is switched on, the fan must first
run at high speed for a short time and
then drop down to a low speed. At the
low speed, the fan should rotate fast
enough to ensure that it runs properly,
but not faster than is necessary. This
can be achieved by adjusting the
value of R7 with the circuit at room tem-
perature. Once this has been done,
Figure 5. Here you can see how the regulator circuit can be built into a PC
replace R2 by a 25-k variable resistor,
power supply.
switch the power on again and heat
the sensor to a temperature of 35 to
40 C. The speed of the fan should
increase to nearly its maximum rated
value. This can be set by adjusting the
variable resistor. Once you have found
a good adjustment, measure the value
of the variable resistor and mount a
resistor with this value in place of R2.
Mounting in the PC
After you have finished tuning the cir-
cuit to match the fan, you can mount
it in the PC. The circuit board can be
attached to one of the sides of the
power supply housing such that the
PTC sensor is located between the
fan and the heat dissipators of the
power supply circuit board (it may be
necessary to attach it to the circuit
board via a short pair of insulated
solid copper wires.) To be on the safe
side, keep everything well away from
the mains side of the power supply
(and bear in mind that the heat sinks
may be under tension!). Connect the
supply terminals of the regulator
board to the 12 V fan supply con-
nector on the power supply circuit
board, and connect the fan to the
While many designs of broadband A PUSH-PULL active amplifier devices, T1 and T2, are
amplifiers cover 3 dB frequency AMPLIFIER type BF256B JFETs that are intended for
response limits of 3 to 30 MHz, or 1 to The basic concept of a push-pull ampli- service up to VHF. The choice of JFET
30 MHz, the VLF, LF or even the AM fier is illustrated in Figure 1. Two iden- is not particularly critical the author
broadcast band (BCB, 540 to tical amplifiers, A1 and A2, each originally used the NTE-451, but the
1700 kHz) is rarely covered. The pre- amplify one half-cycle of the input general-purpose MPF102, or a rarer
amplifier discussed here does, offer- sinewave signal. At the input, phase bird like the 2N4416, should also work.
ing a relatively high dynamic range splitting is achieved with the aid of a The JFETs sit between a pair of similar,
and third-order intercept point, fea- transformer whose secondary winding back-to-back connected transformers,
tures which AM BCB Dxers will value has a grounded centre tap (CT). At the Tr1 and Tr2. The source bias resistor for
highly because of the bone-crunching output, a similar, but reverse-con- the JFETs, R1, and its associated decou-
signal levels put on the air by local nected, transformer is used to recom- pling capacitor, C1, are connected to the
AM BCB transmitters. One of the bine the signal components. Here, the centre tap on the secondary winding, B-
problems of AM BCB is that those centre tap is on the primary winding, C, of input transformer Tr1. Similarly,
sought-after DX stations tend to be and used to feed in the supply voltage. the positive supply voltage (approx. 9 V)
buried under multi-kilowatt local sta- The push-pull amplifier being bal- is applied through a limiting resistor, R2,
tions on adjacent channels. anced, it has a very interesting prop- to the centre tap on the primary of the
The present amplifier achieves a erty: even-order harmonics are can- output transformer, Tr2. High and low
decade (10:1) response (250 kHz to celled in the output, so the output sig- frequency supply decoupling is ensured
2,500 kHz). It retains the 50- input nal will be cleaner than for a by C3 and C2 respectively. None the
and output impedances that are stan- single-ended (unbalanced or asym- less, the amplifier should be powered by
dard in RF systems and is is easily metrical) amplifier using the same a reasonably stable and filtered 9-V sup-
modifiable to cover other frequency active amplifier devices. ply. Current consumption will be of the
ranges up to 30 MHz. order of a few tens of mA.
As you will soon discover, a good PRACTICAL CIRCUIT
directional antanna is a must for seri- The actual RF circuit is shown in Fig- POPULATING THE
ous LW and MW DX-ing. Some ure 2; it is derived from a similar circuit BOARD
sggested antenna designs are given found in Doug DeMaws excellent The PCB shown in Figure 3 is unfortu-
reference (1). book W1FBs QRP Notebook (2). The nately not available ready-made. Pop-
This article is based on circuit diagram no. 7-12 in the book Secrets of RF Circuit Design by Joseph
Design by Joseph J. Carr J. Carr, published by TAB Books (McGraw-Hill), ISBN 0-07-011673-3 (pbk), 0-07-011672-5 (hc).
COMPONENTS LIST
T
3
H1
H4
Resistors:
TR1
R1, R2 = 27
K1
C1
Capacitors:
C1 = 1F solid MKT
C2,C5 = 10F 63V radial
T2
T1 C3, C4 = 100nF
C4
D1
Semiconductors:
C3
D1 = 1N4001
R1
tives)
R2
tnemgeS )C(
979012-1
1-210979
(C) Segment
979012-1
Miscellaneous:
C2
mount
Tr1,Tr2 = Binocular core, Amidon
type BN-43-202, or Philips core
H3
H2
IN1
text).
Windings:
Tr1A = 4 turns 0.15 mm CuL wire
Figure 3. Printed cir- (SWG38/AWG36)
Transformer Tr2 is cuit board artwork has not been tested in TR1B = 12 turns 0.3 mm CuL wire
made just like Tr1, but (board not available practice. (SWG/AWG30)
with only two turns on ready-made). Alternatively, select TR1C = 12 turns 0.3 mm CuL wire
the coupling winding, a powdered-iron core, (SWG/AWG30)
rather than four. such as the Amidon T- Tr2A = 2 turns 0.15 mm CuL wire
Before removing the labels and 50-2 (red) or T-50-6 (yellow). About (SWG38/AWG36)
mounting the transformers onto the 20 turns will be needed for the A wind- TR2B = 12 turns 0.3 mm CuL wire
(SWG/AWG30)
PCB, subject them to a final, thorough, ing on Tr2, and seven turns for the A TR2C = 12 turns 0.3 mm CuL wire
wire-for-wire check using your ohm- winding on Tr1. You may want to (SWG/AWG30)
meter. experiment with other core types and
turns counts to optimise for the specific
MODIFYING FOR section of the shortwave spectrum you
HIGHER AND LOWER wish to cover. A tip: use Amidons con-
FREQUENCIES densed design information on toroid 43-202 device. Doubling the number of
A variation is to build the preamplifier cores found on this months Datasheets. turns in each winding is a good start-
for the shortwave bands (up to The third variation is to make the ing point for amplifiers below 200 kHz.
30 MHz). This can be accomplished amplifier cover much lower frequen- The type 73 core works down to 1 kHz,
easily enough. First, reduce C1 to cies (e.g., well down into the VLF so with a reasonable number of turns
100 nF. Second, build the transformers region). The principal changes needed should work in the 20 to 100 Hz range
on a toroid (ring) core rather than a are the cores for Tr1 and Tr2, the num- as well.
binocular one. In Dough DeMaws ber of turns of wire needed, and the (979012-1)
original design (op-cit.) a type FT-37-43 capacitors. The type 43 core (from Ami- References:
ferrite ring core was don) will work down 1. Small loop antennas for MW AM BCB, LF
used with the same to 10 kHz or so, but and VHF reception, Elektor Electronics
Figure 4. Naming the
12:12:2 and 12:12:4 turns wire ends of the pri- requires a lot more June and July/August 1994.
ratios. Winding lac- mary and secondary turns to work effi- 2. Published by the ARRL, 225 Main Street,
quered wire on a ferrite windings (a), and ciently in that region. Newington, CT 06111, USA. Internet:
ring core is not difficult using a toroid core to The type 73 material, www.arrl.org.
see Figure 4b. Cores make the transformers which is found in the 3. Amidon Associates, 2216 East Gladwick,
made from 4C6 material if you want to use the BN-73-202 core, will Dominguez Hills, CA 90220, USA. Inter-
(from Philips) should preamp for VHF (b). provide an AL value of net: www.amidoncorp.com.
also be suitable for use On a toroid core, too, 8,500, as opposed to
above 50 MHz, but this the bifilar winding just 2,890 for the BN-
technique is used. Figure 5. One turn
(left) and two turns
(right) on a binocular
4 A1
TR2 5 core.
A2
B1 A2
A1
B2
Ub
C1
C2 A1
A2 C2
B2
B1 979012 - 14
979012 - 13 C1
CONSTRUCTION
The meter is conveniently built on the
single-sided printed-circuit board in
Figure 3.
The on/off switch, S1, and the elec-
tronic eye, T2 must be fitted on the
Figure 2. Block dia- enclosure of the meter. All other com-
processor, so the gram of the enhanced The oscillator is ponents are soldered on to the PCB.
description is restricted RISC processor, which designed around two Mind the polarity of T3.
to the functions it ful- is housed in a DIL20 separate inverters to The inductor, L1, is easily made. It
fils in the present case. ensure stable operation consists of two turns of 0.3 mm enam-
meter. of the crystal. The clock elled copper wire around a small fer-
When the processor signal is applied to pin 5 rite bead.
is clocked at 12 MHz, it achieves an of IC1 via buffer IC2f. Connector K2 should be fastened to
operating speed of 12 MIPS (million The B ports of IC1 (pins 1219), the mother board with screws, nuts
instructions per second), which is far which contain the signals for driving and washers before any of its pins are
more than required for the meter. Con- the liquid-crystal display (LCD), are soldered.
sequently, a clock frequency is used linked to connector K3. There are various ways of linking
that makes simple timing possible. The control signals for the LC dis- the motherboard to the LCD board.
Crystal X1 is a readily available compo- play, RS, R/W and E, are available at the Ribbon cable is best if a permanent link
nent with a fundamental frequency of ports PD0, PD1 and PD3. is wanted. On the prototype, a single-
32,768 kHz. It is used extensively in the The external interrupt input, PD2, is row IC socket with wire wrap pins is
watch and clock industry, since its fre- used for monitoring external signals. used. The LCD has a single row of pins
quency is a multiple of 2 (215). This sim- Which signal depends on multiplexer that protrude from the board at two
plifies the derivation of a signal of IC3 it is the output of the electronic eye, sides. Provided everything is measured
1 Hz. T2, the horizontal synchronization sig- accurately, this type of link is easily
An additional benefit of a low-fre- nal (reduced to 1/100th via IC4 and uncoupled.
quency crystal is its low current drain. IC5), or the vertical synchronization The display board must be fitted to
the mother board on four 10 mm spac-
ers. The prototype construction is
shown in Figure 4.
Experimentation When all construction work is com-
pleted, connect a 9 V battery to the
meter and press S1. The display will
The software for the processor was developed with a program that can be then read searching with under-
downloaded from the Internet: http://www.atmel.com neath it Hz. When a measurement
At this site will be found an assembler, a debugger and software for the devel- value has been established, the display
reads Refresh Rate. If the display
opment board. The processor is programmed with the aid of a serial pro-
remains grey, it is possible that the con-
grammable interface (SPI). In short, all requisite software is available free via trast has not been adjusted correctly.
the Internet. The processor may be programmed with the Handyman pub- Turn P1 until some text appears on the
Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk
Parts list C5 C8 C9
H4
K2
3
H1
H2
Resistors:
R1 = 10 k C IC3 IC4 IC5
R2 = 1M T2
R4
R5
E
R3 = 100 k R3 R1
C1
R4, R5 = 47 k L1
tnemgeS )C(
1-040089
R7
R8
R9
R6, R7 = 4.7 k
IC1 IC2 T1
R8 = 3.9 k
D2
D1
R9 = 15 k
C7
C6 P1
P1 = 25 k (27 k) preset poten- S1
T3
R6 R2 + -
tiometer K1
C2 X1
H5
H3
H6
C4
Capacitors: K3 C3 980040-1
IC6
C1 = 10 F, 16 V, radial
C2 = 22 pF
C3, C4 = 4.7 F, 16 V, radial
C5C9 = 0.1 F
Inductors:
L1 = 2 turns of 0.3 mm enamelled
copper wire on a ferrite bead 980040-1
(C) Segment
Semiconductors:
D1, D2 = 1N4148
T1 = BC547
T2 = SFH309-4 (do not use -F ver-
sion)
T3 = IRFD9120
Integrated circuits:
IC1 = AT90S1200 (Order no
986510-1)
IC2 = 74HC04 Figure 3. Printed-cir-
IC3 = 4051 on the display. The measurement is cuit board for the
IC4, IC5 = 4017 continued as long as the signal is pre- refresh rate meter.
IC6 = 78L05 sent at the relevant input. When it is
no longer there, both inputs are
Miscellaneous: scanned again for 250 ms. If no input
K1 = clip for 9 V battery signal is detected for 30 seconds, the
K2 = 15-pole HD-sub-D connector, meter switches itself off automatically.
female, right-angled, for board
mounting (for link to VGA connec-
Make sure that the switching off occurs
tor on computer) only when no light is incident on the
K3 = 14-way SIL header meter. It is advisable to cover the meter
S1 = push-button switch, 1 make when it is not in use.
contact The source code may be found on
X1 = crystal 32,768 kHz the CD-ROM P-C Hard&Software
9 V battery 97-98 in directory NL/01.
LC module, 216 characters
[980040-1]
PCB Order no.980040 (see Readers
Services towards the end of this
issue)
Programmed controller Order no.
986510-1 (see Readers Services
towards the end of this issue)
If you have never visited Dsseldorf form the clock. They indicate, from
(about 35 miles northwest of Bonn and top to bottom, tens of hours, single
only 27 miles from the Dutch border) hours, tens of minutes, single minutes,
you can see photos of the worlds tens of seconds, and single seconds
largest digital clock on the Internet see Figure 2.
and download a display version from
it (http://www.dsseldorf.de), which is CIRCUIT DESCRIPTION
reproduced in Figure 1. In the electronic replica of the tower in
Thirty-nine of the sixty-two win- Figure 3, diodes D2D40 show the time;
Design by D. de Mlder dows along the height of the tower
restaurant lighting
hours: tens
minutes: tens
diodes D46D48 portray the lighting of and Mode, which cause either 4-bit
the revolving restaurant, and diodes control information or an 8-bit (one
D41D45 represent aircraft warning byte) data word to be displayed. The
lights. sequential data words are automati- minutes
The arrangement of the light-emit- cally stored in an 8-byte buffer at each
ting diodes on the display board positive WRITE pulse. They may be dis-
shown in Figure 4 coincides with the played directly or in decoded form tower lights (red)
diagrammatic representation in Figure (hexadecimal or binary code-to-7 seg-
2, so that a faithful small-scale replica ment). In the present application the seconds: tens
is obtained. This arrangement is, of decoder is, of course, not used. The
course, not necessary: the LEDs may individual LEDs of the clock can be
just as well be arranged as a tradi- enabled by the microcontroller
tional, horizontal bar. through direct control of the eight seg- seconds
The use of a programmed Atmel ment drivers.
controller saves a lot of components. Normally, IC2 can control up to
Apart from the controller, IC1, and eight 7-segment displays with com-
voltage regulator IC3, only one more mon anode in multiplex. Since the seg-
IC is needed: IC2.
Display driver IC2 is a very useful
circuit element, which contains all that
is needed to drive an LED display in Figure 2. The arrange-
multi-mode operation under the con- ment of the LEDs on
trol of a microprocessor or microcon- the display board is
troller. identical to that of the
The device is linked to the micro- original clock.
controller via two control lines, WRITE 980035 - 11
220
10k
47k
47k
zie tekst
* see text 47 100n 100n 1
* voir texte 63V 2
* siehe Text C7
20
19 3
* SEGA
27 4
100n 1 12 12 3 5
RST P10/IN+ ID0 SEGB
13 11 1 6
IC1 P11/IN ID1 SEGC
6 14 13
D1 INT0/P32 P12 ID2 IC2 SEGD 25 7
7 15 14 2 8
INT1/P33 P13 ID3 SEGE
8 16 10 24 9
T0/P34 P14 ID4 SEGF
2 9 17 6 26 10
T1/P35 P15 ID5 SEGG
18 5 4 11
89C1051/ P16 ID6 7218A DP
3 11 19 7 15 12
DCF77 P37 89C2051 P17 ID7 DIG1
16 13
DIG2
1 2 8 23 14
RXD/P30 WR DIG3
3 9 20 15
TXD/P31 MODE DIG4
17 16
X0 X1 DIG5
22 17
K5 D49 IC3 10 4 5 DIG6
X1 21 18
1N4001 7805 5V DIG7
18 19
DIG8
R7 C2 20
C4 C3
* 28 R5 R4
JP1 C8 C9
47p
12MHz
47p 4...22p * *
1000 10
25V 63V
5V
7
8
9
D46 D35 D21 D7
10
11
12
13 D47 D36 D22 D8
14
15
16
D48 D37 D23 D9
17
18
19
20 D38 D24 D10
980035 - 12
D44
tnemgeS )C( 1-530089 D45
D14
H2
H3
D29
R7
JP1
D49
D13
C8 D28
D12 D47 D48 D46
D27
D11
K5
D26 D40
IC3
D25 D39
D10
K1 C9
C6 D9
R4 D24 D38
R5 D8
D23 D37
D7
D22 D36
980035-1
R1
R2
R6
D6
IC2 3 D21 D35
- D5
1 D20 D34
+ D4
D19 D33
R3
C5 2
D1 D3
IC1 D18 D32
D2
C3 K2 D17 D31
C1
C4
C7
D16 D30
H4
H1
X1 C2
Figure 4. Printed-circuit boards for the clock. The control and display boards are single-sided, not
through-plated. The three boards for the display must be cut apart before any work is done.
Apart from decoupling capacitor ule) are decoupling elements on the Atmel controller is used.
C6, the display drivers needs no fur- supply line. Capacitor C1 provides a Diode D1 at the output (pin 9) of IC1
ther external components, but IC2 power-on reset; the resistor in series lights at every correctly received DCF
does. Capacitors C5 and C7 (DCF mod- with it may be omitted when an pulse and is, therefore, a useful aid in
Decoding process
The DCF clock is a compact design: it uses only 829 maintained by this routine: one of them counts from 0 to
bytes of machine code. The software is relatively straight- 100 (250 s 100 = 25 ms), and the other from 0 to 40
forward and consists of two dissimilar blocks. One of (40 25 ms = 1 s). The resultant 1 s pulse increments
these enables the reading of serial data (via P3.7) and the registers, whereupon the clock becomes available.
storing the information in various registers. Figure 6 When valid DCF information has been received, the
shows the make-up of the code word transmitted by the contents of the hour register and minute register are syn-
DCF transmitter. When a valid code is read for at least two chronized.
consecutive minutes, the data is used to set the clock. Reproducing the information on a display requires
The controller maintains its own clock function. After more arithmetic. First, a byte is split into two digits, after
a reset, several registers are erased and then used to which the hexadecimal code is converted into a position.
store the information as to number of hours, minutes and For in-stance, decimal 7 has the hexadecimal code 0111
seconds. and causes the seventh LED to light. The conversion is
Also after a reset, timer 0 is set to the 8-bit auto reload carried out by successive comparison of the with the dig-
mode, whereupon it generates an interrupt every 250 s. its 09. When the position code has been found, it is
At an interrupt, the content of the accumulator and the added to the display code via an instant instruction.
program status word (PSW) are stored. Two registers are
cut into separate boards as indicated pin 20 of the socket for IC1, pin 19 of
by the relevant lines. the socket for IC2, and pin 2 of K1
Populating the boards should not must be +5 V 5%.
present undue difficulties. Do not Switch off the supply, insert IC1
overlook the two wire bridges on the and IC2 into their sockets, and connect
control board and the many on the the DCF module and the display
display board. boards.
Owing to the closeness of the Switch on the supply, whereupon
tracks, soldering must be carried with the restaurant lighting should come on
great care. and the aircraft warnings lights should
Make sure that the correct polarity start to flash at 1-second intervals. At
of all diodes and electrolytic capacitors the same time, the display shows
is observed. 00:00:00. The clock will set itself to the
The broad tracks at the edges of the correct time when the DCF signal has
display boards serve to interconnect been received flawlessly for at least
these boards. They are best linked by two minutes. Faultless reception is
laying them flat on the workbench indicated by the regular lighting of
with the track layout upward. The diode D1 at each DCF pulse.
connecting wires should be as short as Owing to the multiplexing of the
feasible. The boards may be stiffened display the reception in the immediate
by soldering stout wire or metal strips proximity of the control and display
at their edges. It is also possible to use boards may suffer from interference. It
small, metal clips available from sta- may, therefore, be necessary when tak-
tionery suppliers. ing the clock into use for the first time
The DCF module is connected as to place the DCF module away from
shown in Figures 5 and 6. When the the remainder of the unit. Alterna-
four screw terminals are viewed from tively, connect the module to the
above (Figure 6), the terminals from antenna via a longer, screened cable.
left to right are: DCF output (inverted); Reception difficulties may also be
DCF output; supply line (+1.215 V); encountered when the clock is close
and earth. (that is, less than one metre) to a tele-
Figure 5 shows the SMD-populated vision set or similar equipment.
track side of the DCF board and the When reception has been satisfac-
connecting leads to the control board tory for more than two minutes, the
(from left to right: earth; +5 V, DCF display will show the correct time. If
output). If the connecting leads are reception fails during the two minutes,
long(ish), screened 3-core cable should a new period of two minutes is started.
be used. Once the clock runs, however, it needs
The outputs of the module are to be synchronized with the DCF sig-
open-collector outputs of n-p-n tran- nal only once or twice during every
sistors that can handle voltages up to twenty-four period.
30 V and are able to switch currents of [980035]
up to 1 mA to ground.
Do not yet insert IC1 and IC2 into
their respective sockets, and check the
completed boards carefully. Then
switch on the power and check that
the supply lines are as specified. The Figure 6. Make-up of
potential at the junction of IC3 and C9, the 35-bit data word
transmitted by DCF.
433.720 MHz
434.120 MHz
Range: 433.72 MHz to 434.12 MHz
EX-ISM FREQUENCIES Width: 400 kHz
A long time ago, the current SRD band Channels: 16
section at 433 MHz was part of a Raster: 25 kHz
slightly larger section reserved for ISM Specification: MPT 1340
(industrial, scientific and medical) For Vehicle Radio Keys only.
equipment producing RF radiation. Licence-exempt, max. 10 mW ERP
980038 - 11a
Mainly as a result of pressure from
licensed radio amateurs who use this
part of the band on a shared and/or
secondary basis, the use of ISM equip-
ment has been phased out, and the
band section is no longer identified as 1 2 3 4 5 6 7 8
such, at least not in the UK. Several
other ISM frequency bands are defined
in the UK, including 167 MHz, 83 MHz
and 40 MHz, all subject to strict regu- LPD/SRD Band
lations, the most essential of which
being very low ERP (effective radiated
433.720 MHz
434.120 MHz
Range: 417.9 MHz to 418.1 MHz
power) levels. Width: 200 kHz
The exact frequency allocation of Channels: 8
the 418 MHz and 433 MHz SRD bands Raster: 25 kHz
is shown in Figures 1a and 1b. It
should be noted that the channel divi- Specification: MPT 1340
sion and channel widths have been Low-power general telemetry,
adopted by SRD manufacturers, there telecommand and alarms.
being no strict RA regulation in this Licence-exempt, max. 0.25 mW ERP
980038 - 11b
respect.
It is expected from radio amateurs
using the 70-cm band to accept the Figure 1. Frequency
activity of low-power SRD users in this allocation and (man-
part of the band and not cause inter- ufacturer-proposed)
ference. Likewise, SRD users have to channel division of
live with interference caused by radio the two 70-cm SRD
amateurs, or prevent interference by bands available in
using low transmission rates, sure the UK.
codes, high redundancy and selective
receivers. All of this is, of course, in the
hands of the manufacturers of SRDs,
because the users are not allowed to
make changes to type-approved equip-
ment. Figure 2. Plans are
afoot to open the
886-MHz band for
A NEW SRD BAND
SRD use.
Meanwhile, because they are so small,
the 418 MHz and 433 MHz SRD bands
have become quite overcrowded. A
new band, around 886 MHz, is identi- 2
fied by the relevant authorities for use 7 7 7 8
1 2 3 4 5 7 8 9 0
by SRDs (Figure 2), with reference to
CEPT Recommendation T/R 70-03. In
this band, it is planned to reserve sev-
eral channels exclusively for security
applications. Some channels in the pro- Future SRD band
posed frequency range are, however,
868.000 MHz
870.000 MHz
still in use for analogue cordless tele- Range: 868 MHz to 870 MHz
phone sets of the CT2 generation. Width: 2 MHz
For all SRD bands, the intention has Channels: 80
always been to arrive at unified regu- Raster: 25 kHz
lations. In the UK, however, the Radio-
communications Agency has not CEPT Recommendation T/R 70-03 refers.
adopted CEPT recommendation
980038 - 12
TR 01-4 which allows general low-
200
100
6k8
4 R18 VCC
10
R7 R14
C21 C12
12k
3M
ANT.
L1
* 47 10
C4
R5 R9
2p R12
20k
5k6
6M8
C5
D2 DATA OUT
T1 R10
33p 100k R15 IC1b
C7
R11 IC1a 47k
D1
2p 100k D3
C6
1n 2x
1N4148
1N
4148
2H2 * 1,5 Wdg.
R8 R6
* 1,5 wdgn.
C8 C9 C10
* 1.5 turns
680
18k
1n 1
* 1,5 spires. 47
980038 - 14
4 12 4 14
A3 TE
5 13 5
A4 D3
13 decoder. The 4-bit dataword is first
6 14 6 HT12E 12 HT433-1/T latched and then used to control exter-
A5 D2
7 15 7 11
A6 D1 nal devices (here, LEDs are used).
8 16 8 10
A7 D0 START To make sure the transmission
arrives securely at the decoder, the
9
encoder transmits the 12-bit serial
word four times each time the /TE
DATA input is activated. The decoder with-
holds the data until three identical, suc-
5V cessive, copies have been received. The
VT output then flags the availability of
SW-DIP8
18 valid data.
1 9 1 17
This process is very well suited to
A0 VT
2 10 2 16 slow data transmission. For higher data
A1 OSC1 47k
3 11 3
A2 OSC2
15 rates, a microcontroller is an obvious
ADDRESS
4 12 4
A3 DIN
14
OUT IN alternative to special encoder/decoder
5 13 5
A4 D3
13 ICs. Note, however, that opting for a
6 14 6 HT12D 12 HT433-1/R
A5 D2 microcontroller (like a PIC) almost
7 15 7 11
8 16 8
A6 D1
10
always means that you have to write
A7 D0 MP
your own software aimed at achieving
secure and reliable transmissions.
9
If data is to be exchanged between
560
560
560
560
In this instalment, we
have another look at 31
filters and their
synthesis and then turn
our attention to
modulation techniques.
980015 - 5 - 11
32 33
1 cntre=taps1;
2 mr=0, mx0=dm(i2,m2),
my0= pm(i7,m7);
3 do firl until ce;
4 firl:mr=mr+mx0 my0(ss),
mx0= dm(i2,m2),
my0= pm(i7,m7);
5 mr=mr+mx0*my0(rnd);
6 if mv sat mr;
FOURIER SYNTHESIS
The menu contains a program that
computes the relevant signal from a list
of frequency components (frequency,
amplitude, and phase). For example,
for a square-wave signal (duty factor is
1:1), the following table correlates the
number of the harmonics (first col-
umn) with their constituent value (sec-
ond column):
1 10 (=10/1)
3 3.3333 (=10/3)
5 2 (=10/5)
7 1.428 (=10/7)
980015 - 5 - 15
9 1.111 (=10/9)
11 0.9090 (=10/11)
13 0.7692 (=10/13)
36 oscilloscope TER1.SPP is shown in Figure 35. Note 15 0.6666 (=10/15)
that the amplitude of the overshoots
increases with rising filter order to the The result of the Fourier analysis, in
same extent as the response time. which a number of different harmon-
Other types of filter, such as Chebi- ics are included, is shown in Figure 38.
sine wave shev and Butler, encountered in ana- The corresponding experiment is car-
generator Schmitt trigger logue filter designs, are also available ried out by file XFOUR2.SPP.
in digital filter design. Unfortunately,
owing to space considerations, these A HEARING TEST
cannot be discussed here: the reader is Experiment XFMSYN2.SPP generates sig-
referred to the references at the end of nals TMP1.WAV and TMP2.WAV, which
this instalment. have the same frequency components
but with different amplitude. The oscil-
PERIODIC SIGNALS logram in Figure 39 shows the signifi-
spectrum analyser When periodic signals are viewed on a cant effect of the phase relations of the
spectrum analyser, it will be noticed frequency components. The first signal
that they contain frequency compo- has a virtually constant amplitude.
nents only at frequencies that are a During a hearing test, weak frequency
whole multiple of the fundamental fre- modulation may be detected. How-
quency. This is in accordance with the ever, when listening to signal TMP2.WAV
980015 - 5 - 16
mathematical axiom that a periodic sig- a strong amplitude modulation will be
nal is composed of a fundamental fre- discerned. Signal TMP1.WAV is a
Figure 36. A Schmitt quency and a number of harmonics. VHF/FM signal reduced by weak sig-
trigger generates a rec- Let us carry out an experiment with a nal components. It has a linear spec-
tangular signal. setup as shown in Figure 36. In this, a trum, but is symmetrical with respect
Schmitt trigger (SCHMITT.EXE) produces to a given frequency. Thus, we can no
from a sinusoidal signal a rectangular longer speak of a fundamental fre-
one whose spectrum is shown in Fig- quency with harmonics.
Figure 37. Spectra of ure 37 (experiment XFOUR1. SPP). All fre-
the sinusoidal and rec- MODULATION
tangular signals. PROCESSES
Digital signal processing is also used
more and more frequently in radio
receiver technology. For instance,
37 mobile telephones invariably use com-
plex modulation processes. An
overview of several modulation and
demodulation processes is therefore
instructive. Although these processes
are in the main classical, the overview
gives an interesting picture of the rela-
tion between spectra of various signals.
SOURCE MATERIAL
To keep the course as practical as pos-
sible, we will use readily available data
980015 - 5 - 18
whenever possible. Signals WD1L.WAV
BBC: AM AND PM
Amplitude modulation may be looked
at more closely with the aid of the
198 kHz BBC broadcast transmissions.
The carrier of this signal is mixed with
980015 - 5 - 19 a signal of 188 kHz, resulting in an out-
put of 10 kHz (see Figure 41), which is
Figure 38. Fourier readily sampled at 44.1 kHz. This
analysis of a rectan- enables amplitude modulation to be
gular signal with tested with a real audio example.
many harmonics. Figure 39. Signals It is interesting to note that the
with equal amplitude same 198 kHz signal is also phase mod-
but with different ulated to enable control data to be
phase spectra. transmitted. This is also contained in
39 the file BBC188.WAV.
AMPLITUDE MODULATION
In amplitude modulation, the modu-
lating signal, s(t), is superimposed onto
the carrier frequency, fc.(c = 2 fc). In
case of a cosinusoidal carrier, the trans-
mitted signal is
Each of the terms in this equation pro- Figure 41. Set-up for generating an AM
vides a spectral line to the left and right signal.
of the carrier. To enable AM signals to
be investigated, the menu contains a
program AMGEN1.EXE for the generation
of AM signals with which the various
experiments may be carried out. 42 oscilloscope
[980015-5]
mixer
References
AM
Digital Processing of Signals, C.M. Rader 150 Hz
signal
and B. Gold, McGraw-Hill
spectrum analyser
Analog Interface and DSP Source-
book, 1993, ISBN 0 07 707694 X,
Alan Clements, McGraw-Hill
10 kHz
Communications Technology Hand-
book, 1997, ISBN 0 240 51461 0, 980015 - 5 - 23
Geof Lewis, Focal Press
Figure 42. Recording an AM broadcast
Digital Audio Signal Processing, 1997 IS signal.
BN 0 471 97226 6, Udo Zlzer, Wiley
12k
C2
47k
R8
manganese and rechargeable metal R9 C 10
63V
047
220n
hydride types, cannot handle large
10k
A
3 A B 9V
discharge currents. Nickel-cadmium 1
R5
6 R10 D 5W
IC1a 100k R6
batteries can, provided they are in 2 7 2M2 D1 CEL
IC1b 12k
good condition. The reason for this dif- 5
13
ferent behaviour lies in the internal A
14
R11 OK
C IC1d 3k9
resistance of the battery. That of a 12
Ni-Cd battery in mint condition is very R2
C1 C3
R12
10k
1k8
low, whereas that of an alkaline man- IC1 = TLC274
K1 IC2
ganese type is high, as is that of a 10
63V
22
16V D2 7809 9V
nearly discharged Ni-Cd type. 12V
8mA5
The present circuit serves to mea- 1N4001
sure the internal resistance of a battery. C6 C5 4
47mVAC
It does so by monitoring how well the A 4V C 470mV DC IC1
10 11
battery is able to follow rapid varia- 0V5 AC 63V 100n
B D 0V9
tions in the discharge current. This 4V DC
the capacity of the battery, but it does Figure 1. The circuit con-
give a good idea of the condition and sists of two main sec-
quality of the tested battery. tions: an alternating-volt-
angular type. The age generator (IC1a and put of the op amp is
TEST METHOD output voltage may IC1b) and a current source then high, so that the
A test with a large, constant discharge be set, within certain (IC1c and T1). voltages at pins 13
current does not suffice to get an idea limits, with P1. The and 14 are not equal
of the quality of the battery, since it triangular-shaped and the diode does
does not show how the battery reacts voltage at the output of IC1b is shaped not light.
to variations in the load current. It is by low-pass filter R6-C3 into roughly a Power for the circuit is provided by
only when the terminal voltage of the sine wave. a standard 12 V mains adaptor con-
battery is measured under rapidly The near-sinusoidal voltage is nected to K1. The current drawn from
varying load current conditions that a superimposed on to a direct voltage. the adaptor remains small: about
good picture will emerge of how the This is done by linking the ve input 8.5 mA. Voltage regulator IC2 converts
battery reacts. The way to do this is to of IC1a and the +ve input of IC1b to the adaptor output into a stable 9 V
test a new battery (or one of proven the junction of R1 and R2 instead of to direct voltage. Diode D2 prevents any
good quality) and note the measure- earth as is usual. The voltage at the mishaps if the mains adaptor were
ment results. Test results on other, junction is about +4 V. connected with wrong polarity.
probably older, batteries can be com- Potential divider R6-R12 reduces the
pared with those of the new battery generator output to a direct voltage of CONSTRUCTION AND
from which clear conclusions may be about 47 mV with superimposed on it CALIBRATION
drawn. an alternating voltage of 47 mV. This The impedance meter is best built on
The terminal voltage is measured complex signal is applied to current the printed-circuit board shown in Fig-
with a common or garden digital mul- source IC1c-T1. The battery, connected ure 2, which is not available ready
timeter. The varying load is provided to terminals +bat and bat, is dis- made.
by the present circuit. The load current charged via the drain-source junction It makes sense to start with build-
consists of two parts: a 1 A direct cur- of transistor T1 and resistor R8 in the ing the power supply and checking
rent and a 100 mA alternating current. rhythm of the generator signal that that the potential across C5 is 9 V. Next,
The frequency of the alternating cur- drives the gate via op amp IC1c. The complete the circuits around IC1a and
rent is 50 Hz, since both the battery potential at the +ve input (pin 10) of IC1b, set P1 to its centre position and
and the multimeter can handle this IC1c is equal to the voltage across R8, verify with a multimeter or oscillo-
without any problem. so that a direct current of 1A and a scope that the voltages at various
The internal resistance is calculated pulsating one of 100 mA is drawn from points are in line with those specified
by simply multiplying the meter read- the battery. Capacitor C4 improves the on the circuit diagram. Make sure that
ing (with the multimeter in the rele- stability of the current source and sup- the meter is set to the correct range
vant a.c. range across the battery ter- presses any oscillations. (a.c. or d.c.) for each measurement
minals) 10. The circuit based on IC1d is a sim- and, if an oscilloscope is used, bear in
ple indicator network that prevents mind that 470 mV rms has a peak-to-
CIRCUIT DESCRIPTION any measurement errors. Note that peak value 2.8 times larger.
The circuit in Figure 1 consists of two diode D1 lights only when the voltages Build the remainder of the circuit
parts: a current source via which the at pins 13 and 14 of IC1d are equal or and connect a 1.5 V battery to the bat
battery is discharged and a generator very nearly so. At the onset of the terminals, whereupon D1 should light.
that controls the current source. measurement, it should be ascertained If it does not, there flows insufficient
The generator is based on opera- that this diode lights to prevent a flat current through R8, which means that
tional amplifiers IC1a and IC1b. Since battery being confused with one with the entire current source should be
only the amplitude of the generator a low internal resistance. In case of a inspected thoroughly.
output is of essence, and not its shape, flat battery, the current is small, so that Connect the multimeter, set to the
the oscillator is a straightforward tri- the potential at pin 13 is low. The out-
C6
Parts list
2
H4
H1
D2
Resistors:
980027-1
1-720089
980027-1
tnemgeS )C(
(C) Segment
K1
R1, R3, R6 = 12 k
IC2
R2, R9 = 10 k
C5
R4 = 22 k
R5 = 100 k
C2
R7 = 220
R8 = 0.47 , 5 W
R2
R1
R5
R3
R4
R10 = 2.2 M
R8
R11 = 3.9 k
P1 R12 = 1.8 k
C1 C3
Capacitors:
C1, C6 = 10 F, 63 V, radial
C4
R12
R10
R11
C2 = 0.22 F
R7
R6
R9
C3 = 2.2 F, 16 V, radial
C4 = 10 F, 63 V
T
D
C5 = 0.1 F
T1
H2
H3
Semiconductors:
D1 = LED, low current
D2 = 1N4001
Figure 2. The printed- T1 = BUZ10 or BUK455
relevant a.c. range, circuit board guaran- warm. Nevertheless, it
across R8 and adjust P1 tees construction it is advisable to mount Integrated circuits:
for a reading of 47 mV, without problems. it on a small heat sink. IC1 = TLC274
that is, 1/10 of the resis- Housing the meter IC2 = 7809
tance value. Set the in a suitable enclosure
meter to the relevant d.c. range and is a matter of personal preference Miscellaneous:
K1 = mains adaptor connector
check the direct voltage across R8, which, in view of the modest dimen-
Heat sink for T1
which should be about 500 mV. The sions of the board, will not prove too Connecting cables (see text)
exact value is not important. difficult.
Finally, measure the frequency of Heavy-duty, insulated circuit wire
the alternating current. If all is well, (red for the +ve terminal and black for
this should be about 50 Hz, but again, the ve one) terminated in suitable check that D1 lights, and shunt the
this is not terribly important: 25 Hz or clips should be used for connecting the battery with a digital voltmeter or
100 Hz will do as well. Note that the battery to the meter. multimeter set to the appropriate a.c.
frequency is affected by the position A photograph of the completed range. The meter readings are best
of P1. impedance meter is shown in Figure 3. compared with those obtained with a
Although the internal resistance of battery known to be in mint condi-
a battery is measured quite quickly, USAGE tion. The value of the internal resis-
transistor T1 will not become unduly Connect a battery to the bat terminals, tance in ohms is the value of the mea-
sured alternating voltage in volts
divided by 10.
The meter may also be used
3 to determine the contact resis-
tance of battery holders and con-
necting leads. Contact resistances
adversely affect the performance
of a battery. First, measure
directly on the battery, then on
the terminals of the battery
holder, and finally at the far end
of the connecting wires. This will
show quickly where the largest
losses occur.
[980027]
Figure 3. It is advis-
able to mount T1 on a
heat sink.
D25
1 1
2 D25
1 DCD 1
D9
14
14 DSR 6
2 TxD
TxD 2 TxD RxD 2
15
15 RTS 7
3 RxD
RxD 3 RxD TxD 3
16
16 CTS 8
4 RTS
4 RTS DTR 4
17
17 9
5 CTS
5 CTS GND 5
18
18
6 DSR
6 DSR
19
19
7 GND
GND 7 GND
20 DTR
20 DTR
8 DCD
8 DCD
21
21
9
9
22
22
10
10
23
Figure 1. By appropri- 23 Figure 2. If the com-
11
24
ately interlinking the 11 puter has a 9-way ser-
24
12 hardware handshake ial connector, a suit-
12
25 signals, a serial con- 25
able adaptor as shown
13 nection may be 13 here must be used.
reduced 980042
to just
- 11 three 980042 - 12
wires.
DSR and DCD) to be intercepted by the THE DESIGN from a 5 V supply line.
interface, which is effected by links on The circuit diagram of the interface is While IC3 arranges the conversion
the connectors. It also requires a suit- shown in Figure 3. Signals RTS and CTS of RS232 levels to TTL levels, IC1 and
able software protocol to be chosen. and DTS, DSR, and DCD, are interlinked IC2 arrange the transformation from
Figure 1 shows how a practical, ser- on connector K1. This arrangement dis- TTL signals to optical signals and vice
ial Xon/XOFF communication may be ables the entire hardware handshaking versa respectively.
established. If the computer is procedure. All that remains are data Circuits IC1 and IC2 are well known
equipped with a 9-way connector signals RxD (pin 3) and TxD (pin 2), in the audio world, since they are nor-
instead of a 25-way one (on which the and these signals are applied directly mally used in digital audio equipment
present circuit is based), a simple adap- to IC3. fitted with optical connectors. They are
tor must be used. Figure 2 shows how Integrated circuit IC3 contains two coupled to fil-
a suitable one may be fabricated. RS232 drivers, two RS232 receivers, ters that sup- Figure 3. The design of
and an integral voltage converter. The press any r.f. the interface is
SIMPLICITY IS THE converter enables the interface to work signals, which straightforward. Serial
WORD signals TxD and RxD
Not only is the design of the interface are carried by separate
straightforward, but the optical parts of 5V 5V
fibre optic cables.
the circuit have also been kept fairly 3 C3
R1
simple. This has resulted in a commu-
47
100n
nication system without special coding IC1
IC3 7 TOTX173
techniques, which means that each
V+ 3
data channel needs its own fibre optic K1 R2
4 R1 3 2
carrier. It would have been possible to 1
8k2
4
use only one fibre optic cable, but this 14 19 R2 20
requires a complex method of modula- 2 TxD C1 1
tion, which in the present circuit was 15 5 T1 2
100n
not felt justified. Also, the additional 3 RxD
16 18 T2 1
cost of a suitable modem (modula-
4
tor/demodulator) would be well in 17 10 ADM233LJN
5V
IC2
excess of the cost saving on one fibre 5 16 C2 12
L1 TORX173
optic cable. 18 11 V 17
1
In spite of its simplicity, the inter- 6 15 C2+
Figure 4. The printed-circuit board for the two interfaces must be cut
Parts list into two before any work is started.
Resistors: 4
R1 = 4.7
R2 = 8.2 k
Capacitors:
C1C3 = 0.1 F, ceramic
C4 = 4.7 F, 63 V, radial K1 K1
C5 = 220 F, 25 V, radial
Inductors:
C4
IC4
C4
IC4
L1 = 47 H IC3 IC3
980042-1
980042-1
1-240089
1-240089
tnemgeS )C(
tnemgeS )C(
Semiconductors: R1 R1
D1 = 1N4002 C1 C3 L1 C1 C3 L1
D1
D1
R2 C2 R2 C2
Integrated circuits:
C5
C5
OUT OUT
H3
H3
H4 H4
IN
+
0
0
IC2 = TORX173 (Toshiba) IC1 IC2 IC1 IC2
IC3 = ADM233LJN (Analog Devices)
or MAX233 (Maxim)
IC4 = 7805
Miscellaneous:
K1 = 25-way female D-connector,
right-angled, for board mounting
PCB Order no. 980042 (see Readers
Services towards the end of this
issue)
980042-1
980042-1
(C) Segment
(C) Segment
The optical link and the fibre optic
cables to be used are readily available
since they are identical to those used in
good-quality audio equipment.
Since the interface draws a relatively
high current (about 45 mA), it has been
provided with a dedicated power sup-
ply. This is fed by a 12 V mains adaptor,
and consists of capacitors C4 and C5, and the receiver (XON/XOFF). work as before, but the electrical con-
diode D1, and voltage regulator IC4. Note that each interface needs its nection has successfully been replaced
Diode D1 merely protects the supply own power supply, that is, two mains by an optical one.
against polarity reversal. adaptors are needed. Since each inter- [980042]
face draws a current of about 45 mA at
CONSTRUCTION an input voltage of 912 V, it may be
The interface is best built on the possible to derive power from the 12 V Figure 5. Photograph of the completed
printed-circuit board shown in Fig- supply in the computer. prototype. The fibre optic cables enable
ure 4, but before any construction is Switch on the supply to the inter- communication at a data transmission
started, the board must be cut into two faces. If all is well, the serial link will rate of 115,200 symbols.
as indicated. The resulting two identi-
cal boards enable a complete fibre optic
link between two computers or
between a computer an a peripheral
unit to be established.
5
Except for IC3, all components are
to be soldered directly on to the rele-
vant board. Mind the polarity of the
diode and the electrolytic capacitors.
Also, take care not to confuse IC1 with
IC2 and vice versa. Although these
devices look very similar, they are not
interchangeable!
Before soldering the pins of K1, the
connector should be fastened on the
board with two screws, nuts and wash-
ers. This procedure prevents any
undue mechanical stresses.
When all soldering has been com-
pleted, the interfaces are ready for use.
Connect them, together with the fibre
optic cables in a serial link and select
the correct protocol for both the driver
SERVICE
WATCHDOG
for me the big question was how to intervals, others at a particular event or UNDER THE HOOD OF
progress from that first piece of soft- state, and the rest at a rate fast enough PICXEX
ware that flashed an LED (my wife to give real-time results. In most micro- The basic idea is that you have 16
could not understand the euphoria) to controller applications, considerable CALL instructions, each associated
that real application I always wanted programming effort is spent on the with a bit (flag). If a flag is set then its
to implement on a microcontroller. code that controls/regulates the execu- CALL instruction is executed, other-
tion of the code that makes up the wise it is skipped. This provides a
After a lot of code writing, debugging actual application. Sometimes these two mechanism to selectively execute the 16
and (re)burning of chips the system code types are so interlocked that no subroutines referred to as tasks. The
was doing more or less what it was clear borders exist. This situation com- flags of 8 of the tasks, called the Event-
intended to do, but I was beginning to plicates debugging in all but the very Tasks, are set/reset by any of your code.
have doubts about ease-of-use of soft- small software applications. PICXEX is So you can activate and deactivate
ware-based systems. Still, the idea of an effort to solve this problem. Despite Event tasks if and when required. The
using software appealed to me and it its simplicity and size it turned out to be flag bits associated with the other 8
was back to the drawing board. an enabling-tool for those real micro tasks, the Time-Tasks, are set by a
controller applications. scheduler routine at time-intervals you
WHY AN OPERATING With hardware borrowed from a select, and thus we have Time-Tasks
SYSTEM? friend and lots of encouragement that are being executed at regular time
It is a well known fact that one of the from the same gentleman, PICXEX intervals.
most successful methods of system was implemented on a PIC16C73 PICXEX consists of two sections, the
design is to break the problem down from Microchip using their MPASM Task-Executive and the Time-Task
into smaller, simpler, tasks. These parts assembler and MPSIM simulator. The Scheduler.
or tasks must now be coded, keeping in code uses about 140 program loca-
mind that to function as a system their tions, 4 registers and you loose one Task Executive
execution must be co-ordinated. Some level of the stack. PICXEX is simplicity Figure 1 is a flowchart of the Task Exec-
must be executed at predetermined itself and the idea can be applied to utive. In the first section all Time-Tasks
other microcontrollers with ease. If with their flag bits set are executed. If
you have an existing assembly lan- the Scheduler sets the flag for a partic-
guage based application using any of ular Time-Task every 20 ms. the Task
the PIC16C7x range you can probably Executive will oblige and execute that
apply PICXEX to your code without task on average every 20 ms.
By L. Legrange major software surgery. Event-Tasks are executed in a similar
3 INC 3_3
SW-B 3_7
3_11
CNTLIM-16 SPEED
KEY01
BIN02 BIN03 SETPOINT
INC OUT
& WORD01
3_2
DEC
ON-DELAY
IN 3_3
3_1 BIN01 LLWORD TEMPB1
TIME #1 50 LLim
LLBYTE
0.6 HLim
TEMPB0
DEC 3_6 3_10
SW-B 3_8 LLWORD TEMPB3
KEY02 350
BIN05
& BIN06
3_5
ON-DELAY
IN
3_4 BIN04
TIME #2
LLBYTE
0.6
TEMPB0
MANUAL
980034 - 13
BIN07
LISTING 2
.....................................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
clrf TIME_TASK_STATUS ; ensure no Time-Tasks active
clrf EVENT_TASK_STATUS ; ensure no Event_Tasks active
clrf EVENT_TASK_ENTRY ; reset Event-Task loop entry-point
clrf SCHED_COUNT ; clear Scheduler mask selector
XEX_ON_EVENT 3 ; start with Event-Task 3 on
goto Main_00 ; make it fly!
8-bit analogue-to-digital converter (ADC) The interface with the mains supply
(US: household AC supply) is via a
information received
Both transmission and reception stages the clock continues to be supplied via
are controlled by the master clock of a pin 4 (CLKOUT). For low-power opera-
* In modern data communications, the symbol microcontroller or by the the on-chip tion in the receive mode, pin 4 may be
electrical and
of this
replaces the baud as the unit of transmitted data. reference oscillator driven by a crystal. controlled dynamically by the micro-
in the electrical
Like the baud, a symbol may (and frequently does) This ensures requisite accuracy of the controller (see Power-down mode later
content of
The content
represent more than one data bit. transmitter carrier and exact trimming on).
imply
* For full details, see Data Sheet TDA5051A available from Philips Semiconductors or at
The
in
Table 1. Pinning
Pin Symbol Description
1 DATAIN digital data input (active logic low)
2 DATAOUT digital data output (active logic low)
3 VDDD supply voltage for digital circuits
4 CLKOUT clock output (fOSC/2)
5 DGND ground (earth) for digital circuits
6 SCANTEST test input (logic low in application)
7 OSC1 oscillator input
8 OSC2 oscillator output
9 APGND ground for (analogue) power amplifier
10 TXOUT analogue signal output
11 VDDAP supply voltage for (analogue) power amplifier
12 AGND ground for analogue circuits
13 VDDA supply voltage for analogue circuits
14 RXIN analogue signal input
15 PD power-down input (active logic high)
16 TEST1 test input (logic high in application)
aliasing components to an extent RECEIVE MODE drain is a minimum when the pin is
which ensures that when they are fil- The input signal received by the high. When this is so, all functions,
tered by the interfacing LC network, modem is applied to a wide-band apart from the clock oscillator, are then
they do not cause any significant dis- input amplifier with automatic gain disabled.
turbance. control, AGC, from 6 dB to +30 dB.
The data modulation is applied This arrangement improves the noise DATA FORMAT
through pin 1 (DATAIN) and applied performance and provides a means for Transmit mode
smoothly by specific digital circuitry to signal level adjustment to ensure max- The data input, DATAIN, is active low,
the carrier (shaping). Harmonic com- imum sensitivity of the 8-bit ADC. which means that a burst is generated
ponents are limited in this process, Subsequently, the signal is passed on the line (TXOUT) when pin DATAIN is
thus avoiding unacceptable distur- through the ADC and a digital band- low.
bance of the transmission channel (as pass filter so as to meet the CISPR nor- Pin TXOUT is in the high-impedance
laid down in Recommendations malization and to comply with some state as long as the modem is not trans-
CISPR16 and EN50065-1). Total har- additional limitations in current appli- mitting. Successive logic 1s are treated
monic distortion is attenuated by cations. After digital demodulation and in a non-return to zero (NRZ) mode.
55 dB when a typical LC interfacing pulse shaping, the baseband data sig-
network is used*. nal is available at pin 2 (DATAOUT). Receive mode
The digital-to-analogue converter Pin 14 (RXIN) is a high-impedance The data output, pin DATAOUT, is active
(DAC) and the power stage are set to pin that has to be protected and d.c. low, which means that the data output
provide a maximum signal level of decoupled for the same reasons as is low when a burst is received. The
122 dBV r.m.s. at the output (pin 10). pin 10 (TXOUT). The high sensitivity at pin remains low as long as a burst is
The output of the power stage, pin the input (82122 dBV) makes the use received.
10 (TXOUT) must be connected at all of a 50 Hz (US: 60 Hz) rejection filter
times to a decoupling capacitor, since a formed by the LC interfacing network
direct voltage of 500 mVDD exists at this a must. This filter also serves as an
pin, even when the modem is not anti-aliasing filter for the internal digi-
transmitting. The pin must also be pro- tal processing.
tected against overvoltage and nega- Figure 3. Representa-
tive transient signals. The direct volt- POWER-DOWN MODE tive relationship
age referred to may be used to bias a The power-down input, pin 15 (PD) is between DATAIN and
unipolar transient suppressor. active high; this means that the current TXOUT.
Direct connection to the mains sup-
ply (US: household AC supply) is via
an LC network for low-cost applica-
tions. However, when power line insu- 3
lation has to be ensured, a suitable r.f.
transformer should be used.
Note that in the transmission mode,
the receiving part of the modem is not
disabled and the transmitted signal is
detected normally. In this mode, the
gain chosen before the onset of the
transmission is stored and the a.g.c. is
set internally to 6 dB as long as
DATAIN is low. When this is not so, the
previous gain setting is restored auto-
matically.
We can only answer questions or remarks of general interest to our readers, con-
B o x cerning projects not older than two years and published in Elektor Electronics.
In view of the amount of post received, it is not possible to answer all letters,
. O . and we are unable to respond to individual wishes and requests for mod-
P
ifications to, or additional information about, Elektor Electronics projects.
4 1 4
1 bits set in the right order, I was
ready to go from BASIC direct-
magazine to automatically
receive the software with pub-
ly to Windows. I did not believe lished designs. I refer to soft-
my eyes, the board worked. ware for stand-alone programs
I have now solved the problem as well as for controllers. This
using this very small BASIC occurred to me because
program: although you publish designs
for programmers, it is not pos-
Set LPT1 sible to use the very same
in bidirectional mode designs for subsequent pro-
OUT &H378 + &H402, 32 + 21 jects based on microcon-
OUT &H378, 32 trollers, which, alas, I can only
obtain ready-programmed
through your valued Readers
When I run this program before Services, or a kit supplier.
PROMMER.EXE, the EPROM I was thinking along the lines
programmer works as expect- of a extra-value subscription,
ed. For your records, the moth- slightly dearer than the normal
Video Copy Processor lete technology. Briefly, the erboard in my computer is a subscription but with the pub-
Dear Editor having read your phenomenon you have wit- Pentium P51430VX-250 lishers automatically supplying
excellent magazine for a num- nessed is caused by the sync- Explorer. What is the actual the requisite software. Of
ber of years, Ive occasionally flywheel circuit available in source of the problem I have course, this could be imple-
attempted the odd project. My your sons old top-loader VCR. stumbled on? Is it poor stan- mented using the Internet.
latest venture was the Video The flywheel circuit was origi- dards for the parallel ports, or Extra-value subscribers would
Copy Processor of November nally intended to overcome pic- a deficiency in your software? then receive a key (digital code)
1997. Having assembled the ture instability as a result of Sved Martinsson (by email) allowing them to once down-
components and soldered them tape speed variation and other load the software from an Inter-
in position with the diligence of tracking irregularities. Modern net site.
a brain surgeon, lo and behold VCRs have much better tape On this (extremely popular) I hope you will at least consid-
it worked per fectly first time speed control, use better project we received a number er my suggestion.
around (rare for me). While tapes, and hence do not need of enquiries similar to yours. G. Bouland
demonstrating it (not without a the old flywheel system. How- As far as we have been able to
certain amount of panache) to ever, as you have seen, it is discover, the problem may be
my son, he informed me (not still very useful! caused by non-standard ini- Thanks for your constructive
without a cer tain amount of tialisation of the EPP port criticisms. To us, software
schadenfreude) that he had mode at the BIOS level. None development is a very time-
been copying (legally I hope) of our prototypes gave evi- consuming activity and there-
for years using his modern EPROM Programmer dence of this, however, and fore often left to free-lance
VCR and my old (discarded) Dear Editor I have just built obviously its just not possible contributing authors, who
top-loader to record with, with the EPROM Programmer fea- to test the project using each negotiate and receive remu-
very watchable results. Maybe tured in your March 1997 and every PC motherboard neration for each copy sold.
some of your buffs could issue, and want to inform you available on the market! We are Unfortunately this remunera-
enlighten me as to this phe- about a problem I encountered. grateful for being able to print tion system is hard to imple-
nomenon. Meanwhile anyone I made my own PCB for this your BASIC program because ment in your extra-value
want to buy a little used Video project and used locally it may helpful to other readers subscription scheme, although
Copy Processor? Kids, whod obtained parts. experiencing communication offering or selling software via
have them! During the first test I got the problems with the EPROM pro- the Internet is, we feel, a viable
M. Fitzgerald, Limerick message wrong hardware. grammer. option. Unfortunately, existing
Selecting ECP, EPP or indeed (See also Unidirectional Ver- payment systems are not (yet)
any other printer por t mode sion of EPROM Programmer, attractive when it comes to
Many thanks for your letter, and made no difference. I examined Elektor Electronics September selling relatively low-priced
congratulations on success- the operation of the board step- 1997, p. 72) products in this way.
fully building this project. by-step using BASIC but could For some time now we have
As we already explained in the not find any error in the hard- been busy resolving the prob-
earlier (1988) article on ware. Using BASIC I was able lem of unobtainable source
Macrovision, many older VCRs to manually control the parallel Software code files. These will be made
are not bothered at all by copy port register. I have been wondering for available in those cases where
protection signals, so again it These tests took a lot of time. some time now why it is not (1) it makes sense to make
seems wise not to bin obso- Finally, when I had the register possible for subscribers to your source code files available to
our readers, and (2) the author This problem is simple to One of the rules of thumb that Submitting Articles for
has transferred the relevant solve. Locate the file also applies to NiMH batteries Publication
file(s) and copyrights to us. MSAJT110.DLL on your sys- is that the charging current is Dear Editor I have devel-
tem, and rename it to 1.4 to 1.5 times the specified oped a small project which I
MSAJT200.DLL. The EIT capacity. So, your 1100 mAh would like to offer you for pub-
installer should then work batteries will require a total lication. However, looking at the
Monacor/Monarch Parts properly. charge of 1500 to 1650 mAh. high quality of your ar ticles I
Dear Editor a fair number of A few other readers have In other words, you should fear that what I have wrought
recently published articles are reported that the EIT will not charge them for 12 hours at on my kitchen table is just not
based on components supplied launch after an otherwise suc- 130 mA, or for 32 hours at good enough because of my
by a company called Mona- cessful installation. An error 50 mA. limited skills at technical writ-
cor/Monarch (or even Merca- report File not found then For safe charging a charging ing and my inability to design
tor). To date I have been unable appears. Because this is a rare period of 14 to 15 hours is a high-quality printed circuit.
to locate their representative in problem, we have been unable commonly applied, using a Since I do not find a Call for
the UK and, indeed, any of the so far to discover the exact current equal to 1/10th of the Designs or similar section in
Monacor par ts you specify. cause. A makeshift solution is battery capacity. So, your 130- your magazine, how does one
Where can I obtain these parts to rename the file mAh charger is almost the per- actually go about submitting an
(mostly connectors, trans- MSAJT110.DLL into fect companion for these ar ticle for publication in Elek-
formers and moving-coil MSAJT112.DLL before running batteries. The one advantage tor Electronics?
meters)? the EIT installer. of the 50-mAh charger is that
F. Anderson, Ipswich it allows the batteries to given Well its much simpler than
a much longer charge without you would expect, and theres
any danger. Even continuous no need to have reservations
By most standards, Monacor Charging charging should be without risk about low design standards
is a large supplier of electron- NiMH Batteries at this low current. because we will do the touch-
ic parts with distributors in Dear Editor I have a query ing up if your article is accept-
nearly all European countries. on charging the new NiMH pen- ed for publication.
Until recently, the parent com- light batteries from Philips. On Content is far more important
pany, the German Inter-Mer- the label it says that these bat- Electronic Code Lock than looks. Basically, your cir-
cador GmbH, did not have an teries can be used in any Dear Editor I wish to bring cuit has to be original and
outlet in the UK. Fortunately, charger. With a suspicious to your attention that the out- innovative, and other readers
Monacor UK (Ltd) are now in mind I called the Philips Con- put NAND gate of the Electron- should be able to reproduce it
business and can be reached sumer Information Desk, only ic Code Lock (September as well as grasp its theory of
on the following numbers: tel. to be told that there was no 1997) suffers to a small extent operation. Once your design
(01908) 217100, fax (01908) danger of the batteries being from contact bounce. I was has been accepted for publi-
217900. We should also men- damaged by over-charging. able to prove this by adding a cation, you will receive a remu-
tion that most Monacor com- My actual questions to you are: JK flip-flop set to toggle state neration proposal from the
ponents we refer to can be I have a charger supplying a to the output. Ideally, this flip- Publisher, via our editorial sec-
supplied as one-offs by two of current of 50 mA. The NiMH flop should toggle at every retariat.
our advertisers, Stippler Elec- batteries have a capacity of pulse from IC2d. Unfortunate- Contrary to what you seem to
tronics and C-I Electronics, 1100 mAh. How long should I ly, the application of a NAND think, we do not mind the odd
mainly because they also carry leave them in the charger? I gate with Schmitt trigger inputs spelling mistake or slip of the
kits for many of the projects also have another charger with is no guarantee for complete pen in your writs because most
featured in Elektor Electronics. 130 mA output capacity. How elimination of pulses resulting articles are virtually rewritten
long should I leave it on to from contact bounce. I was by our editorial staff in close
recharge my NiMH batteries? able to cure this problem by co-operation with one of our
My questions may appear very connecting a 1-F electrolytic internal design engineers
Elektor Item Tracer simple, but I am fully aware of capacitor between pin 12 of appointed to oversee your pro-
Dear Editor I recently the fact that the total amount of IC2d and ground. In this way, ject technically. So, theres
ordered and received the Elek- energy needed to charge the the input remains logic low suf- absolutely no need to submit
tor Item Tracer (EIT). However batteries is greater than the ficiently long (approx. 1 s), and any mil-spec documents!
I have not been able to run the energy I can drain from them. bounce pulses generated when What we do need, however, is
program despite the fact that I would also like to fully charge S4 is released do not reach the a clear circuit diagram, short
all files are present according the batteries without any risk of output any more. descriptions of the circuit oper-
to your checking program. over-charging. C. Tribolet ation and software (if used),
I get the message Cannot find S. van Rhijn, Netherlands and sources for all compo-
MSAJT200.DLL when I try to nents used.
run the program, and then the Contact bounce pulses are Although not strictly required,
installation program terminates. One of the major differences notorious troublemakers in dig- article proposals should be
I remember seeing something between NiCd and NiMH bat- ital circuits. For the problems supplied on disk, using any of
about this in a past issue but teries is that the latter are you report with the Electronic the popular file formats for
can not now locate the relevant slightly less robust and less Code Lock, the addition of a 1- word processing and PCB
issue. Please tell me how to get tolerant of high charging and F cap is a possible solution. design. Why not give it a try?
the missing file, preferably discharging currents. The lat-
through the Internet. ter fact is important for fast
Michail Kalognomos, by email charging only.
The ICM7218A accepts data in a serial format and dri- Pin configuration #1 (Blue)
ves common-anode displays. Data can be displayed #2 (Red)
in either hexadecimal or code-B format. The
#6 (Yellow)
ICM7218A also features a NO Decode mode where
each individual segment can be independently con- ICM7218A/B #10 (Black)
MODE WRITE
trolled. This is particularly useful in driving bar graphs. (ID0 - ID7) 8 (ID3 - ID7)
INPUT
DATA
CONTROL
INPUTS 1 1
#12 (Gn & Wh)
The Maxim ICM7218 is an alternative for both the 8 4
Applications 1
Freq. (MHz) .05 .1 .5 1. 3. 5. 10 30 50 100 200 300
1
Instrumentation 983005 - 11
Iron-powder material vs. frequency range
Test Equipment 8
Higher Q will be obtained in the upper portion of a materials frequency range when smaller cores are used. Likewise, in the
8x8 WRITE ADDRESS
Hand Held Instruments 1 STATIC
RAM
8 COUNTER
lower portion of a materials frequency range, higher Q can be achieved when using the larger cores.
Bargraph Displays 1
1 7
Panel Meters 220
4
34-t
67
5/98
Passive Components Integrated Circuits
Inductors DATASHEET 5/98 Microprocessor, Interfacing DATASHEET 5/98
AL values (H / 100 turns) For complete part number, add Mix number to Core Size number.
Electrical characteristics (V+ = 5 V 10%, TA = 25 C
Range (MHz) to 0.1 .05 - .5 .1 - 2 .5 - 5 1 - 30 3 - 50 5 - 100 20 - 200 50 - 300
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
Outer 26 Mix 3 Mix 15 Mix 1 Mix 2 Mix 6 Mix 10 Mix 17 Mix 0 Mix
Core size diam. Yel-Wh Grey Rd-Wh Blue Red Yellow Black Grn-Wh Tan Supply Voltage V+ -20C TA Operating 4 6 V
= 75 = 35 = 25 = 20 = 10 =8 =6 = 3.5 =1
Elektor Electronics
(in.)
T-12- .125 na 60 50 8 20 17 12 7.0 3.0 +85C Data Retention 2 6
T-16- .160 na 61 5 44 22 19 13 8.0 3.0 Shutdown Supply Current IQ ICM7218A, B 5 300 mA
T-20- .200 na 90 6 52 27 22 16 10.0 3. Operating Supply Current IOP Decoding all 8s, display open 200 450 A
T-25- .250 na 100 100 70 34 27 19 12.0 4.5 No Decode, display outputs open 200 450 A
T-30- .307 325 140 93 85 43 36 25 16.0 6.0
Display blank, driving display 200 450 A
T-37- .375 275 120 90 80 40 30 25 15.0 4.9
Decoding all 8s and D.P.s,
T-44- .440 360 180 160 105 52 42 33 19.0 6.5
T-50- .500 320 175 135 100 49 40 31 18.0 6.4 driving display 240 mA
T-68- .690 420 195 180 115 57 47 32 21.0 7.5 Digit Drive Current IDIG Common Anode VOUT = V+ 2.0V 200 300 mA
T-80- .795 450 180 170 115 55 45 32 22.0 8.5 Common Cathode VOUT = 1.0 V 50 70 mA
T-94- .942 590 248 200 160 84 70 58 32.0 10.6 IDLK
Digit leakage Current Shutdown, V+ - 2.0V
T-106- 1.060 900 450 345 325 135 116 na na 19.0
Common Anode, VOUT = 0V 10 A
T-130- 1.30 785 350 250 200 110 96 na na 15.0
T-157- 1.57 970 420 30 320 140 115 na na na
Common Cathode, VOUT = 5V 10 A
T-184- 1.84 1640 720 na 500 240 na na na na Peak Segment Drive Current ISEG Common Anode, VOUT = 1.5V 20 30 mA
T-200- 2.00 895 425 na 250 120 100 na na na Common Cathode, VOUT = V+ 2.0V -10 -20
T-200A- 2.00 1550 na na na 218 180 na na na
Segment Leakage Current ISLK Shutdown, V+ = 5V
T-225A- 2.25 950 424 na na 120 100 na na na
T-225A- 2.25 1600 na na na 215 na na na na
Common Anode, VOUT = 5V 1 50 A
68
= permeability Display Scan Rate fMUX V+ = 5V 75 250 Hz
Interdigit Blanking Time tidb V+ = 5V 2 10 s
The following equations are useful for calculating the number of turns, inductance, or the AL value of any iron powder toroidal
core. Each core has been assigned an AL value that may be found in the preceding chart. Input High Voltage VIH 2.0 V
All inputs, -20C TA +85C
Input Low Voltage VIL 0.8 V
Write Pulse Width (Low) twl 200 100 ns
desired ' L'( H ) AL N 2 10 000 ' L'( H )
N = 100 L( H )= AL ( H / 100 turns ) = Write Pulse Width (High) twh 1.0 s
AL ( H / 100 turns ) 10 000 N2
Input Setup Time tids All inputs 250 150 ns
Input Hold Time tidh All inputs 0 -20 ns
N = number of turns L = inductance (H) AL = inductance index (H/100 turns)
#
READERS
Letters
We can only answer questions or remarks of general interest to our readers, concerning projects not
Box
older than two years and published in Elektor Electronics. In view of the amount of post received,
O . it is not possible to answer all letters, and we are unable to respond to individual wishes and
P. 14 requests for modifications to, or additional information about, Elektor Electronics projects.
14
exposed metal box of the We totally agree with your find- is suitable for a programming
power supply. This could lead ings in regard of this rather voltage of 12.5 V (the pro-
to a few sparks and mysteri- unfortunate arrangement of the grammer does not work with
ous mains fuse failures or the earth wiring as shown in the 21-V types).
transformer overheating and photograph you mention. We - Are you sure the EPROM used
(potentially more dangerous- advise all readers building this is compatible with the 1-ms
ly) the ear thing wire insulation project, or planning to do so, to programming algorithm
melting and possibly burning. follow the safety guidelines as employed by the programmer
On the subject of (essential) earth- set out in Mr. Joys letter. We (50-ms types are not suit-
Earthing in Variable ing there is no indication in the cir- also recommend consulting the able)?
Power Supply cuit diagram that the metal box & Safety Guidelines page which is - Is the correct programming
Dear Editor I read with interest chassis should be earthed nor is included in the magazine a few voltage being applied to the
the Variable Power Supply article it mentioned in the construction. times in every year volume. EPROM? Check the value dur-
in the March 1998 issue of Elek- Also I suggest that the (usual) ing programming with the aid
tor Electronics, and particularly the warnings should have been includ- of a voltmeter.
photograph of the prototype and ed in the construction about mak- EPROM Programmer
the circuit diagram. ing sure that: Dear Editor Your March 1997
I would refer you to the earth con- The bolt head of the toroidal issue contained a fine design for Motorola software utilities
nection visible on the photograph transformer fixing does not an EPROM programmer, which Im pack now by ftp
from the mains input socket to the touch the top cover. sure many of your readers had Dear Editor Via your P.O. Box
top of the fixing of the toroidal That primary side wiring should eagerly looked forward to. Having 1414 column I would like to advise
transformer. have been segregated or built the circuit I was delighted to readers of your magazine that the
I would suggest that this connec- sleeved near the secondary note that it worked spot-on, albeit self-extracting archive file
tion should be routed to metal winding / circuits to maintain for 27C512 EPROMs only. I did ELEKT494.EXE mentioned in the
box/chassis by another path to safety insulation since these not discover this until after a few article RS232 interface for
avoid becoming an effective short- accessible connections are not months when I had to burn a 68HC11 (Elektor Electronics
ed turn if another piece of earthed earthed. 27C256 EPROM. That proved to March 1998, PC Topics supple-
equipment touches the external John H. Joy, C Eng MIEE be impossible! ment) is also available from the
Other EPROMs like the 27C64 and following Internet site:
the 27C128 can not be pro-
grammed either. The control soft- http://skynet.stack.nl/ftp/68hc11w
ware then tells me COULD NOT WRITE. g/m68hc11
If I read out the EPROM, it appears
that one or two bytes have been Thought Id better let you know!
written in spite of this error report. Martin Lemke
Are you aware of this problem?
R. Becker Thank you for this useful tip.
Actually, some time ago we
Assuming that the programmer already received information that
handles 512 EPROMs correctly this file had made it all the way
wed say that the hardware and from Munich down to a Motoro-
software are probably okay. la BBS in Australia. We are
Check the following points: pleased to see that it has now
- In the program, did you select landed at a site that should be
the right EPROM type? accessible to anyone at the cost
- Are you sure the EPROM used of a local phone call.
SWITCHBOARD
WANTED A VHF to UHF convertor, or FOR SALE Intel Prompt 48 Develop-
Switchboard allows PRIVATE READERS of Elektor Electronics one
circuits, as I have a display unit with a ment System for 8048/8748 Micro-
FREE advertisement of up to 106 characters, including spaces, com-
VHF output, and I wish to connect a controllers, with manuals 150. D.
mas, numerals, etc., per month. The advertisement MUST relate to
electronics, and it MUST INCLUDE a private telephone number or TV. Mr. T. Collins, 215 Arlott Crescent, Fittes, 8 Elisabeth Court, Warwick
name and address; post office boxes are NOT acceptable. Oldbrook, Milton Keynes MK6 2QT. CV34 6QB. Tel. (01926) 493092.
Elektor Electronics (Publishing) can not accept responsibility for any
correspondence or transaction as a result of a free advertisement or FOR SALE EPROM programmer GP FOR SALE Due to workshop clear-
of any inaccuracy in the text of such an advertisement. EP8000 75, Spectron D-586 datas- ance: 3 multimeters, transistor tester,
Advertisements will be placed in the order in which they are cope 185, Intel MDS + ICE with frequency counter, valve voltmeter.
received. Elektor Electronics (Publishing) reserve the right to refuse manuals etc. 100. P. Clark (01344) Phone for detailed list. Ken Phillips,
advertisements without giving reasons or without returning them. 868985. phone (01376) 323164 (Essex).