EDN Design Ideas 2002
EDN Design Ideas 2002
EDN Design Ideas 2002
ideas
INPUT
VOLTAGE
R1
9.1k
C1
0.02 mF
OUTPUT
VOLTAGE
C2
1 mF
5.5
5
4.5
EXPERIMENTAL DATA
Optocoupler simplifies
power-line monitoring ..................................76
3.5
3
2.5
2
10
20
design
ideas
Output voltage
5.782
5.861
5.886
5.945
6.098
6.187
6.204
6.312
6.371
6.378
6.476
to 13V to satisfy the internal biasing requirements of the second stage of the 556. The diode
drop,VK, is not strictly constant,
because it varies with current.
In spite of these limitations,
Table 1 and Figure 2 clearly
show a distinct logarithmic
characteristic.
Is this the best Design Idea in
this issue? Vote at www.ednmag.
com.
www.ednmag.com
design
ideas
robust, and the polling timing is unimportant. The efficiency matters little, because the method involves little data
transfer. By referring to the listings, you
can step through the process to see how
the transfer takes place. Listing 2 includes a test routine that allows you to
supply a signal from the PC to test the
circuits operation. You can download
listings 1 and 2 from the Web version of
this article at EDNs Web site, www.edn
mag.com.
www.ednmag.com
design
ideas
LISTING 2PHOTOGATE-SUPPORT PROGRAM
www.ednmag.com
design
ideas
IC4
5V
100 470 pF
1 kV
IC5
3.3V
47 mF
47 mF
9.1V
100 mF
VR1
3
470k
1k
IC1
4
IF
1
2
IC2
IC7
3.3V
330 mF
+
2
R2
330k
R1
240k
IC6
5V
7 TO 10V
DC
33 mF
VR2
350k
500k
3 +
8
1
IC3
VIN
110V AC
2.4k
100 pF
IP1
1k
Figure 1
NONISOLATED BLOCK
47 mF
VOUT
IP2
ISOLATED BLOCK
NOTES:
IC1 AND IC3=TLC2272.
IC2=IL300.
IC4 AND IC6=TC55 RP 500201.
IC5 AND IC7=TC55 RP 330291.
An isolated optocoupler circuit allows you to make dc measurements of the power-line voltage.
www.ednmag.com
design
ideas
Figure 2
2
IC3
+
AD8021
+IN
+
IC1
2
+IN
2
2VOUT
2VOUT
RF
RF
RG
REF
RG
REF
AD8138
2
+
RF
RF
2IN
2
IC2
+
4RF
GAIN=2+
RG
+
IC4
2
AD8021
2
2IN
(a)
+VOUT
+VOUT
GAIN=2+
4RF
RG
(b)
The four-op-amp instrumentation amplifier (a) provides differential outputs but requires many matched resistors. A differential-output op amp (b)
reduces the IC count in Figure 2a to three.
www.ednmag.com
design
ideas
than its base and thus conducts. Shortcircuiting the motor results in braking it.
The higher the speed of the motor, the
stronger the braking effect.
You should mount the circuit of Q2 as
near as possible to the motor to reduce
the series resistance of the wiring. This
parasitic resistance limits the braking
current and, thus, the deceleration. The
circuit of Q1 can be remote. The dividing line between the two circuits is at
Point A. This design mounts the circuit
on the tool-changer motors of small machine tools, and it has worked perfectly
for years. The values of the components
are not critical. The transistors should
preferably be Darlington pairs and, like
the diodes, should be types commensurate with the power-supply voltage and
the motor current. (Also, dont forget the
high inductance of the motor.) The components in Figure 1, for example, are
suitable for a 24V, 3.5A motor.
Is this the best Design Idea in this
issue? Vote at www.ednmag.com.
www.ednmag.com
design
ideas
Autoreferencing circuit
nulls out sensor errors ..................................85
Low-power keypad
consumes only 100 nA..................................86
Time-tag impulses
with zero-crossing circuit ..............................88
Circuit provides reference
for multiple ADCs ..........................................92
LM4040
1.5V
15V
30.1k
499k
499k
VSENSE
1V550 mV
1V
15.8k
VSHIFT
100 mV
2M6064
200 mV
2k
+
IC1C
2
100 mV
2k
+
IC1D
2
This autoreferencing circuit nulls out output errors at a sensors reference (ambient) condition.
www.ednmag.com
design
ideas
VCC
1
100k
Figure 1
TEST
P1.7/TA2/TDO/TDI
2 V
P1.6/TA1/TDI
CC
3 P2.5/R
P1.5TA0/TMS
OSC
4 V
P1.4/SMCLK/TCK
SS
5 XOUT
P1.3/TA2
6 XIN
P1.2/TA1
IC
7
1
P1.1/TA0
RST/NMI
8 P2.0ACLK
P1.0/TACLK
9 P2.1INCLK
P2.4/CA1/TA2
10
P2.2/CAOUT/TA0 P2.3/CA0/TA1
11
P3.0/STE0
P3.7
12
P3.1/SIMO0
P3.6
13 P3.2/SOMI0
P3.5/URXD0
14
P3.3/UCLK0
P3.4/UTXD0
28
27
26
25
24
23
22
21
20
19
18
17
16
15
4.7M
324-KEY KEYPAD
1N4148
1N4148
1N4148
1N4148
This keypad interface draws only 100 nA in standby mode and avoids stuck-key problems.
4.7M
design
ideas
330 pF
Figure 2
0.1 mF
+
47k
10k
5 +
3.3k
23V
0.1 mF
10k
10k
2
IC3A
2
1
2 MAX942
1k
100 pF
33k
C2
18k
10k
10 mF 5V, 1 mA
CI
2T
1
CX
RC
7
Q
IC2A
1
2 HC4538
+T
10k
0.1V
1k
10k
2 MAX942
+
1
IC3B
2
2
4
16
0.1 mF 1N4148
13
+
C1
0 TO 10V
1k
11
4
3 2
1
IC1
7
2 MAX941
5
+
6
1k
15
14
0.1 mF
INPUT
100 pF
5.6k
12
0.1 mF
RC
CX
CI
2T
IC2B
1
2 HC4538
+T
Q
Q
DIGITAL
OUTPUT
9
10
0.5 mSEC
8
ENABLE/LATCH
A discriminator and a zero-crossing detector eliminates walking-time error for impulsive events.
www.ednmag.com
design
ideas
Peak
time
msec)
(m
2
6
12
6
C1
(nF)
0.47
1
2.2
1
C2
(nF)
0.33
1
2.2
1
Jitter
s (m
msec)
s (m
msec)
s (m
msec)
Amplifier
0.1VIN1
0.249
0.594
1.608
0.664
0.2VIN
0.145
0.395
0.939
0.417
0.5VIN
0.06
0.156
0.372
0.161
1VIN
0.029
0.081
0.195
0.081
2VIN
0.015
0.042
0.096
0.042
5VIN
0.009
0.017
0.04
0.017
10VIN
0.006
0.009
0.021
0.009
Walk
0.06 msec
0.2 msec2
1.1 msec2
0.47 msec3
www.ednmag.com
design
ideas
ADC ACCURACY
In many applications, gain and noise
level have a major effect on ADC accu-
3V
0.1 mF
2.048V
3V
NC
29
REFOUT
31
0.1 mF
32
0.1 mF
1
1
IC1
3
REFIN
REFP
ADC 1
REFN
2
2
16.2k
1 mF
10-Hz LOWPASS
FILTER
3
4
IC2
2
COM
162
0.1 mF
0.1 mF
0.1 mF
100 mF
0.1 mF
10-Hz LOWPASS
FILTER
2.2 mF
10V
Figure 1
NC
29
REFOUT
31
32
0.1 mF
1
2
0.1 mF
0.1 mF
REFIN
REFP
ADC N
REFN
COM
0.1 mF
For ultrasound applications, a single, low-noise reference circuit can drive as many as 1000 ADCs.
www.ednmag.com
design
ideas
spectrum can modulate large stationary signals in the RF spectrum. Such signals arise from stationary tissue in the ultrasound target.
Audio modulation produces sidebands
in the RF signal that a Doppler detector
can demodulate, producing audio tones.
To estimate the amount of audio noise
tolerable in an ultrasound application,
assume a nearly full-scale RF signal applied to a 10-bit ADC such as the
MAX1448. The devices dynamic range of
almost 60 dB equates to a noise floor of
260 dBFS (relative to full scale). You can
normalize that noise level to a 1-Hz
bandwidth. The Nyquist bandwidth for
an 80-MHz sampling rate is 40 MHz. The
correction factor is =40 MHz576 dB,
which places the ADCs noise floor at
260 dBFS276 dBFS52136 dBFS. Because a conservative design requires the
reference-voltage noise to be at least 20
and thus eliminate the need for any circuit modification. Moreover, the high
input impedance of REFIN (even of
multiple REFIN terminals connected in
parallel) results in only a small load-current drain. Figure 1 shows a precision
source, such as the MAX6062, that generates an external dc level of 2.048V and
exhibits a noise-voltage density of 150
nV/=Hz. The output of the IC passes
through a one-pole lowpass filter
with 10-Hz cutoff frequency to op amp
IC2, which buffers the reference. The
buffered reference voltage then passes
through a second 10-Hz lowpass filter.
IC2 exhibits a low offset voltage for high
gain accuracy and a low noise level. The
passive 10-Hz filter following the buffer
attenuates noise produced in the voltage-reference IC and buffer stage. The
filtered noise density, which decreases
with frequency, meets the noise levels re-
3V
0.1 mF
29
NC
31
IC1
32
2V AT 8 mA
2 21.5k
3 +
2
1
1
IC2A
2
47
2
11
10 mF
6V
1.47k
21.5k
Figure 2
REFIN
ADC 1
3V
2V
REFOUT
REFP
REFN
COM
330 mF
6V
0.1 mF
0.1 mF
0.1 mF
3V
1.5V
0.1 mF
1.5V AT 0 mA
5
6
1 mF
4
+
IC2B
2
11
47
10 mF
6V
1.47k
21.5k
330 mF
6V
NC
3V
3V
1V
0.1 mF
10
21.5k
21.5k
2.2 mF
10V
31
1V AT 28 mA
4
+
IC2C
2
29
11
REFIN
ADC 2
47
10 mF
6V
1.47k
REFOUT
32
1
330 mF
6V
2
0.1 mF
0.1 mF
REFP
REFN
COM
0.1 mF
For ultrasound applications, a precision, low-noise reference circuit can drive as many as 32 ADCs.
www.ednmag.com
design
ideas
ence ladders from a set of external reference sources. These voltages can have an
arbitrarily tight tolerance; the ADCs typically track them within 0.1%. ADCs of
this family have 4-kV resistance across
the ladders reference connection, so its
easy for the reference source to drive the
load, even with many ADCs connected in
parallel. IC1 generates a dc level of
2.500V, followed by a 10-Hz lowpass filter and a precision voltage divider. The
buffered outputs of this divider provide
2, 1.5, and 1V, with an accuracy that depends on the tolerances of the divider resistors. The quad op amp IC2, selected for
its low noise and dc offset, buffers the
three voltages.
The individual voltage followers connect to 10-Hz lowpass filters, which filter
both the reference-voltage and bufferamplifier noise to a level of 3 nV/=Hz.
The 2 and 1V reference voltages set the
differential full-scale range of the associated ADCs at 2V p-p. The 2 and 1V
buffers drive the ADCs internal ladder
www.ednmag.com
design
ideas
VCC
R7
R1
Figure 1
R4
Q3
Q5
D1
R2
D3
D2
D5
R10
R5
Q1
Q2
R8
MA
R9
F1
R12
R11
MB
R3
R6
IC2
IC1
R13
IC2
EA
EB
IC3
IC1
CONTROL 1
NOTES:
D1, D2: 1N4148
D3 TO D6: 1N4937
R1, R2, R4, R5, R9, R12: 10 kV, 0.25W
R7, R8, R10, R11: 3.3 kV , 0.25W
R3, R6, R13: 1.5 kV, 0.6W
Q4
D4
D6
Q6
CONTROL 2
This simple circuit provides four-position motor control with two inputs.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
ON/OFF
2
12V AC
115 AC
50W
12V
1N4148
+
Figure 1
50W
12V
50W
12V
L1
50 mH, 5A
+ 1000 mF
25V
TO POSITIVE
INPUT
100 mF
25V
47.5W
+
10
T1
COILCRAFT
0.22 mF
0.22 mF
SD 250-1
Q1
IRF3710
4.7 nF
1N4148
10k
+
2N4401
7
IC1
3843
2
3
2N4402
180
4.7k
20V
470 mF
35V
47
1.2k
TO CURRENT METER
4.7 nF
R1
SELECT
VR1
1k, 10 TURN
470
TO NEGATIVE INPUT
Incandescent light bulbs provide convenient loads for testing power supplies.
www.ednmag.com
design
ideas
ten Q1 to a heat sink adequate for the application. The circuit in Figure 1 uses an
Aavid (www.aavid.com) 530101B00100.
This heat sink is a U-shaped radiator
measuring approximately 1.753175 in.
on each side. Applications requiring
higher currents could use two MOSFETs
(a)
Figure 2
(b)
The 5V side (a) and the 3.3V side (b) drive operation with the circuit.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
standards targeted low- and mediumspeed peripherals. The latest 2.0 standard
is for a 480-Mbps rate that will
CODE accommodate many highspeed devices along with the
previous low- and full-speed
d(n)
1
rates. At the PC-accessible USB
1
receptacle and at the peripher0
al, if it has a receptacle, the sig0
nal has the format of differenwww.ednmag.com
design
ideas
D S Q
d(n) DATA
tial-NRZI (nonreturn-to-zero-inverted)
CP
CLK
code. After conversion (with a simple cirC Q
(a)
cuit or test probes) of this differential to
b(n)
single-ended signal, the signal
D S Q
Figure 1
becomes a waveform that asCLK
CP
C Q
sumes the voltage levels used to recognize
(b)
b(n) DATA
d(n)
ones and zeros in computer code.
In this NRZI waveform, a transition
between the d(n21) and d(n) bits de- Simple circuits perform NRZI-to-binary (a) and
codes to a binary b(n)50 data bit. No binary-to-NRZI (b) conversion.
transition decodes to a binary b(n)51
bit. However, when you display the d(n) volve some computer statements and
waveform on an oscilloscope of a logic logic circuits that provide a different way
analyzer, it is difficult for an observer to to effect the conversion.
decode it back to the originating binary
Table 1 shows all the combinations
waveform, or vice versa. In this situation, that can exist in NRZI encoding. For the
you may doubt your judgment and turn differential-NRZI-d(n)-to-binary-b(n)
to dedicated test equipment to make the code conversion, the following observaconversion. Much of the human problem tions apply:
occurs because NRZI decoding depends
The conversion is independent of
on knowledge of the previous and cur- b(n21).
rent input bits to determine a value for
If d(n21)d(n), then b(n)50.
the current output bit. In the encoding
If d(n21)5d(n), then b(n)51.
descriptions in most textbooks and tech Or, simply, b(n)5d(n) XOR NOT
nical articles, the transitions receive pass- d(n21).
ing mention, and the material presents a
You can perform the conversion by uspair of waveforms with little or no elab- ing an XOR gate and a 74LS74 D-type,
oration. The following suggestions in- positive-edge-triggered flip-flop (Figure
1a). The flip-flops Set and Clear terminals connect to VCC, and you do not need
to reset either one. For the binary b(n)
to differential NRZI d(n) conversion, we
offer the following observations:
The conversion is not independent
of d(n21).
d(n)5d(n21) unless
b(n21)50 AND b(n)50, then
d(n)5NOT d(n21), or
b(n21)51 AND b(n)50, then
d(n)5NOT d(n21).
You can perform the conversion by using an XOR gate and a 74LS74 D-type
positive-edge-triggered flip-flop (Figure
1b). The flip-flops Set and Clear terminals connect to VCC after you use them to
set d(n) to its proper initial value. For all
input-data sequences that keep repeating, you must select the last and first bits
to produce the first output bit. You can
download a computer program that
confirms the decoding from the Web version of this article at www.ednmag.com.
Is this the best Design Idea in this
issue? Select at www.ednmag.com.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
Microcontroller emulates
numerically controlled oscillator
Tom Napier, North Wales, PA
icrocontrollers commonly add
intelligence or digital functions to
products, but they can also provide
a variety of analog signals. An 18-pin PIC
16C54 microcontroller, combined with
as that of the crystal driving the microcontroller. You can connect a binary data
signal to one or more PIC ports to apply FSK (frequency-shift-keying), BPSK
(binary-phase-shift-keying), or QPSK
5V
5V
5V
Figure 1
5V
0.047
mF
14
4
VCC
FREQUENCYCONTROL
INPUTS
0.047
mF
5
RTCC
16 OSC1
15
OSC2
B7
13
12
B6
11
B5
10
16C54 B4
9
2
B3
A3
8
1
B2
A2
18
7
B1
A1
17
6
B0
A0
5 D7
6 D6
7 D5
V+
0.047
mF
15
6 _
6.8k
REF1
IO
4.7 mH
1.5 mH
TL082
5 +
4
8 D4
9 D3
10 D2
11 D1
12 D0
1 LC
14
REF+
0.047
mF
3.3k
3.3k
13
MCLR
20 MHz
GND
DAC08
6800 pF
IO
V1
COMP
16
1.1k
100
0.047
mF
2200 pF
SINE
OUTPUT
15V
1k
0.047mF
15V
www.ednmag.com
design
ideas
RG
50
1
C1
13 pF
VIN
L
450 nH
RL
50
RF
VOLTMETER
RS
the voltage-divider relation with the device under test embedded as a series trap
network (Figure 1). You can measure the
inductors value, or calculate it from
known equations based on the inductors
form factor, such as solenoid, toroid, helical, or flat spiral. You use the inductors
value to select C1, a variable, air-dielectric
high-Q capacitor. At resonance, the im-
V)
RS (V
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
design
ideas
ductor shall resonate in a seriestuned (trap) configuration, driven from a 50V generator and terminated in a 50V shunt. An RF
voltmeter placed across the shunt
reads notch depth in decibels.
From Figure 2, you can determine the unloaded Q from the
expression Q5XL/RS. For example, a solenoid inductor measuring 0.75 in. in diameter and
wound with five turns of sixgauge wire has a measured inductance of 460 nH at 65 MHz.
1
The inductor series-resonates at
65 MHz with a 13-pF capacitor.
You set the signal generator at 65
MHz and use a variable, air-dielectric capacitor to fine-tune the
notch at 65 MHz. The measured
notch depth is 36 dB. RS is 0.4V, and the
unloaded Q is 469. You can readily notice
changes in the depth of the notch with
fine variations in coil position relative to
conducting surfaces.
Is this the best Design Idea in this
issue? Select at www.ednmag.com.
www.ednmag.com
design
Edited by Bill Travis
ideas
www.ednmag.com
design
ideas
ou use high-side current monitoring in many battery-powered products that require accurate monitoring of load current, charger current, or
both. In applications for nonportable designs, high-side-current monitoring
serves as a power-supply watchdog that
can flag a failure in downstream devices.
The monitoring can also eliminate hazardous conditions by preventing powersupply overloads. Further, high-side-current monitoring of motor/servo circuits
can produce useful feedback in control
applications. These applications require
a device that converts high-side current
directly to a digital signal (Figure 1). IC1
is a low-cost, high-side-current-sense
amplifier that converts high-side current
to a proportional, ground-referenced
voltage. Its two internal comparators
(latching and nonlatching) implement a
voltage-to-pulse converter that produces
an output pulse width proportional to
the measured current.
IC1s Out pin charges C1 via R1. When
C1s voltage reaches 0.6V, Comparator1
latches in the high-impedance state. The
time required to charge C1 to 0.6V is proportional to the measured current. Comparator2, in conjunction with the Reset
pin, initiates the conversion and removes
the previously existing charge on C1. The
Reset and CIN2 pins, tied together and
connected to a TTL-compatible microcontroller output, CTRL, control the
conversion process. Normally, CTRL is
www.ednmag.com
design
ideas
RSENSE
CTRL 5V
0 TO 20V
Figure 1
RS+
VCC
10k
TO
MICROCONTROLLER
INPUT
COMPARATOR1 OUT
RESET
4
CIN2
R1
COUT1 5V
C1
VTHRESH
+
6
GND
3
CIN1
COMPARATOR2
GND
5
IC1
MAX4374
The duration of a negative-going pulse at COUT1 is proportional to the current flowing through
RSENSE.
high. The microcontroller starts a conversion by pulsing CTRL low, discharging C1 and clearing the latch in comparator1 (COUT1 goes low.) The microcontroller now measures the time from
the CTRL transition to the low-to-high
transition at COUT1 (Figure 2). The period begins at the low-to-high transition of
CTRL and ends at the low-to-high transition of COUT1. As a function of the current levels of interest, you select R1 and
C1 values to create pulse durations in the
TPULSE
Figure 2
COUT2
GND
LOAD
RS
8 COUT1
VTHRESH
CTRL
10
5V
5V
www.ednmag.com
design
ideas
VREF
tively. The LM319 accommodates sepaR2
rate input and output power supR1
Figure 2
plies. The input supply can be
2k
R3
2k
15V referenced to analog ground, and
5V
1k
the output can use a logic supply refer15V
D1
enced to logic ground. The circuits input
R4
_
limit is 2.5V because of the maximum
+ IC
VIN
R5
V1
2
IC1A
_
1k
differential-input limit of the LM319. If
LM1458
LM311
V2
IC1B
_
1k
+
D
LM1458
2
you think the input will exceed a 5V
+
differential voltage between VREF and VIN
or VREF and VIN, then you must incor15V
porate a clamping network with many
additional discrete components. The cir- An absolute-value comparator circuit offers a wide input range and improved dc performance.
cuit in Figure 2 overcomes
symmetrical for positive and negthese limitations.
ative voltages. The following
To increase the maximum
expressions define V2: V2
differential-input voltage, you
|VIN|VIN(2VIN) for posican use an LM311, but it is
tive inputs, and V2VIN for
available only in eight-pin
negative inputs.
packages, so the circuit would
The dual comparators of Figrequire three eight-pin packure 1 can have slightly different
ages. To reduce the chip count,
thresholds. You can select the
the circuit in Figure 2 uses an
dual op amps in Figure 2 for inabsolute-value amplifier drivput offsets below 1 mV; doing so
ing a single LM311 comparaallows the circuit in Figure 2 to
tor, IC2. Although at first glance
EDN02022di-28412
the circuit in Figure 1 may look
improved dc performance.
Heather offer
simpler than the one in Figure
Another advantage of the circuit
2, you can save pc-board area
in Figure 2 is the fact that you
and improve performance by
need change only R2 to set the
gain of the circuit. Most comusing a dual amplifier in a sinparators have offset voltages of
gle eight-pin DIP and an
Channel A is the rectified (absolute-value) output of
several millivolts, so scaling up
LM311, also in an
Figure 3
IC1B; Channel B is the output of the comparator.
the input voltage improves accueight-pin DIP. In Figracy by increasing the signal/offure 2, when the absolute value
of VIN exceeds VREF, the output of com- clamped to the forward voltage of D1. Be- set ratio. The circuit in Figure 1 would
parator IC2 goes low. When VIN is posi- cause the inverting input of IC1A and IC1B require the addition of another op amp
tive, IC1A inverts the signal, and the volt- are both at virtual ground, no current to achieve this goal. The simulation in
age at R5 is equal to VIN. The current flows through R3 and R5. With IC1A ef- Figure 3 shows the circuit response.
flowing through R5 is 2 times that flow- fectively out of the circuit, IC1Bs gain is Channel A is the output of IC1B. Chaning through R1, and the output of IC1B is 1, and the output voltage is positive. nel B is the output of the comparator
equal to VIN. When VIN is negative, D2 The inverting-input voltage of IC2 is al- with VREF set at 1V. Marker 1 corresponds
blocks the output of IC1A, which is ways at a positive value. This circuit is to the 1V threshold, and Marker 2 corresponds to logic low at the output of the
VREF
comparator. The circuit in Figure 4 is anR1
R2
other variation of the circuit that uses a
2k
2k
R3
single 5V supply. It works for input sig5V
Figure 4
1k
5V
nals of 0 to 5V and VREF of 2.5 and 5V.
The 0 and 5V inputs result in the maxiD1
R4
mum value of 5V at the output of IC1B.
_
VIN
D2
+
R5
IC1A
With VIN at 2.5V, the output of IC1B asIC2
1k
_
LM1458
LM311
IC1B
1k
sumes the minimum value of 2.5V.
_
+
LM1458
+
2.5V
You can modify the circuit in Figure 2 to work with a single supply.
design
ideas
Figure 2
R=4 k
f=17.2 kHz
1 + R 2 / R1
. (2)
3 + j(RC1 / RC)
(3)
1
1
or f 0 =
,
RC
2 RC
(4)
256D
R AB .
256
(5)
R=450
f=100 kHz
RAB is its end-to-end resistance. To sustain oscillation, the bridge must be in balance. If the positive feedback is too great,
the oscillation amplitude increases until
the amplifier saturates. If the negative
feedback is too great, the oscillation amplitude damps out. As Equation 2 shows,
the attenuation of the loop is 3 at resonance. Thus, setting R2/R12 balances
the bridge. In practice, you should set
design
ideas
dependent variables. With proper selection of R2B, the circuit can reach equilibrium such that VO converges. However,
R2B should not be large enough to saturate the output. In this circuit, R2B is a
separate 100-k digital potentiometer.
As the resistance varies from the minimum value to 35 k, the oscillation amplitude varies from 0.6 to 2.3V. Using 2.2 nF for C and C, and a 10-k dual
digital potentiometer with R and R set
to 8, 4, and 0.7 k, you can tune the os-
www.ednmag.com
design
ideas
design
ideas
VREF
2.5V
R1
2390
Figure 1
R1
2390
R4
VOUT=VREF
618k
RTRMIN
.
RMAXRMIN
RMINRTRMAX.
A
IB
RT=
VOUT(RMAXRMIN)
R3
1 mA
RT
100
R2
110
27.1k
PRTD
NOTES:
RMIN=109.73 (25C).
RMAX=119.40 (50C).
VREF
+RMIN.
IB=SENSOR REQUIREMENTS,
OR
VREF
.
(RMIN+RMAX)
V=IB(RMAXRMIN); G=
R1=(ZRMAX) 1+ 1 .
G
VREF
VREF
.
; Z=
V
IB
R2=ZR1
R3=(G1)
R1R2
.
Z
R4=GR1.
This circuit allows you to optimize resolution for sensors using resistive elements.
www.ednmag.com
design
ideas
R + R4
VOUT = VS+ 3
R3
R2
R1
R4
IC1
+
VCC
R3
VOUT
IC2
+
VS
VS
This circuit is a good sensor amplifier but suffers from a lack of variability.
R + R 2 R 4
.
VS 1
R 1 R 3
To ensure equal gain for the two
R4
R3
R2
R1
(1p1)R p1R
p1R (1p1)R
ground-referenced voltages makFigure 2
VREF
ing up the differential sensor voltL
H
W H
W L
5V
age, you must impose the following con100k
100k
dition:
U/D
R1 + R 2 R 3 + R 4
.
=
R1
R4
This restriction complicates the design
and makes it difficult to add variability to
the circuit. The circuit in Figure 2 has the
same advantageous topology as the orig-
INC
CS
IC2
IC1
5V
VOUT
+
VCC
VS
SENSOR
VS+
CAT5113/5114
inal circuit, but it adds variability and tiometers are identical, the end-to-end
programmability to the gain, simplifies resistances are the same, thus meeting the
the design expressions, and reduces the (R1R2)(R3R4) requirement. If you
component count. Two ganged Catalyst reverse the wiper-to-low and wiper-todigitally programmable potentiometers high resistances for IC1 and IC2, R1 and R4
EDN0203di28572
replace resistors R1 through R4. The po- are equal. If you mathematically model
Heather
tentiometers wiper-to-low and wiper-tothe wiper-to-low and wiper-to-high rehigh resistances establish the voltage sistances as (1p1)RPOT and (p1)RPOT, the
gains of IC1 and IC2. Because the poten- gain expression becomes
www.ednmag.com
design
ideas
VOUT =
VS+VS
, FOR 0 p1 1.
1p1
The factor p1 models the relative position of the wiper as it moves from one
end (p10) of the potentiometer to the
other end (p11). The number of values
p1 can assume is a function of the num-
design
ideas
Figure 3
Figure 4
tially dangerous and harmful actions, and some of them may contain viruses. Use the macros at your
sole risk without warranty of any
kind.
When using the Clip Gallery in a
shared-development environment,
and also with regard to network-installation or distribution issues, refer to the licensing/legal information, Legal restrictions for using
clips provided in the Clip Gallery
in the in the Help menu and the Microsoft Office End-User Legal
Agreement, because certain restrictions could apply.
You can download several sample
macros from the Web version of this article at www.ednmag.com. You can use
them to Add Label to the selected graphic component, to resize the component
or to rotate it 45 clockwise.You can store
macros in the Macro Module that you
add to the default Normal.dot template,
thus affecting all opened documents. Alternatively, you can store the macros in
the Template Macro Module within the
MyCad.dot file. In this case, the
macros are available only for
opened documents based on
the MyCad template file. For
more information on creating
and storing template files, refer
to the Microsoft online Help
features.
design
ideas
Heather
www.ednmag.com
design
ideas
5V
1
2
3
4
INC
U/D
H
GND
VDD
D1
WHITE LED
8
5V
DD1
CS 7
6
L
W
R2
75
D2
WHITE LED
R1
75
5V
IC1
MAX5160
5V
2
1
IC2
NC7S14
4
5
2
R3
1k
Q1
ZXM61N02FTA
3
BAT54S
C1
0.01 F
V V V
H = CkR P ln CC D N ,
By controlling the duty cycle of a Schmitt trigger, you obtain 32 steps of brightness in an LED
VCCVDVP
display.
where k is the wiper position, VCC is the
100
supply voltage, VD is the diode voltage,
and VN and VP are the threshold
2
1 IC
Figure 2
1
DUTY
voltages of the Schmitt trigger.
CYCLE 50
The output of IC1 is low when
(%)
SCHMITT TRIGGER
V V
L = C(1k)R P ln D P .
VDVN
kR P
DC = 100
=
(1k)R P + kR P
100
kR P
= 100k.
RP
D1
10
15
20
25
30
35
TAP POSITION
POTENTIOMETER
D2
(1k)RP
kRP
Figure 3
940
920
FREQUENCY 900
(Hz)
880
860
840
0
10
15
20
25
30
35
TAP POSITION
Figure 4
design
ideas
Figure 1
12V
FAN
12V
4.9k
10 F
Si9424DY
5V
VREF
1 MAX6003 2
3
R1
301k
R4
20.5
4 MAX6605
0.1 F
R3
27k
1 nF
TO REDUCE
THE OFFSET
1 nF
TO INCREASE
THE OFFSET
R5
169k
5V
3
2
MAX4402
VREF
1
+
MAX4402
2N2222
6
2N2222
1k
R2
3.16k
1k
390 pF
390 pF
R6
100k
This circuit delivers a continuous and linear fan-control voltage that is proportional to temperature.
www.ednmag.com
design
ideas
culate R5169 k. In some cases, the required offset gain is greater than the required slope gain, so you must increase
the temperature sensors natural offset.
For a desired temperature, Curve C, expressed as VFAN(0.114 V/C)(T)8.5V,
the gain (slope) of AV9.58 is the same
as for Curve B, but the required offset
gain is (8.5/0.744)11.42 is greater. You
therefore use the To increase the offset
version of the circuit in Figure 1. The following equation applies in such cases:
R 4 R 1 ( V Y-INTC /A V V TEMP0 )/( V REF
VINTC/AV)20.41 k, where VY-INTC
8.5V is the intersection of the desired
temperature curve with the y-axis. For
R1301 k, the closest 1% value for R4 is
20.5 k.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
5V
R1
DOWN
16
15
14
13
12
11
C1
R
4
7 DISC RESET
2
6
8
VCC
OUT
555
TRIG
THR
CTRL
GND
UCN5804B
VDD
OUTB
OE
KBD
OUTD
DIR
GND
GND
GND
GND
2
3
4
5
STEP OUTC 6
10 STEP KAC 7
8
9
1PH
OUTA
5V
C2
MANUAL
CONTROL
UP
FROM
COMPUTER
5
C
1
C
By changing the pushbutton in Figure 1 to a dpdt switch, you can make a stepper motor run clockwise and then counterclockwise without microprocessor control.
www.ednmag.com
design
ideas
1000
VPP
5 TO 16V
VCC
Figure 1
7
3
Q1
+
10 F
2N3055 WITH
HEAT SINK OR
EQUIVALENT
6
IC6
2
MAX427
4
RSENSE
+
1 F
VEE
RS+
POWER CONTROL
VPC
10k
3k
3k
27k
3k
1
IC5
2
MAX427
4
VEE C1
100k
MAX427 4 2
6
IC4
+ 3
7
T1
TEST POINT VEE
RLOAD
IC2
MAX4372H
0.1 F
OUT
GND
+ 3
10 F
RS
VCC
VCC
0.1
7
10k
6
4
10
10k
11
14
OUT
IC3
2
2
3
MAX427
1 nF
15k
2k
1
RY
20k
RX
20k
J2
2
1
1
10k
13
12k
13k
10k
2
3
X+
VEE
10k
J1
12
2
33k
VCC
ROUT
10k
Y+ 4
IC1
MC1495
OUT+
Y
VEE
39k
7.5k
5k
RSCALE
15k
VEE
2k
www.ednmag.com
design
ideas
sembled listing for the termination message, finds the routine that displays the
message, and then traces backward
through the calling sequence until he locates the decision code. Often, changing
a single hex byte in a binary image of the
executable code completely bypasses the
decision logic. Or changing the byte can
reverse the decision logic. (The new copy
runs only if it does not have a license.) The
edited file can then generate a new .exe
file. For example, you could replace the
hex code for a JNE with a JMP (jump always) or a JE. To thwart hackers,
1. Select the code, CPT, consisting of a
single routine or a block of contiguous routines, that implements the licensing scheme.
2. Compile the application, linking in
temporary code CEN that generates
a CRC of the associated object bytes
and then compress and encrypt the
design
ideas
routine computes a CRC of the decrypted block. If this CRC matches the original CRC, the application then constructs
a pointer to a decrypted entry-point
function and uses the pointer to execute
that function. CRCs that differ from each
other indicate the use of the wrong public key, and the application terminates,
because executing the still-encrypted
code could be catastrophic. As a result,
any system calls made from within the
encrypted code do not show up in any
disassembled listing. A hacker can detect
them only if he or she is willing to acquire
and use an emulator and trace through
the execution.
Compression of the code to be encryptedbefore encryptionprevents
the hacker from simply replacing the encrypted bytes with the decrypted bytes.
Now, even if the hacker recovers the decrypted bytes, he cannot subvert or
change the licensing logic and then encrypt and replace the existing encrypted
bytes, because he does know the private
key, K1. You should also encrypt all messages that the encrypted routines use.
Most compilers for Windows/DOS generate position-independent code that results in relative calls: Jumps and Branches. When the system compiles and links
the original application, the compiler assumes that all code executes from code
space. Subroutine calls compile into PCrelative call instructions with the correct
displacements. However, the decrypted
routines run out of dynamically allocated data memory, so the displacements are
all wrong.
The solution is to force all subroutine
calls from the decrypted routines to be
made to absolute addresses. However, the
absolute addresses of all linked functions
depend on the compiler and the options
used, the order of the linked libraries, and
the size of the user code, which will change
because of Steps 2 to 4. Three solutions
to these problems are:
1. If necessary, pad the code with dummy instructions, such that the size of
CPTCEN equals the size of
CDECCT.
2. Link all subroutines called from
within the decrypted code to fixed,
www.ednmag.com
design
ideas
this problem, but using dead time is inadequate in some applications. Figure 1
illustrates a step-down power supply in
which a step-down controller, the
MAX1718, provides the CPUs core supply. Recent CPU cores require a 1 to 2V
supply rail at more than 20A of input
current. The input-voltage range, on the
other hand, is 7 to 20V. This scenario dictates a low duty cycle for the high-side
MOSFET.
Obtaining high efficiency with a low
duty cycle requires different types of
MOSFETs for the high- and low-side devices, Q1 and Q2, respectively. Q1 requires
high switching speed even if its on-resistance is relatively high, but Q2 requires
low on-resistance even if its switch speed
is relatively low. This combination of parameters allows no possibility of shootthrough current when Q2 turns on, because Q1s fast turn-off occurs first.
Because Q2s turn-off is slow, however,
you must allow enough dead time before
Q1 turns on. The MAX1718 solves this
problem by monitoring Q2s gate voltage,
thereby ensuring that Q1 turns on only
after Q2 shuts completely off.
Now, consider a third condition leading to the possibility of shoot-through
5V INPUT
20
Figure 1
0.22 F
VCC
VDD
SKP/SDN
V+
CMPSH-3
SHUTDOWN
25V
510 F
TON
BST
VCC
D0
Q1
DH
D1
0.68 H
LX
D2
SUMIDA
CEP125#4712-T011
QGD
100k
D3
Q2
D4
DL
MAX1718
ZMODE
OUTPUT
0.6 TO
1.75V
0.004
0.1 F
100k
MULTIPLEXER
CONTROL
BATTERY
7 TO 24V
6270 F
2V
CENTRAL
SEMICONDUCTOR
CMSH5-40
QGS
GND
SUS
REF
SUSPENDINPUT
DECODER
FB
WHEN QGD IS LARGE,
AN ADDITIONAL
CAPACITOR CAN
IMPROVE EFFICIENCY
S0
S1
NEG
62k
TIME
4.75k
47 F
5V
POS
CC
511k
0.22 F
REF
VGATE
24.9k
ILIM
100k
POWER-GOOD
OUTPUT
OVP
27.4k
www.ednmag.com
design
ideas
90
WITH 4700-pF
CAPACITOR
80
WITHOUT
CAPACITOR
70
60
50
0.1
10
100
www.ednmag.com
design
ideas
www.ednmag.com
5V
1
56k
RSET
2
TRIG
IC2 THRE 6
NE555
CONT 5
3
OUT
8
VCC
7
D1
1N4148
10k
GND
DIS
10k
100k
2 _
IC1A
3+
47k
8
5 +
IC1B
6 _
4
Q1
2N3904
4.7k
+ C1
1 F
C2 +
1 F
15
5V
IR LED
5V
D2
3
10k
OUT
P1
VOUT
5V
CATHODE
4
IC3
VCC
S6846
C3
0.1 F
GND
GND
NOTES:
IC1: TEXAS INSTRUMENTS TLV2252IP.
IC2: NATIONAL SEMICONDUCTOR LM555CN.
IC3: HAMMAMATSU S6846.
D2: LUMEX OED-EL-1L2.
design
ideas
lem, a user must usually step the potentiometer in a nonlinear sequence to simulate a logarithmic taper. For this reason,
the potentiometer needs many taps, and
you need software help to complete the
design. The circuit in Figure 1 is a low-
6 dB
3 dB
R1
16.5k
1%
1 F
R2
4.02k
1%
0 dB
R3
4.22k
1%
3 dB 6 dB
9 dB 12 dB
R4
4.22k
1%
R5
4.02k
1%
R6
3.57k
1%
12
R7
3.01k
1%
dB
R8
10k
1%
R9
0
AUDIO IN
VOLUME V
1
BITS
V0
15
14
13
16
S2
VCC
10 S1
VSS
S1
S0
IC2
VEE
74HC4051
11
S7
S0
S6
S5
S4
S2
S3
EN
6
0.1 F
Figure 1
6
VCC
SHTDN
100 pF
4
_
IC1
LM4882
+
4
V2
100 F
BYPASS
0.1 F
GND
GND
Figure 2
12
VOLUME BITS
V2 V1 V0
VCC
GATES:
74HC132
Q3
2N3906
IC4B
1 nF
10k
IC4D
1 nF
10k
IC4A
330k
10k
0.47 F
S1
UP
IC4C
330k
330k
0.47 F
S2
DOWN
330k
330k
Q1
2N3904
9
10
Q3
IC3
P2
Q2 74HC193
1
2
P1
Q1
15
3
P0
Q0
330k
10k
RST
VCC
330k
Q2
2N3904
14
P3
7
330k
330k
13
CY BW
330k
DN
UP
220k
LD
11
330k
0.47 F
www.ednmag.com
design
ideas
design
ideas
www.ednmag.com
design
ideas
pc-board-area standpoint. The configuration in Figure 1 combines the industry-standard 82C54 unidirectional
counter-timer peripheral chip with simple software to provide a convenient interface of quadrature encoders with the
ISA I/O bus. The technique digitizes bidirectional motion without tears.
As Figure 2 illustrates, the trick is to
use two unidirectional counters of the
three that the 82C54 contains. You use
one counter for each encoder-rotation
direction. One of the encoder quadrature-output signals, A, drives the gate
pins of both counters. This connection
selectively enables counting once every
encoder-output cycle. A couple of
Schmitt-trigger inverter stages phasesplit the other encoder output, B, into
two complementary signals. One phase
drives the trigger input of the clockwise
counter (82C54, Counter 1); the other
phase drives the trigger input of the
B3
B29
5V
+ 330 F
6.3V
B1
B10
B31
DB7
DB6
DB5
DB4
DB3
A3
DB2
DB1
DB0
A7
A8
A9
9
A
8
7
6
5
4
3
Figure 1
B13
LS645
2
19
A22
A23
A11
A25
A26
1
C2 18
A4
A5
A6
B14
A24
5V
4.7k
A2
A27
A30
A31
5V
11
12
13
14
15
16
17
4
5
6
7
8
18
E
C2CCW
C1CW
3,4
A9
5
A8
AEN
A6
12
A5
11
5
I0W
6
2
6
B
5
100 pF
10k
10k
4.7k
5
4
3
TO
ENCODER
100 pF
D0
A1 A0
RD W R
21 20 19 22
2
3
16
C1 15
14
G1
82C54
CS
A4
A1
A0
I0R
A7
G2
1 D7
2
3
23
1
6 9
8
13
10
1
13
12
11
10
9
www.ednmag.com
design
ideas
POWER
FROM PC
USB PORT
3.3V
560
1
R1
D3
D1
D2
4.7 H
+
PORTABLE
SYSTEM'S
BATTERY PACK
LXP
LXN
100 F
220 F2
POUT
10
ON
Q1
3
47 F +
+
20k
180k
TO LOAD
NODE 1
(5V/DIV)
OUT
0.22 F
100k
REF
0.22 F
IC1
MAX1703
NODE 2
(2V/DIV)
NODE 3
(2V/DIV)
FB
AO
AIN
Figure 2
121k
CLK/SEL
PGND
200k
GND
200
mSEC/DIV
Figure 3
A boost-converter circuit is an improvement over the simple diode-OR connection.
www.ednmag.com
design
ideas
edn02041di28901
Heather
www.ednmag.com
design
ideas
HOURS
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
4
750
135
so they cant display the
filter corrects the cables
560
pulse that triggers the
phase and amplitude
290
140 H
2.8 H
sweep. Moreover, early labdistortion over a 105V
oratory scopes conMHz band.
Figure 1
tain delay lines havEach of these two filing insufficient delay to This circuit modifies vintage oscilloscopes having no internal delay line.
ters is basically a resisdisplay such pulses during
tive attenuator, but fast
a uniform portion of the sweep.
steps can bypass the attenuation durWith such oscilloscopes, the true
ing a time constant, . For short times,
pulse shape remains a mystery.
the equalizers input port sees a load
You can circumvent these limitaof only the 75 cable via the capacitions if you add an external delay
tor, which presents a short circuit at
line and equalizer. The scope can
high frequencies. The inductor presthen display the exact triggerents an open circuit at high frequenpoint trace. The instrument then
cies, so the resistors have no effect for
becomes easier to use, and the
short times. Eventually, as t surpasses
measurements become more
in the step response, the capacitor
trustworthy. For every additional
and inductor yield to the resistive atmicrosecond of equalized cable,
tenuator while presenting the 75
the scope can display a microsecload to the equalizers input. With
(a)
ond of pretrigger information.
only the first, 180-nsec filter, the
Figure 1 shows the components
step response becomes a more finely
you need to implement these imrounded waveform. With the second,
provements on a Philips PM3230
25-nsec filter, the step response is
10-MHz oscilloscope. The coma sharp step, limited only by the oscilponents are a wideband amplifiloscopes bandwidth. Each filter reer to restore the signal to its origsides in a reclaimed CATV signalinal level and provide a trigger; a
splitter box. You can connect these
750-nsec delay cable; and a pas75 constant-resistance filters at varsive, two-stage equalizer.
ious locations along the delay line
CATV cables, such as RG6U,
without incurring reflections. You can
RG59U, and others, are commontherefore use this arrangement to
ly available at garage sales and secfine-tune the passive components to
(b)
ond-hand stores. You connect the
eliminate residual reflections, using
75 cables with solid or
time-domain reflectometry.
The step response through the 750-nsec
Figure 2
foam dielectrics using stanThe AD8055-based amplifier has
cable (a) and the complete network, includdard CATV connectors to make ing the cable (b), differ.
greater-than-100-MHz bandwidth,
the 750-nsec delay line. A low-imfully adequate for the 10-MHz oscilpedance driver displays the bipolar step ror function, cerf(kl/t (Reference 1). loscope. Its input impedance is 1 M in
response of the delay line, as the eye pat- The time, t, refers to the start of the step parallel with 30 pF to match the oscillotern in Figure 2a shows. The delay line after traversing the cable of 160m length. scopes input and its low-capacitance
transmits approximately 65% of the sig- Computer evaluation of this function probes. Figure 2b shows the final eye patnal at audio frequencies, because of re- shows the constant to be k2.6 tern, using the amplifier, the two-stage
sistive losses. The losses increase at high- 107(sec)0.5/m for best agreement with equalizer, and the 750-nsec delay cable.
er radio frequencies, because of the skin the step response in Figure 2a. You can- This pattern is essentially identical to the
effect in the conductor. The theoretical not adequately correct this functional eye pattern that ensues using the oscilloform for the step response that the skin- form by using the usual single-bridged- scope without the circuit in Figure 1, exeffect loss causes is a complementary er- T filter. You therefore apply time-domain cept for the 750-nsec temporal shift. You
www.ednmag.com
design
ideas
can see the benefit of the circuit in Figthat the circuit in Figure 1 corrects
ure 3. Trace A shows the original impulse
these phase shifts and amplitude
response of the oscilloscope without the A
variations. Trace B shows a short,
circuit. Trace A is merely an uninterestsymmetrical pulse with no tail, an
ing, featureless trace. For Trace B, the ineven function as similar as possible
put impulse passes through the amplifito the input impulse using this oser to the external-trigger input and then
cilloscope.
through the equalizer and delay cable to B
References
the oscilloscopes input. Because its delay
1. Nahman, NS, The measureis longer than the intrinsic delay of the
ment of baseband pulse risetimes of
oscilloscope in starting its sweep, a clean
less than 109 second, Proceedings
pulse of approximately 20 nsec appears
of
the IEEE, Volume 55, No. 6, June
on the display. You can now use the comTraces A and B show the impulse
1967, pg 855.
plete unit as a 10-MHz laboratory
Figure 3
response, respectively, without and with
2. Houtman, Hubert, 1-GHz
oscilloscope.
sampling oscilloscope front-end is
You can define an input impulse as an the delay network.
easily modified, Electronic Design,
even function composed purely of cosine
waves of zero phase. However, the cables sponse is thus no longer an even func- Sept 18, 2000, pg 175.
impulse response is simply the derivative tion, so its composite cosine waves have
of the waveform in Figure 2a and ac- evidently acquired various phase shifts Is this the best Design Idea in this
quires a long, slow tail. This impulse re- accruing to the cable. Figure 3 illustrates issue? Select at www.ednmag.com.
VIN
TPS5103
VOUT
Figure 1
design
ideas
D
C
B
D, C, B:
20 nSEC
200 mV
A:
1 SEC
5V
(a)
Figure 2
(b)
Expanding the dead-time waveforms (a) leads to three scenarios (b): the unadorned buck regulator (Trace B), adding a Schottky diode (Trace C), and
the simple solution in Figure 3 (Trace D).
VIN
TPS5103
OUT_U
VOUT
LL
OUT_D
GND
Figure 3
The circuit in Figure 3 is small and inexpensive and significantly reduces the
phase-node voltage at the control IC. The
gate-drive resistor moves from the gate to
the source of the top FET. Following the
current from the IC as it charges and discharges the gate capacitance of the top
FET shows that moving the resistor has
no effect on the circuit operation. An
SOT-23 or an SOD-123 Schottky diode
with a current rating of 0.5A connects to
the control IC. As you can see in Trace D
of Figure 2b, when the voltage across the
FETs body diode goes to 1V, the Schottky diode clamps the voltage on the IC
to approximately 0.3V. The full output
current flows through the FET, and the
gate-drive resistor limits the current
through the Schottky diode. This solution is small and inexpensive and prevents erratic operation or damage to the
power-supply control IC.
design
ideas
IC2
LM4130
4.096V
5
VCC
MR
RESET
GND
1,2
R4, 10k
4
VREF 5
VIN
C1
GND
0.1 F
2
IC3
ADCV0831
R1, 10k
R2, 100
R3, 10k 6
CLK
V+
D0
VIN 3
2
GND
CS
ZONE 1
C2
0.1 F
IC4
LMC7111
2
3 R5, 100
+
5
RT1
100k
R6, 10k
C3
1000 pF
R7
100k
LM4130
4.096V
LPT1
14
15
16
17
18
19
20
21
22
23
C0
C1
D0
S3
D1
C2
D2
C3
D3
GND
GND
GND
GND
GND
GND
24
GND
25
GND
D4
1
2
10k
4
VREF 5
VIN
C4
GND
0.1 F
2
ZONE 2
0.1 F
3
4
5
6
7
D5
8
D6
9
D7
10
S6
11
S7
12
S5
13
S4
RT2
100k
ADCV0831
10k
100
10k
CLK
V+
VIN
D0
GND
CS
1
2
3
2
5
LMC7111
100
3
+
10k
1000 pF
100k
LM4130
4.096V
4
VIN
0.1 F
10k
10k
VREF 5
GND
2
RT3
100k
ADCV0831
4
100
10k
CLK
V+
VIN
D0
GND
CS
ZONE 3
0.1 F
1
2
3
2
5
LMC7111
100
3
10k
1000 pF
100k
LM4130
4.096V
10k
4
VREF 5
VIN
C10
GND
0.1 F
2
Figure 1
10k
100
10k
0.1 F
RT4
100k
ADCV0831
4
5
6
CLK
V+
D0
VIN 3
2
GND
CS
ZONE 4
2
5
LMC7111
100
3
+
10k
1000 pF
100k
This PC-based thermometer derives its power from the parallel port and uses thermistors to sense four temperature zones.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
Circuit allows
high-speed clock multiplication ..................77
Differential amp needs
no power source ............................................78
Printer port activates
CMOS switches ..............................................80
Circuit improves on
temperature measurement ........................80
Add voice commands
to your CAD system ......................................84
Publish your Design Idea in EDN. See the
Whats Up section at www.ednmag.com.
www.ednmag.com
3 nSEC
This scope photo shows some key waveforms in the circuit of Figure 1.
design
ideas
10M
true-differential, power-sourcefree, high-input-impedance
Figure 1
C
amplifier with bipolar outC1
C3
S1
10 F
put would present distinct advantages in
0.1 F AMPLIFIER GAIN100
R3
A
100k
D
B
2
2
remote devices. Such an amplifier, with
V2
IC1 7
1N914B
6
S
MAXits bipolar output, would be a better
3 7614
R5
E
+
V1
4
choice than a unipolar, 4- to 20-mA deD1
10k
R1
1N914B
GROUND
100k
vice. It would also improve on commonR2
COAXIAL
10M
C2
C4
mode performance. In Figure 1, a MaxCABLE OF LOW
10 F
0.1 F
LEAKAGE
im MAX319 analog switch, IC2, feeds the
10V
DISC
CURRENT
power from the coaxial signal cable to the
charge-holding capacitors, C1 and C2.
The analog switch injects both positive4.5 TO 8V
1
8
and negative-polarity signals into the
SQUARE PULSES
charging circuit when its Control signal
7
8V
2
OUTPUT
C5
LOW-LEAKAGE
has a high (TTL) level. At the same time,
0.1 F
SAMPLE-ANDCONTROL (TTL)
6
3
the output uses a sample-and-hold caHOLD CAPACITOR
SENSE
CHARGE
pacitor to retain the last analog signal
8V
4
5 5V
IC2
during the charging cycle. Thus, the cirMAX319
cuit never loses the signal, as long as the
charging and sensing cycles maintain
A high-impedance differential amplifier is useful in remote locations, because it requires no local
timing within certain limits.
You can increase the values of C1 and power supply.
C2 if the sensing time is considerably
greater than the charging time. Switch S1 ance for IC1, a low-bias-current, low- plification with a range of 10 pA to 1
places the feedback resistor, R4, either in power MAX7614 amplifier. This amplifi- nA, using only R4 for the current-to-volta direct connection to the sample-and- er is an improved version of the ICL7611. age conversion.
hold capacitor, C5, or before R5 to form This amplifier circuit was useful for theran R5-C5 lowpass filter. In either case, R5 mocouple-signal amplification without
is a protective resistor during the charg- cold-junction correction. You can also Is this the best Design Idea in this
ing period, ensuring 10-k load resist- use it for bipolar, low-current signal am- issue? Select at www.ednmag.com.
www.ednmag.com
design
ideas
3
use lower power, consume less board
CURRENT INPUT
space, and are more reliable than electroS1 NO
SOURCE
mechanical relays. The MAX4663 quad
S4 NO
Heather
oughly covered the relationship (references 1 to 4) and has numerous implementations. This Design Idea suggests
some areas for improvement and design
variations on the basic idea. The principal equation describing the phenomenon
is as follows: V86.4Tln(IHIGH/
ILOW), expressed in microvolts. Setting the
current ratio IHIGH/ILOW 10 results in V
design
ideas
www.ednmag.com
design
ideas
you downloaded to the appropriate modules. The screen should look like the
snapshot in Figure 1. From the Debug
menu item, select Complete Project,
and then close the Visual Basic Editor
window and save the file under the name MyCAD.dot
using the Save As menu
option. Add a custom toolbar by selecting from the
menu ToolsCustomize
ToolbarsNew. When a
prompt appears, type the
name for the new toolbar as
MyCAD Symbol Commands and make it available
to MyCAD.dot. Add toolbar buttons related to the
macros stored in MyCAD.
dot. For each button, edit the
button text; it defines the
Custom Voice Command.
The toolbars should finally
This Visual Basic Editor screen has the template file
look like the snapshot in
MyCAD.dot with two standard modules.
Figure 2. Save the file and
close MS Word 2002. You
Finally, I set the font size to 14 points by can consult Microsoft Office Help utility
saying font size and then 14, and I for more details on how to add custom
then underlined the title by saying un- toolbars and buttons.
derline. You can add custom VCI by folPut the file MyCAD.dot into the MS
lowing several steps:
Word or MS Office start-up directory.
First, start MS Word 2002 and open a Typically, the path is C:\Program
new file. Go to the Visual Basic Editor Files\Microsoft Office\Office10\Startup.
screen (shortcut: AltF11); add two Then, start MS Word 2002, enable the
standard modules, mod_View and macros in MyCAD.dot upon the system
mod_Symbol; and copy the macros prompt, open a new document, and test
Built-in commands:
menu and toolbarsbutton text
Voice commands
Grid lines
Add labels
Flip horizontal
Increase
Reduce
Rotate right
File
Edit
View
Insert
Tools
Help
Bold
Underline
Cancel
0
1
1
0
0
2
4
0
0
Misinterpreted
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
www.ednmag.com
design
ideas
Reference
1. Bell, Alexander,Add CAD functions
to Microsoft Office, EDN, March 21,
2002, pg 94.
Is this the best Design Idea in this
issue? Select at www.ednmag.com.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
These considerations improve response speed and reduce losses in the high-current outputs. Note that this
simple circuit is versatile; you
can apply it to various
switches and rectifiers in
most power-circuit topologies. The concept can even
improve on well-known softswitching techniques.
Is this the best Design Idea
in this issue? Select at
www.ednmag.com.
www.ednmag.com
design
ideas
TON=160 SEC
TON=25 SEC
2
(a) TOFF=5 SEC
R10
V DC
Figure 1
5.1k
D1
D3
Q1
R1
R2
5.1k
5.1k
Q3
F1
IN CW
D2
D5
D4
Q2
C3
1000 F
Q5
R6
R8
5.1k
R3
R4
5.1k
R9
IN
CCW
Q4
0V
R11
1k
8
IC1
Q6
D6
D7
5.1k
5.1k
470
R7
5.1k
R5
R12
10k
D8
5.1k
C1
10 nF
C2
22 nF
NOTES:
Q1, Q3=TIP142.
Q2, Q4=TIP147.
Q5=BC161, BC556, 2N3906.
Q6=BC160, BC546, 2N3904.
IC1=555 TIMER.
D3 TO D6=BYV26E.
D1, D2, D8=1N4148, 1N4007.
D7=15V, 0.4W ZENER.
You can set a motors rotational direction and speed using this simple circuit.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
IRMS (C1 )=
2
;
1 / T T0 / 2 (C1 ()VPEAK cos(t)) dt
design
ideas
Routine automates
pattern/sequence detection
K Venkatachalam, Murugesh Rajiah, and Vijayakrishnan
Rousseau, Tata Elxsi Limited, KR Puram, Bangalore, India
equence detection is
a common operation
in many communication and security systems.
Some good examples are
HDLC-flag identification
and signature analysis. As
the complexity of the system increases, designing
circuitry for sequence detection becomes tedious
and laborious. Using the
software tool in this Design
Idea, you can generate
HDL code in VHDL or
Verilog formats
These are the options available for the sequenceFigure 1
for both Mealy
detection method.
and Moore machines for
any sequence of arbitrary length. The tool can assume values of 0 to n1). Let the
additionally presents options for infer- n-bit sequence be represented as an array
ring the sequence-detector state machine of bits called SEQ. The index of the arin one of the popular encoding styles, ray ranges from 0 to n1. In the
such as one-hot, binary, and Gray. Let S0 pseudocode, the state machine generally
to Sn1 be the states of a Mealy machine switches from Sm to Sm1 on detecting
for n-bit sequence detection. The key to an input that matches the next bit in the
any state-machine design is to find the sequence. But this is not the case for the
next state transition, which is a function last state. For nonoverlapping sequence
of the input and the current state. Any detection, the state machine switches
state Sm (0mn1) indicates that the from the last state to the initial state (S0)
m bit of the n-bit sequence has been de- upon detecting the last bit of the setected so far.
quence. On the other hand, for an overThe state machine switches from Sm to lapping sequence detection, the state maSm1 on detecting an input that match- chine either stays in the last state or
es the next bit of the sequence. Other- switches to one of the previous states
wise, the state machine stays in the same upon detecting the last bit of the sestate or switches one of the previous quence. The routine determines the statestates. The state machines status depends machine behavior in the same way as it
on the currently received bit and the pre- determines the next state transition for
viously received bits. If this pattern of bits an input that doesnt match the next bit
matches the pattern of bits successfully of the sequence. Refer to the while loop
detected in any of the previous states, of the if and else blocks of the
then the state machine switches to that pseudocode.
state. Listing 1 is the pseudocode of the
For both overlapping and nonoverlapalgorithm for determining the next state ping sequence detection, the output
transition from any state Sm (where m switches high from the last state when the
www.ednmag.com
design
ideas
method detects the last bit of the sequence. You could generate a Moore machine by following the same concepts.
The only difference would be that the
number of states is one more than that of
a Mealy machine. Moreover, the output
depends only on the states and not on the
input, and it goes high only in the last
state where the sequence has been successfully detected. This tool can no doubt
help a designer to focus on high-level designs, rather than intricate design details.
You can extend the idea to detecting double sequences, such as start-of-frame and
end-of-frame sequences, and sequences
having more than one bit as inputs. You
can download Listing 1 and an executable file that creates a GUI (Figure 1)
for the sequence detection from the Web
version of this Design Idea at www.ednmag.com.
www.ednmag.com
design
ideas
(
1
p)R POT
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
VPP
VCC
27k
3k
10k
6
OUTPUT
3k
_ 2
IC4
MAX427
+ 3
7
VEE
OPTIONAL INVERTER
6
10k
3
+
MAX427
IC3 _ 2
VEE
Figure 1
1
33k
MC1495
X
13
2
15k
3
2k
20k
1 RX
1
15k
10k
J2
VCC
2
10k 1
2
J1
10k
3
13k
3
RSCALE
5k
VEE
3
39k
VCC
Y 4
12k
10 F
10k
11
Y X V
8 12 7
0.1 F
IC1
2 OUT
ROUT
10k
7.5k
6 10
14 OUT
3k
5
1
OUT
RS
IC2
MAX4372H
RS
GND
RSENSE
0.1
10 F
VEE
20k
RY
2k
This power meter, whose output voltage is proportional to load power, achieves 1% accuracy.
www.ednmag.com
RLOAD
design
ideas
7 10 14
CA CA CA CA CA
AAA
F
B
F
B
GGG
E
C
E
C
L DDD R
VDD
DPR G
8 12
2
3 SDI
CLK
4
LE
13
OEB
F
2
E
4
D C
A DPL
IC2
A6275E
DPR G
8 12
14
SDO
16
VDD
1
GND
15
REXT
VDD
7 10 14
CA CA CA CA CA
COMMON-ANODE
SEVEN-SEGMENT DISPLAYS
5 6 7 8 9 10 11 12
OU OU OU OU OU OU OU OU
T0 T1 T2 T3 T4 T5 T6 T7
2
SDI
3
CLK
4
LE
13
OEB
F
2
E
4
D C
9 11 13 1
A DPL
6
5 6 7 8 9 10 11 12
OU OU OU OU OU OU OU OU
T0 T1 T2 T3 T4 T5 T6 T7
IC3
A6275E
14
SDO
16
VDD
1
GND
15
REXT
VDD
C2
3
2
1
TO
ADDITIONAL
A6275E
DRIVERS
R5
3
+
IC1A
AD8542
2
R3
100k
R1
909
100k
VDD
R4
10k
9 11 13 1
0.1 F
8
VDD
SERIAL-BUS
CONTROL LINES
FROM CPU
Figure 1
8
IC1B
AD8542
6
R6
909
VARIABLE "GROUND" NODE
R2
1k
C1
Q1
STP30NE06L
NOTES:
PIN NUMBERS ARE FOR PANASONIC LN518OA SEVEN-SEGMENT DISPLAYS.
BYPASS CAPACITORS FOR IC2 AND IC3 NOT SHOWN.
1000 pF
An analog control loop provides an adjustable ground node to control the current flowing through the resistors that set the segment currents.
www.ednmag.com
design
ideas
CC
ou sometimes need to measure a
small signal in the presence of
Figure 1
a large common-mode signal.
IC1A
1
Traditional instrumentation amplifiers
2 AD5235
that use two or three op amps in their inV1
A
V+
3 +
ternal structure find common use in
W2
IC2
these applications. The circuit in Figure
B
AD8628
1 presents an alternative approach that is
2
VOUT
R
= W1B2
R W 1A 2
R W1B2
1 + R
W 1A 2
V2V1 ,
1 + R W 2 A1
(1)
R W 2B1
VOUT
40
30
20
10
100
1k
10k
100k
1M
10M
FREQUENCY (Hz)
A plot for common-mode rejection ratio versus frequency for the circuit in Figure 1 yields a figure
of 98 dB.
ference of the two inputs times a gain factor that you can set to any desired gain,
including unity. Equation 2 holds true
because the same chip integrates all the
resistors; therefore, their values match
tightly. The low-frequency commonR
VOUT W1B2 (V 2 V1 ).
mode rejection ratio is approximately 98
R W1A 2
(2) dB (Figure 2). Because of the tight
You can see that the output is the dif- matching, the circuit can achieve a tem-
design
ideas
FDB
any applications require curIC1
L1
LM2576
1
100 H
rent sources rather than voltage
7 TO 30V
VIN
2
OUT
+
sources. When you need a highC2 +
C1
1000 F
100
F
current source, using a linear regulator
GND ON/OFF
D1
1N5822
3
5
is inadvisable, because of the high power
dissipation in the series resistor.
Figure 1
To solve the wasted-power problem, you can use a switch-mode regulator. The circuit of Figure 1 uses IC1, an A switching voltage regulator forms a good
LM2576 adjustable regulator. It needs basis for a constant-current source.
only a few external elements and has an
adjustable sensing input, which you use er. The required gain depends on the outfor controlling the output current. Resis- put current you need: GVREF/VSC,
tor RSC is a current sensor. IC2A, one-half where G is gain, VREF is the voltage on the
of a TL082 op amp, operates as a differ- sensing input of the LM2576, and VSC is
ence amplifier. When R1R2R3R4, the the voltage across RSC. Note that
output voltage is proportional to the cur- VSCIOUTRSC, where IOUT is the output
rent flowing in RSC. Good common- current. For example, if IOUT2A and
mode rejection and a wide common- RSC0.12, then VSC0.24V. Typically,
mode voltage range are important, for the LM2576, VREF1.237V. So, you
because the amplifier works with large, can obtain the gain of the noninverting
amplifier from the gain equation:
changing common-mode signals.
The second half of the TL082 op amp, G5.15V/V. The overall gain of the nonIC2B, operates as a noninverting amplifi- inverting amplifier is G1R7/R6. If
RSC
0.12
R2
100k
R1
100k 2
R3
100k
R4
100k
IOUT
LOAD
15V
IC2A
TL082
3+
4
R5
20k 5
15V
R6
24.1k
+
IC2B
TL082
6
R7
100k
edn020502di28971
www.ednmag.com
design
ideas
IC1
IC2
QOUT
ON
www.ednmag.com
A notched cam controls a proximity switch, which determines the motors stop positions.
and omits protection, correct polarization, and a braking circuit, for example.
IC1 is the latching optocoupler. IC2 is an
npn-transistor, NO proximity switch.
The proximity switch is on when metal
is near its sensing area. A cam with a
notch mounts on the motor axis. The
motor should stop when the notch passJune 13, 2002 | edn 93
design
ideas
www.ednmag.com
design
ideas
Figure 1
connector). The low-power design consumes less than 1-mA of operating current.You derive the positive supply, V, and the logic supply, VL, by using You can obtain eight-channel analog measurements through a PCs LPT port.
IC3, a simple, ICL7660-based voltagedoubler circuit. The ICL7660 is a negaADC. After receiving the MSB, the softtive-voltage converter. The bits D0
ware generates the serial-clock output
Figure 2
through D3 (pins 2 to 4 on the con(SCLK) through Pin 14 (Auto Line Feed
nector) provide the channel-selection
output) in the Control port (0x37A) and
function. The controlling software in this
then receives the remaining 11 bits from
CHANNEL 1
design uses National Instruments
the ADC. Upon reception of all 12 bits,
CHANNEL 2
(www.natinst.com) LabView Version 6.0
the CS input goes high to enable the ADC
graphics language. The software allows
to accommodate new data in its tristate
CHANNEL 3
for channel selection through the Data
output buffer. The sequence continues,
CHANNEL 4
port (0x378) and collects the ADCs seand the digital panel meter displays the
CHANNEL 5
rial data through one of the bits in the
acquired data. One input of the LPT port
LPT1 Status port (0x379). (The Status
(control port 0x37A, Pin 15) acquires the
CHANNEL 6
port uses Pin 15 on the connector, the
serial, 12-bit data. The controlling softCHANNEL 7
LPT ports Error input.) You can downware shifts most of the bits left, accordCHANNEL 8
load the LabView software from the Web
ing to the bit position, and some of the
version of this Design Idea at www.edn
bits right (because the serial data is in the
This front-panel view represents a LabView
mag.com.
fourth bit of the data in the status port
Once the ADC completes the conver- Virtual Instrument for an eight-channel ADC.
(0x379)). The software sets other bits to
sion, its Data Ready pin switches from
zero.
high to low. The DRDY output of the (0x379) on Pin 10 and sets the ADCs
Finally, a logical OR function of the 12
ADC connects to the LPTs port Pin 10 chip-select pin CS to low, through Pin 1 bytes/words delivers the 12-bit pattern of
on the connector (the Acknowledge in- (Data Strobe output) in the Control port the acquired signal. For example, the 12th
put). The controlling software senses the (0x37A). The routine then receives the bit (MSB) appears as the first bit for
DRDY signal through the Status port MSB (most-significant bit) from the transfer. This bit must be set as the 12th
www.ednmag.com
design
ideas
position of the word; hence, the data received through the fourth bit, D3, must
shift left through seven positions to be assigned as an 11th bit, and so on. In this
sequence of data structuring, once the
fourth bit (LSB 4) of the 12-bit pattern
appears, it needs no shifting, because it is
an actual D3 bit. The third bit, D2, requires shifting in the right position by
one, and the D1 and D0 bits need rightshifting by two and three, respectively.
This method of shifting and finally performing a logical-OR operation delivers
the exact 12-bit data pattern from the serial data received through one line of the
parallel port.
D0 through D3 bits in the Data port
(0x378) enable the channel selection. For
each channel selection, the cited sequence of acquiring the data and conditioning it provides eight independent
digital readouts. The downloadable LabView Virtual Instrument program (newmulti_MAX187.vi) is a self-explanatory
graphics program for the data-acquisition process. In the program, a time de-
lay of 125 sec between SCLK and the serial-data read sets the data-transfer rate
at 4 kHz. This time delay allows the read
cycle to read exactly at the midpoint of
the data bit to avoid improper data reads.
You can reduce the time delay for faster
data acquisition. Figure 2 shows the
front-panel view of the LabView Virtual
Instrument.
Is this the best Design Idea in this
issue? Select at www.ednmag.com.
www.ednmag.com
design
ideas
AVDD
through the low-value resistor. You can
EMF1
IOUT1
IEXC1
thus take two measurements and
Figure 2
eliminate the effects of EMF1 and
IEXC2
IOUT2
EMF2. To increase the excitation current
RLOW
and thereby increase the measurement
AIN1
EMF2
sensitivity, the two internal 200-A exAIN2
citation currents appear in parallel with
MULTIeach other. Thus, a single 400-A current
PLEXER
AIN3
source makes up the excitation current,
ADR420
A
A
Q1
Q2
BUFFER
IEXC, in this design. Transistors Q1 and Q2
AIN4
AND
steer the excitation current through the
PROGRAMMABLEGAIN
reference resistor, RREF, to ensure that the
AMPLIFIER
REFIN1(+)
same polarity reference voltage always
IC1
AD7719
RREF
appears, regardless of the excitation-curPHASE 2
REFIN1()
rent direction. Port pins P1 and P2 (not
CURRENT FLOW
AGND
shown) of the AD7719 drive the transistors in antiphase mode. A value of 6.8 k
for RREF is suitable and ensures a typical
In this configuration, the excitation current reverses, and flows from the bottom of RLOW to the top.
ratiometric reference voltage of 2.5V.
Figures 1 and 2 show the current flow
in each phase of a measurement. During EMFs: VDIFFVDIFF(PHASE1)VDIFF(PHASE2) 2.048V output, provides the known voltPhase 1, the excitation current flows out (IEXC)(RLOW).
age. It connects to the second pair of difFinally, you need to turn this ratio- ferential inputs, AIN3 and AIN4, and into
of IOUT1, through RLOW, and through RREF
via Q2 to ground. During Phase 2, the ex- metric measurement into an absolute the main 24-bit ADC channel.
citation current flows from IOUT2, one. You achieve this result by measuring
through RLOW, and through RREF via Q1 to a known voltage using the unknown ra- Reference
ground. During Phase 1, VDIFF(PHASE1) tiometric reference voltage. Taking a
1. Low Level Measurements, Fifth EdiVAIN1VAIN2VEMF1VEMF2(IEXC)(RLOW). reading of this known voltage but with tion, Keithley.
You now switch the current sources. Dur- an unknown reference allows you to ining Phase 2, VDIFF(PHASE2)VAIN1 fer the unknown reference value and,
VAIN2VEMF1VEMF2(IEXC)(RLOW). You hence, the absolute value of VDIFF on pins
now combine the two measurements in AIN1 and AIN2. An absolute voltage refer- Is this the best Design Idea in this
software to cancel the thermoelectric ence, such as an ADR420, supplying issue? Select at www.ednmag.com.
www.ednmag.com
design
ideas
Figure 2
15V
TLC7226CN
IC3
74HC374N
IC2
3
4
7
8
3
4 13
5 14
6 17
7 18
11 11
1
BIT 0
BIT 1
BIT 2
BIT
BIT
BIT
BIT
BIT
BIT
1D
2D
3D
4D
5D
6D
7D
8D
CK
OC
1Q
2Q
3Q
4Q
5Q
6Q
7Q
8Q
2
5
6
9
12
15
16
19
14
13
12
11
10
9
8
7
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
15
WR
16
A0
19
A1
DGND
18
VDD
3
VSS
REF
5V
C6, 0.1 F
C1, 0.1 F
50V, 10%
15V
DGND
DGND
50V, 10%
DGND
REF_OUT
10
2
OUTA
1
OUTB
20
OUTC
19
OUTD
AGND
DGND
50V, 10%
C3, 0.1 F
VCC
VIN
1
IIN
6 C
OS
CT1
13
5
6
IC4
VFC110
EN
FOUT 8
5VREF 3
12
V
AGND
NC
7 GDND
IN_COM
VEE
FOUT
OUT
CMPR_IN
R1
4.99k
0.125W
1%
11
9
14
C4, 0.1 F
50V, 10%
DGND
15V
DGND AGND
DGND
AGND
28
D0
27
D1
26 D2
25 D3
24 D4
23 D5
22 D6
21 D7
20 D8
19 D9
18
D10
17
D11
16
D12
15
D13
DAC7621
IC8
14
D14
13
D15
AO 12
A1 11
WR 10
CLR 9
VEE () 8
VCC (+) 7
GAIN_ADJ 6
VREF_OUT 5
4
OFFSET_ADJ
3
VOUT
2
ACOM
1
DCOM
5V 15V 15V
DGND
C7, 0.1 F
50V, 10%
C8, 0.1 F
REF_OUT
50V, 10%
TP1
TP2
DGND
AGND
DGND
design
ideas
4 MHz. The voltage output of IC3 receives its programming via the parallel
port, thus allowing computer control of
the clock rate. Thus, the circuit provides
a frequency range of 7.6 Hz (1/(204864
sec)) to 125 kHz (1/(32250 nsec)).
Figure 2 shows various sample outputs
of the circuit. You can download the
to a value lower than unity. The 5.2V zener diode maintains the gain. The result is
that when the gain falls below unity, the
amplitude tries to decrease but cannot do
so, because the zener-diode voltage pulls
it back up. IC2, the LT1056AN amplifier
serves as a driver for the two LEDs, which
alternately turn on and off at the frequency of the oscillator. IC1, an
LT1012AN amplifier has very low offset
voltage. IC3, a high-voltage TI/BurrBrown (www.ti.com) amplifier, produces
the final output of 20 to 200V. The final
resulta major breakthroughis a
Wien-bridge sine-wave oscillator that
you can adjust below unity gain, and the
circuit still maintains its AGC.
Is this the best Design Idea in this
issue? Select at www.ednmag.com.
tion. When working for a telephone company, I had to develop a 20-Hz, high-voltage sine-wave ringer circuit. The circuit
had to be adjustable from 20 to 200V pp. The most difficult part was that I had
to adjust the oscillators gain to a value
below unity.
The basic oscillator had to have gain
slightly greater than unity to make the
positive-feedback network oscillate. It
also needed an AGC loop to control the
greater-than-unity gain. So, I added a
third loop around the oscillator and
dubbed it a voltage-controlled, regulated-output feedback circuit. The end result (Figure 1) is a simple push-pull circuit. By adding D1, a zener diode, to
another feedback loop, I maintained the
amplitude even when I adjusted the gain
12V
Figure 1
12V
1
+ IC
2
LT10562 _ AN
5
4
3
5.62k
13k
12V
1k
2k
12V
1N759A
56k
1
8
IC1
LT10123 + AN
5
4
12V
2 _
1N914
D1
1N751A
Q1
2N2222
1 F
27k
OSCILLATOR
RUNNING
7.5k
270k
13k
2N2222
150V
2
6
4
IC3
3583JM
5 _
1k
1 F
LED
GREEN
LED
GREEN
Q2
12V
6.8k
750
6
1 F
6.8k
1
CASE
J1
1
VOUT
2
VOUT
150V
1k
14k
HIGH-VOLTAGE
AMPLIFIER
This Wien-bridge oscillator is, according to the author, the first oscillator that can function at gains below unity.
www.ednmag.com
design
ideas
V VREF
I1 CC
R1
53
100 A.
20 k
V
VD1
R 3MAX OUTMAX
I 3MAX
3.50.7
350 .
8 mA
When the light is blocked, the phototransistors emitter current goes to zero.
The input current, I1, cant flow into Q1
because it is off, so the op amp heads for
the positive rail. If the op amps output
stage saturates, the recovery time is unpredictable, so you insert the zener-diode
combination D2 and D3 to prevent saturation. As the op amps output voltage approaches 3.4V (VD2VD3), the diodes
clamp the output voltage, thus preventing saturation. R3270 so that it can
supply adequate LED current without incurring op-amp saturation. When this
circuit drives a saturated logic circuit, you
should buffer the output with a hysteresis gate or a comparator with hysteresis.
VREF
3V
R1
20k
+
TLC071
_
5V
IB
I1
I2
Q1
D2, 2.7V
1N5223
D1
R3
270
D3
1N4148
Figure 1
VOUT
R2
27k
EESG3
The op-amp feedback keeps the phototransistors current constant, so the circuit requires no
adjustments for transfer gain.
www.ednmag.com
design
ideas
trickle-charged nickel-cadmium batteries. The green-LED monitors the presence of line voltage. The BZV55-C4V3
zener diode, D1 protects the batteries
against overvoltage. Voltage bias from R6
RED LED
Figure 1
R3
1M
C1
330 nF
NiCd
+ BATTERY
3.6V
300 mAH
+
BC327
Q2
R1
220k
C2
10 F
Q2N2222A
OR
BC547
C3
0.47 F
D1
BZV55C4V3
R5
10 TO 47
Q1
PL1
1A BRIDGE OR
41N4007
R2
470
R4
20k
R6
1 TO 10k
GREEN LED
A green LED indicates normal power-line voltage; a flashing red LED denotes a power outage.
www.ednmag.com
design
ideas
TIME
www.ednmag.com
D1 OFF
Q1 ON
D1 ON
Q1 OFF
TIME
Switch Q1 is on. The boost structures input voltage (VIN, the rectified ac-line voltage) appears
across the inductor, L1, which
charges linearly.
Switch Q1 is off. The diode, D1,
turns on and drives the inductor
current toward the output capacitor, C1. The inductor current
ramps down with a slope equal to
(VOUTVIN)/L1. VOUT must be
higher than VIN to properly discharge the inductor.
If VIN exceeds VOUT, an inrush current flows through L1 and D1 and
charges output capacitor C1. Designers generally place a diode, D2, between VIN and VOUT. This diode conducts a major part of the inrush
current, thus improving the safety of
the first power-switch turn-on. However, when the output voltage is in the
neighborhood of VIN, the current that
ramps up during this first switch-on
time generally cannot significantly decay during the off-time. As a consequence, the following turn-on operation may occur while the inductor is
still charged. Moreover, if VOUT needs
several switching cycles to significantly charge (for example, under heavy load
conditions), the power MOSFET faces a
succession of stressful turn-ons that may
jeopardize the circuits reliability.
When you cannot use the MC33260,
you can use the circuit in Figure 3 to improve the reliability of the PFC stage. You
can test this configuration using the
MC33262. Typically, the current-sense
resistor, R1 connects between the power
MOSFETs source and ground, and the
June 27, 2002 | edn 81
design
ideas
FUSE
MAINS
FILTER
AC LINE
S1
SWITCH FOR
ON/OFF TEST
VCC
14V
VOUT
AUXILIARY
VOUT
1
3 MC33262 6
Figure 3
Q1
C1
LOAD
R1
In this circuit, a modification in the placement of the current-sensing resistor increases the robustness of the PFC preconverter.
1
.
2
V
1
(I
)21 AC , (1) PFC preconverter during on/off tests at
R
on even after the current-sensing block al6 SENSE PKMAX
VOUT
www.ednmag.com
design
ideas
(a)
Figure 2
200 mSEC/DIV
(b)
100 SEC/DIV
The comparator in Figure 1 produces a square wave with a period of 1.3 sec (a); the
output differentiator yields a low-going pulse of 100-sec width at its 30% point (b).
design
ideas
Q1
rent drawn from Q1, Q1s colL1 flows through the LED. DifS1
BC558C
I =10 mA
lector current is also limited.
ferent forward voltages of the
2 DC
1
Once the current through L1
LEDs yield different on-times
ON/OFF
L1
R1
R2
reaches its maximum value,
(duty cycles) but the same
680
H
BATTERY
22k
R3
100k
the slope of the current
peak current through the LED.
1.5V
1k
through L1 changes. At that inWith the values shown in FigC1
stant, the voltage on L1 switchure 1, the circuit oscillates at a
Q2
BC548C
es to a negative polarfrequency of approximately 30
1 nF
IPEAK=20 mA
Figure 1
ity forced by the
kHz and delivers a 20-mA peak
D1
changed slope. This negative
current through the LED. The
LED
voltage traverses capacitor C1
duty cycle depends on the raand turns off Q2, which in turn
tio of the battery voltage to the
turns off Q1. The negative volt- You can eschew expensive dc/dc converters by using this inexpensive
forward voltage of the LED.
age on L1 increases until it circuit to drive a white LED from a single battery cell.
One advantage of this circuit is
reaches the forward voltage of
that it requires no series-limthe LED. The peak current through the LED. The brightness of an LED is a iting resistor for the LED. The peak curinductor L1 now flows through the LED linear function of the current through rent through the LED is a function of the
and decreases to zero. Now, Q2 switches the LED. So, adjusting the value of R3 also value of R3 and the gain of Q1.
on again, via the current through R2, and adjusts the brightness of the LED.
the cycle starts again. By adjusting reIt doesnt matter which LED you use;
sistor R3, you can set the peak current the forward voltage on the LED always Is this the best Design Idea in this
through L1 and the peak current through increases until the peak current through issue? Select at www.ednmag.com.
,
ZL = 2
ly resistive, the source current, IS, would tance Networks, Bell Systems Technical
s (LC) + sC(R 2 + R1) + 1
also be a step function. In the absence of Journal, July 1982, pg 438.
2. Albean, D,Zobel network tames refrom which you find that the following the series R2C network, the current flows
conditions must prevail: R2R1 and only through the series R1L load, starting active loads, EDN, Dec 21, 1995, pg 82.
CL/R12. Designing the Zobel network from a zero value and exponentially inin the time domain, rather than in the creasing toward a final value. The time Is this the best Design Idea in this
transformed-s domain, yields an easier constant in this case is 1L/R1. For the issue? Select at www.ednmag.com.
www.ednmag.com
design
ideas
9V
33 F
2.5k
9V
2.5k
1M
1M
14
PLAYER 1
Figure 1
47 F
IC1
A
1M
5
6 IC1
PLAYER 1
IC1A
33 F
47 F
1M
1M
8
PLAYER 2
IC1B
1M
IC1
10
12
13
IC1
PLAYER 2
11
IC1D
IC1C
1M
1M
33 F
47 F
1M
1M
PLAYER N
PLAYER N
IC1
IC1
ICN
1M
(a)
ICN
1M
(b)
Monostable multivibrators and LEDs form the heart of these first-event detectors with autoreset.
design
ideas
VCC
input of the RS latch. You can
test the circuit with a 100-kHz
VCC
4
input signal and a nominal deIC4A
2 D PRE Q 5
lay of 1 sec. When the input
R1
74HC05
IC3A
IC2A
10k
duty cycle varies from 10 to
74HCT74 6
74HCT00
1
2
INPUT
C
1
Q
3
3
90% (limits imposed by test
+
SIGNAL
IC2B
IC1A
CLR
2
1
C1
74HCT00
MAX907
equipment), the duty-cycle erVCC
100 pF
1
2 _
4
DELAYED
6
4
OUTPUT
ror is less than 0.1%.
5
SIGNAL
F
i
g
u
r
e
1
1k
You can obtain this
performance with unmatched
VCC
VCC
VCC
components. The circuit pro0.1 F
2k
0.1 F
0.1 F
duces accurate pulse widths for
VCC
14 10
pulses as narrow as 20 nsec. To
9
12
PRE
IC4B
14
IC2D
Q
D
9
8
5
ensure accuracy, the timing ca74HC05
IC3B
74HCT00
+
8
10k
IC1B
7
12
10
74HCT74
8 3
11
pacitors should be NP0 types
4
11
MAX907
IC2C
Q
C
6
13
7
74HCT00
with 5% tolerance, and the reCLR
4
0.1 F
100 pF
13
7
sistors should be 1% accurate.
The MAX907 comparator
from Maxim (www.maximic.com) provides the high in- Based on a precision dual comparator, this delay line generates accurate duty cycles.
put impedance, high precision,
and low propagation delay the circuit inclusion of a NAND gate connected as Is this the best Design Idea in this
requires. For most applications, 74- an inverter, IC2A, which enhances accu- issue? Select at www.ednmag.com.
HC/HCT logic is fast enough to mini- racy by equalizing the propagation delays
mize propagation-delay errors. Note the in each channel.
www.ednmag.com
design
ideas
L2
L1
C2
100 pF
C4
C3
22 pF
5 pF
NOTES:
L1 IS SIX TURNS OF 22-GAUGE WIRE WITH 5-MM DIAMETER.
L2 IS 18 TURNS OF 22-GAUGE WIRE WITH 5-MM INNER DIAMETER.
www.ednmag.com
This simple transmitter from Reference 1 allows you to remotely measure physical phenomena.
of the input causes the change C (compared with the sensors initial capacitance, C0), the relative output-frequency
change without the negatron (for small
C) is f/f0C/C0. With the negatron
added, the equation is: f/f0C/(C0
C1(R2/R1)). The result is higher relative
sensitivity because of the reduction in the
denominator value. The value of CN is apJuly 11, 2002 | edn 97
design
ideas
References
1. Tiwari, Shyam, Low-cost relativehumidity transmitter uses single logic
D1
MBRM120
L1
10 H
VIN
2.7 TO 6V
LQN6C100
MURATA
MOTOROLA
VOUT
5V AT
500 mA
1 F
CERAMIC
+
47 F, 16V +
AVX TAJC
TANTALUM
0.1 F
CERAMIC
6
Figure 1
100 F, 10V
AVX TPSC
TANTALUM
Q1
Si9424
SILICONIX
10
SW
R1
220k
C1
100 F, 10V
AVX TPSC
TANTALUM
1M
VIN
1
8
LBO
IC1
LT1308A
VC
FB
LBI
47k
SD
GND
2
7
R2
100
MMSD4148T1
MOTOROLA
330 pF
Q2
TPO610T
SILICONIX
274k
48.7k
VSHDN
100k
VIN
2.7 TO 6V
This circuit can both boost and step down the output voltage, depending on whether the input voltage is lower or higher than the output voltage.
www.ednmag.com
design
ideas
ARINC field
Label
LS data
Data
Parity+MS data
Spacer byte
7
L
N
N
OPB
0
6
L
N
N
SSM
0
5
L
N
N
SSM
0
SPI bit
4
L
N
N
N
0
3
L
N
N
N
0
2
L
N
N
N
0
1
L
SDI
N
N
0
0
L
SDI
N
N
0
drive develops: For example, the differential is 10V when you drive the Data A
signal in Figure 1 to 5V and the Data B
signal to 5V. In addition to the signal
levels, a 429 system must closely control
the rise and fall times to conform to the
specification. This control limits both inwww.ednmag.com
design
ideas
IC3A
1
2 HC390
AN7
ARINC RDY
5V
13
16
SCK
19
HC13
1
9
4
5
6
SDO
PJ2
14
QR
SI
QA
OE
IC1
R HC40105
A
B
D
11
C
C
Q
D
D 10
9
HC088
IC2
Q
R
12
14
15
11
10
9
6
1
5
2
4
8
2.5V
NULL
2.5V
6.5V
LOW
13V
16
33 H
0
13
C
1
2
3
A
IC4
B
C HC4052
0
1
2
3
3
C
6
VSS
7
DATA
A
0.022 F
36
ARINC 429
OUTPUT
0.022 F
33 H
36
DATA
B
BAT5401CT
IN5817
5V
5V
B C D
0.1 F
100 kHz
1 MHz
6.5V
15
10
REFERENCE
HI
5V
16
12
SO
Figure 1
13V
5V
15
RECEIVE
QA
IC3B
1
2 HC390
8
5
10 F
+
AT 6V
VO
0.1 F
V+
IC5
LTC1046
OR MAX1680
LV
6
2
+
3
10 F AT 6V
G
3
This ARINC 429 transmitter operates from a single 5V supply and meets all timing requirements of the 429 spec.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
design
ideas
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
SERVOAMPLIFIER
DIFFERENTIAL
INPUT
R3
R1
R2
SIGNAL
GAIN
MOTOR
OUT
LIMIT
LIMIT
TACHOMETER
GAIN
TACHOMETER
INPUT
15V
S1
MANUAL S
2
15V
0
AUTO
+
FEED
P1
+
C1
D1
K1
LS
LS+
D2
D3
K1
K1
A defunct milling machine served as the platform for this grinding-machine motor controller.
Simple circuit provides
motor-feed control ........................................81
Linear power driver works
from single supply ........................................82
Circuit performs high-speed
voltage-to-current, current-tocurrent conversion ........................................84
Chip recorder customizes
phone ringer....................................................88
Op amp linearizes
attenuator control response ........................90
Publish your Design Idea in EDN. See the
Whats Up section at www.edn.com.
www.edn.com
driver supplies to power the control circuit. Switch S1 enables manual and automatic modes. For both modes, potentiometer P1 reduces the control voltage,
and C1 filters it. Two LEDs, D1 and D2,
show in which direction the axis moves.
This indication can be especially useful in
automatic mode if the potentiometer is
turned to its zero position. The driver becomes disabled in one direction when the
inputs Limit or Limit no longer connect to 15V; that is, when the limit switches LS or LS (located at each end of
travel) become activated. The following
describes the operation of the two modes:
design
ideas
www.edn.com
design
ideas
www.edn.com
design
ideas
design
ideas
9V
BATTERY
0.1 F
+ 22 F
35V
1
CVH
IN
IC1
MAX1684EEE LX
2
AIN
15
0.47 F
6
VCC
D1
75V
220
VCC
4.7k
1W
D2
75V
VCC
VCC
OUT
5
4
0.01
F
CC
AGND
1 F
Figure 1
16
VCC
VCC
CTC IC4A
DM74LS221D (16)
1
2
3
LS1
13
4
17
18
19
OUT+
0.47
F
1 F
FS1
FS2
8
0.47
F
1 F
SHDN
14
47 H
VCC
OUT
6 VCM
16
SS
IC6
MAX4295
21
VCC
VCC
2.2k
VCC
22k
10k
47k
AOUT
15 PVCC
2
PVCC
0.1 F
IN
20
10
11
8
5
28
VCCA
TRA
TRB
CLR
VCC
16
GND
8
47 H
100k
RC COM
14
VCC
5 pF
VCC
15
1k
300k
7
FB
9
SYNC/PWM
11
STBY
CVL 4
1 F
300k
GND
2
8
5
12
BOOT
REF
ILIM/SS
VCC
S1
IC3
1
4
IN MAX- CLEAR
835EUK
0.1
F
VCC
D3
3
1k
IC2
H11AA1
10
0.1
F
100 F
10V
16
PGND
SHDN
VCC
13
LX
0.1
F
10 H
14
100 pF 0.47 F
14
15
VCC
VCCD
1
A0
A1 2
A2 3
A3 4
IC5
A4 5
ISD1110P
A5 6
VCC
MIC
A6 9
MIC REF
A7 10
25
1 nF
AGC
RECLED
27
ANA IN
REC
23
VCC
ANA OUT
PLAYL
24
PLAYE
SP+
26
SP
XCLK
VSSD
VSSA
0.1 F
12
13
VCC
1 F
1 F 13
12
This circuit plays as much as 10 seconds of recorded sound in place of the ring from a telephone. It also indicates when someone has called.
www.edn.com
design
ideas
VCC
ISD1110P
VCCO 28
VCCA 16
12
VSSO
VSSA 13
14
SP+
15
SP
20
ANA IN
R1
1k
C2
0.1 F
R2
C3
5.1k
21
23
0.1 F
ANA OUT
PLAYL
24 PLAYE
18
MIC REF
27 REC
17
C4
MIC
25
19
0.1 F
RECLED
AGC
26 XCLK
R5
C6
470k
4.7 F
16
SPEAKER
R3
10k
C1
220 F
ELECTRET
MICROPHONE
C5
0.1 F
R4
10k
Using the EEPROM internal to IC5 in Figure 1, this circuit records as much as 10 seconds of sound.
www.edn.com
design
ideas
www.edn.com
design
ideas
www.edn.com
design
ideas
www.edn.com
design
ideas
devices, you can readily translate the design structure and flow into VHDL or
Verilog. You can download Listing 1
from the Web version of this Design Idea
at www.edn.com.
5V
5V
R1
R2
100k 5.1k
FREQUENCY
ADJUST
14
C1
4.7 F
5V
CEXT
R4
5.1k
C2
4.7 F
15 REXT/CEXT
1
2.2k
R3
100k
IC1A
74LS123
CLR
Q 13
Q 4
PULSE-WIDTH
ADJUST
6
12V
CEXT
12V
7 REXT/CEXT
IC1B
9 A 74LS123
1 F
5
10
Q
B
12 X
11 CLR
Q
10k
4
6 _
2.2 F
IC2A
LT1057
5 +
8
10k
D2
1N4148
5V
D1
1N4148
X
1k
12V
2.2k
33O pF
7 1
3+
1N4148
12V
Figure 1
4 1N4148
2 _
0 TO 12V DC
AMPLITUDE CONTROL
IC2B
LT1057
7.5k
IC3
2 _
OPA627
VOUT
2
45
X
3 +
8
2.2 F
12V
www.edn.com
design
ideas
VO1
5V
Figure 3
Figure 2
R3
200k
VT2
+
_
R4
100k
A
R6
10k
R1
200k
R7
10k
VO2
S2 IS ACTIVATED
VT2
VO1
VT1 _
5V
R2
13.3k
S1
S2
IC2
CD4066
VTEST
VO2
IC1
LM393
R5
200k
VTEST
S1 IS ACTIVATED
VT1
100
90
80
70
SCALE
DIVISIONS 60
50
(A)
40
30
20
10
0
VTEST
R1
R1 R 2
R1
1
VTEST
design
ideas
GROUP
DELAY
(nSEC)
60
5V
+
10 F
5V
10 F
+
R1=274, R2=59
50
40
Figure 3
4
5
FREQUENCY (MHz)
Selected values of R1 and R2 allow control of group-delay variation over the filters passband.
www.edn.com
design
ideas
VOSNS1B
SENSE1
S1
0
1000 pF
S1+
SENSE1+
0
0.1 F
10
VIN
22 F
50V
+
INTVCC
QVIN
TG1 4
30.1k
1%
FDS8936A
1M
30.1k
1%
0.22 F
20k
1%
RUNSS1
0.1 F
LTC1628
B
10k
20k
1%
2N3906
10.5k
1%
100 pF
20k
1%
VOSNS1
0.01
F
ITH1
0.01
F
SGND
ITH2
VOSNS2
330 pF
330 pF
100
pF
56 pF
56 pF
68k
68k
20k
1%
1
RUN/SS1
2
SENSE1+
3
SENSE1
4
VOSNS1
5
FREQSET
6
STBYMD
7
FCB
8
ITH1
9
SGND
10
3.3VOUT
11
ITH2
12
VOSNS2
13
SENSE2
14
SENSE2+
VIN
FLTCPL
TG1
SW1
BOOST1
BG1
EXTVCC
INTVCC
PGND
TG2
SW2
BOOST2
BG2
RUN/SS2
FDS8936A 7
2
BG1
27
26
25
10 F
6.3V
MBRM140
GND
TP3
1
CMDSH-3
10
EXTVCC
VIN
7
20
16
17
18
19
15
FDS8936A
10
1
0.1 F
BG2
S2+
FDS8936A
SENSE2+
SENSE2
VOSNS2B
S2
0
6.4 H
SW2
CMDSH-3
0
TG2 2
63.4k
Figure 3
150 F
6.3V
0.01
+
24
28
23
22
21
SW1
1000 pF
VOUT1
5V
4A
TP2
6.4 H
180 F
4V
0.01
+
VOUT2
3.3V
4A
+
10 F
6.3V
MBRM140
GND
3
TP6
X5
INTVCC
SIGNAL
GROUND
POWER
GROUND
1 F
4.7 F
10V
www.edn.com
design
ideas
Figure 4
VOUT1
VOSENSE2
VOUT2
(a)
(b)
www.edn.com
design
ideas
www.edn.com
design
ideas
Power dissipation is almost evenly divided among L1, D1, and Q1, so you should
space these components to avoid hot
spots and provide heat-sinking for as
much as 3W each at maximum current
and voltage. A good layout should include lots of ground plane and short,
wide traces on high-current paths. Output voltages other than 3.3, 5, and 12V
are also available by substituting the adjustable version of the 2597. This IC requires an added resistor pair from VOUT
to the FB pin to ground. Calculate resistor-divider values to set the FB pin at
1.23V for the desired output voltage. Although this design example uses the
LM2597HVM-5.0, you can easily apply
this current-boost technique using only
three additional parts to any of Nationals second-generation buck devices, effectively extending their output-current
capability more than tenfold. You need
not use HV devices for applications with
a maximum input voltage lower than
40V. The following seven steps provide a
simplified procedure to select component values for a wide range of operating conditions, including those that Table
1 lists:
1. Choose R1 to drop 1.5V at the inductors peak operating current of
IOUT20%. A higher current peak can
D44H8
R1
Figure 1
L1
Q1
VOUT
VIN
7
VIN
L1
VSWITCH 8
VIN
FB
PGOOD
5
CSS
ON/SS
DELAY
GND
VSWITCH 8
VIN
4
FB
VOUT
LM2597HVM5.0
VBIAS 3
C1
Figure 2
PGOOD
5
2
CD
D1
C2
LM2597HVM5.0
3
VBIAS
C1
R0
CSS
ON/SS
DELAY
GND
R2
R0
1
2
D1
C2
CD
You can increase output current more than tenfold with the addition
of only three components.
www.edn.com
design
ideas
VIN
(V)
60
60
60
60
60
60
60
60
VOUT
(V)
5
5
5
5
12
12
12
12
IOUT
(A)
1
2
4
6
1
2
4
6
R1
)
(
1
0.5
0.33
0.22
1
0.5
0.33
0.22
R1
(W)
0.06
0.15
0.5
0.7
0.16
0.42
1.5
2
R2
)
(
4.7
4.7
4.7
4.7
4.7
4.7
4.7
4.7
force Q1 to saturate, causing the IC to deliver base current in excess of 0.7A to Q1.
This action triggers the ICs pulse-bypulse current limit and protects the IC,
Q1, and the load from further excessive
current. An output short circuit causes
the IC to reduce its clock frequency, protecting D1 and L1 from high continuous
peak current. The power dissipated in R1,
which can be a significant part of the total loss, subtracts from the dissipation in
Q1, allowing for a smaller heat-sink requirement. This dissipation is:
R1(IOUT)(IOUT)(VOUT/VIN).
2. Choose R2 to be small enough to
quickly turn off Q1 but not so small that
it diverts much needed drive current
away from Q1 and causes early current
limit. A value of 4.7 (the value that
Table 1 uses) is a good trade-off value for
most applications.
3. Choose Q1 to be a fast switch with
VCE rating greater than 60V and ICE rating of two times the desired current peak.
This ratio generally provides a high beta
over the working-current range. The
D44H8 works well to more than 6A output in a TO-220 package and more than
2A in an SOT-223 package.
Q1
D1
D4448 (V at A)
D4448 60/1
D4448 60/3
D4448 60/6
D4448 60/6
D4448 60/1
D4448 60/3
D4448 60/6
D4448 60/6
L1
H)
(
68
47
2
34=68
2
20=10
150
2
94=47
DMT2-79
DMT2-47
L1 ESR L1 LSAT C1
)
F)
(
(A)
(
0.13
1.2
100
0.086
2.4
220
0.065
4.8
470
0.056
7.2
680
0.25
1.2
100
0.17
2.4
220
0.07
4.8
470
0.04
7.2
680
C1 ESR
)
(
0.22
0.11
0.065
0.047
0.22
0.11
0.065
0.047
C2 RMS
(A)
0.5
1
1.8
2
0.6
1
1.7
2.4
C2
F)
(
100
220
470
680
100
220
470
680
C2 ESR C2 RMS
)
(
(A)
0.22
0.12
0.11
0.2
0.065
0.3
0.047
0.6
0.22
0.11
0.11
0.2
0.065
0.25
0.047
0.4
quirements. Ripple-current rating depends on several variables, but a conservative choice is half the maximum output current for C1 and one-fourth the
maximum output current for C2. High
ripple-current capability may require
paralleling several capacitors for C1. Select C2 to have ESR less than 0.1 / IOUT
to keep the VOUT peak-to-peak ripple less
than 50 mV. Choose capacitors by looking at those targeting high-temperature
use in switching power supplies with
published ESR and ripple current ratings.
Then, select a voltage rating higher by at
least 50% than the expected operating
voltage.
7. R0, CSS, and CD are optional. You can
leave these pins open if you dont intend
to use them. You can shut off the circuit
by pulling Pin 5 low and then turn it on
again with soft-start by allowing Pin 5 to
float high. Refer to the 2597 data-sheet
graphs for CSS and CD values necessary to
set the desired soft-start and power-good
flag delay times.
design
ideas
VDD
CHOKE
IDS =
VPC R G1
.
4 R G3 R SENSE
RF OUT
RF IN
MESFET
Figure 1
0.1
RSENSE
1k
4 PC
RG2
1k
2
SR1
SR2
IC1
MAX4473
VPC
RG1
1k
1
7
OUT
3R
1 nF
VEE
R
_
3
VGND
SHDN
VCC
8
SR3
6
RG3
GND
5
VEE
VEE
Figure 1
U/D
INC
2
1
CAT5113
7
(W)
4
2k
5
6 R1
(L) 10k
10k
10k
VS
3
(H)
5V
13 _
12
IC1
LMC6064
+
14
1k
2.5V
_
IC2
1
LMC6064
3
+
11
VOUT
put voltages above the reference, for example, VS2.5V and for voltages below
the reference, VS2.5V, VOUT2.5V
|p5VS|2.5V|GVS|.
The potentiometer, a Catalyst 5113,
has 100 taps and an increment/decrement interface. For this DPP, the circuit
gain varies from 5/99 to 5. The measured
accuracy of the circuit is approximately
1% for moderate values of gain (0.5 to 4)
and for a characterized end-to-end resistance, RPOT. During power-up, the
wiper goes to its stored value in nonvolatile memory. This stored value establishes the default value of the gain after power-up. The basic idea for this
absolute-value circuit came from Reference 1.
Reference
1. Cipri, Teno, Absolute-value comparator touts accuracy, size, EDN, March
7, 2002, pg 124.
design
ideas
www.edn.com
design
ideas
I
1
ln 1 + =
I
0.026
S
I
38.46 ln1 + .
IS
This voltage subtracts from the charging voltage during the charging cycle and
affects the charge-ramp time. Propagation-delay times from the THRES
(threshold) and TRIG (trigger) inputs to
DISCH (discharge) add directly to the
period. These delays depend upon supply voltage. The formulas for the propagation delays (in nanoseconds) are:
T PHL 0.0162V CC 5 0.8207V CC 4
16.205V CC3155.62V CC231.88V CC
1558; TPLH0.0102VCC50.5044VCC4
9.6825VCC389.622VCC2401.04VCC
807.97.
Discharge-transistor on-resistance also
varies with supply voltage. This resistance
affects the discharge current. Also, when
you use low-value resistors for RA (for
low-duty-cycle designs), the combination of RA and the on-resistance yields a
voltage divider that affects the discharge
voltage. The on-resistance formula for resistance in ohms is:
RON59.135VCC0.8101.
Typically, youd place a small capacitor on the control pin that connects to the
upper internal-divider node. This capacitor has only a slight effect on the threshold-trigger voltages. The leakage resistance of the ceramic capacitor is approxwww.edn.com
design
ideas
0.1 F
IC1
TLC555D
8
RA
VCC
4
RESET
7
D1
6
RB
2
1
OUT
VOUT
DISCH
THRES
TRIG
CTL
GND
0.1 F
Figure 2
The simple addition of a bypass diode makes
this timer circuit valid for low duty cycles.
ON
1
(R A + R ON )
+t .
1
PLH
2 3 R ON
(R + R )
ON
Is this the best Design Idea in this
A
issue? Select at www.edn.com.
www.edn.com
design
ideas
Heather
High-side driver has fault protection ......103
Boost 3.3V to 5V with tiny
audio amplifier ............................................104
Add a signal-strength display
to an FM-receiver IC....................................106
Op amp linearizes response
of FET VCA ....................................................108
Convert voltage to potentiometerwiper setting ..................................................110
Make a DAC with a microcontrollers PWM timer ..............................110
Publish your Design Idea in EDN. See the
Whats Up section at www.edn.com.
www.edn.com
In the bottom trace, the output current limits itself to 160 mA during a short circuit.
the IC then toggles on and off until removal of the short circuit.
Is this the best Design Idea in this
issue? Select at www.edn.com.
September 5, 2002 | edn 103
design
ideas
H2
D1
D3
D2
D4
VIN
3.3V
Figure 2
VOUT
Figure 3
3.3V
CIN
C1
RT
CT
A1
BP
CBP
COUT
A2OUT
A1OUT
40k
A1+ IC1
RH1
40k
C2
SD
IC2
+
100k
DOUBLER
CIRCUIT
VIN
VOUT
VOUT
5V, 5A
LP3961EMPX
1
SD
ERR GND
4
5
COUT
10 F
VIN
100k
RH2
This equivalent circuit shows the innards of the LM4871LD audio amplifier.
design
ideas
R1
20k
5V
Figure 1
100 nF
10 nF
180 pF
4
15
220 pF
150 pF
R2
5k
R3
20k
9V
9V
IC2
3.3 nF
9
10
22 nF
1k
IC1
TDA7000
150
nF
11
2.2 nF
1/2
TL082
_
IC3
OK
1N4148
1k
13
LOW
14
20k
2.2 F
LEDs
IC4
TCA965
1
5V
GOOD
11
1/2
TL082
_
330 pF
10 nF
R4
220k
R5
4.7k
12
3.3 nF
18
8
7
5V
180/360 kHz. So, you need neither ceramic filters nor complex LC tank circuits to realize the IF filter. A simple active filter using op amps can fulfill the
task. The IC incorporates a correlation
muting system that suppresses interstation noise and spurious responses arising from detuning. The muting circuit
uses a second mixer. Its output is available at Pin 1; you can use it to drive a detuning indicator. You can add a signalstrength display to the TDA7000 using
the circuit in Figure 1.
You can obtain the information related to the intensity of the received signal
at the output of the IF filter (IC1, Pin 12).
You can easily process this voltage with
common op amps, because the IF signal
is centered on 70 kHz. The voltage at Pin
100k
4.7 nF
14
9V
330 pF
17
2
39 pF
13
16
+
1.8
nF
22k
12k
9V
TO AUDIO
AMPLIFIER
L1
IC5
LM311
_
10k
56 nH
BB809
10 nF
100k
10k
9V
IC6
7805
5V
10 F
10 nF
You can easily add a signal-strength indicator to the Philips TDA7000 FM-receiver IC.
www.edn.com
design
ideas
1
because of wide spreads in
IC1A
C2
VDS=50 mV
C3
+ 3
10 F
FET characteristics. The cir220 pF
NONPOLAR
ID
CERAMIC
cuit in Figure 1 uses a masterELECTROLYTIC
R4
slave servo technique with a
4.7k
R9
Q1A
D
D Q1B
matched-FET pair to impleR13
220k
470k
ment voltage-controlled vari2
G
G
C5
AUDIO OUT
IC
VGS
able gain. This gain is a linear
3 + 2 6
10 nF
6V P-P
IN6263
FILM
D1
function of the applied conS
S
SCHOTTKY
AUDIO IN
2N3958
trol voltage, VC. In contrast
6V P-P
DUAL FET
R
R
10
with variable-gain circuits us12
C1
R11
100k
470k
100 nF
150
ing a single FET as the gainFILM
control element, the circuit in
Figure 1 exhibits minimum
gain for VC0V and features a
linear increase in gain with in- This voltage-controlled amplifier has a dynamic range of 55 to 0 dB.
creasing VC. The self-biasing
in combination with R12, reduce distoroperation of the circuit also compensates
tion at higher signal levels. With the valfor unit-to-unit variations in the FET
ues shown, the gain increases linearly
characteristics, thereby making device sefrom 55 to 0 dB as VC varies from 0 to
lection less critical.
5V. The circuit accepts a 6V p-p input
The circuit maintains the drain voltsignal. Figure 2 shows the result of modage, VDS, of Q1A at a low value (VREF50
mV) to ensure that the FET operates in
ulating a 500-Hz sine wave with a 0 to 4V
the resistive region of its ID versus VDS
triangle wave.
characteristic curve. Op amp IC1A servos
For best performance, IC1 should be a
the VGS of Q1A to maintain VDS at VREF,
low-offset, low-input-current unit, such
while Q1A sinks the current from
as the OP-290. IC2 should be a high-gainA 0 to 4V triangle wave linearly
Figure 2
the Howland current source
bandwidth-product,
low-noise amplifier,
modulates the 500-Hz audio input.
IC1B. The sourced current is ID(mA)
such as the NE5534. You can successfulVC/R5(k), where VC is the control
ly use inexpensive units, such as the
voltage. The channel resistance, RD, in sets the gain: Gain1R9/RD1R9/ LF353 and LF351, at reduced gains. You
kilohms is then RDVREF/ID0.05/ID (VREFR5/VC).
can also operate the circuit from 5V
0.05R5/VC. The same VGS applies to Q1B
The maximum gain is 1R9/R0. R0 is supplies (with R1 changed to 100 k), usthrough R12. Because Q1 is a well- the minimum channel resistance for ing an OP-290 for IC1 and a TL031 for
matched monolithic dual FET, Q1A and VGS0V, approximately 450 for the IC2. The maximum supply current for
Q1B have identical channel resistance, RD. 2N3958. The minimum gain is unity, 5V operation is 0.33 mA, showing that
VGS varies from approximately 370 mV when the FET does not conduct (VGS low-power operation is possible.
(which D1 limits to prevent gate-source VPINCHOFF). The circuit attenuates the auconduction) to VP (approximately 1.7V dio-input signal level to lower than 10
for the 2N3958) as VC varies from 0 to 5V. mV p-p. This attenuation minimizes disIC2 is a variable-gain, noninverting am- tortion in the FET and also sets the clip- Is this the best Design Idea in this
plifier, in which the controlled RD of Q1B ping level at the output of IC2. R13 and C5, issue? Select at www.edn.com.
www.edn.com
design
ideas
7
VPULSES
CS
5
position 0 through 31, corre6
10k
4
2
sponds to the input voltage,
RS
100k
1 F
15k
which varies from 0 to 1V dc.
1%
1%
47
The CAT5114, IC5, is a 32-tap
5V
potentiometer with an increment/decrement interface. VIN
8
R1
280k
typically models the output volt10k
3
1%
VGATE
age of a sensor whose value sets
1%
7,6
IC2
IC3
a parameter of an analog circuit
LM555
2
5
in the signal-processing portion
C1
of a system. The basic principle
0.1 F
1
0.01 F
0.01 F
of the circuit is to convert the inCALIBRATE
VTRIG
(MIC)
put voltage to a number of pulses and let each pulse advance the
potentiometers wiper within a
certain period of time. IC1 is a You can convert an analog voltage to a wiper setting in a digitally programmable potentiometer.
voltage-to-frequency converter.
This circuit converts the 0 to 1V dc input sor-generated logic signal. The 31-msec up. When the DPP powers up, the IC revoltage to an output frequency, VPULSES, gating signal is chosen to correspond to calls wiper setting 00 from nonvolatile
that varies from 0 to 1 kHz.
the highest tap position of the poten- memory. When you depress the calibrate
This free-running oscillator advances tiometer at the highest frequency of the switch, the wiper increments from 00 to
the wiper of the potentiometer for only voltage-to-frequency converter. For a a setting corresponding to the input volt31 msec, established by VGATE and the 100-tap potentiometer, the gating signal age, VIN . You can use the three-terminal
AND function of IC4. VGATE is the output measures 99 msec for the same sensitivi- resistive network of the potentiometer to
of the one-shot multivibrator, IC2. The ty of the voltage-to-frequency converter. control the gain of an amplifier (shown
one-shot receives its trigger from a cali- You can trim the 15-k resistor, RS, to in broken lines in Figure 1), a parameter
brate switch or an external signal. The match the timing of the 331 converter to of a filter, or the coefficient of a mathehex inverters of IC3 debounce the cali- the pulse width of the 555.
matical operator.
brate switch. R1C1 differentiate the voltTap position 00 of the digitally conage-level shift generated by the switch to trolled potentiometer is stored in the
provide a nominal 100-sec trigger, DPPs nonvolatile memory and the po- Is this the best Design Idea in this
VTRIG, to IC2. VTRIG could also be a proces- tentiometers up/down control is set to issue? Select at www.edn.com.
and a dc voltage. A PWM signal is a digital signal with fixed frequency but varying duty cycle. If the duty cycle of the
PWM signal varies with time and you filter the PWM signal, the output of the filwww.edn.com
design
ideas
Figure 3
(a)
(b)
The microcontrollers PWM timer produces an ac signal (a) and a dc signal (b) of a sine wave and a ramp with 8-bit resolution.
www.edn.com
design
ideas
www.edn.com
design
ideas
www.edn.com
design
ideas
ZERO
10k
Figure 1
100 F
240k
R1
2k
Q3
2N3906
IQ1
Q7
2N3906
CALIBRATE
1k
5.1k
Q6
2N3904
2.2k
R2
12k
5k
2.2k
240k
300k
Q1
2N4401
2k
VQ1
3
2
AIRFLOW
5.1k
IC1
VQ2
5.1k
VC1
V3
5
IC2
LM393
4
C1
0.1 F
LM393
240k
1
F
82
W
ID
240k
Q2
2N4401
Q4
2N5087
Q5
2N5089
1M
5.1k
VC2
10k
1 F
Using a simple transistor as sensor, this circuit yields a digitized, linear measurement of air speed.
www.edn.com
design
ideas
tion of H2 and thus linearizing the relationship between frequency and air
speed.
References
1. Woodward, Steve,Self-heated transistor digitizes airflow, EDN, March 14,
1996, pg 86.
2. Woodward, Steve, Transistor and
FVCs make linear anemometer, EDN,
Sept 26, 1996, pg 72.
Is this the best Design Idea in this
issue? Select at www.edn.com.
www.edn.com
design
ideas
3.3 F
tions typically
4.7 F
IC2
C1
2
C
0.1 F
use (Figure 1).
Figure 1
GND
Useful for gate
R
VIN
bias and other purposes,
8.2k
48V
the 5V supply delivers as
much as 5-mA output
current. A shunt refer- This small, simple circuit produces 5V at 5 mA from a 48V input.
ence, IC1, defines 5V as
ground reference for a charge pump, IC2. shunt reference.
The charge pump doubles this 5V differThe shunt reference sinks as much as
ence between system ground and charge- 15 mA and requires 60 A minimum to
pump ground to produce 5V with respect maintain regulation. Maximum IR is a
to the system ground. The shunt refer- function of the maximum input voltage.
ence maintains 5V across its terminals by To prevent excessive current in the shunt
regulating its own current, IS. IS is a func- reference with no load on the chargetion of the value of R. The current pump output, use the maximum input
through R, IR, is reasonably constant and voltage (48V10%52.8V) to calvaries only with the input voltage. IR, the culate the minimum value of R. The
sum of the charge-pump and shunt-ref- maximum reference sink current, 15 mA,
erence currents (IRICPIS), has maxi- plus the charge pumps no-load operatmum and minimum values set by the ing current, 230 A, equals the maxi-
design
ideas
12V
0.1 F
150
0.5W
1k
1k
D1
8.2V
CONSTANT-VOLTAGE SOURCE
10k
5 +
8
IC2B
LT1057
6 _
4
12V
SENSE
DIODE
LASER
DIODE
1k
1N914
1k
12V
3 +
IC2A
LT1057
2 _
4
87.5
1W
0.001 F
10k
1k
12V
12V
SPST
2 _
1M
8
IC1A
LT1057
3
+
4
SLOW TURN-ON
330
6 _
IC1B
LT1057
5
+
4
Q1
2N2222
499
Figure 1
REFERENCE SETPOINT
LASER-DIODE
PACKAGE
8
7
1k
Q2
2N2222
12V
330
56k
R1
100k
CONSTANT-CURRENT
SOURCE
10k
D2
8.2V
CONSTANT-VOLTAGE
SOURCE
SHUTDOWN CIRCUIT
Constant voltage and current and slow turn-on time are the keys to laser diodes survival.
www.edn.com
design
ideas
(1p2 )R POT 2
VOUT(NEG) =
VIN
R1
p1RPOT1
3
R1
1k
1%
VOUT(POS)
6
5V
D1
2
1
IC1
3 +
11
VIN
D2
2.5V
5V
5V
DPP1
CAT5113
4
DPP2
CAT5113
4
p2RPOT2
VOUT(NEG)
3
5
NOTES:
IC1= 1/ 4 LM6064.
RPOT1=RPOT2=10 k.
Using digitally programmable potentiometers, you can obtain two distinct gain figures from one
amplifier.
5V
U/D
INC
CS
CAT5114
74HC132
IC1D
R
100k
Savings
Zero
Three
One
One
One lower value and cheaper
Single-pole and cheaper
www.edn.com
design
ideas
DPDT
MOMENTARY
CONTACT
100k
Figure 3
5V
S1B
S1A
10k
1 F
OFF
10k
S1B
IC1C
10k
that the A and B sections are not crossconnected between operating the flipFigure 2
flop and the oscillator-enabling circuit.
You can rewire the interface structure as
You can restructure the switch-interface circuit
shown in Figure 2. This circuit uses S1A to
of Figure 1 as shown.
control the flip-flop, whereas S1B controls
the oscillator-enable
5V
SPDT
circuit. This step
100k
MOMENTARY
does nothing direct5V
CONTACT
IC1A
U/D
ly to reduce the parts
count of the circuit;
INC
S1
however, it does
CS
IC1B
OFF
make the subsequent step more ob100k
5V
74HC132
vious. The next step
IC1C
CAT5114
IC1D
100k
in the simplification
Figure 4
is to recognize that
0.1 F
R
the two RC net100k
works on the inputs
C
4.7 F
of IC1C both do the
same thing but in
This circuit uses fewer and cheaper components than the circuit in
opposite switch poFigure 1.
sitions. As far as IC1C
is concerned, either
switch low, thereby commanding the switch position performs the same funcCAT5114 to count down. At the same tion; that is, to debounce the switch contime, S1A causes the 1-F capacitor on tacts and eventually enable the oscillator.
IC1Cs lower input to discharge through Thus, you need only one RC network,
a 10-k resistor, thereby eventually en- and you can tie it to both of S1Bs active
positions (Figure 3). Moving the switch
abling the oscillator comprising IC1D.
The first step in simplifying this design in either direction discharges the 1-F
is to rearrange the connections of S1 so capacitor through the 10-k resistor,
1 F
dition, because it has a positive-only output swing, the integrator capacitor can be
a high-value, polarized electrolytic unit,
as shown. Most of the circuit operates as
a voltage-controlled current source. The
www.edn.com
design
ideas
VS
4
4
+
pins 1 and 8 open, the voltage beVS
+
C1
R2
tween the inputs also appears beR
100 F
10
VIN
tween the Output and Reference
pins. The Output pin connects to
+
t=0
one side of R1, and the voltage on
VS
the other side of R1 drives the Ref(a)
(b)
erence. The input voltage, VIN, appears across R1, causing the current-source action, with IOUT The classic integrator in a inverts and requires split supplies. The circuit in b is noninverting and works
VIN/R1. Dumping this current into with a single supply.
a capacitor produces the integrator action, with the time constant R1C1. range and micropower operation make adjustable ramp generators, and voltageThe LT1636 buffers the output voltage on the circuit suitable for battery-powered to-frequency converters.
C1, thereby eliminating the loading ef- systems. As a positive-output-only intefects of approximately 200 k of the grator, this circuit is not generally appliLT1789s Reference pin and any down- cable inside control loops. Suitable ap- Is this the best Design Idea in this
include
accumulators, issue? Select at www.edn.com.
stream circuitry. The wide, single-supply plications
www.edn.com
design
ideas
Figure 1
In this classic inrush-limiting circuit, the switch carries the full load current during normal operation.
Passive circuit limits inrush current............93
Transmitter senses triple
relative-humidity figures ..............................94
Latching light detector is frugal
with power and parts....................................96
High-speed peak detector uses
ECL comparator ............................................98
Simple FIFO provides data-width
conversion ....................................................100
Measure open-circuited cables
using a multimeter ......................................102
Circuit measures true-rms
and average value ......................................104
Electronic-potentiometer system
has pushbutton interface ..........................106
Publish your Design Idea in EDN. See the
Whats Up section at www.edn.com.
www.edn.com
Figure 2
In this inrush-limiting circuit, the current rating of the switch is considerably reduced.
Figure 3
design
ideas
relays changeover contact either shortcircuits R1 when the capacitor is sufficiently charged or connects R2 across the
capacitor to speed its discharge in the off
condition. For jitter-free operation of the
relay, you need suitable hysteresis between closure and opening. Too little hysteresis results in malfunction of the circuit in the presence of momentary dips.
Too much hysteresis leaves the circuit
unprotected against heavy inrush currents upon reclosure of the relay. You can
incorporate suitable hysteresis by adding
zener diode DZ and resistor R3 in series
with the relay coil. The following equations describe the operation of the circuit
in Figure 2:
Dc pickup voltage:
(R C + R 3 )
+ VZ ;
RC
Dc dropout voltage:
VDCP = VCP
VD = IZ (R C + R 3 ) + VZ ;
and hysteresis:
VDCPVD = VCP
(R C + R 3 )
IZ (R C + R 3 ),
RC
www.edn.com
design
ideas
that P1 sets, Q2 begins to conduct, thereby biasing the second LED, D2, which acts
as a voltage reference (the third function
of an LED). Q1 now turns on, sourcing
current to D1, which illuminates.
Regenerative action around Q1 and Q2
ensures that the circuit makes a rapid
transition into the latched state. The circuit stays latched, and D1 remains illuminated even if the light level falls below
Figure 1
This circuit uses LEDs as both light-detecting and -indicating devices (a). A modification replaces the voltage-reference LED, D2, by a resistor (b).
Figure 2
This circuit avoids trip-point changes as a function of supply voltage (a). A modification works from slightly higher supply voltages (b).
www.edn.com
design
ideas
You need to experiment to find the optimum LED to act as photodetector. Tests
on more than 50 LED color samples produced a range of unloaded output voltage varying from a low of 135 mV to
more than 1V in overcast sunshine. A
green LED with a clear lens produces almost 1.5V on a dull afternoon. The circuit can work from supply voltages as
low as 3.3V, guaranteeing operation from
three cells. In the off state, current drain
is minimal. The circuit in Figure 1a consumed just 88 A in the unlatched state.
Although simple and effective, the circuit
suffers the disadvantage that its trip
point varies with changes in supply voltage. Also, the trip points lower limit cannot be less than the 600 mV or so to bias
Q1 and Q2. The circuit in Figure 2a remedies these problems. The circuit uses
IC1s internal bandgap reference to generate a stable threshold. Because the
MAX921 (www.maxim-ic.com) comparators input-voltage range includes
the negative rail, you can set the trip
point at 0 to 1.18V (the value of the internal reference), thus allowing D1 to
www.edn.com
design
ideas
www.edn.com
design
ideas
Total
length
(ft)
1100
5
1000
1000
250
30
30
75
100
25
Capacitance
per ft
(pF)
37.3
20
21.6
22.1
21
32.7
30.3
22.5
6.8
18.8
29.5
50
21
Resolution
(in.)
32.2
6
55.56
54.3
5.7
3.67
3.96
5.33
17.65
6.38
4.07
2.4
5.71
Range
(ft)
2682.9
500
4629.6
4524.9
475.3
306.1
329.7
443.8
1470.6
531.9
339
200
476.2
design
ideas
www.edn.com
design
ideas
Electronic-potentiometer system
has pushbutton interface
Gene Warzecha and Roger Griswold, Maxim Integrated Products, Sunnyvale, CA
s systems grow smaller, it becomes increasingly attractive
Figure 1
to replace mechanical potentiometers with electronic potentiometers,
which are smaller and less expensive silicon equivalents. A common interface for
such devices comprises a Chip-Select, Increment and, Up/Down line. CS activates
the device and, on a rising edge of INC
steps the wiper in a direction that the These three ICs form a solid-state potentiometer.
U/D pin indicates. The simple circuit of
Figure 1 uses two pushbuttonsone for
up and one for downand a few tiny silicon devices to implement a debounced,
ESD-protected electronic-potenFigure 2
tiometer system. The normally
open pushbutton switches feed
into the MAX6817, an ESD-protected
switch debouncer in an SOT-23 package.
It has internal pullup resistors on the inputs and buffered, noninverting CMOS
outputs. In the absence of a switch clo- Closing either pushbutton in Figure 1 increments the potentiometers output in a direction that the
sure, the normally open switches hold the MAX5161s U/D input indicates.
MAX6817 outputs high. In turn, that
condition ensures a low state for the ac- 5161 is a 32-tap, linear-taper electronic isfies the setup requirement. The delay, tf,
tive-low, push-pull output of the potentiometer in an SOT-23 package is typically 10 to 30 sec (Figure 2). INC
MAX6308, an SC70 reset device with two with the standard INC-U/D interface. goes high again only after the reset timereset inputs that are independent of the (The electronic potentiometer pulls the out interval expires. For the MAX6308,
CS input high internally.) Its setup re- that interval (tRESET) is factory-preset with
VCC pin.
The reset device must have extra reset quirement is 50 nsec, meaning that the a value as short as 1 msec.
inputs rather than a manual-reset input, U/D signal must be stable for 50 nsec prebecause the glitch-immunity protection ceding a rising edge at the INC pin. The
of manual-reset inputs is not adequate to transient-filtering circuitry internal to Is this the best Design Idea in this
guarantee proper operation. The MAX- the MAX6308 introduces a delay that sat- issue? Select at www.edn.com.
www.edn.com
design
ideas
current-feedback amplifier is a
well-known component
Figure 1
with many uses. Its basic
+
block diagram shows that its input stage
VP
is a voltage followerin practice, a sym1
VOUT
+
metrical emitter follower (Figure 1). The
IEZT
configuration samples the output cur
rent, converts it to voltage across a large
VN
IE
impedance, and amplifies it to the output
using a high-power, low-output-impedance amplifier. The idea is to use the amplifiers input stage as a voltage follower In a typical current feedback amplifier, the
in a basic Colpitts oscillator. This circuit input stage is a voltage follower.
uses the noninverting input of the current-feedback amplifier as the follower resistor ROSC to improve the linearity and
input and the inverting input of the am- define the feedback magnitude. The valplifier as the follower output. You use the ue of ROSC, 330, lets you obtain soft
output amplifier to obtain a relatively clipping operation of the diodes across
high-power buffered output. The circuit the resonator (VRES1V p-p, which is
in Figure 2 shows a basic Colpitts oscil- 0.5V peak across each diode). Figure 3
lator that uses the amplifiers input-volt- shows VRES, the measured voltage at the
age follower as the active element of the top of the resonator. RF is the amplifiers
feedback resistor; the amplifiers manuoscillator.
Take note of two aspects of this oscil- facturer recommends its value. This delator circuit: First, back-to-back diodes sign uses the LM6181 from National
connect across the resonator to limit the Semiconductor (www.national.com),
oscillations to a specific level, thus main- and the value of RF is 1 k.
It is easy to calculate the output volttaining the linearity of the voltage follower. Second, the voltage follower out- age: VRES1V p-p, and VINVVRES1V pput connects to the resonator tap through p. The voltage-buffer gain is unity:
BAV99
12V
RF oscillator uses
current-feedback op amp ............................83
Simple tester checks LCDs............................84
Circuit drives mixed types
and quantities of LEDs..................................86
MOSFET serves as ultrafast
plate driver ......................................................88
Parallel port provides highresolution temperature sensing..................90
Publish your Design Idea in EDN. See the
Whats Up section at www.edn.com.
+
0.8 H
1 nF
1 nF
Figure 2
LM6181
100 nF
VRES
VINV
ROSC
330
100 nF
100 nF
VOUT
RTERM
50
RLOAD
50
12V
RF
1k
RG
100
This Colpitts oscillator uses a current-feedback amplifier to provide a clean sinusoidal output.
www.edn.com
design
ideas
ent tuning elements. You can use the circuit as a crystal oscillator by changing the
inductor to a crystal and changing the
resonator capacitors to an appropriate
Figure 3
value, such as 268 pF. You need a highvalue, such as 10-k, bias resistor from
the noninverting input to ground to provide bias current to this input.
This clean sinusoid is the signal at the top of the resonator, VRES, in Figure 1.
Figure 4
www.edn.com
design
ideas
LED
LED
LED
D1
L1
VCC
ortable systems often use
STRING
STRING
STRING
STRING
MBR0540T1
10 H
2.7 TO 5.5V
1
2
3
4
LEDs of different colors and
STANDARDSTANDARDQ5
in varying quantities of each
COLOR
COLOR
FDN337N
C2
LEDs
LEDs
C1
color. Some examples are white for
1 F
MAX1698
10 F
IC1
EXT
the display backlight, green for
VCC
D6 TO D8
NSPW500BS
REF
CS
keypad illumination, and red for
D
TO
D
3
5
D2
PGND
R1
ADJ
NSPW500BS
power. Typically, the LEDs derive
24V ZENER
500k
AGND
CMPZ5253B
MPQ3904
GND
MPQ3904
power from at least two power
MPQ3904
Q3
FB
Q2
SHDN
Q4
supplies: one for standard LEDs
MPQ3904
Q
1
(red and green) and one for white
LEDs. (White LEDs exhibit
Figure 1
a higher forward voltage.)
R2
The keypad and other indicator
LEDs have current-limiting resistors associated with them. To In this LED-driver circuit, a switching converter, IC1, and associated components lets you mix LED quantities
eliminate these resistors and drive and types.
groups of dissimilar LEDs from
LED
LED
LED
D1
L1
VCC
STRING
STRING
STRING
MBR0540T1
the same source, you can regulate the cur10 H
2.7 TO 5.5V
1
2
3
rent through multiple strings. Four
Q5
strings of varying LED types derive powFDN337N
C2
C1
1 F
er from a single power source (Figure 1).
MAX1698
10 F
IC1
EXT
VCC
The circuit mixes LEDs of different forREF
CS
ward-bias requirements, yet keeps the
D6 TO D8
D3 TO D5
D9 TO D11
D2
PGND
R1
ADJ
NSPW500BS NSPW500BS NSPW500BS
24V ZENER
500k
loads reasonably well-balanced through
AGND
CMPZ5253B
BALLAST
GND
R5
R6
use of a current mirror comprising tranRESISTORS
FB
SHDN
C
4
V
CC
sistors Q1 through Q4. It also eliminates
1 nF
the need for a separate current-limiting
R2 CURRENT-SENSE
MAX4040
ballast resistor on each LED or
RESISTOR
Figure 2
string of LEDs and provides a
R4
R3
common control point (IC1s ADJ pin)
65.8k
1M
for adjusting the LED intensities.
Transistors Q2 through Q4 mirror the
C3
1 nF
current in the diode-connected transistor, Q1. Note that the Q1 current-set string Modifying Figure 1 as shown reduces the overall power dissipation in a standard application.
(LEDs D3 through D5) should have an
equal or larger voltage than that of sub- Any power difference between the refer- proves efficiency by reducing the resistor
sequent LED strings. (If it doesnt, the ence string and a mirrored string dissi- values and their associated loss. Increascurrent-mirrored strings may have too pates in the current-mirror transistor for ing the gain of the current-sense signal by
little voltage overhead to function prop- that string: PMAX (transistor) approximately 16 allows an equivalent reerly.) You can easily meet that require- (VOUT300mVVLEDs)ILEDMAX. The duction in the value of R2 and the ballast
ment in the first string by placing either current-sense resistor value is R2300 resistors. A typical value for R2 is 15,
LEDs with larger forward voltage drops, mV/ILEDMAX, where ILEDMAX is the sum of which represents a loss of 18 mW: (20
such as the approximate 2.8 to 3.7V range currents from all the strings. (For a com- mA)215 for each of three resistors. If
of white LEDs, or more similar LEDs. prehensive circuit and parts list, refer to R2R5R60.931, then the resistor
Then, the circuit can easily accommodate Maxims MAX1698 (www.maxim-ic. power loss drops to 1.12 mW. The op
amp draws only 20 A maximum, which
the subsequent strings with lower voltage com) EvKit data sheet.)
When driving the same LEDs without represents a dissipation of 100 W.
burdens. The matched-transistor current
mirrors maintain a constant and equal the current mirror, you can reduce powcurrent in all LEDs, regardless of quan- er dissipation in the sense resistor and
tity and type. That configuration allows ballast resistors by substituting a mithe use of a single power supply and a sin- cropower op amp across the current- Is this the best Design Idea in this
gle point for adjusting LED brightness. sense resistor (Figure 2). That circuit im- issue? Select at www.edn.com.
www.edn.com
design
ideas
minimizes lead inductance. The part requires multiple bypass capacitors at each
of its power pins. You should choose the
capacitors so that their self-resonant frequencies do not significantly overlap.
Having a full ground plane and using
high-speed and RF-signal-layout techniques are critical to the proper operation
of this circuit. The input must be wellisolated from the output. Double-pulsing, ringing, and even oscillation may occur if you dont strictly follow these
practices. The tracks or cabling between
the driver and the load should be impedance-controlled and should be as
short as possible. The DEIC420 requires
good heat-sinking when you operate it at
high speeds and high voltages. When operating at 20 MHz from a 25V supply, the
two drivers and snubber together dissipate 130W.
Is this the best Design Idea in this
issue? Select at www.edn.com.
0.22 F
2 50V
G1
G1
1
IC2
VI
V0
MC78LO5ACD
0.1 F
5V ISOLATED SUPPLY
1
0.1 F
2 50V
0.1 F
G1
G1
1
2
DRIVE SIGNAL
G1
1
2
G1
1
1
0.22 F
10 F
2 50V
2 35V
G1
G1
1
0.01 F
2 50V
G1
0.1 F
1
3
2
4
IC1
ADUM1100BR
VDD1
VDD2
VDD1
OUT
IN
GND2
GND2
GND1
8
6
7
5
2
IC3
DEIC420
1 3
5
4 6
R1
1
1, 1W, 5%
2
ISOLATION BOUNDARY
DEFLECTION
PLATES
G1
2 R
3
82
35W
1
G1
1
0.22 F
2 50V
G1
R2
1
C1
22 pF
C2
22 pF
SNUBBER
NETWORK
1, 1W, 5%
2
Figure 1
KEEP TRACK LENGTHS DOWN
www.edn.com
design
ideas
25
PAPER
NACK
D7
D0
1
wire or SPI interface, and the cost is approximately $1. The eight-pin part is
available in SO or SOP packaging and
in large quantities as a flip-chip measuring only about 1 mm sq.
In this application, the chip attaches
directly to the PCs parallel port through
a male DB-25 connector. Because the device draws a maximum of 0.5 mA, the
port can supply the power, and its supply range tolerates variations in voltage
levels that may exist on varying ports.
The chip is in SPI mode with the SCK
www.edn.com
design
ideas
lower resolution.You can download Listing 1 from the Web version of this Design
Idea at www.ednmag.com.
The data transfer takes place beginning
with the write of an address byte to the
chips SDI in the order A7 to A0 (high bit
to low bit). If A7 is high, a write takes
place; otherwise, a read occurs. For a
write, D7 to D0 route to the chips SDI.
For a read, D7 to D0 are available on the
chips SDO. The program always uses
both SDI and SDO and ignores whichever it doesnt need. For example, data goes
to the chips SDI even during a read, but
the chip ignores this data. Each byte
transfers as 8 bits, and each transfer involves the following steps:
1. The PC raises D1/SCK and places 0
or 1 on D2 for the chips SDI.
2. The PC then reads PAPER.
3. Finally, the PC drops D1/SCK.
This action repeats for each bit of the
www.edn.com
design
ideas
www.edn.com
design
ideas
800
Figure 2
600
100C
400
25C
200
VOUT (mV)
200
10
12
14
16
400
600
800
pH
1k
Figure 3
9V
0.1 F
pH PROBE
INPUT
200
15 TURN
7
2
6
LM351
3
5
+
4
1
10k
0.1 F
1k
200
15 TURN
SLOPE
8
2
3 +
100k
1
1
/ 2LM353
OFFSET
100k
100k
6
5 +
7
1
/ 2LM353
OUTPUT
9V
9V
Y INTERCEPT
9V 9V
design
ideas
www.edn.com
design
ideas
VDD
figured as PWMs (pulse-width modulaVDD
VDD
tors) for driving the motor in both forPB:7
ward and reverse. Finally, two digital outPB:2
puts act in concert with the PWMs to
Q1
move the motor. You can find all these
IC1A
features in an AVR microcontroller. AsIC3A
suming that you use a typical transmitQ2
ter and receiver, such as a pair from Futaba (www.futaba.com), the range of pulse
width, tPH, should vary from 1 to 2 msec
for full reverse and full forward,
M
Figure 1
VDD
respectively. If the Timer 1 clocksource frequency is 500 kHz, the number
VDD
PB:4
of counts possible between full reverse
and full forward is 500, beginning at 500
PB:5
for a pulse width of 1 msec and ending
IC2A
at 1000 for a pulse width of 2 msec. A
Q4
pulse width of 1.5 msec identifies no-inIC4A
Q3
put or full-stop conditions. Listing 1 proV
DD
vides an example of this motion-control
application.
Subtract 494 ($1EE) from the value of
Timer 1, captured after the falling edge of
tPH
the pulse, assuming that the pulse is positive-going and that, at the rising edge of
the pulse, the value of the counter resets. An Atmel AVR microcontroller provides a novel method of controlling a motor.
The range of values between full reverse
and full forward becomes 6 to 506 ($6 to comes $01 to $FA. If you use the lower byte. Note that when the upper byte is 1,
$1FA). Forward motion is $101 to $1FA, byte of the adjusted Timer 1 value di- the direction is forward; when the upper
with $101 providing the least forward rectly to set the output comparison reg- byte is 0, the direction is reverse. You can
motion and $1FA providing the most isters OCR0 or OCR2 of Timer 0 or download the C-based Listing 1 from the
forward motion. Reverse motion ranges Timer 2, you can use as much as 98% of Web version of this Design Idea at
from $FF to $6, with $FF providing the the range of input values to the PWM. www.ednmag.com.
least amount of reverse motion and $6 You can choose which PWM-configured
providing the most amount of reverse timer to use based either on where the Is this the best Design Idea in this
motion. If negated, the reverse range be- value occurs in the range or on the upper issue? Select at www.edn.com.
design
ideas
VPOS
AD629
Figure 1
REF 2 1
21.11k
IN 2
380k
+IN 3
380k
NC
380k
10k
8
15V
RSHUNT
VS
48V
4
20k
ISHUNT
48V
REF 1
AD629
6 10k
5
(a)
(b)
1 nF
COMPENSATION
AMPLIFIER
7 OP97
3
+
6
2
TO
ADC
48V
48V
A basic monitoring circuit (a) uses a difference amplifier for high-line current sensing; the complete circuit (b) requires just two ICs.
4.5
2.1064
Figure 2
Figure 3
2.1062
2.1060
3.5
OUTPUT
VOLTAGE
(V)
OUTPUT 2.1058
VOLTAGE
2.1056
(V)
2.1054
2.5
2.1052
2
30
40
50
60
70
INPUT VOLTAGE (V)
80
90
shown in Figures 1a and 1b is a self-contained, high-common-mode, voltagedifference amplifier with unity gain.
Connected as shown, however, it reduces
the differential-input voltage by approximately 19, thus acting as a precision voltage divider. You need an additional am-
2.1050
50
0
50
TEMPERATURE (C)
100
plifier for loop stability. The circuit features several advantages over alternative
approaches. The laser-trimmed divider
resistors exhibit essentially perfect
matching and tracking over temperature.
Linearity errors from 40 to 80V are
nearly immeasurable. Figures 2 and 3
REV_IN[x] lines
Drive low
Tristated
Look for pattern
Tristated
design
ideas
www.edn.com
design
ideas
www.edn.com
design
ideas
www.edn.com
design
ideas
R2
47.5k
IC4
MIC7300BM5
+
VOUT
2.5V
R1
10k
R2
10k
C2
47 F
CERAMIC
VOUT
2.5V
C2
47 F
CERAMIC
VOUT
1.5V
C2
47 F
CERAMIC
D1
1N4148
R4
4.99k
C4
1000 pF
Figure 3
This circuit controls the I/O and core-voltage power-on and poweroff sequencing.
design
ideas
Figure 4
The I/O and core voltages have controlled rise times during the poweron phase.
Figure 5
A Schottky diode keeps the I/O voltage from dropping 0.6V below the
core voltage.
www.edn.com
design
ideas
Figure 4
www.edn.com
design
ideas
N
across FET Q1. Through transformer acV02V01 1 S VF1 S VF2 .
N
N
tion, the voltage on the secondary windP
P
ing of inductor L1 is equal to the turns ratio between the windings times the
The second half of this equation rep-
Q1
IRLMS5703
Figure 2
5V
IC1
TPS62000DGS
1
VIN
4.5 TO 5.5V
2
3
4.7 F
6.3V
0.1 F
4
5
VIN
FC
GND
PG
FB
PGND 10
L 9
EN
SYNC
8
7
ILIM 6
10 F
6.3V
T1
3.3V
L1
10 H
R1
825k
R2
130k
This circuit is similar to the one in Figure 1, but uses an integrated buck-converter IC.
10 F
6.3V
NS
NP
I
N
V
(1d)1 + 01 d S , where d = 01 .
N P
VIN
I02
design
ideas
www.edn.com
design
ideas
f o f BASE
R1
20k, 1%
where fBASE1/2R1C1, and p is the relative position of the wiper from one end
(0) of the DPP to the other end (1). For
the100-tap Catalyst (www.catsemi.com)
VOUT
SCHMITT
TRIGGER
5V
8
1
2
7
5V
2 +
IC1
LT1097
+
4
IC2
_
5V
10k
C1
0.01 F
5V
2 _
R4
V1
510
IC2
LM211
3 _
CAT5113
DIGITAL
CONTROLS
V0UT
4
1
2.5V
www.edn.com
edn021031dix30741
Using a digitally programmable potentiometer,
you can vary the scale factor of this voltage-to-freHeather
quency converter.
5113 potentiometer, the range of the rate resistors and capacitors. The scale
scale-factor term (1-p)/p is 1 to 99 with factor relates to the ratiometric tempera resolution and accuracy of approxi- ature coefficient of the DPP and hence is
mately 1%. For the values shown in Fig- minimally temperature-dependent. You
ure 2, the practical range of frequencies can use the circuit as a programmable osis 500 Hz to 25 kHz. Higher bandwidth, cillator when VIN is fixed and the potenrail-to-rail CMOS versions of IC1 and tiometers wiper setting changes the limIC2, and a greater R1/R2 ratio can extend its of the Schmitt trigger.
the accuracy and range of the circuit. The
automated, accurate setting ofedn021031dix30742
the scale
Is this the best Design Idea in this
factor saves manufacturing test time and
Heather
eliminates the need for expensive, accu- issue? Select at www.edn.com.
November 14, 2002 | edn 99
design
ideas
Figure 1
5V
INPUT
4.7 F
10V
16
VP
9
15k
22 nF
22 F
10V (4)
15
BST
14
ILIM
COMP
DH
13
0.1 F
FDS6690A
4.7
1000 pF
LX
IC1
MAX1864T
5V
DL
GND
OUT
POK
FB
POK
+
1.24V
11
10
FDS6690A
1.5 H
DO5022P
EC31
QS03L
1.25V
6A
+ 1200 F
2.5V
OS-CON
4.7
3
4
R5
10k
B2
R3
10k
FB2
R7
220
B3
5V
1 F
10V
CMPT
3906
330 pF
22.1k
8
FB3
EC31
QS03L
12
1OOk
1
1200 F
10V
MV-AX
CMPSH-3
VL
22 F
10V
22.1k
R4
100
R1
1k
2.5V
0.1 F
R2
1k
This circuit generates the termination voltage for DDR synchronous DRAMs.
www.edn.com
design
ideas
1
he circuit in Figure 1 auto0.01 F
5V
matically detects voltage
5
3
Figure 1
VCC GND
and protects a bus, such
4
2 IC
as a 3.3V-limited PCI bus, from 5V
1+
PCI_SERR#
NC7SZ125
signal-level swings.You can also use
1
5V
the circuit to determine bus-voltage
4
swings within one bus-cycle for set10
PR
2 D PR Q 5
12
9
ting appropriate termination voltD
Q
IC2A
IC
2B
3
ages of protection diodes or termi5V
11
6
8
PCI_CLK
CLK
CLK
Q
Q
CL
CL
nation resistors. Todays deepR1
13
1 74LVC74A
3.3
74LVC74A
PLACE CLOSE
submicron VLSI-manufacturing
0603
PCI_RST#
TO PCI BUS
5
1
R4
techniques sometimes require cirPCI
Q
VCC
1.5k
C2
R3 0603 2
LS1 12V
AD10 R2 0603
+ C3
cuits to limit I/O voltages to 3.3V
GND IC3
0603
0.1 F
P9948-ND
1
10 F
4
2k
2k
3
0805
PANSONIC
IN
IN+
0805
signal swings. Connecting such cirPCI_AD[31..0]
1%
1%
2
EFB-CB37C11
METAL
METAL
C
cuits to a bus with 5V level-swing
MAX999
5V BUS
B
TOP VIEW
Q1
cards could damage the circuitry.
WARNING
1.88V5%
5V
BUZZER
The circuit in Figure 1 can accuE FMMT4123CT-ND
R6
C4
R5
9k
SOT-23
0.1 F
15k
rately andwithin one bus cycle
1%
METAL
JP1
0805
1% METAL
0603
detect a level swing larger than 3.3V
0603
1
ENABLE
PROTECTION
2
on any bus and, upon a fault situaHEADER2
tion, generate a reset signal and an
alarm output to notify the user and This circuit provides both an audible alarm and an error flag when an overvoltage condition exists.
the system of this fault. Some of the
The circuit generates a signal that can PCI_AD10. Every PCI device asserts this
novel circuit features include a highly accurate synchronous-detection capability reset the system, or it can generate a sys- signal at least once during PCI enumerto avoid false alarms arising from large tem-error signal. Because the alarm-reg- ation, but you can monitor other signals
signal overshoots, high impedance and ister memory, IC2B, serves as an asyn- if necessary. This method guarantees
low capacitive loading of the bus, auto- chronous register, you can switch the recognition of a 5V PCI device shortly afmatic system shutdown during fault con- alarm off only by removing power from ter the BIOS starts enumerating the PCI
ditions, and a single-cycle response time. the system or by asserting the reset signal. bus during system boot. IC2A then latchThis circuit successfully operates in To avoid false triggering by signal over- es the comparators, IC3, Q-output Pin 1
products using the high-performance shoot and undershoot, a flip-flop-based during the rising edge of the PCI clock.
3.3V MAP-CA processor family from register, IC2A, samples the comparator This action asserts flip-flop IC2B, which
Equator Technologies (www.equator. output only during the rising edges of the in turn enables buzzer LS1 and generates
com), but you can use it in other high- bus clock. This method allows for a gen- an open-collector, low-active, system-erspeed 3.3V or even lower voltage systems. erous 33-nsec period at 33 MHz for the ror signal through IC1. You could use this
Equators latest generation chips are 5V- bus signal to settle down before being error signal to automatically remedy the
tolerant, but you can adjust the circuit to sampled. Lowpass filtering by sensor re- fault condition by disabling the offendprotect other 1.8 and 2.5V chips. The cir- sistors R2, R3 and the 3- to 5-pF parasitic ing circuit on the bus. The sense and refcuit uses IC3, an ultrahigh-speed Maxim capacitance on Pin 3 of IC3 limit the max- erence resistors R2, R3, R5, and R6 should
(www.maxim-ic.com) MAX999 com- imum clock speed of this circuit. The be metal-film 1% types. The 5V reference
parator with 4.5-nsec propagation delay, traces connecting to Pin 3 of IC3, R2, and voltage connected to R5 determines the
TPD, to constantly compare a signal line, R3 thus must be as short as possible and accuracy of the trip voltage, and todays
PCI_AD10 in case of a PCI bus, to a ref- may limit the bus speed to approximate- power regulators have sufficient accuraerence level of 3.8V. This reference volt- ly 40 to 50 MHz. Symmetrically lower- cy so that you can use a 5V system-powage is an optimal compromise between ing the resistance of R2 and R3 increases er line as the reference voltage, obviating
5V signals clamped by 3.3V protection the maximum bus speed to a theoretical the need for a special 5V-reference gendiodes and the normal-operation 3.3V 7-nsec cycle time (greater than 140 MHz) erator. Removing jumper JP1 disables the
signals. Once the voltage exceeds this ref- at the expense of a higher signal-loading circuit.
erence level for an entire bus clock peri- current on the bus.
In the case of monitoring a PCI bus, Is this the best Design Idea in this
od, the system turns on an alarm buzzer
Pin 3 of comparator IC3 monitors signal issue? Select at www.edn.com.
connected to Q1.
www.edn.com
design
ideas
IC3, R1, R2, and V1 form the feedback circuit to set the output voltage. The outputvoltage equation is VOUTV1(R1/R21).
The TL431 is a popular part for setting a
voltage reference and can easily create the
1.25V shown for V1. You can supply 5V at
1.5A with an input of 9 to 40V. At voltages higher than 12V, you can add a 10V
zener-diode supply for the chips. The
zener supply only slightly reduces the efficiency. With 12V input, 5V, 1.5A output efficiency is approximately 70%, and
it drops to 65% with a 40V input and a
zener circuit. The zener diodes influence
is more noticeable at lower current levels;
at a 50-mA load the efficiency drops to
approximately 50%.
POWER
PWM
ASTABLE TRIGGER
8
VCC
10k
0.1 F
2 TRIGGER
UNREGULATED
SUPPLY
+
4 RESET
5 CONTROL
83
IC1 OUTPUT
555
4
RESET
100
2
7 DISCHARGE
C2
0.001 F
3
GND
1
0.01 F
DISCHARGE
TRIGGER
6 THRESHOLD
Figure 1
4.7k
8
VCC
THRESHOLD
IC2
5
555 CONTROL
C1
0.01 F
OUTPUT
GND
1
POWER
0
3
Q1
ZVN4210G/ZTX
3
VOUT
REGULATED
SUPPLY
L1
68 H
1N5817
+
100 F
D1
1N4734
1
RLOAD
R1
10k
R2
3.33k
+ V1
1.25
V+
IC3
LF411/NS
OUT
5
4
FEEDBACK
VOUT1.25(1R1/R2).
0
Heres one more use for the ubiquitous 555 timer: a switch-mode power supply.
www.edn.com
design
ideas
www.edn.com
design
ideas
X1
1M
90 TO
264V
AC 1M
that typically suppress this noise. The absence of these capacitors allows medical
devices to easily comply with the more
stringent low-leakage-current healthcare specifications of UL544, UL2601,
and CSA22.2.
Figure 1 shows a 30W (12V output at
2.5A) offline power supply. IC1, an
LT1738 low-noise switching regulator in
a flyback topology, drives Q1 and continuously controls the current slew using the
resistor at the RCSL pin. The IC controls
the voltage slew using the resistor at the
RVSL pin and the capacitance at the CAP
pin. IC2, an LT1431 programmable reference, and the optocoupler close the isolated loop back to the LT1738. The circuit
achieves current limit by sensing the current through a 68-m resistor at the CS
BR1
C6
0.1 F
250V AC
"X2"
P6KE200A
C1 +
100 F
400V
510
2W
200 pF
200V
T1 11
220 pF
K
X3
Figure 1
R1
510k
C5
56 F
35V
7.5V
IN755A
510k
7
51k
8
Q2
19.6k 16
3.9k 15
3.9k
2N2222
Q3
51k
NC
10
12
A2
C2 +
330 F
25V
C3 +
330 F
25V
C4
+
330 F
25V
VOUT
12V
2.5A
VOUT
470 pF
NFB
15 pF
600V
SHDN
V5
15 pF
IC1
SYNC LT1738
CAP
CT
GATE
RT
CS
1.5 nF
165k
2N2222
19
VIN
A1
3
BA521
17
14
MUR160
10
100k
2W
10
D1
2
Q1
MTP2N60E
0.1 F
4
RVSL
NC
RCSL
PGND
VC
FB
SS
GND
13
10 nF
11
18
20
12
VOUT
1k
ISO1
CNY17-3
0.068
0.5W
38.3k
1%
3
4
COMP
8
REF
IC2
COLL LT1431 RTOP 4
7
RMIO
G-F
G-S
6
1k
0.22 F
V+
GCL
0.1 F
1k
10k
1%
NOTES:
D1: MBR20300CT.
UNLESS OTHERWISE NOTED,
L1: HM18-10001.
ALL RESISTORS: 1206,5%.
BR1: GENERAL INSTRUMENTS WO6G. T1: PREMIER MAGNETICS POL-15033.
C2, C3, AND C4: SANYO MV-GX.
A 30W offline power supply passes FCC Class B emission requirements without line-to-earth-ground capacitors.
www.edn.com
design
ideas
www.edn.com
design
ideas
5V
5V
RB1
IEXC
RB2
300 A
AIN1
AVDD
RTD 1
AIN2
R1
METAL A
C1
COPPER
COPPER
R2
METAL B
C2
AIN3
AIN4
AIN5
AD7708
RTD 2
AIN6
RPREC
470
TERMINAL
(ISOTHERMAL)
BLOCK
ROFF
470
AIN7
AIN8
AIN9
RB3
5V
ADR421
REFIN1 ()
REFIN1 ()
AGND
www.edn.com
design
ideas
operating point. Using field-effect devices renders the dc input current of the
first active device (a JFET or a MOSFET)
so low that you can neglect it in most cases. On the other hand, the circuit must
www.edn.com
design
ideas
design
ideas
as well as four instead of three connecting leads. On the other hand, it is less
sensitive to external loads than are the
circuits in figures 1 or 2.
The op amp in Figure 3 is a TS271,
a CMOS op amp from STMicroelectronics (www.stmicroelectronics.com).
The low-frequency cutoff is at 7 Hz, and
the step-response overshoot is 0%. With
larger values of C2 and smaller values of
R3, you can easily achieve a low-frequency cutoff of 0.1 Hz or lower. The circuit
in Figure 3 is well-suited for micropower applications. Using a micropower
CMOS operational amplifier, you can reliably obtain 10 years of unattended operation with standard passive components and just a single coin-sized lithium
cell as the power source. The properties
of the operational amplifier fully determine the high frequency cutoff and dynamic range of the circuit in Figure 3.
R2
R2
VIN
2
2
asic textbooks describe invertVIN
R1
R1
ing and noninverting amplifiers
_
R3
R3
VOUT
based on operational amVOUT
+
F
i
g
u
r
e
1
plifiers. These amplifiers have
+
R4
R3
different gain equations. Whereas in the
R3
R4
inverting configuration, the gain is the raFigure 2
tio of the feedback and input resistances, in the noninverting amplifier, the gain This noninverting amplifier has a simple, proThis noninverting amplifier has a gain formula
ratio has an added term. In some designs portional gain formula.
identical to that of an inverting amplifier.
and for the sake of simplicity, it would be
desirable to have a simple, proportional plifier, the circuit in Figure 2 fills the bill. or R2, whichever is smaller, and the gain
gain ratio (for gains above and below Its close-approximation gain formula is error the approximation gives is less than
5%. For an exact computation, the error
unity) for both inverting and noninvert- VOUTVIN(R2/R1).
However, in the circuit of Figure 2, is equal to R4/2
(1/R11/R2). For the seing amplifiers. The noninverting amplifier in Figure 1 has a simple, proportion- some restrictions in the choice of R4 arise. lection of R4, you should take into acal formula for the gain: VOUT The accuracy of the gain formula of the count the fact that most op-amp ICs have
VIN(R2/2R1). This gain is proportional to circuit depends on R4s being much low- maximum output currents of approxia resistor ratio and can take any value. R3 er in value than R1 or R2. Nevertheless, mately 20 mA.
has no influence on the gain. If you need comparing the exact expression for the
a noninverting amplifier with a gain ra- gain and the above approximation proves Is this the best Design Idea in this
tio identical to that of an inverting am- that R4 is 10 times lower in value than R1 issue? Select at www.edn.com.
www.edn.com
design
ideas
www.edn.com
design
ideas
8A5.6W. Over the specified temperature range, the pass element must be
able to dissipate this amount of power
and have a junction temperature lower
than the maximum allowable for that device. This approach probably requires
three to four D-Pack-size MOSFETS. A The circuit in Figure 1 cycles current in the event of a fault condition.
Q1
SUB15POI-02
R1
10 m
R2
90.9
IC3
LM40411.2
Figure 1
C1
R5
3k
VIN
R3
1k
EN
C2
0.1 F
R4
1k
R6
330k
IC2
MIC7221BM5
ISENSE
GATE
IC1
MIC51591.8BM5
FB
C4
100 F
CERAMIC
GND
C3
0.1 F
This circuit provides foldback current-limiting, thus reducing the power-handling requirements of the pass element.
www.edn.com
design
ideas
R2
VIN VIC 3
R 2 + R 3
CURRENT LIMIT =
;
R1
CURRENT LIMIT
90.9
2.51.225
90.91000
;
10 m
CURRENT LIMIT10.207 A .
(TON/TOFF)10.2A
(2msec/17msec)
1.2A. This reduced average current
equates to a reduction in power dissipation. At 1.2A, the power dissipation decreases to 3W.
www.edn.com
design
ideas
and gain.
DPPs program key parameters
of bandpass filter............................................97
Encoder and PC make
complete motor-control system..................98
Use PSpice for behavioral
modeling of VCOs ......................................102
Circuit delivers high voltage
swing from lower supplies ........................104
Publish your Design Idea in EDN. See the
Whats Up section at www.edn.com.
www.edn.com
ter frequency of the filter to track an input signal or to accommodate a systemlevel requirement. For the values shown,
the center frequency varies from less than
200 Hz to more than 6 kHz with gain values as high as 25.
design
ideas
B9
12
+ 100 F
16V
Figure 1
B30
5V
B1
B10
B31
DB6
DB5
DB4
DB3
A3
A4
A5
A6
7
6
5
4
3
DB2
DB1
DB0
A7
A8
A9
A22
A23
A11
A25
A26
B13
LS645
11
12
13
14
15
16
17
4
5
6
7
8
I0R
A7
C1
15
A 10k
G0 11
10 13 12 11
10
68
D2
IN4148
C2
D0
0.0047 F
CS
12V
RD WR
23
8
C1
0.0047 F
Q2
2N4403
6 9
8
13
10
1
13
2
3
5V
8
Z746-ND
4A
17 AND 18
MOTOR
OUTPUT
6
5
8
K1
12
2
11
10
MOTOR
DC SUPPLY
(~24V AT 2A)
D3
SR504
R1
2.7M
D1
1N4148
3,4
A9
5
A8
AEN
A6
12
A5
11
5
I0W
6
5A
40V
Q3
IRFZ20-ND
Q1
2N4401
2
3
TO
ENCODER
0.1 F
O0
A1 A0
5
4
3
12V
C0
82C54
6 AND 7
+
5
9
1
Q4
2N4403
1,4
A28
4
2
4.7k
100 pF
5V
A29
B 10k
G1 14
9
21 20 19 22
A4
A1
A0
4.7k
HC14
2
3
G2 16
1 D7
2
3
18
2
19
B14
A24
18
5V
C2=CCW
C1=CW
7.2 MHz
9
A
8
DB7
5V
28 kHz
C2
A2
A27
A30
A31
12
+ 330 F AT
6.3V
+0.1
Q9
Q1
B3
B29
11
MCT4040
10
14.3 MHz
A2
A3
12 D
1
2
C11
HCT74 Q1
11, 3
9
D2
13, 10
5V
www.edn.com
design
ideas
fore, the motor stays off before the programming of the 82C54, regardless of
whatever arbitrary state the IC may assume after power-up. Q4 is a pnp transistor that controls the direction-reversing relay, K1. Listing 1 is an MBasic demo
program for the motion-control system.
You can download the software from the
Web version of this Design Idea at
www.ednmag.com.
Reference
1. Woodward, Steve, Unidirectional
counters accumulate bidirectional pulses, EDN, April 11, 2002, pg 72.
Is this the best Design Idea in this
issue? Select at www.edn.com.
www.edn.com
design
ideas
(t)0GVCOVE(t).
(1)
Here,
G VCO =
d
df
= 2
= 2g VCO , (2)
dVE
dVE
where GVCO is the VCOs voltage-to-radian frequency gain in radians per second
per volt and gVCO is the VCOs voltage-tofrequency gain in hertz per volt. Consider a sinusoidal voltage with amplitude
VAMPL, argument (t), and dc offset VOFF:
V(t) = VAMPL sin((t)) + VOFF .
(3)
(4)
+ VOFF .
Replacing (t) with Equation 1 and considering (0)0, you obtain the VCOs
transfer function:
(7)
design
ideas
on a real circuit concept. Thus, they comprise many elementsfor example, controllable sources, capacitors, and others.
Hence, the models are complicated. This
modeling is simple without involving superfluous computation resources.
design
ideas
15V
Figure 1
SENSE AMPLIFIER
R6A
R7A
15V
R5A
R2A
R4A
R1A
R3A
VIN
15V
WIRE
LOSSES
VOCM
LOAD
+
15V
R1B
R2B
R3B
R5B
R4B
R6B
15V
R7B
+
SENSE AMPLIFIER
15V
Similar to a bridged audio amplifier, this op-amp circuit delivers output-voltage swings to the load
beyond the span of the power supplies.
design
ideas
En
fa
Ha
www.edn.com
volta
such
filter
betw
idly
amo
you
the o
badl
shap
mod
caus
prod
as a
lems
attac
and
sicia
any
expo
abru
is s
metr
Figure
C
0.1
This e
www
alue
VCO
limf the
mits,
recpacthis
r C2,
oxiinkcy of
ighlue,
high,
With
ower
and
Figure 1
PEAK DETECT 1
100k
IC2
TL072
3 +
12V
AUDIO IN
R1
10k
2 1
C1
0.1 mF
C2
R2
10k
8
IC1
TL072
5 +
4
R3
10k
7
1N4148
1N4148
2N3904
Q1
0.001 mF
1N4148
CK
1k
2
CKEN 1
15 RST 2 4
7
3
12V
4017
16
VDD
13
PEAK DETECT 2
D1
R5
100
112V
0.001 mF
14
6 1
1N4148
IC1
3 TL072
+
4584
1N4148
R4
100k
C3
0.1 mF
1N4148
PEAK DETECT 3
1N4148
VSS
this
.com
This envelope detector provides the seemingly contradictory features of fast response and low ripple.
www.edn.com
design
ideas
The peak-hold circuit is a classic configuration with the addition of the reset circuit. R2 and C2 differentiate the rising
edge of the reset pulse; this edge drives
the base of Q1. Series resistor R3 prevents
excessive op-amp current while Q1 is
conducting. The filter network compris-
www.edn.com
design
ideas
90
mum output current of the positive buck
converter in Figure 1b, even
85
Figure 2
though they use the same switch80
mode-regulator IC. The buck-converter
IC in both circuits has an internal powEFFICIENCY 75
er switch with a switch current rating of
(%)
3A. You choose the inductor based on
70
maximum output current, peak switch
65
current, and desired ripple current. First
calculate the duty cycle (DC) and then
60
calculate either the ripple current, IPP,
400
600
800
1000
1200
1400
0
200
based on the chosen inductor, L, or the
OUTPUT CURRENT (mA)
inductor value based on the desired ripple current. It is generally good practice Efficiency of the negative boost converter in Figure 1a is as high as 85% and typically greater than
to choose the inductor value so that the 80%.
peak-to-peak ripple current is approximately 40% of the input current. These mum allowable input current given the ISWMAX3ESRCOUT. Figures 1a and 1b
calculations are approximate and ignore ripple current: IOUTMAX5(ISWMAX2IPP/2) show the high-di/dt switching paths of
the effect of switch, inductor, and Schot- 3(VIN3h)/ VOUT. As in a typical boost the negative boost and positive buck
tky-diode power losses. You calculate as converter, the input capacitor in the neg- dc/dc converters.You must keep this loop
ative boost topology has low ripple cur- as small as possible by minimizing trace
follows:
DC5(VOUT2VIN)VOUT; IIN~(VOUT3IOUT)/ rent, and the output capacitor has high lengths to minimize trace inductance.
(VIN3h), where h is the overall efficien- discontinuous ripple current. The size of The discontinuous currents in this path
cy. IPP5IIN340%; IPP5(DC3VIN)/(f3L), the output capacitor is typically larger create high di/dt values. Any trace inwhere f is the switching frequency; and than that of the input capacitor to han- ductance in this loop results in voltage
L5(DC3VIN)/(f3IPP).
dle the greater rms ripple current:
spikes that can render a circuit noisy or
Maximum inductor current, ILMAX, is
ICINRMS5IPP/=12, and ICOUTRMS5 uncontrollable. For this reason, circuit
equal to the peak switch current in this =(12DC)3(IIN21IPP2/12).
layout can be just as important as comThe output capacitors ESR has a direct ponent selection. Note that the layout of
configuration. The IC has a maximum
switch current, ISWMAX, of 3A, so the max- effect on the output-voltage ripple of the a negative boost regulator differs from
imum inductor current must remain dc/dc converter. Choosing higher fre- that of a positive buck regulator, even
below 3A. To keep switch current below quency switch-mode regulators reduces though they use the same IC.
the maximum, you might need more the need for excessive rms ripple-current
inductance to keep the ripple current rating. Regardless, a low-ESR output
low enough. (ILMAX5ISWMAX5IIN1IPP/2.) capacitor, such as a ceramic, can miniMaximum output current, IOUTMAX, is an mize the output-voltage ripple of the Is this the best Design Idea in this
approximation derived from the maxi- negative boost converter: DVOUTPP5 issue? Select at www.edn.com.
KVM (keyboard-video-mouse) applications. Each requires an N3M-to-1 multiplexer, in which M is the number of
sources and N is the number of channels
that make up the signal. As an example,
16 RGB or Y, Pb, and Pr sources require
a 3316-to-1 multiplexer. Constructing
design
ideas
MAX4315
75
15
75
8
MAX4315
1
A0
A1
A2
A3
MAX4315
75
75
8
MAX4315
1
A0
A1
A2
A3
MAX4315
BLUE INPUT 16
RGB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
A0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
A1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
A2
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
A3
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
GREEN OUTPUT
15
(b)
TABLE 1SOURCE-SELECTION
PROGRAMMING
RED OUTPUT
BLUE OUTPUT
75
75 15
75
8
(c)
INPUTS 9 TO 16
MAX4315
1
A0
A1
INPUTS 1 TO 8
A2
A3
This multiplane multiplexer selects any one of 16 input signals, each of which comprises red (a),
green (b), and blue (c) channels.
www.edn.com
design
ideas
1A
1B
1C
1D
www.edn.com
design
ideas
www.edn.com