Professional Documents
Culture Documents
£ 2.85
PC TOPICS:
• recyclingHD drive motors •
• micrologger with PC interface •
• PC connection cables •
TV line
monitor
gradient
meter
audio DA D
DAC AC 2000
96 kHz/24 bit sampling
sampling
96 kHz/24 bit sampling
fas
astt
Inter
Internet
net
access
by
ADSL
WHEN ELECTRONICS WAS YOUNG (9)
In 1895, the German physicist Wilhelm electronics’.
Conrad Röntgen (1845–1923) accidental- Following on Thomson’s work on cathode rays, the German physi-
ly discovered a kind of radiation whose na- cist Karl Ferdinand Braun (1850–1918) modified a cathode ray tube
ture he could not determine, and which he so that its electron beam was deflected by a changing voltage. The re-
therefore called X-rays. He experimented sulting cathode-ray oscilloscope has been of inestimable value in elec-
with burst ionization and used for this pur- tronics and other scientific work and is also the basic component of a
pose a screen covered with a thin film of television receiver.
fluorescent material [BaPt(CN)4]. When As early as 1875, James Maxwell realized the potential possibili-
X-rays were passed through a human onto ties of electromagnetic waves and he predicted wave propagation with
a photographic plate, the bones were seen a finite velocity, which he showed to be the velocity of light. His theo-
as shadowed areas against the lighter flesh, ries in the famous A Treatise on Electricity and Magnetism intrigued
while metal objects, such as a ring, gave many researchers such as Heinrich Rudolf Hertz (1857–94), who in
opaque shadows. Röntgen later suggested 1877 succeeded in producing electromagnetic waves experimentally, thus
Wilhelm Conrad
that X-rays were an electromagnetic radi- Röntgen (1845...1923) confirming Maxwell’s predictions.
ation akin to light but of shorter wave- Guglielmo Marconi (1874–1937), an Italian physicist working in
length, which was proved by von Laue in 1912. Röntgen was awarded England, was interested in Hertz’s experiments and began experiment-
the first Nobel Prize in Physics in 1901 for his discovery of X-rays. Their ing himself in 1895 with a spark induction coil and Branley coherer,
study added much to physics, gave a new technique for use in medicine, and succeeded in sending telegraph messages over a short distance. He
and, after the work of the British physicists Sir William Henry Bragg patented his invention in 1896 and in 1897 formed the Wireless Tele-
(1862–1942) and his son Sir William Lawrence Bragg (1890–1971) graph Company (later the Marconi
in 1915, led to X-ray crystallography. Sadly, Röntgen died in poverty Company) to exploit the patents and to
during the period of high inflation in Germany. set up the manufacture of spark trans-
Edison found in 1884 that in an incandescent lamps in which a mitters and receivers.
metal plate was placed opposite the filament a current flowed only if Marconi continued to improve his
the plate was positive with respect to the filament. Five years later, Sir equipment and succeeded in linking
John Ambrose Fleming (1849–1945) showed that this current consist- England with France by radio in 1899.
ed of negative charges. In 1987, Sir Joseph John Thomson (1856–1940), On on 12 December 1901 he transmit-
while investigating cathode rays (the electrical discharge emitted from ted across the Atlantic from Poldhu in
an electrode under high fields in a gas at low pressure), concluded that Cornwall to a kite-born antenna set up
the rays were made up of particles, which were named shortly after- at St John’s in New Foundland and so
wards ‘electrons’ by the Irish physicist George Johnstone Stoney became a household word overnight at
(1826–1911). Thomson also found that the charge-to-mass ratio (e/m) the age of 27. In 1909, Marconi shared
Guglielmo Marconi
of these particles did not vary from one cathode material to another. the Nobel Prize for physics with Karl (1874...1927)
The discovery of the electron was really the beginning of the ‘age of Ferdinand Braun. (995089)
1 168.0
71.0
64.0
31.5
23.5
28.5
33.5
40.0
46.0
51.5
64.5
66.0
69.5
87.5
92.5
112.5
114.0
53.5
68.8
84.0
=3
99.3
114.5
129.8
=9 145.0
160.3
175.5
196.0 990044 - 16
SMC
Stepper Motor Control
Direction Direction
Tick Tick
NULL SEARCH 0, M
TICK FREQUENCY 1, M, 00050-05000 Motor 3 Motor 2
UNDER FREQUENCY 2, M, 00050-05000
OVER FREQUENCY 3, M, 00050-20000 On
Reset
BOOST 4, M, 00005-01000
ACTUAL POSITION 5, M, 00000-50000 Direction
Direction
END POSITION 6, M, 00000-50000 Tick Tick
DURATION MODE 7, M
Motor 4 Motor 1
POSITION MODE 8, M
HALT (ALL MOTORS) 9
Control
On
9
H 1 G H 2 G H 3 G H 4 G
0 1 2 3 4 5 6 7 8
990044 - F
for the high-speed phase. If more steps and the parameter With zeropoint search Table 3. Error reports
are required for the two ramps than for has been enabled. With No home sensor,
the d ifference between Actual Position on ly th e cu rren t p osition is reset to Q0 OK
an d End Position, th e m otor w ill be zero, an d a rep ort (n1-n4) is tran sm it- Q1 Wrong command
unable to reach the high-speed phase. ted. Q2 Wrong motor number
Becau se all requ ired clocks an d Q3 Wrong value
step s h ave been com p u ted after th e P C C O M M U N I C AT I O N
start, all parameters are open to modi- Th e SMC an d th e PC com m u n icate Q6 RAM checksum error
fications (with the exception of the con- th rou gh as serial lin k em p loyin g th e Q7 EEPROM checksum error
tinuous or positioning modes). following parameters: Q8 EEPROM write error
If you want to stop a running motor 9600 bits/secon d , 8 d atabits, 1 stop bit,
before th e sp in d le reach es th e en d no parity (9600,8,n,1). Using a terminal
position, you have to use the Halt com- emulation program or general-purpose
m an d . It is p ossible to issu e a N ull com m u n ication softw are for th e PC
Search command immediately after Go. (Telix, ProComm, HyperTerminal) you m1, t 500 / M1, T500 /
On reach in g th e en d p osition th e sh ou ld be able to con trol an d in terro- M1: T500: M2: T800 / Mot or 1,
m otor w ill th en au tom atically tu rn to gate th e Step p er Motor Con trol in Ti ckf r equency 500
the home position. plain ASCII. Complex sequences to be
An oth er in terestin g com m an d is p erform ed by th e step p er m otor w ill After a semicolon (;) comment may be
Int. Position (in term ed iate p osition ). require a program, however, that sup- inserted up to the end of the line:
Wh en its associated valu e equ als th at plies the relevant commands and eval-
of Actual Position, th e p rogram tran s- u ates th e variou s rep orts retu rn ed by M1, T500 ; Cl oc k f r equenc y
mits a report (z1-z4) via the serial inter- the SMC. 500 Hz f or Mot or 2 <r et >
face. This parameter may be modified SMC w an ts to receive all com -
at an y time an d as often as you w an t. m an d s eith er as a ch aracter or as a Statu s rep orts are tran sm itted in
Reports are also transmitted on reach- com p lete w ord w ith ou t n u m bers or u p p ercase ch aracters, w h ile p osition
ing the end (target) position (e1-e4) or sp ecial ch aracters. Th e system is n ot reports appear in lowercase. Informa-
zero (null) position (n1-n4), on leaving case-sensitive: tion and comment is always preceded
th e zero (n u ll) p osition (v1-v4) or on by a semicolon (;). Each line ends with
detecting an active sensor input (s1-s8). M1 / m2 / M 3 / m 4 / Mot or 2 a Carriage Retu rn an d a Lin e Feed
Th e com m an d N ull Search (tu rn to (CR-LF sequence).
spindle home position) only causes the A lin e m ay con tain m ore th an on e All commands and reports are listed
m otor to actu ally tu rn to th e h om e command provided a comma or colon in Table 2.
position if a ‘home’ sensor is available (:) is used as a delimiter: (990044-2)
controller area
network (CAN)
intelligent, decentralized data
communications in practice:
Part 3
10 1
Ub
5V 5V Ub Ub
VIN
IC5 C1
C6
V+
7
5
* JP3
K1
0 0 100n R1 1
NMV
* C7 1 5V
8 Ub
390Ω
0505SA 6
0 2 7 2
C8 AN EN
2 0 R2 7
3
IC2 6
390Ω CA OUT C3 3
JP12 3x 100n
1 6N137 4 8
NC NC
100n
4
22 18 12 0
5 9
0
D7 2 5
AD7 1 2 3 11 3 R8
D6 1 MODE TP
5V AD6
120Ω
7 5 6
D5 28 CLKOUT 5V VREF CANL
AD5 C2
D4 27 13 1 IC4
C9 AD4 IC3 TX0 TXD
D3 26 19 4
JP2
AD3 RX0 R4 100n RXD PCA
10µ 16V D2 25 Ub 82C250
AD2 8
390Ω
8 7
D1 24 14 RS CANH K2
AD1 TX1 7 2
K3 D0 23 20 EN AN
AD0 RX1 IC1 R3 2 1
D7 1 2 6 3 0
SJA1000 OUT CA 390Ω 6
D6 3 4 WR 6 C4
WR 9 5V 4 6N137 1 2
D5 5 6 E/RD 5 XTAL1 NC NC
E/RD 7
D4 7 8 CS 4 X1 22p
CS R5 5 3
D3 9 10 ALE/AS 3 R7 JP4
ALE/AS
R
8
C5
47k
D2 11 12 INT 16
INT 10 4
D1 13 14 RST 17 XTAL2
RST
D0 15 16 1 2 3
16MHz
22p
R6
* zie tekst 9
5
8 21 15
0
* see text 0
* siehe Text 0
remote frame for the relevant station, error test, and respond with
it can sen d th e resp on se d ata fram e and ACK bit or an error frame.
w ith ou t in terven tion by th e m icro- Although the communication is not Controllers with 20B capability
controller. d istu rbed , th e received exten d ed - Th ese con trollers p rocess, store, an d
With the inexorable progress of the frame data are not stored or passed on, p ass on , stan d ard -form at as w ell as
tech n ology, th e d ifferen ces betw een sin ce th e ch ip s are in ten d ed for p ro- extended-format frames.
the BasicCAN and FullCAN chips are cessin g fram es in stan d ard form at When a decision has to be made on
becoming less defined. Also, FullCAN on ly. N everth eless, th ese con trollers th e p u rch ase of a CAN con troller or
chips are becoming more powerful, so are perfectly all right for use in hybrid m icrocon troller w ith on -ch ip CAN
that they can select larger numbers of systems. controller, there is such a wide choice
in d ivid u al id en tifiers an d can store
m ore d ata registers. State-of-th e-art
CAN con troller ch ip s can sw itch
betw een th e tw o mod es of op eration
by means of software.
C O M P AT I B I L I T Y
B E T WE E N 2 0 A AN D 2 0 B
As we have seen during the discussion
of the frame formats (Part 2), there is
a Stand ard Format with 11-bit id enti-
fiers an d an Exten d ed Form at w ith
29-bit id en tifiers. Great care m u st be
taken in ch oosin g a CAN con troller
w h en both formats are u sed in a bu s
system (which is perfectly possible and
permissible).
JP11
JP12
In tel, Motorola, N SC, Ph ilip s, SGS, JP2
H1
K3 * * IC4
Siemens, and Temic, and Texas Instru- R8
R7
ments to name but a few. C3
JP4
R1
ROTKELE )C(
1-660099
C1 R3
CAN B U S I N TE RFACE C9
After th e len gth y d iscu ssion s on th e- IC2 IC1
ory and basic principles, the practical 1 0
design of a CAN bus interface can now JP3 R2 R4
R5 R6
be described in relatively few words. C2
The circuit diagram of the interface C8 C7
is sh ow n in Figure 9 an d a su itable
printed-circuit board in Figure 10. Brief
IC3 K2
p arameters of th e in terface are given
in Table 4. 990066-1
Th e CAN con troller, IC 3, is a Typ e H2
C4
SJA1000, w h ose in tern al block TP
C5 X1 C6
schematic is shown in Figure 11. This
chip is the successor of the PCA82C200
with which, in operating mode 1, it is
p in -, h ard w are-, an d softw are-com -
patible.
Th e in terface w ith th e m icrocon - Figure 11. Printed-cir-
troller can be arran ged for u se w ith cuit board for the CAN
eith er a Motorola or an In tel ch ip (or bus interface.
compatible types).
The CAN transceiver, IC4, is a Type
PCA82C250.
The microcontroller is linked to the
CAN bus interface by a length of flat-
cable, which should be not longer than Parts list
10 cm (4 in ), term in ated in to 16-p in
header K3. The pin connections of this Resistors:
connector are given in Table 5. R1–R4 = 390 Ω
R5, R6 = see text
Via th is lin k th e m icrocon troller R7 = 47 kΩ
exchanges operating data, control data, R8 = 120 Ω
an d statu s d ata, w ith th e CAN con -
troller. These data are processed by the Capacitors:
controller both in the send and receive C1–C3, C6–C8 = 0.1 µF, ceramic
d irections. The microcontroller there- C4, C5 = 22 pF, ceramic
fore ‘sees’ th e CAN con troller as an C9 = 10 µF, 16 V, radial
exten sion to its m em ory to w h ich it
Integrated circuits:
w rites op eratin g d ata to be tran sm it- IC1, IC2 = 6N137
ted, or from which it extracts received IC3 = SJA1000
operating data. IC4 = PCA82C250
Th e clock frequ en cy, w h ich is IC5 = NMV505SA (Newport/Farnell)
divided in several stages, can be mea-
sured at test pin TP, for example, when Miscellaneous:
it is to be ascertained whether the con- X1 = 16 MHz quartz crystal
K1, K2 = 9-way D connector, right-
troller can be accessed an d p ro- angled, for board mounting
grammed safely. K3 = 16-way header, right-angled, for
The serial output signal at pin 13 of board mounting, with interlock
the controller is applied to pin 1 of the JP2, JP4 = 2-way, 2.54 mm pin strip
(C) ELEKTOR
990066-1
[990066]
enhanced
TV line monitor
select and check video line contents
Design by W. Foede
1 AMPL
VID
AMP
CVBS
OUT
INV AVL
SHV VID
AVV
&
CVBS LINE
LINE TRIG
1 D Q 16MHz OUT
AMPL
VID SHV RS
AMP AS C Q
C16 ADC
& R
VID
XSHE
AR C
(DAC)
XSHW
D0-D7 XP0-XP7
1 D Q
CVBS IN
RS ACTR 8 BIT
D Q C Q
DFF XSV R +
CVBS LINE LOGIC COMP
C Q
R
10 BIT
XSVE
A0-A9 MEM
A7
&
A9 RD/WR Q D
XSVW
AMPL DC-OFFSET LINED DFF
Q C
R
C16
1 D Q
DFF SYNC MUX
C Q
R
XODD
& HSYNC
XSHE
XSHE LINE
C Q D 1 C
UNITS
H001 XODDW DFF XU0-XU3 U0-U3
PCTR V624 UTH
Q C
+ R CTR
LOGIC +
EPM7064SLC44-12 LOGIC 11 BIT
TENS
MUX AR XT0-XT3 T0-T3
8 BIT XSVE COMP
DOWN AVV
HUNDREDS
AVL
PR312
NIL XH0-XH2 H0-H2
XP0-XP7 11 BIT
990007 - 12
47Ω
IC5
7805
1k
10µ 16V 100n 10µ 16V 100n D11 D10 C22 C27
14 15 18 13 11 C10 C11
D7
6V / 3VA
A A A D D 4x 1N4001 100µ
25V
100n 100n 10µ
16V
3 D0
D0
VIN 19 4 D1
VIN D1
5 D2
IC4 D2
C16 12 6 D3
CLK D3
ADC1175 D4 7 D4
22 CIJM 8 D5 5V
VRBS D5
23 9 D6
VRB D6
10 D7 C5
17 D7
VRT S2 S1
16 1 LINE
VRTS OE 100n HSYNC NON
INTERLACED
C14 C12 A A D D 3 15 23 35
5V
D0 39 11
20 21 2 24
100n 100n D1 38 13
D2 37 R18 R19
C9
10k
10k
D3 36
D4 34
IC3
4x 10k 1 R24 4x 10k 1 R23 100n
D5 33
5V 28
D6 32
D7 31 EPM7064 29 A5 10 26
LC44-12 A0 CS2
S3 2 3 4 5 2 3 4 5 28 A4 9
8 U3 2 A1
27 A6 8
4 U2 44 A2 11 D5
26 A9 7 D0
A3
UNITS
2 U1 1 IC1 12 D3
25 A7 6 D1
1 U0 43 A4 13 D1
21 A0 5 D2
C A5 15 D0
19 A1 4 D3
A6 RAM 16 D2
S4 18 A2 3 D4
A7 12ns
8 T4 8 17 D4
20 A3 25 D5
4 T3 6 A8 6164 18 D6
24 A8 24 D6
A9
TENS
2 T2 5 19 D7
21 D7
1 T1 4 14 HVSYNC A10
23
C 16 VID A11
2 20
17 SHV A12 CS1
S5
8 H2 12 WE OE
27 14 22
HUNDREDS
4 H1 9 40 LINE
LINE
2 H0 7 41
1
2 3 4 5
C D5 D6 D4 10 22 30 42
C16
R20 K3
3x 4x 10k 1 R22 LINE
1k
C16
1N4148
VIN
R15 5V 5V
HVSYNC
VID
SHV
75Ω
C6 R5
R14 R17
8 D3
1k
D2
390Ω
75Ω
2µ2 5V
16V 16MHZ
1N4148 1 IC2 5
OE
R13 P3 C16 R6 1N4148
T1
C7 CW SG531P
100k
75Ω
P1
250Ω 100n 4
CW 5k
K1
BC550
5V
R8 R10
4k7
1k
K2 T3 5V
T4
T2 BC560 C4 R9
C1
1N4148 560Ω
D1 R3 R4 330n
100Ω
100Ω
2µ2 BC560
16V BC550
CW R7 R2 R1 P2 R11 R12 SHV
C2 CW C8
4k7
100k
270Ω
220k
4k7
P4
250Ω 500Ω
100n 220p
990007 - 11
P1
K2
K1
R1
C1
R6
P4
C6
R3
T1
R2 C4
D1
P3
P2
C2 R4
T2
R5
D2
D3
R7
C5
R8
C7
R10 R11
T3
C8
T4
R9
R13 R12
S1
990007-1
IC1
S2
C9
IC4
R14
R17
IC3
R24
S3 R23 S4 R22 S5 D5
D7
C17
D6
K3
C11
IC2
C27
H1
TR1
C22 IC5
D8
D11
D10
C10
D9
ed ge of th e vertical syn c p u lse XSVE reset by the leading edge of the frame switches, the comparator generates the
th at falls w ith in th e tim in g w in d ow syn c p u lse. Dep en d in g on th e settin g LINE signal. This signal passes through
XSVW. of the mode selection switch ‘NIL’, this a flip-flop that is clocked by ACTR (and
is eith er th e XSVE p u lse (n on -in ter- the 16-MHz clock) such that the line to
Line selector laced mode, lines 1 through 312) or the be m on itored is d isp layed startin g
Th e block labelled ‘UTH CTR’ is a XO DD pulse (interlaced mode, lines 1 eith er at th e begin n in g of th e visible
th ree-d igit BCD cou n ter th at is also through 625). horizontal line (aligned to the TV pic-
clocked by XSH E. Th e on es an d ten s The UTHCTR outputs drive a com- ture) or offset by a visible synchronisa-
d igits have four bits each, while three p arator w h ose secon d set of in p u ts is tion pulse, d epend ing on the position
bits are su fficien t for th e h u n d red s con n ected to th ree th u m bw h eel of the HSYNC switch. The signal from
d igit, sin ce th e h igh est p ossible lin e switches. When the current line num- the flip-flop, with appropriately modi-
n u m ber is on ly 625. Th is cou n ter is ber m atch es th e n u m ber set in th e fied timing, is labelled ‘LINED’. It pro-
gradient* meter
based on the recently introduced
Type ADXL105 from Analog Devices
An integrated
accelerometer circuit
such as the ADXL105
from Analog Devices,
although intended pri-
marily for measuring
acceleration and
deceleration, may
readily be used for
gauging gradients* . If
the circuit is to be
used out of doors, its
temperature compen-
sation must be
adapted accordingly.
Design by P. Porcelijn
* Also, especially in USA and Canada, grade: a part of a road or railway that slopes upwards or downwards, an incline. It also indicates the measure of such
an incline (normally as a percentage).
100k
5V
220k
3 1µ 1
270k TOUT
4
amplifiers and some R1 UCAOUT
12
5 6 11
passive components. 6
270k
7
R4 VIN
IC2
IC3b 68k 10
7 5 VNIN DVM
R3 ADXL105
8 8
P1 68k AOUT
9 200k 6
ST
10 3 9
VMID
linked to the circuit via box header K1. 11 1 R5
IC3a 5V COM COM
It will also be seen that, whereas the 2
390k
12
4 7
accelerom eter com p rises ju st th e 13
14
ADXL05 ch ip an d th e DVM m od u le,
P2
the gradient meter has two additional
10k
op eration al amp lifiers (op amp s), on e
of which is needed for the temperature
compensation circuit. 5V LP2950CZ5.0
Accord in g to th e m an u factu rer ’s 1 1
INHI D1
2 2 1N4001
sp ecification , th e temp eratu re d rift of 3 3
INLO DVM IC1
th e ADXL105 is abou t 1 mV °C –1, th at 4 4
VDD DMP951
VCC
is, roughly 60 mV over the entire tem- 5 5
COMMON S1
p eratu re ran ge. Sin ce th e error in th e 6 6
BL+
7 7
grad ien t m eter is am p lified ×4, th e 8 8
REFLO
w ith a toleran ce of ± 0.1 V (t is th e Figure 2. Printed-circuit board for the gradient meter
ambient temperature). which is, however, not available ready made.
Th e ou tp u t of th e sen sor is m od i-
fied to a usable value with the aid of a
compensating circuit based on op amp
BT1
S1
-
IC3b. This circuit enables the tempera-
2
HO1
HO
D1
Parts list
–8 mV °C–1 and + 8 mV °C–1 with P1. In IC1
P3
C2
R5 R6
been used, but that would have made R1, R2 = 270 kΩ R3
the calibration fairly tedious. R3, R4 = 68 kΩ
R4
R6 = 220 kΩ
divider in the ADXL105 has an output IC2
P1 = 200 kΩ, 10-turn preset
impedance of 10 kΩ. This is rather high P2 = 10 kΩ, 10-turn preset R2
C3
1
for the present application, particularly P3 = 100 kΩ, 10-turn preset R1 990067-1
since the output voltage is also used for
K1
P1
HO2
ROTKELE )C(
DVM
C2 = 10 µF, 16 V, radial
O F F S E T AN D GAI N C3 = 0.1 µF, ceramic
C4 = 1 µF, metallized polyester
The passive components in the circuit
diagram not yet dealt with form part of Semiconductors:
the offset compensation and requisite D1 = 1N4001
amplification circuits.
The offset error of the ADXL is not Integrated circuits:
in sign ifican t: it m ay be as h igh as IC1 = LP2950CZ5.0
± 625 m V. Fortu n ately, com p en satin g IC2 = ADXL105JQC
IC3 = TLC272CP
for this is easily achieved by injecting a
variable direct current into VIN (pin 11) Miscellaneous:
via resistor R5 an d p reset P 2. At u n ity BT1 = 9 V battery with connecting clips
gain , th e ran ge of th is p reset is
1
Amplification
Th e am p lification sh ou ld be set w ith
th e grad ien t m eter on a grad ien t
(grad e). Th e d iscu ssion in th e box
sh ow s th at th e ap p roxim ation
traversed is 20% (a steep er in clin e is Care should be taken to ensure that the sin α≈ p/100 has an error that increases
seldom encountered on normal roads), sen sor is sold ered level on th e board , in d irect p rop ortion w ith α. For
th ese tw o qu an tities can be equ ated sin ce for correct op eration it m u st be instance,
very satisfactorily. parallel with the board. at p≈ 0%, the error is 0%,
Sin ce th e sen sitivity of th e Th e voltm eter m od u le is lin ked to at p≈ 10%, the error is 1%,
accelerom eter IC is 0.25 V g–1, its ou t- the circuit via box header K1. If a mod- and at p≈ 20%, the error is 2%.
p u t voltage in volts is a qu arter of th e ule other than specified is used, it may Th e error m ay be m in im ized by cali-
m axim u m grad ien t in p er cen t. Th is be p ossible to om it K1 an d sold er th e brating at about the centre of the mea-
means that all that needs to be done is module terminals directly to ‘DVM’ on su rin g ran ge, rath er th an at th e
to m ake th e ou tp u t voltage of IC 2 in the board. extrem es. A sim p le calcu lation sh ow s
volts equal to the gradient in per cent. Th e com p leted board fits n icely in th at th e m axim u m error can be
A sim p le calcu lation sh ow s th at th is th e sp ecified en closu re. Note th at th e brought down to 1% if calibration takes
requires an amplification of ×4, which fixin g bosses in th e en closu re are n ot p lace at a grad ien t of abou t ×1/1.4
is set with resistors R3 and R6. Any tol- u sed : th e board is sim p ly screw ed (0.712) th e m axim u m . So, if th e m axi-
eran ces are com p en sated w ith p reset d irectly to th e bottom . Good care m u m is taken as 20%, calibration
P 3 in series with resistor R6. Any inter- should be taken because it is a tight fit- should take place at a gradient of 14%.
feren ce is m in im ized by cap acitor C 4, ting. The gradient is readily obtained by
w h ose valu e is ch osen su ch th at th e Before the board is fitted in the case, fixin g (ad h esive tap e) th e grad ien t
reaction of th e circu it to varyin g cir- d rill th ree h oles in th e top lid so th at meter at the centre of a 1 metre (39.3 in)
cumstances is not unduly delayed. p resets P 1–P 3 are accessible from th e long strip of straight wood. A gradient
outside. of 14% is obtained by placing one end
CONSTRUCTION of the strip of wood 14 cm higher than
Bu ild in g th e grad ien t m eter on th e P O WE R S U P P LY th e oth er en d . Wh en th is is d on e,
p rin ted -circu it board in Figure 2 is The DVM module is powered by a 9 V adjust P 3 until the DVM module reads
straigh tforw ard . N ote, h ow ever, th at d ry or rech argeable battery. Th e bat- the percentage gradient of 14%.
this board is not available ready-made. tery voltage is red uced to 5 V by volt- [990067]
BASIC Stamp
programming course (3)
part 3: BASIC programming
In this instalment we’ll Vin
introduce BASIC 13
P15
Stamp branching and
Servo
EEPROM access
VDD
commands used to 10k
VSS
make your BOE-Bot P12
follow a pre-deter-
mined path. A piezo- Piezo
Speaker
speaker will provide a 3300µF
feedback mechanism
VSS
to identify the location Vin
within your program.
We’ll also introduce a P3
Servo
mobile temperature
logger as an optional 10k
learn synchronous
Parts List.
serial communication. Figure 13. Basic con-
trol and feedback 1 Complete BOE-Bot (robot built on
schematic. Elektor Electronics Board of
Education)
1 Piezospeaker
1 3300µF capacitor
2 10kΩ resistors (optional in circuit)
M O VE M E N T U S I N G
S U B RO U TI N E S AN D
Attenti on. An i mportant Correcti on MEMORY
regardi ng the Elektor Electroni cs BOE- Movem en t is on e of th e m ost d istin c-
Bot development board appears else- tive features of robots, and it is also an tines, read movement patterns from an
where in this issue. id eal w ay to learn h ow to stru ctu re EEPRO M, kn ow h ow far to travel
an d w rite a sim p le PBASIC p rogram . u sin g a for-n ext loop , an d h ow to get
This experiment is all about BASIC pro- back to your starting point (physically,
gram m in g as it p ertain s to BO E-Bot an d w ith in you r sou rce cod e). Th e
m ovem en t w ith ou t sen sor in p u t. parts we will be using are listed in the
Structuring your program so the BO E- Parts List. The complete schematic for
By Chuck Schoeffler, Ph. D., Bot m oves as you in ten d requ ires an programs used in this column is shown
Ken Gracey and Russ Miller u n d erstan d in g of h ow to call su brou - in Figure 13.
got o f or war d ‘ j ump t o t he 400 500 600 700 800 900 1000 1100 1200
f or war d r out i ne Pulse Out Value (µs) 990050 - 3 - 13
Knowing the rotational speed of different pulse widths will allow you to determine a specific travel distance. For exam-
ple, a pul sout command of 850 causes the servo to turn at about 50 revolutions per minute (RPM) or 0.83 revolutions/sec.
Therefore the speed of the robot will be about:
Once the program is working try to use the write command to save temperature readings to the EEPROM, and read to
receive them back and display on a debug terminal.
battery charge/refresh
station (2)
construction, adjustment
and practical use
Last month’s arti-
cle, which
describes the fea-
tures and circuit
diagram of the
battery
charge/refresh
station, clearly
suggests that
completing such a
project, with peak
charging currents
of up to 8 A, is a
bit more demand-
ing than for a
device with fewer
automatic features
and relatively lower performance. The construction information given
here is thus especially important if you wish to obtain a good result. In
addition to descriptions of the construction and the microprocessor-con-
trolled, menu-driven alignment procedures, you will find many helpful,
practical tips regarding battery charging and maintenance.
Before starting, you should understand should not have any difficulty with this
that the battery charge/refresh station p ow er p roject, as lon g as you w ork
is n ot a su itable p roject for begin n ers. carefully.
In ad d ition to th e relatively com p lex
electronics and several alignment pro- CONSTRUCTION HINTS
cedures, the relatively high output cur- The charge/refresh station is built using
rent (8 A peak maximum!) of this high- two single-sided printed circuit boards,
performance charger can result in sig- as shown in Figures 4 and 5. These are
n ifican t d am age in case of a sh ort supplied as a set and thus have a single
circu it. H ow ever, if you h ave alread y ord er n u m ber in th e com p on en ts list.
Design by N. Bechtloff & G. Brenner successfully built a high-power ampli- One disadvantage of using single-sided
(Conrad Technology Center, CTC) fier or a laboratory power supply, you board s is a relatively large n u m ber of
R77 C11
990070-1a
K2
R79
P3 H5 H8
R46
D6 R78
C30 X1 R45
A R44
C13
R4
R5
R43
B
R42
R74
R58
R26
IC5 S3
R6
R9
T1 C R41
H3
R40
D C29
R39
T7
E R38
C28
D7
D13
R82 R48
D4 S2
R49
D12
D11
F H6
JP1 H7
R57 R50
C12
D5
H4
D19
IC6
S1 C16
R62 R65 R55
D9
R70
R61
(C) ELEKTOR
990070-1a
b1-070099
A7
A8
R33
C25
F1
C1
R36
F2
F3
R37
6.3AT
6.3AT
R3
T
C8
R14
R16
R15
~
R2
~
D1
K3
T3
ACCU
-
D14
D17
D16
D15
D18
R71
K5
C26
C22
R72
+
FAN
C27
O
T
C4
K4
R32
R31
R30
R21
P1
R19
F
C3
R20
C2
IC1
C7
R11
A
D3 R7
R29 R8
D
D2 R12
T2
R24
C19
R10
+
R25
C5
C
R17
Z
R22
.
IC2
R23
V
R1
C23
C6
R18
E
A6
A5
990070-1b 990070-1b
AL I G N M E N T
Th e first task is to m atch R72 to th e
actual CPU cooler used. The controller
need not be installed for this. Connect
the fan to K4 and measure the voltage
across K4. If this differs from the nom-
in al fan op eratin g voltage (u su ally
12 V) by m ore th an 1 V, th e valu e of
R72 m u st be ap p rop riately m od ified .
For testin g, you can briefly u se stan -
dard 1/3-W resistors if you do not have
a suitable stock of 2-W or 5-W resistors.
Th e fastest w ay to d etermin e th e cor-
rect resistan ce is to first sold er in a
resistor with too high a value (such as
47 Ω) an d th en h old a secon d resistor
by hand ‘across’ this resistor (in paral-
lel) while observing the voltage at K4.
Start w ith a relatively h igh valu e for
th e secon d resistor, an d th en try su c-
cessively lower values until the correct
fan voltage is obtained . Next measure
th e effective resistan ce of th e p arallel
resistors, and then solder a 2-W resistor
w ith th is valu e in p lace on th e circu it
board.
The controller is also not needed for
the alignment of the temperature mon-
itoring circuitry. First brin g th e
u n m ou n ted N TC sen sor (w ith a cold Figure 6. Top view of
resistan ce of 500 to 1000 Ω) to th e the prototype.
d esired cu toff temp eratu re, an d mea- com p on en ts m u st be w h ere it w ill m easu re
sure its resistance at this temperature. in stalled , in clu d in g th e th e ou tp u t cu rren t of
Choose a resistor with the same value con troller an d th e LCD m od u le. To th e battery ch arger flow in g th rou gh
for R80, an d m ou n t it on th e board . start th e m icrocon troller-con trolled the meter. Since the current is pulsed ,
Mount the NTC sensor where the tem- align m en t p roced u res, p u t S1 in th e tru e-RMS m eters w ill give som ew h at
perature is to be monitored, such as on ‘NiCd’ position (closed), set S2 to posi- d ifferen t read in gs th an ord in ary
the transformer or the heatsink. If you tion ‘6’, in stall ju mp er JP1 an d sw itch m eters, bu t th e d ifferen ces are sligh t.
w ish to m on itor th e battery tem p era- on the charge/refresh unit. Now adjust Ad ju st th e ch arge an d d isch arge cu r-
ture d uring charging, the NTC sensor P3 (d isp lay con trast) for th e best legi- rents as follows:
must be fastened to the battery (using bility. Th e d isp lay w ill read ‘START
an elastic or sticky tap e, for examp le), SELFTEST’. Remove JP1. 1. Press S3. Th e d isp lay w ill read
an d th e cu toff temp eratu re sh ou ld be A mu ltimeter w ith a cu rren t ran ge ‘CH ARGE = 3 A MAX’. Ad ju st th e
arou n d 45°C. If th e tran sform er or of 3 to 10 A d .c. is n eed ed for th e fol- indicated value of the current to 3 A
heatsink is monitored , the cutoff tem- lowing alignments. Connect it between using P2.
perature can be 60° to 90° C. th e p ositive an d n ega- 2. Press S3 again . Th e
For th e rem ain in g align m en ts, all tive term in als of K5, Figure 7. Front view of d isp lay w ill read
the prototype.
2 9
MODE 1 10
# OF CELLS
990070 - F
Figure 8. Suggested
front panel layout
‘CH ARGE = 2 A MID’. Th e in d i- be greater than 1800, (reproduced at 75% of no battery is connected,
cated valu e sh ou ld rem ain at 3 A or th e d isp lay m u st true size). p ressin g S3 h as n o
however. read ‘OVER-VO LT- effect. N ow select th e
3. Press S3 again. The display will read AGE’ (th e d isp layed battery typ e w ith S1
‘CH ARGE = 1 A MIN ’. Th e in d i- values d epend on the no-load volt- an d th e n u m ber of cells w ith S2 (1 to
cated value should be within 10% of age of the transformer). 10), and then connect a battery or bat-
1 A. Disconnect the meter. 6. Next, short the positive and negative tery p ack. As soon as th e m essage
4. Press S3 again. The display will read terminals of K5 together to produce ‘ADJUST: CHARGE’ appears, you have
‘ADJUST 1.800 A’. Con n ect a fully- an intentional short circuit. The dis- five seconds to press S3 to select a dif-
charged battery con tain in g 4 to 8 p layed valu e m u st be less th an 10, feren t p rogram (see th e ‘Program
cells togeth er w ith an am m eter in and the polarity error indicator (LED modes’ box). If S3 is not pressed within
series with the battery (between the D6, ‘w ron g p olarity ’) m u st ligh t. five seconds, the CHARGE program is
positive terminal of K5 and the pos- Remove the short circuit. au tom atically started . If on th e oth er
itive terminal of the battery). Adjust 7. Press S3 again. The charger will now h an d S3 is p ressed , a n ew p rogram is
P1 for a ch argin g cu rren t betw een be in th e n orm al op eratin g m od e, selected each time it is p ressed , in th e
1.78 an d 1.82 A. Discon n ect th e and the display will read ‘NO ACCU sequ en ce CYCLE, ALIVE (= refresh ),
meter and battery. TO SERVE’ (‘accu’ = battery), since CHARGE.…. If S3 is not pressed again
5. Press S3 again. The display will read no battery is connected. w ith in five secon d s after th e last time
‘OVER-VOLTAGE’. Set S2 to position it was pressed , the ind icated program
‘8’ (8 cells). Th e d isp lay w ill read O P E R AT I O N is started and charging is activated, as
‘IN:xxxx EMP:1220’. The value ‘xxxx’ Switch on the charge/refresh unit with in d icated by th e m essage ‘START
must be greater than 1200. Next put n o battery con n ected . It w ill d isp lay CH ARGIN G’. After an ad d ition al 15
S1 in th e ‘N iMH ’ p osition (op en ). ‘N O ACCU TO SERVE’, w h ich in d i- secon d s, th e load ed cap acity is in d i-
Now either the value of ‘xxxx’ must cates that it is read y to use. As long as cated by the message ‘CCAP = xxmAh’
(for example, ‘CCAP = 1.8mAh’, where
‘CCAP ’ stands for ‘charged capacity ’).
A n u m ber of d isp lays can be
Ca p a ci t i e s brou gh t u p d u rin g th e ch argin g
p rocess by p ressin g th e fu n ction bu t-
The measure of the status of a battery is its capacity, which means the total ton. First the selected program mode is
current that can be drawn from it, expressed in ampère-hours (Ah) or mil- d isp layed for abou t tw o secon d s
liampère-hours (mAh). There is a relatively strong dependence between the (‘CHARGE MODE’, ‘CYCLE MODE’ or
capacity and the level of the discharge current. The lower the discharge cur- ‘ALIVE MO DE’), follow in g w h ich th e
rent, the lower the losses during discharging, and thus the higher the capac- d ischarge capacity DCAP is d isplayed
ity. When buying batteries, you should pay attention to the discharge current for abou t five secon d s if ch argin g is
at which the capacity is specified by the manufacturer. In this regard, the con- takin g p lace (for exam p le, ‘DCAP =
cept ‘C-rate’ is often used, in which the current level (in A or mA) is specified 0.0mAh’), and then the charged capac-
as a fraction of the rated capacity (in Ah or mAh). For example, a capacity of 1 Ah ity CCAP is displayed. For discharging,
th e d isp lay sequ en ce after th e p u sh -
at C/10 (0.1 C) means that the capacity was measured at a discharge current
button is pressed is different; after the
of 100 mA. If a different manufacturer specifies the same capacity at a higher
m od e d isp lay, CCAP is d isp layed fol-
C rate (such as C/3 = 0.33 C), the latter battery is in principle better. In this
low ed by DCAP. If n o m easu rem en t
example, if a capacity of 1 Ah is achieved at a discharge current of 333 mA, d ata are available, su ch as for DCAP
you can rest assured that the capacity at 100 mA will be higher. w h en th e battery is bein g ch arged in
You should not overlook the fact that this high-performance charger works with the CHARGE program, the value ‘0.0’
a high discharge current (initially 1.5 A, dropping to 0.5 A). The measured is displayed.
capacity under these conditions applies to high-current loading of the battery Th e ch argin g p rocess en d s w h en
and will thus always be somewhat lower than the value specified by the man- th e battery n o lon ger accep ts an y
ufacturer, except for large and/or very high-performance batteries. charge. In the CYCLE and ALIVE pro-
The amount of current accepted by the battery while it is being charged does gram s, th e d isch arge p rocess starts at
not give any particular indication of the capacity of the battery. It is always this time, as ind icated by the message
higher than the battery capacity, since part of the charging current is lost in ‘START DISCH ARGE’; oth erw ise th e
the form of heat, increasingly as the charging process nears completion. message ‘CHARGER FINISHED’ indi-
cates th at th e battery m ay be d iscon -
ou tp u ts are th en ad d ed , p assed
th rou gh a d igital-to-an alogu e con - b
224 channels of 4.3125 kHz each
verter (DAC), and filtered before being
passed to the transmission network.
P
Discrete Mu lti-Ton e m od u lation is 4,3125 kHz QAM modulated
very similar to Coded Orthogonal Fre-
qu en cy Division Mu ltip lex (CO FDM) ISDN
FREQUENCY SPECTRUM
Currently, the most widely modulation
u sed is DMT. As is to be exp ected , an
ADSL-DMT sign al con sists of a great
number of time-domain sub-channels
th at are su p erim p osed on to th e 1 2 3 ...... 25 26 27 28 29 ....... 254 255 256
twisted-pair copper telephone wires. A
d iagram m atic rep resen tation of th e
resu ltin g sp ectru m is sh ow n in Fig-
ure 1a. Th e ADSL Stan d ard p rovid es 0.3 4 26 138 1130
for the frequency range of 0–26 kHz to Downstream & Upstream Downstream
be left free for the analogue telephone
f [kHz] 990065 - 11c
service (PO TS= Plain
Old Telephone Service – Figure 1. Spectrums with the use of ADSL technology:
colloqu ial). Th e (a) analogue telephony 256 channels. However, in
26–1130 kH z ban d (frequency division multiplex—FDM) p ractice, ow in g to attain -
accommod ates 256 su b- (b) ISDN telephony (frequency division multiplex—FDM) able signal-to-noise ratios,
ch an n els each on ly abou t h alf of th is
(c) analogue telephony
4.3125 kH z w id e. Th e capacity can be used.
(operation with echo compensation)
cen tres of th ese su b- Wh en n oise levels
ch an n els are also sep a- are h igh , or con n ection
rated by 4.3125 kHz. relevant channel: (128-QAM, 64-QAM, cables are very long, the signal space is
The individual carriers in the down- 32-Q AM, 16-Q AM, 8-Q AM, Q PSK). red u ced to an exten t w h ere secu re
stream and upstream ranges are quad- The larger the signal-to-noise ratio, the com m u n ication is m ain tain able. Th is
ratu re am p litu d e m od u lated 1) an d larger th e sign al sp ace an d th u s th e m ean s th at th ere m ay be ch an n els
carry betw een 2 bit/s/H z an d n u m ber of bits rep resen tin g a tran s- w h ich , ow in g to p revailin g n oise or
15 bit/s/Hz. The allocation of this rate of mitted symbol. high attenuation, are useless.
information is adaptive, that is, during Clearly, each ch an n el in th e sign al The standard foresees two possible
the initialization process the individual can transmit up to 64.7 kbit/s, which, in m ean s for allocatin g th e ch an n els to
carriers are allocated variou s sign al th eory, gives a m axim u m cap acity of th e d ow n stream or u p stream ban d :
spaces, depending on the noise in the m ore th an 16 Mbit/s in th e case of relatively straigh tforw ard Frequ en cy
N 2N P Cyclic
Data
In Encoder IFFT Prefix DAC
S Add
Tx/Rx-
Echo Signal
Canceller Di-
plexer
Data N 2N P Cyclic
Out Decoder FFT Prefix Equalizer ADC
S Drop
Bit
Loading 990065 - 13
Table
4 High Speed
termination modem
Downstream
Data Data
Downstream Downstream
Tx Splitter Splitter Rx
highpass highpass
Control Control
Data Data
Upstream Upstream
Rx cable Tx
lowpass lowpass
switchboard
990065 - 14
cable
155 Mbit/s Splitter Splitter
ISDN
NTBa ISDN
POTS
switchboard
990065 - 15
AD S L LI TE M O D E M POTS
Sh ortly after th e ADSL Stan d ard h ad
been p u blish ed by AN SI in 1997, a
n u m ber of m an u factu rers, in clu d in g switchboard
990065 - 16
Microsoft, Intel, and Compaq, formed
th e Un iversal ADSL Workin g Grou p
(UAWG). One of the aims of this group
was to get rid of the splitter, since this w h ich can h an d le th e V.90 an alogu e 4) Th e backbon e is th e major tran smis-
sion p ath of a Pu blic Data Netw ork
would mean a substantial saving at the standard as well as the ADSL standard.
(PDN ).
exchange on the Subscriber Line Inter- Most of these modems can be adapted
face (SLIC) and at the subscriber ’s end via firm w are* in case of stan d ard
5) Strictly speaking, firmware is system
on th e ATM Eth ern etw ork card —see updates. software held in read-only memory
Figure 6. It sh ou ld be born e in m in d (ROM).
th at th e ADSL sp litter is a costly u n it. AN D TH E F U TU RE ?
Th e con sequ en t G.Lite or Un iversal Tech n ology d oes n ot stan d still, an d
ADSL m od em is stan d ard ized by th e already there are countries where Very
ITU in the ITU Standard G992.2 – Split- h igh rate ADSL—VDASL—is bein g References:
terless ADSL. d evelop ed or market-tested . With th e
Apart from the introduction of this ad ven t of fibre tech n ology, th e lin e ANSI T1.413: Network and Customer
m od em , th e n u m ber of ch an n els is im p ed an ce is bein g greatly red u ced . Installation Interfaces – Asymmetric
red u ced from 256 to 128, th e n u m ber Th is allow s for very m u ch h igh er bit Digital Subscriber Line Metallic Inter-
of bits per second per Hertz is reduced, rate services: currently expected to be face. Issue 1, 1995. Draft Issue 2, Decem-
so that the signal space is smaller, the 52 Mbit/s d ow n stream an d 3.2 Mbit/s ber 1998.
d ow n stream bit rate is red u ced to u p stream (w ith a cop p er tail of, p er-
1.5 Mbit/s, although the upstream can h ap s, 100 m etres) w ith in a few years’ RFC 791: Internet Protocol
still be sent at 500 kbit/s. Furthermore, tim e. Su ch rates w ill m ake MPEG-2
the output level is reduced to such an data transmissions possible. ITU G992.1 (G.dmt) Asymmetrical Digi-
exten t th at p ow er con su m p tion an d [990065] tal Subscriber Line (ADSL) Transceivers.
th e requ isite lin earity of th e an alogu e
d river stages are m od erated sign ifi- Notes: ITU G992/2 (G.lite) Splitterless Asym-
can tly. As a bon u s, th is also h elp s to 1) Q u ad ratu re Amp litu d e Mod u lation metrical Digital Subscriber Line (ADSL)
keep th e an alogu e telep h on e traffic (Q AM) d igital is a varian t of Q u ad ra- Transceivers.
alm ost en tirely free of in terferen ce. tu re Ph ase Sh ift Keyin g (Q PSK). In
An d last, bu t n ot least, w ith an ADSL Q PSK, qu ad ratu re p h ase sh ift of th e DSL Simulation Techniques and Stan-
Lite mod em, op eration is in Category carrier is u sed to con vey tw o bits of dards Development for Digital Subscriber
2 of th e AN SI Sp ecification , w h ich d ata in th e same ban d w id th as on e Line Systems, by Walter Y Chen,
m ean s th at th e u p stream an d d ow n - bit. In Q AM d igital, th is is exten d ed MacMillan Technical Publishing, Indi-
stream sections share the lower ADSL by obtain in g 8, 16, 32, 64, 128, 256 anapolis, IN, 1998
frequ en cy ran ge by m ean s of ech o p h asors from th e same carrier fre-
com p en sation . Th is gu aran tees good qu en cy to rep resen t 8, 16, 32, 64, 128, ADSL and DSL Technologies, by Walter
tran sm ission coefficien ts on th e in d i- 256 u n iqu e bin ary cod e p attern s, each Goralski, McGraw-Hill, New York,
vidual carriers. of 3, 4, 5, 6, 7, 8 bits. 1998.
It is interesting to note that splitter-
less ADSL tech n ology is m u ch m ore 2) Forw ard Error Con trol (or Correction ) Integrated Services Digital Networks, by
is a tech n iqu e in w h ich th e mean s to
popular in Anglo Saxon countries than Hermann J Helgert, Addison Wesley
d etect bit errors is con tain ed w ith in
in continental Europe. Publishing Company, Reading, Mass.
th e tran smitted message stream th u s
1991.
allow in g th e receiver to correct th e
CONCLUS ION
errors w ith ou t requ irin g retran smis-
Now the ADSL technology has proved sion of th e d ata. ISDN: Concepts, Facilities, and Services,
itself am on g com m ercial u sers, it is by Gary C Kessler and Peter V South-
clear that it can lead to better use of the 3) It should be noted that echo cancella- wick, McGraw-Hill, New York, 1998.
telep h on e system , p articu larly as tion is beneficial only whenever the
regard s access to th e In tern et, by same frequency is used for bidirec- ADSL/VDSL Principles, by Dennis
d om estic su bscribers Even w h en tional traffic .When different subchan- Rauschmayer, Macmillan Technical
downstream rates of only (!) 1.5 Mbit/s nels are used for different directions, Publishing, Indianapolis, IN, 1999.
are attain able, th is gives a 27-fold echo cancellation is superfluous. In
in crease in d ata rates com p ared w ith that case, the UTP becomes three ADSL: Standards, Implementation and
those provided by a 56 kbit modem. access points: one for speech, one for Architecture, by Charles K Summers,
Current modems for domestic sub- upstream data, and one for down- CRC Press, London & New York,
scriber u se are of th e h ybrid typ e, stream information. 1999.
Design by T Giesberts
4 3 L
Coax 24-Bit 24-Bit 24-Bit 26 / 42 kHz
32...96 kHz 8x oversampling Third-order
Digital Reset Digital Sign-Magnitude I/U Lowpass
Audio Interpolation Audio DAC Converter Post Filter
Receiver De-emp. Filter 3
Optical (CS8414) (DF1704) (2x PCM1704) (2x OPA627) (2x OPA627)
R
4 12 3
Mute
Reference
Double Bandwidth
Clock
+12V +5V
+5V Analog
Digital Analog (DAC)
Power Supply Power Supply Power Supply
-12V -5V 990059 - 11
4Ω7
the output relay and to switch the dig- 2 4 5 6
100n
R2
R6
5V
10k
ital filter to the mute mode. 47µ
220Ω
C6 C7 C4 C5 L4
The reset pulse for the receiver and TORX173
d igital filter is gen erated by n etw ork 10µ 63V 47n 10µ 63V 47n 47µ
JP1
R6-C13 and inverted by the GAL. 7 22 C14 C15
75Ω
5 27 2 22
DIP sw itch es d eterm in e th e variou s 6
E1 F2
2 3
F2
IC5
OUT2
21
C2 E0 F1 F1 OUT3
settin gs of th e filter as regard s th e 10
RXN F0
3 4
F0 OUT4
20
28 25 5 19
input and output formats, the number 10n VERF
CS8414
ERF
16 6
ERF OUT5
18
C3 R3 SEL RST OUT6
of bits, the filter characteristic, and oth- 470Ω
20
FILT CBL
15 7
SEL
GAL
DBW
17
1 19 8 16
ers. 68n
14
C MCK
12 9
MUTE
15 K3 5V
U SCK DEEM
Th e d igital filter d rives tw o DAC 5V 13
FCK FSYNC
11 10
RESET
14 1 2
26 11 22V10 13 3 4
chips: one for the lefthand and one for D
SDATA
A 5 6
L3
the righthand channel. These chips can 8 21 12
7 8
9 10
be set by h ard w are w h ich w ill be 47µ 11 12
reverted to later. IC3 1 8
+5V 22Ω
R7 13 14
R10 15 16
The output of each of the DACs is a OE 5V 22Ω
R9
5 22Ω
pure current source. The type specified C10 C11
OSC C12 14
22Ω
R8
SG531P IC4
was chosen in view of its well-defined 6.144MHz 100n 7 IC4 = 74HCT32
10µ 63V 100n 4
voltage, good linearity, low noise, low
offset voltage an d h igh slew rate. It is
not cheap, but ideally suited to the pre-
sent application.
The analogue filter at the output is C89 C86
K13
n eed ed to rem ove th e resid u e of th e IC17
R58 7805
oversam p lin g p rod u cts an d th e r.f. 9V * B1 1Ω5
5V
R57
noise. It can be switched between two K12
3k9
cut-off frequencies to allow the use of C88 C87 C85 C84 C83 C82
impedance. 15V
C79
C76 C74 C72 C70 K10
C80
Sin ce th e ou tp u t im p ed an ce p er 1000µ 100n 10µ 100n
40V 63V
channel is only 100 Ω, a single double- 4x 22n
R51
K4 LD2 LD1
249Ω
R18 3 8 8 3 R11
1 2 7 a CA CA
820Ω CA CA a 7 820Ω D5
3 4 6 6 C68 C66 C62 C60
820Ω b b 820Ω 12V
5 6 4 4 K9 R52
820Ω c c 820Ω C64
100µ 100n 10µ
750Ω
7 8 2 2 100n 5V6
820Ω d d 820Ω 25V 63V
9 10 1 1 1W3
820Ω e e 820Ω 10µ 63V
10 10
820Ω f f 820Ω
9 9 R54
820Ω g dp dp g 820Ω C65
750Ω
R24 5 5 R17
2x D6
C69 C67 C63 C61
10µ 63V
HDN1075
12V 100µ 100n R53 10µ
25V 63V 100n 5V6
1W3
249Ω
LM337 5VA
12V
IC14
2x C18 C19 C22
5VD 4µ7 R27 R28 R29
63V C25
100µ 3k57 4k12 3k92 12V
5VA 25V 47p
R25 C48
6 11 C27 C28 C29
C16 C17 2k49
+VDD +VCC
2 12 100n
BCLK BPO DC 12V 2n2 4n7 330p
10µ 63V 100n 7
5VD WCLK IC7 C23 C46
5VD 1 19 1 G
DATA REF DC 2 7
R40 K6 L
K5 100n 5
PCM1704 C24 6
22 S3 9 17 C31 IC10 100Ω
2 1 DBW 20BIT SERVO DC 3
10 Re2
4 3 15 19 INVERT 2x 47µ 1 4
MUTE OW0 7 1n5
14 25V 2
6 5 16 20 IOUT R30 R31 R32
DEM OW1 5 15
5
6 OPA627
8 7 14 4 DGND AGND IC9 3k57 3k65 3k32
RST IW0 16 3
10 9 6 IC6 5 AGND C49
XTI IW1 4 C30 C32 R39
12 11 1 3 –VDD –VCC
DIN I2S
1M
14 13 28 17 4 20 OPA627 100n
LRCIN SF0 1n 270p
Re1
16 15 2 18 5VA 12V
BCKIN SF1 C20 C21 C47
9 27 2x
CLKO SRO 4µ7
7 DF1704 21 63V VDBW
XTO 100n
13 26
ML/RESV BCKO C39 C40 C43 12V
12 25 2x
MC/LRIP WCKO 4µ7 R33 R34 R35
11 24 63V C26
MD/CKO DOL 100µ 3k57 4k12 3k92 12V
10 23 5VA 25V 47p
MODE DOR R26 C52
6 11 C33 C34 C35
S2 2k49
+VDD +VCC
8 S4 100n
2 12
BCLK BPO DC 12V 2n2 4n7 330p VMUTE
7
WCLK IC8 C44 C50
1 19 1 D
DATA REF DC 2 7
R42 K6 R
100n 5
PCM1704 C45 6
9 17 C37 IC12 100Ω
20BIT SERVO DC 3
10 Re3
INVERT 2x 47µ 1 4
7 1n5
14 25V 2
IOUT R36 R37 R38
5VA 5 15
5
6 OPA627
DGND AGND IC11 3k57 3k65 3k32
16 3
AGND C53
4 C36 C38 R41
–VDD –VCC
1M
4 20 OPA627 100n
1n 270p
5VA 12V
C41 C42 C51
2x
4µ7
63V VDBW
100n
12V
DBW DBW'
MUTE MUTE'
12V 12V
R43 R46 R47 R50
D1
150k
10Ω
150k
4Ω7
150k
T1 T2
C54 C55 C56 C57
* voir texte C58 C59
D4
1M
990059 - 12
d ata flow. In th e absen ce of an in p u t rate, Fs, or twice that rate. m od e p in s M 0–M 3. Details of th is can
sign al, th e frequ en cy of th e voltage- Serial clock SCK is needed for clock- be fou n d in th e CS8414 d ata sh eets
controlled oscillator (VCO ) is low. in g th e in d ivid u al bits an d is equ al to elsewhere in this issue.
The digital filter on the DAC board 64Fs. The recommended mode is the I2S
needs four signals, all derived from the MCK, a clock equal to 256Fs,which mod e, since in this the number of bits
in comin g S/PDIF d ata by th e receiver is needed for oversampling and inter- is basically n ot fixed : it m ay be 16-bit
chip: p olation . Resistors R7–R10 lim it an y data or 24-bit. Because of this, the pre-
SDATA con tain s th e serial d ata of ringing caused by the capacitive loads ferred settin g of DIP sw itch S1 is S1–4
both channels. formed by the flatcable and the digital O N (M 1 = 1) an d th e rem ain d er O FF
PSYN C is th e lefth an d /righ th an d filter. (M 0 = M 2 = M 3 = 0). N ote th at on th e
clock to sep arate th e sam p les for th e These four signals can be provided switch M0–M3 are mixed up but on the
two channels. Depending on the mode by the receiver in various standard for- board the relevant names are adjacent
of operation, it is equal to the sampling m ats: w h ich on e is d eterm in ed by to them (as is the level at ON or OFF).
Other formats are often just as they
CS8414 CS8414
high. CS12 selects sub-frame 1 (when low) or sub-frame 2 Signals that an error has occurred while receiving the audio 0 1 0 2 – Out, L/R, I2S Compatible
(when high) to be displayed by channel status pins C0 and sample currently being read from the serial port. Three errors
0 1 1 3 – In, L/R, I2S Compatible
Ca through Ce cause ERF to go high: a parity or biphase coding violation
Cirrus Logic, Inc., Crystal Semiconductor Division,
FCK Frequency Clock, pin 13 during the current sample, or an out of lock PLL receiver. 1 0 0 4 – Out, WSYNC, 16-24 bits
P.O. Box 17847, Austin, Texas 78760, U.S.A.
Frequency clock input that is enabled by bringing SEL low.
Tel. (512) 445 7222, fax (512) 445 7581. 1 0 1 5 – Out, L/R, 16 Bits LSBJ
FCK is compared to the received clock frequency with the Receiver interface
Internet: http://www.crystal.com
value displayed on F2 through F0. Nominal input value is RXP, RXN Differential Line Receivers, pins 9, 10 1 1 0 6 – Out, L/R, 18 Bits LSBJ
6.144 MHz. RS422 compatible line receivers.
Features 1 1 1 7 – Out, L/R, MSB Last
E0, E1, E2 Error Condition, pins 4-6
➧ Sample rates to > 100 kHz
Encoded error information that is enabled by bringing SEL Phase Locked Loop
➧ Low-Jitter, On-Chip Clock recovery
low. The error codes are prioritized and latched so that the MCK Master Clock, pin 19 bits. The CS8414 does not need a microprocessor to
➧ 256xFs Output clock Provided
error code displayed is the highest level of error since the Low jitter clock output of 256 times the received sample fre- handle the non-audio data (although a micro may be
➧ Supports: AES/EBU, IEC 958, S/PDIF, & EIAJ
last clearing of the error pins. Clearing is accomplished by quency. used with the C and U ports). Instead, dedicated pins
➧ CP340/1201 Professional and Consumer Formats
bringing SEL high for more than 8 MCK cycles. FILT Filter, pin 20 are available for the most important channel status
➧ Extensive Error Reporting
F0, F1, F2 Frequency Reporting Bits, pins 2-3, 27 An external 470Ω resistor and 0.068µF capacitor is required bits. The CS8414 is a monolithic CMOS circuit that
➧ Repeat Last Sample on Error Option
Encoded sample frequency information that is enabled by from FILT input to analog ground. receives and decodes digital audio data which was
➧ On-Chip RS422 Line Receiver
encoded according to the digital audio interface stan-
➧ Pin Compatible with CS8411 and CS8412
dards. It contains an RS422 line receiver and clock
and data recovery utilizing an on-chip phase-locked
Ordering information
loop. The audio data is output through a configurable
CS8414-CS 0º to 70º C 28-pin plastic SOIC
serial port that supports 14 formats. The channel sta-
tus and user data have their own serial pins and the
Application example
Audio DAC 2000,
Special Audio port Modes (M3= 1)
65
11/99
Integrated circuits Integrated circuits
Special Function, AF Special Function, AF
D ATA S H E E T 1 1 /9 9 D ATA S H E E T 1 1 /9 9
validity flag is OR’ed with the ERF flag to provide a mat is based on M0, M1, M2 and M3 pins. Absolute maximum ratings (GND = 0V, all voltages with respect to ground)
single pin, VERF, indicating that the audio data may SDATA Serial Data, pin 26
not be valid. This pin may be used by interpolation fil- Audio data serial input pin Parameters Symbol Min. Max. Unit
ters that provide error correction. M0, M1, M2, M3 Serial Port Mode Select, pins 23, 24, 18, 17
Power Supply Voltage VD+ , VA+ - 6.0 V
Selects the format of FSYNC and the sample edge of SCK
Elektor Electronics
with respect to SDATA. M3 selects between eight normal Input Current, Any Pin Except Supply (Note 1) Iin - ±10 mA
Pin descriptions modes (M3= 0), and six special modes (M3= 1).
Input Voltage, Any Pin Except RXP, RXN VIN –0.3 (VD+ ) + 0.3 mA
Power Supply Connections Control Pins Input Voltage, RXP and RXN VIN –12 12 V
VD+ Positive Digital Power, pin 7 VERF Validity + Error Flag, pin 28
Storage Temperature Tstg –65 150 ºC
Positive supply for the digital section. Nominally + 5 volts. A logical OR’ing of the validity bit from the received data and
VA+ Positive Analog Power, pin 22 the error flag. May be used by interpolation filters to interpo- Notes: 1. Transient currents of up to 100 mA will not cause SCR latch-up
Positive supply for the analog section. Nominally + 5 volts. late through errors.
DGND Digital Ground, pin 18 U User bit, pin 14
Ground for the digital section. DGND should be connected to Received user bit serial output port. FSYNC may be used to Recommended operating conditions (GND = 0V, all voltages with respect to ground)
the same ground as AGND. latch this bit externally. (Except in I2S modes when this pin is
Parameters Symbol Min. Typ. Max. Unit
AGND Analog Ground, pin 21 updated on the active edge of FSYNC).
Ground for the analog section. AGND should be connected to C Channel Status Output, pin 1 Power Supply Voltage VD+ , VA+ 4.75 5.0 5.25 V
the same ground as DGND. Received channel status bit serial output port. FSYNC may
Supply Current VA+ IA - 20 30 mA
be used to latch this bit externally. (Except in I2S modes
Audio Output Interface when this pin is updated on the active edge of FSYNC). Supply Current VD+ ID - 20 30 mA
SCK Serial Clock, pin 12 CBL Channel Status Block Start, pin 15
The channel status block output is high for the first four Ambient Operating Temperature: (note 2) TA 0 25 70 ºC
Serial clock for SDATA pin which can be configured (via the
M0, M1, M2 and M3 pins) as an input or output, and can bytes of channel status and low for the last 20 bytes. Power Consumption PD - 175 315 mW
sample data on the rising and falling edge. As an output, SEL Select, pin 16
Control pin that selects either channel status information Notes: 2. The -CS parts are specified to operate over 0 to 70ºC but are tested at 25ºC only.
SCK will generate 32 clocks for every audio sample. As an
input, 32 SCK periods per audio sample must be provided in (SEL = 1) or error and frequency information (SEL = 0) to
all normal modes. be displayed on six of the following pins.
Digital characteristics (TA = 25ºC; VD+ , VA+ = 5V ±5%)
FSYNC Frame Sync, pin 11 C0, Ca, Cb, Cc, Cd, Ce Channel Status Output Bits,
Delineates the serial data and may indicate the particular pins 2-6, 27 Parameters Symbol Min. Typ. Max. Unit
channel, left or right, and may be an input or output. The for- These pins are dual function with the ‘C’ bits selected when
High-Level Input Voltage, except RXP, RXN VIH 2.0 - - V
66
High-Level Output Voltage (IO = 200µA) VOH (VD+ ) – 1.0 - - V
De sig n b y B. Stuurm a n
m i cr o d a t a l o g g e r
f o r u s e w i t h a P C a n d s t a n d -a l o n e
Micrologger specifications
● operates as a standalone data logger and ‘single-stepper’ with data Its sma ll d imensions a nd sta nd -a lone
postproc essing on a PC, as well as a PC voltmeter/datalogger and op era tion c a p a b ility ma ke the
‘single-stepper’ mic rologger an outstanding c hoic e for
● non-volatile memory for 82 3-digit samples
‘remote’ measurements. For example,
it c ould b e used to mea sure the volt-
● sampling delay adjustable from 1 sec ond to 15:59:59 h:m:s
a g e a nd c urrent c onsump tion of the
● maximum measurement session duration approximately 1300 hours
motor of an elec tric ally driven model,
● RS232 interfac e; protoc ol 38400 (19200), 7, n, 2
to a llow the d rive c omp onents to b e
● sc reen update rate 3x per sec ond
op timized . Ama teur meteorolog ists
● range basic ac c urac y c ould c ollec t mea surements over a
0 to 2.49 V ±(0.5%, 1 d) long p eriod of time without ha ving to
2.5 to 9.99 V ±(0.5%, 3 d) b e p ersona lly p resent. Two d a ta log -
10.0 to 99.9 V ±(0.5%, 2 d) g ers c ould b e c a rried a loft b y a
● input impedanc e: approx. 500 kΩ wea ther b a lloon, one to mea sure the
● power supply: 9-V battery temperature and the other to measure
● c urrent c onsumption: 4.6 mA (LEDs on); 2.8 mA (LEDs off) the a ltitud e. In p hysic s exerc ises in
● dimensions (exc lusive of protruding c onnec tor pins): 64×36×15 mm (l × whic h severa l tea ms ta ke mea sure-
w × h) ments, eac h team c ould be provided
● weight without battery: approx. 30 g with a mic rologger to store their data.
The advantage of this approac h is that
Figure 1. A m ic roc ontroller, a n op a m p a nd a ha nd ful of c om p onents a re a ll you need to b uild a m ini PC d a ta logger a nd voltm eter.
RS232
GND
OUT
IN
k R8 R9 R10
IC2
P1 K2 D2 C6 R11
S1 C2 C11
+ k + + +
+ led 1 led 2 led 3
R2 R13
Micro-Logger
C1 D3 JP1 C10
+9 V B1 R6
B3
CA3130E
R4 R5 C5
0V
IC1
B2 IC3-ST62T60BB6 B4
(in) R1 R3
(+9 V) C3 R7
k
IN K1 R12 D1
hole C4 sounder
Figure 3. The c irc uit b oa rd la yout (sc a le 1:1) a nd c om p onent la yout of the m ic rologger (sc a le 2:1).
power PC
Micro-Logger
full busy idle
system
start single step
INPUT
(clear) (leds)
sounder
ranges: 0.00 to 9.99V and 10.0 to be indic ated by the samples — that is, when the memory is
99.9 V. Busy or Full LED being full — it beeps six times. If the memory
A p ulse wa veform a t a round 31 kHz on. In this c ase, it is not possible to start is partially or c ompletely filled and the
from the ARTIM outp ut is injec ted into sampling or to single step the microlog- mic rolog g er is switc hed off a nd then
the minus inp ut of the op a mp . Filter ger. The memory must first be c leared. switc hed on a g a in, for exa mp le in
c apac itors C3 and C5 are provided to S1 is the on/off switc h. If S2 is p ressed order to read out the sample data to a
extract the average value of this signal. while the Idle LED is on, the micrologger PC, it will beep three times if you try to
The inp ut of the mic rolog g er is K1. In sta rts c ollec ting d a ta a nd no long er start sampling or to operate it in single-
a d d ition to the usua l IN a nd GND resp ond s to S2 or S3. If S3 is p ressed step mode (via the PC or using its push-
inp uts, a d irec t inp ut (in) a nd the 9 V while the Idle LED is on, the micrologger buttons). The same thing happens if a
sup p ly volta g e a re p resent a t K1. The takes a single sample of the actual volt- ‘step ’ c omma nd is issued via the PC
opamp c irc uit has a gain of around 9, a g e, a nd it no long er resp ond s to S2. while the mic rolog g er is sa mp ling , or
a nd a volta g e of a round 2.2 V on the S3 ma y b e p ressed up to 82 times in vic e versa . A new sa mp ling or sing le-
direc t input results in an output voltage suc c ession. step session c a n b e sta rted only a fter
of 9.99 V. This means that an interfac e If S2 is held pressed while the microlog- the memory has been c leared.
c irc uit c a n b e c onnec ted to K1, for ger is switc hed on with S1, the memory If the mic rologger is operated interac -
example for making c urrent or temper- is c lea red . If S3 is held p ressed while tively with a PC, it b eep s onc e if it
ature measurements. the mic rologger is switc hed on with S1, rec eives a n inva lid inp ut. This c a n b e
the LEDs are switc hed on or off. Switc h- a n inc orrec t c omma nd or a n inva lid
The LEDs and S1, S2 and S3 ing the LEDs off sub sta ntia lly red uc es parameter.
The LEDs ind ic a te the sta tus of the the c urrent c onsump tion of the
mic rolog g er. If no sa mp les a re b eing mic rolog g er. Althoug h this setting is Building the micrologger
taken and the data memory is empty, a lwa ys sa ved in the EEPROM, there is
the g reen LED will b e on (Id le). If the one exc ep tion. If the LEDs ha ve b een Figure 3 shows the p rinted c irc uit
memory c onta ins sa mp le d a ta b ut is switc hed off a nd sa mp les a re c ol- b oa rd a nd c omp onent la youts. Sta rt
not full, the yellow LED will be on (Busy). lec ted, the Full LED will be switc hed on with the four wire jump ers, a nd then
When the memory is full, the red LED will when the memory is full. mount the rest of the components. K1 is
b e on (Full). The sta te of the LEDs is a male header with one more pin than
stored in the EEPROM. If the mic rolog - Signals is needed. To prevent inc orrec t mating
g er is switc hed on when the memory The mic rolog g er b eep s a fter ea c h of K1 with its ma tc hing c onnec tor,
already c ontains sample data, this will sa mp le ha s b een ta ken, a nd a fter 82 remove the ‘extra’ pin at the indic ated
Miscellaneous:
COMPONENTS LIST C2,C11 = 4.7µF 15V, tantalum S1 = 1-pole slide switch, 11 mm, PCB
C3 = 10nF, MKT, raster 7.5mm mount (Knitter type MFP 120)
Resistors: C4 = 470pF, polystyrene (Siemens) S2,S3 = pushbutton, square (D6)
(All resistors 0.25 or 0.2 W) C5 = 3.3nF, MKT, raster 7.5mm X-tal = quartz crystal 8 MHz, HC-49/S
R1 = 499kΩ 1% C6,C10 = 100nF, raster 0.1”, multilayer (height approx. 4 mm)
R2 = 127kΩ 1% C7,C8 = 22pF, raster 0.1”, ceramic Snd = piëzo-ceramic buzzer, 14 mm diam.,
R3 = 10.7kΩ 1% C9 = 1µF 15V, tantalum raster 7 mm
K1 = angled pinheader, SIL, 5 contacts
R4,R5 = 49.9kΩ 1% K1-contra = straight socket, SIL, 5 contacts
R6 = 200kΩ 1% Semiconductors:
IC1 = CA3130E K2 = angled socket, , SIL, 4 contacts
R7,R13 = 10kΩ IC2 = LP2950CZ5.0 K2-contra = straight pinheader, SIL, 4
R8,R9,R10 = 1kΩ IC3 = ST62T60BB6 (programmed, order contacts
R11 = 4.7kΩ code 996518-1) JP1 = straight pinheader, 2 contacts
D1 = 1N4148 JP1-contra = jumper (shunt), 2.54 mm
R12 = 100kΩ
D2,D3 = BAT85 B1-B4 = wire link
P1 = 25kΩ preset, 6 mm, vertical 20-pin IC socket
Led1 = LED 3 mm, high intensity, red
P2 = 2.5kΩ preset, 6 mm, vertical Battery clip for 9-V PP3 battery
Led2 = LED 3 mm, high intensity, yellow
Led3 = LED 3 mm, high intensity, green 3.5”-floppy disk, contains project source-
Capacitors: code: order code 996026-1
C1 = 47nF, MKT, raster 7.5mm
Anyone who c arries around every type of c onnec tion c able together with a lap-
top c omputer, often finds that the majority of the baggage is c ables instead of
the laptop itself. However, this size of this c able salad c an easily be minimized.
The standard c ables desc ribed here, together with a few gender c hangers, sup-
port all possible c onnec tions.
By H.-J. Bö hling
a ca b l e f o r a l l o cca s i o n s
co r r e ct co n n e ct i o n s f o r y o u r l a p t o p P C
Sub-D 9 Sub-D 25 Sub-D 25 Sub-D 25
You rea lly need a sort of Swiss a rmy
1 DCD 1 knife of the cable world to be prepared 1 1
6 DSR 14 14 14
2 RXD 2
for a ll ima g ina b le seria l a nd p a ra llel 2 2
7 RTS 15 c onnec tions. The set of c a b les a nd 15 15
3 TXD 3
a d a p ters d esc rib ed in this a rtic le will 3 3
8 CTS 16 16 16
4 DTR 4 ha nd le a ll p ossib le c omb ina tions of 4 4
9 RI 17 c onnec tions. The b a sic c a b le is a n 17 17
5 GND 5 5 5
18
extension c a b le for the p rinter p ort. If 18 18
6 you b uy this rea d y-ma d e, ma ke sure 6 6
19
that it inc ludes the full set of 25 leads, 19 19
7 7 7
20 c onnec ted one to one. This c a b le 20 20
8 should be as long as necessary, but no 8 8
21 21 21
9
longer than it has to be. 9 9
22 In addition, you need a set of adapters 22 22
10
that c onvert from 9-pin to 25-pin c on- 10 10
23 23 23
11
nec tors (and the other way around, of 11 11
24 course), and others that convert a plug 24 24
12
25
into a soc ket or a soc ket into a plug — 12 12
25 25
13 the so-c alled gender c hangers. These 13 13
Anyone who c arries around every type of c onnec tion c able together with a lap-
top c omputer, often finds that the majority of the baggage is c ables instead of
the laptop itself. However, this size of this c able salad c an easily be minimized.
The standard c ables desc ribed here, together with a few gender c hangers, sup-
port all possible c onnec tions.
By H.-J. Bö hling
a ca b l e f o r a l l o cca s i o n s
co r r e ct co n n e ct i o n s f o r y o u r l a p t o p P C
Sub-D 9 Sub-D 25 Sub-D 25 Sub-D 25
You rea lly need a sort of Swiss a rmy
1 DCD 1 knife of the cable world to be prepared 1 1
6 DSR 14 14 14
2 RXD 2
for a ll ima g ina b le seria l a nd p a ra llel 2 2
7 RTS 15 c onnec tions. The set of c a b les a nd 15 15
3 TXD 3
a d a p ters d esc rib ed in this a rtic le will 3 3
8 CTS 16 16 16
4 DTR 4 ha nd le a ll p ossib le c omb ina tions of 4 4
9 RI 17 c onnec tions. The b a sic c a b le is a n 17 17
5 GND 5 5 5
18
extension c a b le for the p rinter p ort. If 18 18
6 you b uy this rea d y-ma d e, ma ke sure 6 6
19
that it inc ludes the full set of 25 leads, 19 19
7 7 7
20 c onnec ted one to one. This c a b le 20 20
8 should be as long as necessary, but no 8 8
21 21 21
9
longer than it has to be. 9 9
22 In addition, you need a set of adapters 22 22
10
that c onvert from 9-pin to 25-pin c on- 10 10
23 23 23
11
nec tors (and the other way around, of 11 11
24 course), and others that convert a plug 24 24
12
25
into a soc ket or a soc ket into a plug — 12 12
25 25
13 the so-c alled gender c hangers. These 13 13
1 1 19
way Sub-D soc ket, approx. 2 m, 25 1 1
14 leads 1:1; 14 14
8 8 26 D plug/plug; 21 21
By Gordon Pocock
HDL Planner is a template generator and text editor for VHDL entry methods. HDL Planner Where D: is the drive letter of your CD
also integrates Atmel’s Macro Generator software and is especially useful to the new- ROM drive. Follow the on-screen
comer to VHDL. prompts to install IDS 6.00. When asked
Macro Generator software which allows the building of functional blocks which are fully which libraries to install, you should des-
specified and can be reused many times in one or several designs. elect the Viewlogic option. The Free
Place And Route routines which take the design files and actually perform the layout of System that you have been supplied
the design as implemented on the silicon. The Place and Route routines can also be
with uses the Everest Design System and
timing driven to improve design performance.
the libraries for this are installed by
Static timing analyser used to check path delays through a design.
Bitstream Generation and Download routines compatible with all configuration modes.
default. To run the Viewlogic system you
Everest VHDL Synthesis tool would need to purchase a license. If
All the items above are installed when you install the IDS6.0 CD. You can also select addi- there are any installation problems, the
tional libraries for other third party tools as listed below. process is covered in the documenta-
Libraries for the following Third Party Design Capture Systems: tion files on the CD-ROM. If you experi-
- Exemplar ence further problems, contact Kanda
- FpgaExpress Systems, details at the end of the arti-
- MTI cle.
- OrCad Assuming you have successfully
- Synplicity installed IDS 6.00, run the program by
- Viewlogic WorkView Office
selecting Atmel IDS 6.00 from the
Doulos Tutorials covering aspects of the VHDL language. Doulos are a training compa-
Start→Programs menu. After a few sec-
ny running public and company based courses on FPGA Design Methodologies and
Techniques, as well as offering computer-based courses on VHDL and Verilog. onds you will see a screen as in Fig-
ure 5. This is the main design environ-
ment, and all the other routines, such
design and set the Quality level as process as there are several aspects of text file comprises a number of steps,
appropriate. The quality level is used for routing to be considered. As mentioned although none of them are too com-
the first four stages of the place and previously, the AT40K family of FPGAs plex, and the whole process does
route operation. was designed with routeability in mind, become second nature after a while.
Once all of the placement contention so this process often gives very good Now we have seen how to generate a
has been removed, it is possible to results prior to Optimise Place. bitstream from a design, what about
move onto the Routing of the design. Optimise Route does the same for rout- running this design in hardware? Well,
But what if not all of the contention can ing as Optimise Place does for place- using the Development Board and the
be removed? There are three options ment. This is usually a much easier ‘Get Going with FPGA’ book accompa-
on this. Firstly, a higher Quality setting stage for IDS 6.00 software due to the nying this series we will next month look
may be set, and the Placement rou- routing based architecture, and if a at the FPGA from a hardware point of
tines run again. Secondly, a larger design can be placed within a device, view, describing peripheral use on the
device may be required. This will give there will be very few times the device board, and how to connect up a con-
more logic resource and so will usually cannot be routed. If, however, the figuration device for progressing a
cure the problem. With all of the avail- design does not route, what then? Well, design onto a user’s own PCB.
able 40K devices being pin compati- the same applies for routing as for (990063-2)
ble within a specific package, this is Placement. Going to a larger device Note:
possible across the range of devices will usually solve the problem. Setting a The book and Starter Kit mentioned in
from 5K to 40K equivalent gates. Finally, higher quality factor again will most this article series are available (at a
and for some most interestingly, we can times get rid of the contention. Finally, special discounted price for Elektor
manually modify the placement. it is possible to manually edit both readers) from Kanda Systems Ltd, Unit
Manual placement allows the moving Placement (where the placement can 17-18, Glanyrafon Enterprise Park,
of a cell or macro around on the be tweaked to allow sensible data Aberystwyth, Ceredigion SY23 3JQ. Tel.
device to remove contention. This is flow), and Routing Resource. Manually (01970) 621030, fax (01970) 621040,
done by selecting an instance on the Routing the device is something best Email sales@kanda.com
floorplan, and dragging it to its new left until the user becomes very confi-
position. Once an instance has been dent with the devices, as what seem to
selected, it turns yellow and, for a be small changes can have timing
macro block, may be rotated or impacts on a design!
flipped and then moved to a suitable The final stage for the design is the Bit-
area. For a macro, this is possible due stream generation. This stage gener-
to the symmetrical nature of the array, ates the bitstream in several output for-
and the fact that macro functions are mats, ready to be downloaded directly
pre-parameterised for all orientations of into the FPGA or to program a configu-
the macro. ration Serial EEPROM, ready for pro-
Initial Route is a function not dissimilar gramming on the user’s board.
to Initial Place, but obviously it works on
the routing structure and resource. This Next Time — How About
time the cells and macros are con- Some Hardware?
nected together without too much
regard for using the same routing We can see that the process of gener-
resource twice. This is a three-stage ating a bitstream from an initial ASCII
By H. Ne um a nn a nd E. Mö ller
r e cy cl i n g h a r d d i s k
d r iv e m o t o r s
Hard disk drives with the two motors (Figure 2). You c an now
1 c apac ities of 20 to d ismount the hea d d rive motor (Fig-
40 MB c an often be ure 3) a nd the p la tter a ssemb ly (Fig-
found in discarded com- ure 4). Finally, remove the fixing sc rews
puters (in the basement for the drive motor (Figure 5), and you
or at flea markets). The c an extrac t the desired objec t.
data stored on these The motor has six leads, three of whic h
devic es is surely of no a re c onnec ted to its wind ing s. These
interest to anyone, but leads c an be easily identified with the
eac h one c ontains two help of an ohmmeter. The winding resis-
motors, for whic h some ta nc e will mea sure a round 3 or 6 Ω,
useful applications might d ep end ing on whether you mea sure
still be found. In addition a c ross one or b oth wind ing s. You c a n
to the stepper motor, thus direc tly figure out whic h leads are
whic h moves the the wind ing lea d s. The three other
read/write heads, the lea d s a re c onnec ted to a Ha ll-effec t
ac tual drive motor is an sensor IC, a nd the mea sured resis-
interesting item. In the tances between these leads will be sig-
case of the drives inves- nific a ntly hig her. With the test c irc uit
tigated by the authors, shown in Figure 6, you c an easily sort
this is a d.c . motor with out whic h of these leads is c onnec ted
electronic commutation. to what. In the worst case, you will have
An example is shown in to c onnec t eac h of the three leads to
2 Figure 1. Our objec tive ea rth in turn while the other two a re
here is to see how suc h c onnec ted to + 12 V via series resistors
a motor can be brought a nd LEDs. Turn the rotor of the motor
back to life. slowly. If the proper lead is c onnec ted
Before you c an do any- to ea rth, one of the LEDs will b e c on-
thing with the motor, you stantly on; the assoc iated lead is then
must first d isa ssemb le c onnec ted to the power supply termi-
the d rive. Sta rt b y nal of the IC. The other LED will blink as
removing the enc losure the rotor is turned ; its lea d is thus the
c over a nd the p rinted signal output of the IC.
c irc uit b oa rd . The Now you ha ve c omp leted the nec es-
proper tool for removing sary preparations in order to be able to
the sc rews is a Torx use the motor. For this, you will need a
screwdriver, but a sturdy c irc uit as shown in Figure 7, whic h c an
slot-typ e sc rewd river be quic kly c onstruc ted on a bit of pro-
c a n a lso b e p ressed totyping board. The Hall sensor built into
into service if necessary. the motor ha s a n op en-c ollec tor out-
After the c over and the p ut. If the outp ut tra nsistor is switc hed
b oa rd ha ve b een on, tra nsistor T1 is c ut off. Resistors R2
removed , you will see and R3 then supply enough c urrent to
180Ω
180Ω
BC547
T3
D1
12V T1
1N
1k
1k
1N
BD243 4007
992042 - 11
992042 - 12
Figure 6. This test c irc uit c a n b e used to
d eterm ine the c onnec tion sc hem e of
the m otor. Figure 7. Control c irc uit for a n elec tronic a lly c om m uta ted m otor.