EDN Design Ideas 2006
EDN Design Ideas 2006
EDN Design Ideas 2006
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
82 Instrumentation amplifier
extends DSO
CD2
10 nF
CD2
10 nF
L1
100 nH
50
CD1
680 pF
IC1A
74LVCU04AD
VS
VI1
CDC2
10 nF
VDD
3.3V
R2
56k
R1
5.6k
C1
3.6 pF
RF
SOURCE
CD1
680 pF
R3
56k
CDC1
680 pF
IC1B
74LVCU04AD
IC1C
74LVCU04AD
DATA
OUT
VO1
NOTE:
ALL COMPONENTS ARE SURFACE-MOUNTED DEVICES.
Figure 1 Three high-speed CMOS inverters and a few passive components form an RF-to-logic converter.
designideas
triggers input, VO1, stems from a compromise between input sensitivity at VS
and ensuring unconditional stability of
the comparators output. Equations 1
and 2 set the high and low threshold
voltages, respectively:
(1)
(2)
Figure 2 An Agilent N3382A vector-network analyzer obtained this S-parameter plot, which shows S11 measured at the first inverters input for a source
power level of 6 dBm.
250
200
150
INPUT
VOLTAGE
(mV RMS)
100
50
(3)
0
10
20
40
60
80
100
120
140
150
160
170
180
190
200
FREQUENCY (MHz)
(5)
(7)
designideas
Applying these formulas at 150 MHz
yields L1 100 nH, and C1 CP 8.7
pF.
3. Subtract the inverters input
capacitance, CP 5 pF, from Equation
7 to calculate a value for C1:
(8)
Instrumentation amplifier
extends DSO
Bob Perrin, Sacramento, CA
onds. An ammeter showed that the current transitions occurred too quickly for
visual logging, and my managers had
requested an oscilloscope photo of the
current waveforms peaks. I rolled out
our companys cart-mounted DSO (dig-
10 to 180 MHz. Under worst-case conditions, the current drain does not
exceed 58 mA for a supply voltage of
3.3V.EDN
REFERENCES
Smith tool, Ansoft Corp,
www.ansoft.com.
2 Ansoft Designer: Student Version,
Ansoft Corp, www.ansoft.com.
3 Bowick, Chris, RF Circuit Design,
HW Sams & Co, Indianapolis, IN,
1988.
1
TO 15V
ISOLATED
+
BENCHTOP
POWER
SUPPLY
R3
121
12V
DC OUT
C9
+ 100 nF
R1
25
C4
100 nF
C2
100 nF
C3
150 F
+ C
1
150 F
F1
C5
100 nF
V+
+
RG
R2
IC1 REF
475
R
_G
C6
100 nF
C8
10 nF
C7
10 F
C10
1 F
C11
10 F
RG-174
COAXIAL
CABLE
TO
LECROY
DSO
R5
15k
C12
100 pF
C13
100 pF
C14
100 nF
NC
VIN
TRIM
15V
ISOLATED
R4
121
UNIT UNDER
TEST (UUT)
IC2
COM
OFF/ON
VIN
15V
ISOLATED
NC
C15
10 F
C16
+ 1 F
C17
100 nF
GND
C18
10 F +
TO 15V
C19
100 nF ISOLATED
designideas
introduced an unwanted voltage drop
on the products power-supply rail.
Finally, the 12V supply rail introduced
a voltage offset that limited the oscilloscopes ability to accurately resolve
the small differential signal that I was
attempting to measure. I disconnected
the oscilloscopes ac ground to float
the scope with respect to the sampling
resistor, but the RF noise visible on the
trace increased significantly. I briefly
considered using an older analog (nonstorage) scope, but the DSOs storage
feature would allow me to capture and
print the waveforms required for my
report.
In frustration, I scoured the workbench for stray parts and assembled a
circuit that solved the problem. By
chance, the parts collection included
an instrumentation amplifier, IC1,
which does an excellent job of extract-
To design an inductive component that contains a magneticcore material, an engineer must accurately measure the materials characteristics. A magnetic cores dynamic
hysteresis loop, or B-H curve, contains valuable information about core
losses and other magnetic parameters.
Unfortunately, commercially available
magnetic-loop-analysis instruments
are expensive and thus impractical for
small-scale research labs and manufacturers. This Design Idea describes a virtual instrument that uses a desktop or
notebook computer with an analog
data-acquisition card and National
Instruments (www.ni.com) LabView
software (Version 7.1 or above). In
operation, the software extracts B-Hloop information, core losses, and other
magnetic parameters at a reasonable
cost per measurement.
Figure 1 shows the test fixture for a
magnetic-core-based device. The device, T1, comprises a sample of core
material and two windings with equal
numbers of turns. A precision currentsensing resistor, R1, samples the excitation current that induces a magnetic field in the core. The voltage drop
across R1 is proportional to the excitation current and the magnetic field, H.
A network comprising resistor R2 and
capacitor C1 integrates the voltage
induced in the secondary winding. The
voltage across C1 is directly proportional to the flux density, B, in the core.
In practice, R2s value should be much
larger than capacitor C1s impedance at
the operating frequency. (Textbook
T1
VARIABLE-VOLTAGE
VAC
SINUSOIDAL ACEXCITATION SOURCE
R1
R2
1-TO-1 TURNS
RATIO
C1
TO DATA-ACQUISITION
CHANNEL 1 (Y-AXIS)
INPUT
TO DATA-ACQUISITION
CHANNEL 0 (X-AXIS)
INPUT
Figure 1 The test fixture for a basic hysteresis-loop analyzer requires few
components.
designideas
data-acquisition analog-input channels: Channel 0 acquires magnetic-field
readings (H) for display on an x-y
charts x axis in units of ampere-turns
per meter, and Channel 1 captures flux
density (B) in tesla units for the y-axis
display.
At low frequencies, the cores hysteresis losses predominate, whereas
eddy-current losses become more
apparent at higher frequencies. A
wattmeter-style algorithm calculates
core losses, but you can easily substitute
your own mathematical expression into
the VI block diagrams formula node.
LabView also can save the data and
export results in Microsofts (www.
microsoft.com) Excel-spreadsheet format or into other programs for further
analysis.
You can use another of the dataacquisition cards eight differential analog-input channels to determine
inductance. To do so, measure the voltage across the devices primary winding
and calculate its rms value. The ratio
of the voltage to the rms current as
measured through R1 determines the
magnitude of the windings scalar
impedance, XL. Then, you can calculate the inductance from the following
equation: LXL/2
f, where f denotes
Figure 2 The virtual instruments display shows a 3B7mixture ferrite-pot cores B-H loop.
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
80 Enhanced, three-phase VCO
features ground-referenced outputs
OUT1
OUT3
2 PAC BLOCK 1
IA1
36.05 pF
20.91 pF
PAC BLOCK 3 1
IA5
IN1
OA1
OA3
IA2
1
2 PAC BLOCK 2
IA3
IA6
2.5V
36.05 pF
2.5V
36.05 pF
PAC BLOCK 4 2
IA7
IN2
OA2
IN4
OA4
IA4
1
IN3
IA8
2.5V
2.5V
OUT4
OUT2
UES BITS=00000000.
Figure 1 Based on a Lattice Semiconductor ispPAC10 programmable analog circuit, this phase-shift sine-wave oscillator and lowpass filter require no external components. The values are for a 30.4-kHz oscillator.
designideas
OUT1
OUT3
10
23.26 pF
25.08 pF
PAC BLOCK 1
PAC BLOCK 3
IA1
IN1
OA1
IA6
2.5V
2.5V
23.26 pF
25.08 pF
IA3
IN3
OA3
IA2
1
IA5
PAC BLOCK 4
PAC BLOCK 2
1
IA7
IN4
IN2
OA2
OA4
IA4
IA8
2.5V
2.5V
OUT4
OUT2
UES BITS=00000000.
Figure 2 Cascaded dual integrators implement a quadrature sine-wave oscillator, with blocks 3 and 4 forming a lowpass filter. Again, the circuit design uses no external components. The values shown are for a 27.2-kHz oscillator.
C2
(pF)
5.46
6.92
7.77
9.19
14.62
20.91
36.05
61.59
C3
(pF)
5.06
5.92
6.92
6.92
9.19
12.78
20.91
35.25
C4
(pF)
5.46
6.92
7.77
9.19
14.62
20.91
36.05
61.59
f0
(kHz)
130.1
115.4
109.9
97.8
67.9
50.1
30.4
17.7
f (kHz)
at 20 dB
6
6
6
2.5
2.5
2.5
1.2
0.6
THD
(dB)
25
30
30
32
39
40
40
41
C2
(pF)
1.07
3.56
5.92
7.77
14.22
25.08
40.08
50.01
61.59
C3
(pF)
5.06
5.92
7.77
9.62
15.45
23.26
26.29
35.25
40.98
C4
(pF)
5.06
5.92
7.77
9.62
15.45
23.26
26.29
35.25
40.98
f0
(kHz)
125.9
105.1
80.4
66.3
41.7
27.2
18.6
15
12.3
f (kHz)
at 20 dB
6
6
2.5
2.5
2.5
1.2
1.2
0.6
0.6
THD
(dB)
27
25
30
34
40
40
42
42
41
designideas
EEPROM
FREQUENCY
SELECT
MICROCONTROLLER
IEEE 1149.1
JTAG
ISPPAC10
OUT
a microcontroller to dynamically
reconfigure an ispPAC-based oscillator
for specific frequencies. The nonvolatile memory stores frequency-specific capacitance and gain values for
each of the ispPAC10s circuit blocks.
Data transfers occur using the IEEE
1149.1 JTAG-standard protocol
through the ispPAC10s serial testaccess-port interface.EDN
REFERENCES
nth PAC block for oscillation at frequency f0. The design uses a Tektronix TDS1002 digital oscilloscopes FFT
function to measure THD and the
designideas
error occurs at the low end of the frequency range, at which its the least
objectionable.EDN
POWERSUPPLY
INPUT
15V
C5
10 F
35V
PIN 4
PIN 4
DIFFERENTIAL
AMPLIFIER 1
R7
100k
IC3
PIN 11 PIN 11
R8
100k
IC2
2 _
IC
3 + 3D
15V
R1
1k
DIFFERENTIAL
AMPLIFIER 2
R11
100k
R9
499k
2 _
IC
3 + 3A
R12
100k
R10
499k
NC
2 _
IC
3 + 2A
6 _
IC
5 + 2B
DIFFERENTIAL
AMPLIFIER 3
R15
100k
R13
499k
6 _
IC
5 + 3B
R16
100k
9 _
IC
10 + 3C
PHASE 3
OUT
PHASE 2
OUT
9 _
IC
10 + 2C
R17
499k
R18
499k
R14
499k
PHASE 1
OUT
(SPARE)
D1
1N758A
pg 102, www.edn.com/article/
CA149120.
OFFSET-VOLTAGE
REFERENCE
C6
10 F
35V
15V
REFERENCE
13 _
IC
12 + 2D
14
14
CD4069UB
13 IC
1E
FREQUENCY- 15V
CONTROL
VOLTAGE
INPUT
R3
15V
100k
12
9 IC
1A
11 IC
1F
R6
2.2k
1 IC
1B
3 IC
1C
5 IC
1D
10
7
R5
100k
Q1
2N3904
Q2
2N3906
R4
330
R2
10k
C1
0.1 F
D2
1N4148
D4
1N4148
D6
1N4148
D3
1N4148
D5
1N4148
D7
1N4148
C2
10 F
C3
10 F
C4
10 F
15V
NOTES:
PLACE Q1 AND Q2 IN THERMAL CONTACT.
FOR BEST STABILITY, USE NONPOLARIZED CAPACITORS FOR C2, C3, AND C4.
DOTTED LINES BETWEEN Q1 AND Q2 INDICATE THERMAL CONTACT.
Figure 1 Adding differential and buffer amplifiers and an exponential voltage-to-current converter enhances the performance of a low-frequency, three-phase voltage-controlled oscillator.
detector, when you add a few components, the operating principle lends
itself to measurement applications.
This revised circuit delivers an accurate
linear-voltage output thats proportional to direct current flow through
current-sense transformer T1s primary
winding (Figure 1). In addition, the
circuit also offers possibilities as an ac
current sensor.
To achieve improved performance,
the design retains the original oscillat-
designideas
ing-circuit concept and adds a
ONE TURN
PLL circuit and one additionCURRENT TO MEASURE
J4
J3
1
1
I
al winding to the current
4
1
T1
CON1
transformer whose secondary
5V
TOROID CON1
5 FERRITE
8 6
forms an LC oscillators resoCORE
R8
nant circuit. Integrating a
47k
200
TURNS
50
TURNS
9
4
VCOIN
VCOUT
74HC4046, IC1, the PLL
3
2
P1
CIN
measures the frequency of an
13
14
5V
5V
SIN
P2
C2
IC1
5V
LC oscillator comprising Q1
P3 15
10 nF
74HC4046
R9
1
6
PP
and its associated components 100C1nF
J
47k
C1A
R6
R5
1 1
7
100k
100k
C1B
and compares it with a fixed11
2
10
R1
DEMO
frequency internal VCO (vol12
CON2
R2
tage-controlled oscillator).
VOLTAGE
R7
Q2
5
OUTPUT
100k
INH
The PLLs phase-comparator
BC558
5V
output drives a current source
16
Q3
VDD
BC558
comprising Q2 and Q3, which
C9
C3
2.2 F
in turn feeds current to an
100 nF
additional winding on the current-sense transformers core.
R10
R11
47k
47k
Sources of T1s ferrite core
C4
include Epcos (www.epcos.
100 nF
com), which offers the B64290L 63287-toroid 20
5V
5V
107 material N87; Pramet
C5
R3
100 nF
(wwwpramet.com), which of6.8k
R2
fers Fonox Type T20 material
47k
POWER SUPPLY
H60; Vacuumschmelze (www.
C6
Q1
22 nF
5V
vacuumschmelze.com), with
J
3 2
BC548
+
C8
the VAC T60006L20204
47 F
R1
C7
R4
CON2
15k
W409-52; and other manu47 nF
2.2k
facturers. Depending on the
ferrite material you use, the
circuit will operate to some
Figure 1 This current sensor uses a variable-frequency oscillator, Q1, and a PLL, IC1,
degree with virtually any ferto measure current in an isolated circuit.
rite toroidal core. (It is difficult
to simulate this circuit using
PSpice or other simulators; for accurate current. The turns ratio of 1-to-250, primary winding, calibrate the circuits
results, you need a complex model that which also represents the ratio of cur- range by adjusting potentiometer R11 to
accurately portrays the cores nonlinear rents in transformer T1, establishes a a set operating point. A voltage drop of
secondary current of 10 mA for a pri- 2V across R5 sets a measurement range
behavior at various current levels.)
The added winding induces magnet- mary current of 2.5A. If the PLL cir- of 5 to 5A. To accommodate other
ic flux in the core, decreasing its per- cuits gain is sufficient and the ferrite measurement ranges, you can alter T1s
meability and inductance and raising cores region of operation avoids satu- turns ratio or vary the compensation
the LC oscillators frequency. When the ration, the circuits closed-loop config- current by using different values for R5
oscillators frequency matches the uration maintains the cores magnetic and R11. Use a well-regulated power
VCO (reference) frequency, the circuit flux at a constant value and thus min- supply to provide power for the circuit.
reaches an equilibrium state. An in- imizes the effects of core-material non- You may be able to replace the
74HC4046 with a software PLL-emucreasing or decreasing current through linearities.
Measuring the voltage difference lation routine that uses a microconthe compensation coil balances any
additional magnetic flux that dc cur- across resistor R5 shows that the circuits trollers spare processing resources.EDN
rent flowing through the measurement output voltage is linearly proportional
to the compensation current, and R5s R E F E R E N C E
coil produces.
Within the PLLs frequency-tracking resistance scales the voltage output. For 1 Ackerley, Kevin, Impedance transrange, the current waveform through 100 at R5, a 1V output corresponds to former flags failed fuse, EDN, Dec
the compensation coil has the same a primary-side current of 2.5A. With 17, 2004, pg 67, www.edn.com/
shape as fluctuations of the measured zero current flowing in the single-turn article/CA486572.
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
76 Shunt regulator improves power
amplifiers current-limit accuracy
78 Low-power, super-regenerative
receiver targets 433-MHz ISM band
What are your design problems
and solutions? Publish them here
and receive $150! Send your
Design Ideas to edndesignideas@
reedbusiness.com.
designideas
Shunt regulator improves power
amplifiers current-limit accuracy
John Guy, Maxim Integrated Products Inc, Sunnyvale, CA
15V
age. Figure 1 shows the classic currentlimiter circuit: Transistor Q2 senses the
output-current-induced voltage drop
across ballast resistor R2 and diverts
base current from Darlington-connected transistors Q1 and Q3. Transis-
10 mA
Q1
2N3904
R1
510
Q4
2N3906
VIN
Q2
2N3904
Q3
MJL4281A
R2
0.5
OUTPUT
1.6
15V
10 mA
1.5
1.4
2N3904
CURRENT 1.3
LIMIT
1.2
(A)
Q1
2N3904
4
VIN
Q4
2N3906
IC1
MAX8515
5
2
Q3
MJL4281A
1.0
40 15 10 35 60
TEMPERATURE (C)
R2
0.5
85
OUTPUT
MAX8515
1.1
Figure 3 Output-current-versus-temperature plots for the circuits of figures 1 and 2 show improved accuracy for the shunt-regulated circuit (bottom trace) over the discrete-transistor
version (top trace).
designideas
Low-power, super-regenerative
receiver targets 433-MHz ISM band
Cedric Mlange, Johan Bauwelinck, and Jan Vandewege,
Ghent University, Ghent, Belgium
EXTERNAL
RF SIGNAL
ANTENNA
LC
ENVELOPE
AMPLIFIER OSCILLATOR DETECTOR
DATA
DETECTION
THERMAL
NOISE
OSCILLATOR
OUTPUT
QUENCH GENERATOR
designideas
ENVELOPE DETECTOR
DATA DETECTION
LC OSCILLATOR
VCC
VCC
TLV2763
R12
2.2M
R11
500k
_
IC2A
C4
10 nF
+
R17
1M
R14
24k
C11
470 pF
R15
24k
C10
4.7 pF
Q4
BF909
TLV2763
R16
620k
C3
6.8 pF
L2
18.5 nH
R13
390k
IC2B
C6
15 pF
C12
33 nF
ANTENNA
AMPLIFIER
R21
2.2M
ADCMP371
R19
4.3k
+
R20
430k
IC3
_
DATA
L1
9 nH
C14
47 nF
C9
10 nF
VCC
Q3
BFR92A
R9
250k
C8
200 nF
C13
180 pF
C7
200 pF
R2
510k
C2
2.2 pF
R1
2.7k
L3
68 nH
R10
75
R18
43k
Q1
BFR92A
C1
2.2 pF
R7
130k
QUENCH GENERATOR
R3
68k
ADCMP371
R8
680k
Q2
BFR92A
IC1
+
R6
910k
C5
47 pF
R4
910k
R5
910k
VCC
component and sets the Schmitt triggers decision threshold. As a consequence, the data transmitter must use
a dc-balanced coding scheme, such as
Manchester coding, for modulation.
On the receiving end, no additional
active components are necessary for
extracting the data-recovery circuits
decision threshold, which helps minimize the receivers power consumption.
The prototype occupies a compact pc
board measuring approximately 53
cm (Figure 4). Using a simple, homemade PRBS (pseudorandom-binary-sequence) generator that uses Manchester coding with a 28-to-1-bit sequence
(Reference 3), BER (bit-error-rate)
measurements yield the results in Figure 5. These results demonstrate a sensitivity of less than 100 dBm for a 10to-4 BER at 1 kbps. The receiver consumes 270 A at 3V for a power consumption of 810 W. As a further
designideas
enhancement to the design, it includes
a transmitter circuit based on Maxims
MAX1472, creating a simple, compact,
low-cost, and low-power transceiver for
the 433-MHz ISM band. You can easily
adapt the receiver circuit for recovery of
AM audio or other analog signals by
replacing the Schmitt trigger, IC3, with
a conventional audio-output amplifier.
Retune the RF oscillator to cover the frequency range of interest.EDN
REFERENCES
1 http://intecweb.intec.ugent.be/data/
researchgroups.asp.
2 Insam, Eddie, Designing Super-Regenerative Receivers, Electronics
World, April 2002, pg 46.
3 Mlange, Cedric, Johan Bauwelinck,
Jo Pletinckx, and Jan Vandewege,
Low-cost BER tester measures errors
in low-data-rate applications, EDN,
Dec 5, 2005, pg 123, www.edn.com/
article/CA6288033.html.
0.1
1 kBPS
2.5 kBPS
5 kBPS
0.01
10 kBPS
15 kBPS
20 kBPS
0.001
BIT-ERROR
RATE
0.0001
0.00001
0.000001
102
101
100
99
98
97
96
95
94
93
92
designideas
READERS SOLVE DESIGN PROBLEMS
R2
R1 383
383
R3
698
FILTER C
INPUT 10 1nF
C2
3.3 nF
2.5V
2 _
8
IC1A
AD8656
3 +
4
R5
R4 665
665
R6
845
C4
2.2 nF
6 _
IC1B
AD8656
C3
6.8 nF
5 +
2.5V
R7
422
R8
422
C5
12 nF
R9
649
C6
2.2 nF
2.5V
2 _
8
IC2A
AD8656
3 +
4
2.5V
R10
549
R11
549
C7
15 nF
R12
715
C8
1 nF
6 _
IC2B
AD8656
5 +
7
FILTER
OUTPUT
Figure 1 Two dual op amps and a handful of passive parts implement a highperformance, eighth-order, 30-kHz, lowpass Bessel filter.
D Is Inside
84 Use a PWM fan controller
in an EMI-susceptible circuit
88 PCs parallel port and a PLD
host multiple stepper motors and
switches
What are your design problems
and solutions? Publish them here
and receive $150! Send your
Design Ideas to edndesignideas@
reedbusiness.com.
es audio signals that swing above and
below ground, and its amplifiers draw
power from positive and negative
2.5V supplies. Rail-to-rail output
capability helps achieve maximum output-voltage swing at these low supply
voltages. To achieve a high SNR in
high-quality audio service, the amplifiers must exhibit unity-gain stability
and low inherent noise. For example,
Analog Devices AD8656 low-noise,
precision-CMOS dual op amp meets all
of these requirements.
Connecting the amplifiers as inverting-gain stages maintains constant
input-common-mode voltage and
helps minimize distortion. Using lessthan-1-k resistors throughout the circuit reduces the resistors thermal-noise
contributions. Each AD8656 amplifier
contributes less than 3 nV/Hz of
noise across a 30-kHz bandwidth, and
the total noise over a 30-kHz bandwidth measures less than 3.5 V rms.
For a 1V-rms input signal, the circuit
yields an SNR of better than 109 dB,
and, for a 1-kHz, 1V-rms input signal,
the circuit yields a THDN (total-harmonic-distortion-plus-noise) factor of
better than 0.0006%.
Figure 2 shows the filters measured
magnitude response for a 1V-rms input
signal. The filters passband gain of 0 dB
is flat within 1.2 dB for frequencies as
designideas
high as 20 kHz. With its 3-dB point
at 30 kHz, an eighth-order Bessel presents a theoretical attenuation of 110
dB at 300 kHz, decreasing at 160
dB/decade at higher frequencies. This
characteristic provides sufficient attenuation of repetitive noise that
switched-mode power supplies and
other sources induce, which typically
occurs at frequencies of 300 kHz and
higher.
Figure 3 illustrates the filters phase
shift and its group delay, which remains
relatively constant at roughly 17 sec,
even for frequencies as high as 40 kHz.
Note the linear scale on Figure 3s frequency axis, which clearly illustrates
the filters linear-phase behavior within the passband. The following equation defines group delay as the negative
partial derivative of phase shift with
respect to frequency:
Group delay /f.
At dc, resistor R1 sets the filters input
resistance at 383. If your application
requires higher input impedance, you
can insert a unity-gain buffer ahead of
the filter at the expense of increased
distortion and noise. For applications
that require operation from 15V
power supplies, replace the AD8656
with a higher voltage amplifier, such as
Analog Devices AD8672 low-distortion, low-noise (3.8-nV/Hz), dual
operational amplifier.EDN
20
0.2
MAGNITUDE
MAGNITUDE ZOOM
60
0.4 MAGNITUDE
ZOOM
(dB)
0.6
80
0.8
100
1.0
MAGNITUDE
(dB)
40
120
10
100
1000
100,000
1.2
1,000,000
20
18
90
16
GROUP DELAY
14
180
12
GROUP
DELAY 10
(SEC)
8
PHASE SHIFT
270
PHASE
SHIFT
(
)
360
6
4
450
2
0
0
20,000
40,000
60,000
80,000
540
100,000
FREQUENCY (Hz)
10,000
FREQUENCY (Hz)
0.0
0.2
20
serial-data bus. Figure 1 illustrates a typical application that the data sheet
describes for the TC664 and TC665
controllers (Reference 2). Using a frequency-control capacitor, CF, with a
value of 1 F, fan-controller IC1 generates a PWM pulse train with a nominal
frequency of 30 Hz and a temperatureor command-dependent duty cycle that
varies from 30 to 100%.
designideas
5V
12V
C2
1 F
NTC THERMISTOR
100k AT 25
C
R1
34.8k
FAN
10
1
C1
0.01 F
R2
14.7k
VDD
VIN
2 C
F
CF
1 F
RSCLK
20k
IC1
TC664
TC665
3
RSDA
20k
QA
CSENSE
0.1 F
NC
RSENSE
5V
RFAULT
20k
SCLK
5V
PICMICRO
MICROCONTROLLER
SENSE
5V
RISO
715
VOUT 9
FAULT
4
SDA
GND
5
Figure 1 In a typical application, fan-controller IC1 and transistor QA apply pulsewidth-modulated current to vary a fans speed as a function of temperature.
5V
12V
NTC THERMISTOR
100k AT 25
C
R1
34.8k
C1
0.01 F
R2
14.7k
VIN
VDD
VOUT 9
2 C
F
CF
1 F
SENSE
5V
RSCLK
20k
IC1
TC664
TC665
3
RSDA
20k
NC
RISO
4.7k
CSENSE
0.1 F
FAULT
Q1
2N2222
R4
680
R5
3.6k
5V
SCLK
5V
PICMICRO
MICROCONTROLLER
FAN
R3
20k
10
1
C3
100 F
+
C2
1 F
12
9
Q2
PZT2222A
RSENSE
RFAULT
20k
4
SDA
GND
5
OUTPUT 6
VOLTAGE
(V)
3
0
0
20
40
60
80 100
designideas
PCs parallel port and a PLD host
multiple stepper motors and switches
Eduardo Prez-Lobato, Universidad de Antofagasta, Antofagasta, Chile
J1
D0
D1
D2
D4
D5
TO IBM8
COMPATIBLE
PC'S PRINTER 9
PORT
10
D6
12
13
GND
BUSY
D3
11
1 kHz
S8
BUSY
PAPER
SELECT
18
S7
S6
S5
E10
3 E9
4
5
Q7
Q6
E8
Q5
24
23
22
21
20
Q4
E7
6 E6
19
IC1
22V10
18
7 E5
E11
S4
Q3 17
S3
S2
S1
NOTE: PINS 1, 14, 15, 16,
AND 17 ARE UNUSED.
VCC
D7
ACK
1 CLK
E4
E3
Q2
10 E2
Q1
11
12
E1
Q0
GND
E0
16
15
14
13
5V
ACK
7404
PAPER
SELECT
NC
D5
M3
M2
M1
M0
D4
A
1
0
0
1
B
1
1
0
0
C
0
1
1
0
D
0
0
1
1
Step
0
1
2
3
A
1
0
0
1
B
0
0
1
1
C
0
1
1
0
D
1
1
0
0
designideas
the PLD which motor should run, with
00 for Motor 0, 10 for Motor 2, 01 for
Motor 1, and 11 for Motor 3. For D5,
the PC takes control of the PLD chip:
0 disables the PLD, and 1 enables the
PLD. For D4, the PC commands the
PLD to control the BSS registers contents, with 0 for hold and 1 for clear.
For D3 through D0, the PC selects
which pair of motor windings get energized: 1001A and D, 1100C and D,
0011A and B, and 0110C and B.
Parallel-port input-register, address
888101 indicates acknowledge, busy,
paper, or select. The PC reads acknowledge to determine whether a switch is
active: 0 means that any switch is
active, and 1 means that no switch is
L293
M0
D0
A
C
D2
7V
EN 1, 2
VSS
15
2 IN 1
IN 4
3 OUT 1 OUT 4 14
D0
A
C
D2
7V
TO
IC5
TO
IC4
D1
B
MOTOR 0
MOTOR 1
TO
IC6
MOTOR 2
MOTOR 3
M2
D0
A
EN 1, 2
VSS
16
15
2 IN 1
IN 4
3 OUT 1 OUT 4 14
GND 13
GND 12
GND 12
7
8
OUT 2 OUT 3
IN 2
IN 3
VS
EN 3, 4
EN 1, 2
2 IN 1
VSS
11
10
9
16
15
IN 4
3 OUT 1 OUT 4 14
D
D3
M0
C
D2
7V
6
7
8
GND
OUT 2 OUT 3
IN 2
IN 3
VS
EN 3, 4
L293
5V
D1
B
M3
D0
A
EN 1, 2
2 IN 1
VSS
11
10
9
16
15
IN 4
3 OUT 1 OUT 4 14
4 GND
GND 13
4 GND
GND 13
5 GND
GND 12
5 GND
GND 12
6
7
8
OUT 2 OUT 3
IN 2
VS
IN 3
EN 3, 4
11
10
9
D
D3
M1
C
A
TO IC6
4 GND
C
A
TO IC5
GND 13
GND
C
A
TO IC4
L293
5V
C
A
TO IC3
4 GND
L293
M1
16
TO
IC3
C
D2
7V
6
7
8
OUT 2 OUT 3
IN 2
VS
IN 3
EN 3, 4
11
10
9
5V
D1
B
D
D3
M2
5V
D1
B
D
D3
M3
Figure 2 Each half-bridge-driver circuit, IC3 through IC6, controls a single two-winding stepper motor.
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
V+
_
OUTPUT
CURRENT
(SINK)
INPUT
VOLTAGE
V+
MAX4162
V
+
INPUT
VOLTAGE
INPUT
VOLTAGE
_
V+
MAX4162
V OUTPUT
+
CURRENT
(SINK)
100
V+
MAX4162
V
+
100
(a)
100
(b)
(c)
R1
100
V+
V+
R3
49.9k
INPUT
VOLTAGE
_
INPUT
VOLTAGE
R4
49.9k
V+
MAX4162
V OUTPUT CURRENT
+
(BIPOLAR DEPENDS
ON INPUT-VOLTAGE
SIGNAL)
R2
49.9k
R4
49.9k
R3
49.9k
R2
100
R1
100
_
V+
MAX4162
V
+
R5
49.9k
OUTPUT
CURRENT
(SOURCE)
(d)
(e)
designideas
cuits in Figure 1. Note that RLOAD
100 in these examples. In Figure 1a,
IOUTVIN/RLOAD25 A; in Figure
1b, IOUTVIN/RLOAD25 A; in Figure 1c, IOUTVIN/RLOAD; in Figure
1d, IOUT2VIN/RLOAD; and, in Figure 1e, IOUTVIN/RLOAD. The equation
for circuit 1d assumes perfect match-
5.002
5.002
5.001
OUTPUT
CURRENT
(mA)
5.001
OUTPUT
CURRENT
(mA)
4.999
4.998
1
4.999
4.998
1
10
(a)
10
5.1
5.001
5.05
VIN = 500 mV
RDYNAMIC = 72 M.
OUTPUT
CURRENT
(mA)
4.999
4.998
1
(b)
5.002
OUTPUT
CURRENT
(mA)
4.95
4.9
5
10
4
3
2
1
(d)
(c)
5.1
5.05
OUTPUT
CURRENT
(mA)
Figure 2 These graphs show output current versus outputvoltage characteristics for the circuits in Figure 1. Note
that for b and c, the dynamic-output-impedance characteristic closely resembles that of an ideal current source:
VOUT/VIN .
4.95
4.9
(e)
tors cause the otherwise slowly fluctuating data to jump around. To reduce
higher frequency noise, designers often
install an analog RC (resistor-capaci-
designideas
ear range by using the digital equivalent
of an analog RC lowpass filter. The filters software comprises only two lines
of C code: LPOUTLPACC/K, where the
output value of the filter is LPACC divided by a constant, and LPACC
LPACCLPINLPOUT, where you add
the difference between input and output to update LPACC. You specify all
variables as integers.
Each time the analog-to-digital conversion acquires a new input sample,
LPIN, the software produces an output
value, LPOUT, which comprises a lowpass-filtered version of the input samples. Calculate the value of the constant, K, based on the sampling rate of
the system and the desired time constant for the filter as follows: K
TSPS, where K
1, and SPS is the
systems sampling rate. For example, for
a system-sampling rate of 200 sam-
VCC
15V
12 IC2D
INPUT
11
CD4011BCM 4
10
6
IC2B 5
8
IC2C 9
CD4011BCM
CD4011BCM
R2
4.75k
1%
R1
1M
1%
IC1B
CD4093B
5
4
C1
0.1 F
OUTPUT
14
2 IC2A
R3
47.5k
B 1%
R4
E Q1
2N3904 47.5k
1%
R5
100k
1%
IC1A
CD4093B 14
1 V
2
C2
0.1 F
S1
CC
GND
7
9
16
10 SET VDD 15
J
IC3A
Q
11
K CD4027B
14
3 13
Q
CLK
RESET VSS
12
7
SET
6
J
IC3B
Q 1
5
K CD4027B
2
3
Q
CLK
RESET
4
1 14
2 IC4A
7 CD4011BCM 7
6
5 IC4B
CD4011BCM
8
10
9 IC4C
CD4011BCM
13
11
12 IC4D
CD4011BCM
Figure 1 A handful of active and passive components form a one-of-three selector switch. Press switch S1 once to
advance to the next channel and twice more to revert to Channel 1.
CH1
CH2
CH3
designideas
selected output does not change, making the circuit a good choice for applications requiring nonvolatile operation.
Quiescent-current consumption averages only about 15 A at room temperature, 25C, a low value even for batterypowered applications.
The heart of the circuit comprises a
dual JK flip-flop, IC3, thats configured
as a 2-bit ripple counter. Without additional circuitry, the counter would allow
selection of four signal sources. Upon
initial application of power, a reset circuit comprising R1, C1, and IC1B always
sets the CH1 output to a logic-low level.
When the Q outputs of IC3, pins 2 and
14, both go to logic zeros, the feedback
chain comprising IC2A, IC2B, IC2C, and
Values
10 F
4.7 F
0.15 F
0.033 F
0.001 F
22 mH
0.68 mH
3.85 H
NA
NA
NA
Description
50V electrolytic capacitor, 20% tolerance
50V electrolytic capacitor, 20% tolerance
Polypropylene capacitor, 2% tolerance
Polypropylene capacitor, 2% tolerance
Polypropylene capacitor, 2% tolerance
Inductor, 5% tolerance
Inductor, 10% tolerance
Inductor, 27 turns of AWG #28 magnet wire hand-wound
on T37-2 mixture (Carbonyl E) toroidal core
DPDT panel-mounted toggle switch
50 BNC panel jack
Hammond 1590H-BK die-cast aluminum enclosure
designideas
L1
22 mH
C5
10 F
+
+
+
C2
10 F
50
OUTPUT
IMPEDANCE
J2
L3
3.85 H
L2
0.68 mH
C4
C6
10 F 4.7 F
C1
C3
10 F 4.7 F
+
50
INPUT
IMPEDANCE
S1
J1
C7
0.15 F
C9
C8
0.033 F 0.15 F
C10
0.033 F
C11
0.001 F
C12
0.001 F
HIGHPASS FILTER
20-kHz LOWPASS FILTER
4-MHz LOWPASS FILTER
NOTES:
BOTH GROUNDS CONNECT TO CHASSIS.
WHEN S1 IS IN THE UP POSITION, IT BYPASSES THE FILTER; WHEN IT IS IN THE DOWN POSITION, IT INSERTS THE FILTER.
Figure 1 A highpass filter and two lowpass filters help reduce or eliminate low-frequency hum and high-frequency noise
from audio signals.
Insertion loss
(dB)
45.2
35.4
29.4
17.3
10.9
5.5
2.7
2
1.9
2.1
2.7
4.5
11.7
24.5
Frequency
(MHz)
0.1
0.3
0.5
1
2
3
4
5
10
25
50
100
150
200
Insertion loss
(dB)
42.3
60
60
55.5
52.2
51.1
56.2
60
46.5
44
40.5
39.5
45
44
Nitron family of flash-memory microcontrollers, such as the MC68HC908QT and QY, offer only one IRQ
input pin. You can use one-time-programmable versions of the family,
such as the MC68HC705KJ1 or MC68HC705J1A, that offer five external-interrupt inputs but omit some of
the familys valuable functions, such
as flash memory, built-in analog-todigital conversion, and an advanced
instruction set. You could also select
a larger microcontroller, such as the
MC68HC908JL3, from the same
product family to gain eight externalinterrupt inputs at the expense of sig-
designideas
nificant increases in cost and pc-board
area.
This Design Idea offers an alternative
that retains the small processor and
adds extra interrupt inputs. The technique involves applying the interrupt
signals to an AND gate to generate an
IRQ signal and using the microcontrollers inputs to recognize the interrupts source. For example, consider the
four external-interrupt sources in Figure 1. If you apply no interrupt signals
and if all of the AND gates inputs rest
at logic ones, the IRQ level also
remains at logic one. Applying an interrupt signal (a logic-zero level) to any
one of four inputs, INT1 through
INT4, drives the gates output to a low
level and triggers the interrupt. The
interrupt-service routine recognizes
the interrupts source by testing the levels of input pins PA0, PA1, PA4, and
PA5 and executing the corresponding
interrupt-service routine.
The MC68HC908QY2 microcontroller, IC1, includes built-in pullup
14
INT 1
INT 2
INT 3
INT 4
1
2
4
5
1
IC2A
1/ 74LS21
2
7
PB0
6
15
LED1
9 IRQ
PB1
IC1
MC68HC908QY2
13
PA0
12
PA1
5 PA4
4
PA5
PB2
14
11
PB3 10
16
LED2
LED3
LED4
Figure 1 An external AND gate plus a software routine expand a microcontrollers single interrupt input into four inputs.
designideas
READERS SOLVE DESIGN PROBLEMS
Audio-test accessory
isolates and matches loads
D Is Inside
78 One oscillator drives
multiple solid-state relays
600
100
R2
71.5
S1
J2
TO 50 LOAD
T1
600
INPUT
R1
71.5
CT (NOT USED)
R4
49.9
CT (NOT USED)
J3
TO 75 LOAD
R3
150
NOTES:
ALL GROUNDS CONNECT TO CHASSIS.
COAXIAL CONNECTORS J1, J2, AND J3 ARE AMPHENOL PART NO. 31-10-RFX.
IF MECHANICAL COMPATIBILITY WITH 75 BNC SERIES CONNECTORS IS NECESSARY,
REPLACE J3 WITH AN APPROPRIATE CONNECTOR.
Figure 1 A handful of passive components creates a handy test fixture for matching
impedances in audio-test circuits.
designideas
attenuation in a 600 test setup, connect two identical units back to back
through their 50 or 75 terminals. You
obtain the measured data (Table 1) for
a single unit by halving the 600-to600 transmission-loss measurements.
Calculated insertion loss for the 100
to 50 minimum-loss pad is 7.7 dB, and
insertion loss for the 100 to 75 minimum-loss pad is 4.8 dB. Subtracting
these values from the measured losses
indicates that the transformer con-
As an alternative to a conventional
relay, a series-connected pair of MOSFETs can replace a contact in an ac circuit (Figure 1). A pair of IRF530
devices switches loads in circuits with
peak maximum voltages as high as
100V. Based on the well-known 555
timer, an astable oscillator, IC1, provides a source of square-wave voltage to
drive the MOSFET pairs gate. Resistors R1 and R2 provide charge and discharge paths for timing capacitor C1.
The 555s output stage can sink and
source several tens of milliamperes and
provide enough current to drive as
many as 10 stages simultaneously operating switch gates, each consuming 5
mA of peak current; the 555s output
sinks a maximum of 50 mA at an onstate maximum voltage of 0.75V. The
555s output drives a distribution bus
that provides power to an array of pulse
transformers, T1 and T2. Capacitor C3
in series with the transformers primary
removes the dc offset voltage that
would otherwise appear across the
winding.
Selection of the transformer is not
critical, and any ferrite-core pulse
transformer that can provide gate voltage to the MOSFETs and maintain a
helps reduce 60-Hz hum and low-frequency noise. The electrically isolated
input jack allows connection of the
transformers input to balanced or
grounded 600 sources.EDN
REFERENCE
1 Kurzrok, Richard M, Simple LabBuilt Test Accessories for RF, IF,
Baseband, and Audio, High Frequency Electronics, May 2003, pg 60.
safe level of voltage isolation can function in the circuit. For example, you
can use C&D Technologies (www.
cdtech.com) 76601/3, which provides
a 1-to-1 turns ratio at a primary inductance of 219 H with 500V-dc interwinding isolation.
Applying a control signal to the base
of general-purpose NPN switching
transistor Q3 allows collector current to
flow through the primary of its associated transformer. Diode D2 provides a
reverse-current path through the
winding. On the secondary side, diode
D1 rectifies the secondary voltage and
charges capacitor C4, which filters the
rectified voltage to improve noise
immunity and reduce voltage ripple at
the MOSFETs gates. Removing the
control signal switches off Q1 and Q2.
Resistor R3 provides a discharge path
for C4, allowing the MOSFETs to
switch off in approximately 3 msec. For
faster turn-off, you can reduce the value
of either C4 or R3 at the expense of
increased ripple on the rectified gate
voltage.
Using two series-connected MOSFETs allows bidirectional ac conduction through the pair. When the
MOSFETs are off, their parasitic
diodes connect in series opposition
and thus block conduction. You can
select from among a range of MOSFETs to match your applications
requirements, but make sure that the
voltage you apply to the gates of Q1
and Q2 is sufficient to fully switch
designideas
both devices into full conduction.
The IRF530 has a gate threshold voltage of 3V, but applying a gate-source
voltage of 10V ensures low on-resistance. You can adjust the gate-source
voltage by altering the transformers
turns ratio or IC1s power-supply volt-
TO ADDITIONAL
CIRCUITS
FROM
SOURCE
TO LOAD
Q1
IRF530
9V
C3
220 nF
T1
D1
1N4148
IC1
NE555P
CONTROL
SIGNAL
1
4
RESET
2
6
7
R2
3.3k
C1
1 nF
R4
4.7k
D2
1N4148
Q3
5V BC547B
0V
TRIGGER
THRESHOLD
FROM
SOURCE
DISCHARGE
CONTROL
C2
1 nF
C4
10 nF
R3
100k
R1
8.2k
Q2
IRF530
OUTPUT
60 kHz
TO LOAD
Q4
IRF530
C5
220 nF
T2
D3
1N4148
C6
10 nF
Q5
IRF530
R5
100k
CONTROL
SIGNAL
2
0V
R6
4.7k
Q6
5V BC547B
D4
1N4148
Figure 1 A single 555 oscillator provides square-wave ac gate drive to an array of as many as 15 MOSFET-based solidstate relays.
designideas
D1
1N5817
CIN
10 F
VOUT
VIN
VIN+
R1
15k
CD
0.22 F
NCP500
VOUT+
COUT
1 F
ENABLE
GND
Figure 2 An alternative to directly connecting the regulators input and enable pins, this conventional modification uses a resistor and a capacitor to delay the regulators turn-on time. The diode eliminates the powerdown delay interval.
VOUT
VIN
VIN+
D1
1N5817
CIN
10 F
R2
27k
R1
8k
VOUT+
NCP500
COUT
1 F
ENABLE
GND
CD
0.22 F
Figure 5 The addition of R2 in Figure 3 solves the fallingedge problem, and shutdown occurs immediately after
the input voltage drops too low. The regulators output
switches on only after sufficient voltage is present at its
input.
designideas
cleanly switches on and off (Figure 5).
You can use Equation 1 to calculate
the values of resistors R1 and R2 to alter
the enable pins threshold voltage in
the circuit in Figure 4.
(2)
Q1 that presents a reasonably low onresistance.. The MOSFETs drain-tosource breakdown voltage should also
be able to withstand at least twice the
maximum output voltage you expect
from the boost converter. If necessary,
you can reduce the MOSFETs effective
on-resistance by connecting two or
more MOSFETs in parallel.EDN
(1)
where VIN(TURN-ON) is the user-defined
turn-on voltage, VEN(RISING) is the
enable pins rising-edge trip-point voltage, and VEN(FALLING) is the enable pins
INPUT
2V TO VOUT
C2
150 F
L1
22 H
5
LBI
1
NC
3
C1
0.1 F
SHDN
INPUT
SHDN
3/5
IOUT
LX 8
IC1
MAX756
OUT
LBO
REF
GND
7
D1
1N5817
LOW-BATTERYDETECTOR
OUTPUT
C3
100 F
LOAD
VOUT
R1
100k
D
Q1
G
S
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
96 Single switch serves dual duty
in small, microprocessor-based
system
15V
C1
100 nF
POSITIVE
OFFSET
15V
R5
R4
10k
1
NC
IC1
6
LT1007
2 _
NC
8
C2
4
100 nF
15
R2
20k
R1
20k
INPUT
NEGATIVE
OFFSET
R3
1k
OUTPUT
C3
100 pF
1
COM1
15
ON/OFF
CONTROL
10
16
NC1
IN1
IC2A
IN2
IC2B
NC2
IC2
MAX301
BUFFER:
0=ON;
1=OFF.
V+
11
5V
15V
VL
12
C5
100 nF
GND
13
C6
100 nF
COM2
8
14
C4
100 nF
15V
D2
1N4148
D1
1N4148
Figure 1 This buffered switch can accommodate either analog or digital signals.
where e1 through e4 are maximum tolerance errors of 1%. Worst-case values for R occur when the tolerance
values e1 and e2 for R1 and R2 are of the
same sign and e4 for R4 has the opposite sign:
designideas
Simplifying further, RR|e|}
{(0.01)R} when you use 1%-tolerance
resistors for R1, R2, and R4. The combination of the resistors tolerances with
the operational amplifiers internal
errors and leakage effects from switches IC2A and IC2B determines the buffers
accuracy. When the circuit is on, both
IC2A and IC2B are open. The following
equation defines the circuits output
voltage:
voltages. For example, using the resistor values in Figure 1 and assuming a
maximum output voltage of 10V, you
can calculate a minimum allowable
load resistance of 3.3 k.
Also, IAMP, the current from IC1,
should be less than the devices specified maximum current output: IAMP
(VOUTMAX)[(1/R2)(1/RLOAD)].
Using these values, you can determine that IAMP is 3.5 mA, which is less
current than most op amps as sources
deliver. When the amplifier is off,
switches IC2A and IC2B are closed. In
this state, the worst-case output occurs
for VINMAX. IC1s offset errors are negligible with respect to the full-scale input
voltage. Therefore, for the real case in
which the on-resistance of IC2A and
IC2B is much less than the load resistance, the following equation defines
the circuits output voltage: VOUTOFF
[(VINR2RONRON)/(K1K2K3
K4)], where K1R1R2R3, K2
R1R3RON, K3R1RONRON, and
K4R1R2RON. For R1R2R
and RONR, and RONR3, the
equation simplifies to: VOUTOFF
[(VINRONRON)/(RR3)].
Many of todays analog switches present a maximum 20 on-resistance, and,
using the resistor values in Figure 1 and
an input voltage of 10V, you can calculate that output voltage to be approximately 200 V, or 0.002%, when
referred to a 10V nominal output.
Amplifier IC1s slew rate limits the circuits dynamic behavior, because analog
switch IC2 generally switches in much
less than 1 sec. Using an operational
amplifier with a slew rate of 1.5V/sec
yields a circuit-response time of 10 sec.
For applications that require unipolar outputs when the amplifier is in its
designideas
Q1
TP0610T
R1
10k
9V
SYSTEM
BATTERY
ON/OFF AND MODE
PUSHBUTTON SWITCH
R2
100
IC1
VOLTAGE REGULATOR
LP2931AZ
VR
1
3
INP
OUT
C3
10 F
Q2
2N7000
COM
5V
R3
100
C4
10 F
C5
0.1 F
C1
0.1 F
NC
S1
SPDT MOMENTARY
CONTACT
R5
10k
NO
5V
R4
10k
MODE
TO MICROPROCESSOR
INTERRUPT INPUT
C2
0.1 F
MICROPROCESSOR
I/O LINE
A0
VDD B0
A1
B1
A2
B2
A3
A4
IC2 B3
B4
A5
B5
B6
Figure 1 A single pushbutton switch can control power and select among operating modes in a simple microprocessorbased system.
renheit, which you implement as a toggle switch. From ease-of-use and totalcost perspectives, combining these two
functions in a single switch makes
sense.
Figure 1 shows a circuit for this application. Initially, Q1, a P-channel
MOSFET, is off because R1 holds Q1s
gate-to-source voltage at 0V. No input
reaches voltage regulator IC1, and,
thus, the systems microprocessor, IC2,
also remains off. When the operator
presses the normally closed momentary-contact pushbutton switch, S1,
current flows through R1 and R2 to
ground, developing sufficient gate-tosource voltage to turn on Q1 and apply
power to voltage regulator IC1 and the
operator again presses the on/off button, Q1 remains on, and the microprocessor continues to run but pulls its
mode line high. The mode line drives
an interrupt input pin, and the software
can use the interrupt as a toggling function or to access a wraparound, multiple-choice menu. After a suitable preprogrammed time interval, the microprocessor system turns itself off by placing a logic zero on Q2s gate. In turn, Q2
switches off Q1 to remove power from
the system.EDN
REFERENCE
1
Hageman, Steve, Relative humidity/temperature meter, www.analog
home.com/projects/dewpointer.html.
designideas
C1
470 pF
R1
560
15V
9
15V
IC1
CD4049
10
3
R3
47
2
11
12
14
15
15V
P1
1k C +
3
100 F
0V
C2
470 pF
T1
D3
1N4148
170 H
10 TURNS
D4
1N4148
170 H
10 TURNS
Q3
ZVP2106
R5
2.2
C
G
Q5
240 H
12 TURNS
R4
47
R2
560
RLOAD
Q1
ZVN2106
D1
1N4148
Q4
ZVP2106
D5
1N4148
D7
12V
D8
12V
D6
1N4148
R6
2.2
VCC
D2
1N4148
Q2
ZVN2106
Figure 1 The isolated pulse driver transmits all duty cycles and consumes energy only during the gate charge and discharge processes.
Figure 4 The top trace shows the driven transistors gate-tosource voltage, and the bottom trace shows its collector-emitter voltage, which a probe attenuates. The transistors load
comprises a resistor that connects to a power supply.
designideas
tapped, 20-turn primary winding and a
12-turn secondary winding, both fabricated from 0.2-mm-diameter, 0.008-in,
AWG #32 magnet wire.
When transistor Q1 switches on, it
induces a positive voltage in T1s secondary winding that switches on Pchannel MOSFET Q3 and drives Q4s
internal body diode into conduction to
begin charging Q5s gate-to-source
capacitance. Q3s on-channel resistance primarily determines the charging
rate. Charging ends either when the
pulse terminates or when Q5s gate-tosource voltage approximates T1s secondary voltage minus Q3s gatethreshold voltage.
Next, Q3 switches off, allowing the
charging current to decay to zero and
the capacitance to reach its maximum
positive charge. When Q1 switches off,
transformer T1s magnetizing current
resets through R3 and D3. The voltage
at T1s secondary winding goes slightly
negative to balance the cores volt-second characteristic, which forward-bias-
Q3 into conduction. Thus, all transistors remain off, and Q5s gate-to-source
capacitance remains discharged.
When Q1 next switches on, the sequence repeats.
Figure 2 shows the driver prototype
compared with a 1 coin and a power
transistor. The transistor, an Advanced Power Technology APT40GF120JRD, combines an IGBT and a
FRED (fast-recovery epitaxial diode)
that operates at a maximum of 1200V
and 60A with a gate-to-source capacitance of 4 nF. The transistor comes in
a JEDEC SOT-227 package measuring
approximately 1.51 in. (3825
mm). Figures 3 and 4 show experimental waveforms for the circuit of Figure 1 to drive IGBT Q5 at 20 kHz. The
turn-on delay is approximately 600
nsec, and the total current consumption is 22 mA for a power consumption
of 0.33W. When driving transistors that
present a lower gate-to-source capacitance, the circuits turn-on delay and
power consumption both decrease.EDN
designideas
READERS SOLVE DESIGN PROBLEMS
Q1
IRLML6302
R3
1k
TWO AA
BATTERIES
(3V NOMINAL)
G
D
SWITCHED
POWER TO OTHER
COMPONENTS
C1
0.1 F
EPM570-T100
D1
1N914
R1
1k
IC1
APPLICATION
LOGIC
S1
LPM_COUNTER
D2
1N914
R2
1k
ALTUFM_OSC
S2
R
44 MILLION
CO
EN
4.4-MHz
POWER-DOWN
Figure 1 A few external components and internal logic blocks enable a CPLD
circuit to switch itself off after a predetermined interval.
D Is Inside
98 Amplifier removes commonmode noise on RGB differentialvideo-transmission line
102 Use a switching-regulator
controller to generate fast pulses
106 Shift registers and resistors
deliver multiphase sine waves
What are your design problems
and solutions? Publish them here
and receive $150! Send your
Design Ideas to edndesignideas@
reedbusiness.com.
nents that require power-down control.
When power switches off, a 1-k
pullup resistor, R3, keeps Q1 off by
maintaining its gate at a gate-to-source
voltage of 0V. When you turn off IC1,
it presents a leakage path to ground
through the CPLDs power-down pin.
The EPM570-T100 includes hot-socket protection that limits the current
available from any user-accessible device-I/O pin to less than 300 A. Thus,
even in the worst case, the voltage that
the I/O pin develops across R3 doesnt
reach the FETs minimum gate-threshold turn-on voltage of 0.7V.
Pressing any switch creates a current
path through the switchs contacts and
its associated diode, which in turn
develops approximately 2.3V of gatesource bias across R3more than
enough to turn on Q1 and to power up
IC1 in approximately 100 sec. When
you actuate the mechanical switches,
they exhibit a minimum on-time of at
least 3 msec, whereas a typical human
operators minimum press-and-release
operation consumes at least 30 msec.
During these relatively slow response
times, the CPLD can turn on, resetting
its internal circuitry and asserting its
power-down pin to a logic zero that
turns on Q1 before the operator can
release the switch.
designideas
VCC
R3
10k
R4
10k
R5
10k
R6
10k
R7
10k
ROW 3
Q1
ROW 1
ROW 0
VCCINT
VCCOCX
COLUMN 3
COLUMN 2
D1
1N914
COLUMN 1
COLUMN 0
D2
1N914
D3
1N914
D4
1N914
R8
1k
R9
1k
R10
1k
R11
1k
POWERDOWN
Figure 2 A keypad matrix expands the CPLD circuits control capabilities and
retains the circuits automatic power-off function.
ROW 2
IC1
CPLD
designideas
R
R37
50
G
R39
150
R38
50
R
R43
30k
C10
5 pF
R21
50
R19
50
GOUT
R23
12k
R25
30k
R24
12k
R26
30k
C8
5 pF
R27
50
R45
150
R30
50
B
R33
30k
R32
12k
R34
30k
R17
6k
BOUT
C7
5 pF
R28
50
R6
8k
IC1
ISL55001
1
R14
6k
R16
6k
GOUT
BOUT
R31
12k
R13
6k
R15
6k
ROUT
C9
5 pF
R29
50
R12
6k
R41
12k
R18
50
G
B
R42
30k
C11
5 pF
R22
150
ROUT
R40
12k
R36
50
R20
50
R11
2.2k
C1
10 F
9V
GND
2
3
NC
NC
VS
OUT
NC
8
7
C5
2.2 F
9V
C2
10 F
6
5
VS
C6
2.2 F
C12
5 pF
R35
50
designideas
voltage. Capacitors C11 and C12 provide equalization to boost the differential-video signals higher frequency
components.
Before applying cancellation, the
signals at the circuits outputs ROUT
and ROUT would appear as: ROUT
VDIFF/2VCM, and ROUTVDIFF/
2VCM, where VDIFF represents the
desired differential signal, and VCM
exists with respect to the circuits local
ground. After applying cancellation,
the output signals appear as: ROUT
V DIFF/2V CMV CMSV DIFF/2,
and ROUTVDIFF/2VCMVCMS
VDIF/2, where VCMS represents the
NC
ITH/RUN
NGATE
IC1
LTC3803
4
SENSE
VFB
GND
2
RBACKTERM
48.7
J1
R2
100k
R3
2k
designideas
works well with load impedances of at
least 2 k. At impedances higher
than that value, parasitic impedances
associated with the terminating resistor and IC1 degrade bandwidth and
pulse fidelity.
In a back-terminated, 50 system,
IC1A
D
Q1
Q2
R
DUAL
FOUR-STAGE
SHIFT
REGISTER
IC1B
Q3
Q4
D
Q1
Q2
Q3
Q4
INVERTER
R1
1M
R2
340k
R3
215k
R4
165k
R5
143k
R6
133k
R7
133k
R8
143k
SINEWAVE
OUTPUT
IC3
C
D
Q1
R9
Q2
IC2A
R
Q3
RESET ON
POWER UP
Q4
165k
R10
215k
R11
340k
R12
1M
Q1
IC2B
Q2
Q3
Q4
(a)
_
_
IC4
SINE-WAVE
INPUT
IC5
R
+
+
C
SMOOTHED
SINE-WAVE
OUTPUT
(b)
Figure 1 A pair of shift registers, an inverter, and a handful of precision resistors form a sine-wave generator (a). Two operational amplifiers form a resistance-capacitance lowpass filter that removes clock-signal artifacts from the
output (b).
designideas
CLOCK IN
(24fOUT)
IC1A
R
DUAL
FOUR-STAGE
SHIFT
REGISTER
IC1B
D
Q1
Q2
Q3
Q4
D
Q1
Q2
Q3
Q4
D
Q1
Q2
Q3
Q4
D
Q1
IC2B
1M
R2
340k
R3
215k
R4
165k
R5
143k
R6
133k
R7
133k
R8
143k
Q2
R
Q3
Q4
CLOCK IN
(24fOUT)
R9
165k
R10
215k
R11
340k
R12
1M
IC1A
DUAL
FOUR-STAGE
SHIFT
REGISTER
IC1B
IC3A
Q2
R
Q3
Q4
Q1
IC3B
RESET ON
POWER-UP
D
Q2
Q3
Q4
Q3
C
IC2A
D
Q1
Q2
R13
1M
R14
340k
R15
215k
R16
165k
R17
143k
R18
133k
R19
133k
R20
143k
R21
165k
R22
215k
R23
340k
R24
Q3
Q4
D
Q1
Q2
Q3
Q4
C
IC3A
SINEWAVE
OUTPUT
D
Q1
Q2
Q3
Q4
1M
D
Q1
IC3B
Q2
Q3
Q4
through the second set of shift registers and falls off the end.
To adjust the second outputs phase shift with respect to the first
output from 15 to 180 in 15 increments, you can connect IC2Bs
D input to any one of IC1s or IC2As Q outputs.
Figure 3 illustrates a three-phase sine-wave-generator circuit.
The Q4 output from IC1B supplies the D input to the second set
of shift registers, IC2A and IC2B, to produce the recirculated bit
pattern. In similar fashion, the Q4 output from IC3A supplies the
D input to the third set of shift registers, IC4A, to transfer a duplicate bit pattern thats phase-shifted by 240 with respect to the
output from the first set of shift registers.
Register IC2Bs D input connects to IC1Bs Q4 output to produce a signalPhase 2s outputthat lags behind the Phase 1
output by 120 . In similar fashion, register IC4As D input connects to IC3As Q4 output to produce a signalPhase 3s outputthat lags behind Phase 2s output by 120 , or 240 with
respect to Phase 1.
You can expand the basic circuit to accommodate additional signal phases. The weighted resistors values are adequate for
low-frequency sine waves and 4000-series CMOS-logic devices.
However, you can scale the resistors values to accommodate
other output frequencies and logic families.EDN
D
Q1
Q2
IC4A
R
Q3
Q4
D
Q1
IC4B
Q2
R
Q3
Q4
C
IC5A
RESET ON
POWER-UP
D
Q1
Q2
Q3
Q4
IC5B
R1
1M
R2
340k
R3
215k
R4
165k
R5
143k
R6
133k
R7
133k
R8
143k
IC6
INVERTER
D
Q1
Q2
Q4
R
D
Q1
Q3
Q4
IC2B
C
D
Q1
Q2
COSINEWAVE
OUTPUT
IC4
INVERTER
IC2A
R1
R9
165k
R10
215k
R11
340k
R12
1M
R13
1M
R14
340k
R15
215k
R16
165k
R17
143k
R18
133k
R19
133k
R20
143k
R21
165k
R22
215k
R23
340k
R24
1M
R25
1M
R26
340k
R27
215k
R28
165k
R29
143k
R30
133k
R31
133k
R32
143k
R33
165k
R34
215k
R35
340k
R36
1M
PHASE 1
SINEWAVE
OUTPUT
PHASE 2
SINEWAVE
OUTPUT
PHASE 3
SINEWAVE
OUTPUT
D
Q1
Q2
Q3
Q4
Figure 3 Adding a third set of shift registers yields a threephase sine-wave output.
designideas
READERS SOLVE DESIGN PROBLEMS
Figure 1 A sine waves higher rms level than that of an audio signal predicts
the additional thermal burden on a Class D amplifier thats tested with a sine
wave.
D Is Inside
96 Microcontroller simplifies battery-state-of-charge measurement
98 Switching regulator efficiently
controls white-LED current
100 Programmed reference
oscillator generates nonstandard
clock frequencies
What are your design problems
and solutions? Publish them here
and receive $150! Send your
Design Ideas to edndesignideas@
reedbusiness.com.
designideas
that solders to the pc board adjacent to
the IC. For example, a Wakefield Engineering (www.wakefield.com) 218series sink has lower edges that form the
conduction path.
A few basic calculations can help you
estimate a Class D-amplifier ICs die
temperature. For example, consider an
amplifier that operates at an ambient
temperature of 40C, has output power
of 16W, and has 87% efficiency. Specified thermal resistance from the ICs
junction to ambient air is 21C/W.
First, calculate the Class D amplifiers
power dissipation: PDISS[(POUT/)
P OUT ](16W/87%)16W2.4W,
where PDISS is the dissipated power,
POUT is the output power, and is the
efficiency. Use the power dissipation to
calculate the die temperature, TC, as
follows: TCTAPDISSJA40C
2.4W21C90.4C, which is within
the devices maximum junction temperature of 150C. A system seldom
enjoys the luxury of operation at a 25C
ambient temperature, and its important to base these calculations on a reasonable estimate of the systems actual
internal ambient temperature.
The on-resistance of a Class D amplifiers MOSFET output stage affects
both its efficiency and its peak-current
capability. Reducing the peak load current reduces the infinite-impulseresponse losses and increases efficien-
30
25
12
25
20
IMPEDANCE 15
( )
10
20
15
PEAK
OUTPUT
POWER
(W)
10
0
5
10
15
20
25
10
100
1000
FREQUENCY
(Hz)
10,000
designideas
Microcontroller simplifies
battery-state-of-charge measurement
Abel Raynus and Evgueni Freidline, Armatron International, Malden, MA
D1
1N4001
3
C1
0.33 F
IC1
78L05
2
where n represents the number of current measurements, Ik, taken during the
time interval,
t. Although you can
select any value for
t, its convenient
to choose a value equal to one hour,
because battery manufacturers specify
capacity in units of ampere-hours.
To simplify the microcontrollers
firmware and reduce the amount of
memory necessary for arithmetic operations, you can divide one hour into
128 measurement cycles and use register shifting to perform the division
required in the equation. You calculate
each charge measurement as an average value from 32 current samples,
which the microprocessors internal
ADC converts. One of the ADCs multiplexed input channels converts
charging current, and another converts
discharging current. Thus, the equation
for remaining battery-charge capacity
reduces to QREMQPREV QACC, where
QREM is the remaining battery charge,
QPREV is its previously calculated
charge, a plus sign indicates a net
charge, and a minus sign indicates a net
discharge.
As Figure 1 shows, the circuit com-
CHARGE
SOURCE
R2
1k
STORAGE
BATTERY
8
IC2A
3 TLC277
2 _
DISCHARGE
R1
0.5
PA0 IC
3
MC68HC908QT2
2 DATA
PA5
PA1
8
IC2B
5 TLC277
4
R4
1k
CHARGE
R5
10k
_
C2
0.1 F
R3
9.09k
+
_
Figure 1 Measure a storage batterys state of charge using only a few components.
LOADCONTROL
CIRCUIT
LOAD
designideas
where IMAX is the maximum discharge
current and VIN(MAX) is the maximum
ADC input. In this example, the maximum charge and discharge currents are
approximately 1A.
Thus, for a 1A charge or discharge
current and a maximum ADC input of
5V, you can choose a value of 0.5 for
R1 and a gain of 10 or 100. Once you
calculate the batterys charge capability, you can send the data to a host
processor or another destination
through a single-wire interface, SPI,
potentiometer R1 adjusts. Current-tovoltage conversion taking place within the circuits control loop effectively regulates the circuits output current.
In operation, the LM2852 compares its
internal reference voltage with the
voltage from the divider formed by D1,
R1, and R2 and drives the control loop
to maintain a constant 1.2V at its voltage-sense pin. Current through the
voltage divider is proportional to the
current through LED1, and the ratio of
the currents tracks over the circuits
operating-temperature range because
D1 and LED1 exhibit approximately the
same forward-voltage temperature
coefficient of 2 mV/C. Mounting D1
and LED1 next to each other on the pc
board provides sufficiently close thermal coupling for temperature compensation.
With R1s wiper fully clockwise, the
2
4
CSS
2.7 F
8, 9
P_VIN
A_VIN
EN
SW
COUT
100 F
IC1
LM2852Y-1.2
SNS
SS
SGND
3
L1
10 H
D1
1N4001
14
CCW
PGND
10, 11
LED1
LXHL-BW02
CW
(BRIGHTER)
R1
2k
R2
1.2k
Figure 1 This circuit drives a high-current, white LED at 93% efficiency over
input voltage and temperature. Potentiometer R1 controls current through
LED1 and allows brightness adjustment. Diode D1 provides temperature
compensation for LED1s forward-voltage drop.
designideas
100
360
95
355
EFFICIENCY 90
(%)
85
80
CURRENT 350
(mA)
LED1 CURRENT
~100 mA
~300 mA
~500 mA
3
3.5
345
4.5
340
5.5
INPUT VOLTAGE
(V)
45
60
75
BW02, specifies limits of 350-mA continuous current and 500-mA peakpulsed current. Figure 2 shows the circuits efficiency versus variations in
input voltage. Note that the circuits
efficiency increases as input voltage
decreases, which helps extend operating time in battery-powered-system
applications.
As temperature fluctuates, the current through LED1 varies less than 3%
over the temperature range, a factor-ofthree improvement over a series-resistor current-limiting circuit (Figure 3).
Although more complex than a single
resistor, the circuit in Figure 1 requires
30
TEMPERATURE
(C)
15
only a few components. For L1, this prototype uses Coilcrafts (www.coilcraft.
com) MSS5131-103 surface-mount
inductor rated for 10 H.
National Semiconductors data
sheet for the LM2852 outlines criteria
for selecting capacitors CIN, CSS, and
COUT. For efficient heat removal, the
circuits pc board should include generous copper-mounting pads and traces
for IC1 and LED1. At a forward current
of 350 mA, LED1 dissipates 1.1W, so
consult the manufacturers data sheet to
review its thermal-design recommendations.EDN
VCC
2
X1
1
7
IC1
12F508
CLOCK
OUTPUT
5
4
C2
15 pF
8 V
SS
Figure 1 Delivering a fixed clock frequency, this preprogrammed oscillator uses few components.
designideas
put frequency, you use the Visual Basic
program, editing the clock frequency of
4 MHz in this example if necessary.
Next, you enter the clocks frequency
error in percentage points or parts per
million and the desired output frequency in hertz. When you click on the
Evaluate control, the program computes the high- and low-state coefficients, the number of appended
instructions, and the outputs duty
cycle. The program also calculates the
maximum initial percentage error of
the output frequency. The controllers
instruction-execution times and clock
frequency impose constraints on the
desired output frequency, duty cycle,
and frequency error. For the 2021-Hz
clock in this application and a 4-MHz
clock frequency, the program calculates
the coefficients and number of discrete
instructions as 20, 21, and three,
respectively. Before compiling the
code and writing the results to the
microcontrollers internal flash memory, you transcribe the coefficients into
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
76 Microcontroller delivers
voltage-multiplied dc power
4
3.5
POWER
SOURCE
Q1
Q2
D
S
MMBF4393
POWERSUPPLY
INPUT
R1=510
G
S
C1
0.1 F
VIN
VREF
IC1
LM4132-1.8V
EN
GND
IGND
POWER
RETURN
R1
1k
0.1%
25 PPM/ C
3
CURRENTSOURCE
OUTPUT 2.5
(mA)
R1=750
2
R2
SENSOR
OR LOAD
REQUIRING
CONSTANTCURRENT
DRIVE
R1=1k
1.5
1
3
15
21
27
POWER-SUPPLY VOLTAGE (V)
33
39
designideas
urated drain current, VGS is the gate-tosource voltage, and VP is the pinch-off
voltage.
Assume that IC1s output voltage,
VREF, remains constant at 1.8V. Because the output voltage drives Q2s
gate, IC1s input voltage, VIN, equals
VREFVGS(Q2), or 1.8V(1.2V)3V.
Thus, Q2s gate-to-source voltage rests
at its nominal pinch-off voltage of
1.2V and varies in step with small
changes in current source. As the
power-supply voltage varies from 3V to
more than 30V, then the input voltage
remains almost constant, as you would
expect, because VREF also remains constant. The cascoded-FET configuration
increases the current sources Norton
equivalent resistance beyond that of
the voltage reference and R1 alone. You
Microcontroller delivers
voltage-multiplied dc power
R2
7.3k
R3
1k
L1
22 H
D1
SCHOTTKY
DIODE
+ C
1
10 F
Q1
IRFD110
400 kHz
G
S
5V
INPUT
R1
1k
1
2
3
4
5
6
7
8
9
10
11
12
13
14
P0.7
VCC
P0.5
P0.6
P0.3
P0.4
P0.1
P0.2
P2.7
P0.0
28
27
26
25
24
23
P2.6
IC1
22
P2.3 CY8C27443 P2.4
21
P2.2
P2.1
20
P2.0
SMP
19
XRES
P1.7
18
P1.6
P1.5
17
P1.4
P1.3
16
P1.2
P1.1
15
P1.0
GND
P2.5
designideas
HIGHVOLTAGE
OUTPUT
5V
INPUT
C1
1 nF
C3
1 nF
1
2
D4
BAV21
D3
BAV21
D2
BAV21
D1
BAV21
3
4
5
C4
1 nF
C2
1 nF
6
7
8
9
10
11
12
13
14
P0.7
VCC
P0.5
P0.6
P0.3
P0.4
P0.1
P0.2
P2.7
P0.0
28
27
26
25
24
23
P2.6
IC1
22
P2.3 CY8C27443 P2.4
21
P2.2
P2.1
20
P2.0
SMP
19
XRES
P1.7
18
P1.6
P1.5
17
P1.4
P1.3
16
P1.2
P1.1
15
P1.0
GND
P2.5
Figure 3 A few diodes and capacitors form a Villard Cascade voltage multiplier.
designideas
C1
1 nF
+
D2
BAV21
HIGHVOLTAGE
OUTPUT
D1
BAV21
C2
1 nF
BALANCED
AC
INPUT
VOLTAGE
REFERENCE
Jochens High Voltage Page,
www.kronjaeger.com/hv/hv/src/mul/.
designideas
VCC
IN
RLOAD
VCC
IN
IN
OUT
IC1
MAX1818EUT15
POWER OK
NC
ROUT
+C
OUT
SET
SHDN
CIN
4.7 F
10 F
IOUT
GND
RLOAD I
LOAD
ILOAD
COUT
10 F
+
ROUT
IOUT
GND
OUT
IC1
MAX1735EUK25
SET
CIN
4.7 F
IN
SHDN
designideas
READERS SOLVE DESIGN PROBLEMS
Figure 1 At 100 mV between drain and source (horizontal axis), the drain
current reaches 10 mA (vertical axis) and increases to 30 mA at 300 mV.
D Is Inside
94 Configurable logic gates
Schmitt inputs make
versatile monostables
98 Stealth-mode LED
controls itself
100 Data-acquisition system captures 16-bit voltage measurements
using the USB
What are your design problems
and solutions? Publish them here
and receive $150! Send your
Design Ideas to edndesignideas@
reedbusiness.com.
ative voltage to Q1s gate, which turns
off Q1 and interrupts current flow
through T1s primary winding. In turn,
T1s secondary voltage collapses, and
sustained oscillations begin. Although
the BF862s published specifications do
not cover the devices internal geometry, the device has a low on-resistance
and maintains a low gate-turn-on
threshold voltage. Using a pair of parallel-connected JFETs for Q1 ensures
the low saturation voltage for operation
at low power-supply voltages.
Rectifying and filtering the positivegoing flyback-voltage impulses on Q1s
drain produce a dc voltage across capacitor C1. To assist the circuits start-up,
a P-channel MOSFET, Q2, which
requires a gate-to-source voltage of
approximately 2V for conduction, initially isolates the output load from the
rectifier. When Q2 conducts, the output voltage increases toward 5V. Comparator IC1, a Linear Technology (www.
linear.com) LTC-1440, draws power
from Q2s source and imposes outputvoltage regulation by comparing its
internal voltage reference with a sample of the output voltage. The output
designideas
from IC1 varies Q1s on-time through
Q3 to close the control loop and maintain output-voltage regulation. Figure
3 shows the ripple voltage present at
the power supplys output. When the
output voltage decays, comparator IC1
switches (Trace B, middle) and allows
Q1 to oscillate. The resulting flyback
events at Q1s drain (Trace C, bottom)
restore the output voltage.
Using Q3 as a simple but effective
shunt control for Q1s gate voltage
results in a 25-mA quiescent-current
drain from the power source. A modification reduces the quiescent drain to
1 mA (Figure 4). Inserting switch Q4
in series with T1s secondary winding
more efficiently controls Q1s gate.
Bootstrapping the voltage across T1s
secondary winding produces negativeturn-off-bias voltage for Q4. Figure 5
illustrates how to connect T1s wind-
Figure 3 The dc output (Trace A), comparator IC1s output, and the voltage
at Q1s drain (Trace C) have a horizontal-deflection factor of 5 msec.
7
+ 3
IC1
LTC1440
_ 4
5
1.18V
6
REFERENCE
OUT
8
R3
100
0.3 TO
1.6VIN
5
SECONDARY
R2
1.21M
T1 3
PRIMARY
D1
1N5817
S
7
6
R1
3.83M
Q2
C4
0.001
D2
BAT-85
Q1
C3
0.01 F
C1
6.8 F
TP0610L G
C2
100 F
5 VOUT,
2 mA MAXIMUM
D
G
Q3 VN2222L
S
NOTES:
1. USE 1%-TOLERANCE METAL-FILM RESISTORS FOR R1 AND R2.
2. CONNECT T1 AS SHOWN IN FIGURE 5.
3. Q1 COMPRISES PHILIPS BF862 JFETs CONNECTED IN PARALLEL.
Figure 2 A pair of parallel-connected JFETs allows this dc/dc converter to operate from power sources that supply as little
as 300 mV.
designideas
peak voltage would approach 15V and
reverse-bias Q4, an undesirable condition. Under normal operating conditions, excursions of approximately
ings. When Q4 switches off, it interrupts the current flowing in T1s secondary winding and drives T1s Pin 5
positive. Without diodes D4 and D5, the
R4
1M
Q4
BF862
G
D
D6
1N4148
D4
1N4148
D5
1N4148
D2
D3 1N751
1N4148 5.1V
C4
+1 F
R3
51
5
0.3 TO
1.6VIN
+
T1
C5
10 F
D1
1N5817
5VOUT, 2 mA
MAXIMUM
S
G
Q1
BF862
2
4
Q2
TP0610L
S
C1
6.8 F
C2
100 F
TO VIN
R1
3.83M
1% METAL
FILM
1
12
PRIMARY
TO Q1
DRAINS
SECONDARY
6
9
11
8
10
12V
Q3
TP0610L
R5
470k
3
IC1
LTC1440
1
4
5
6
7
1.18V REFERENCE
OUTPUT
C3
0.01 F
R2
1.21M
1% METAL
FILM
NOTES:
1. USE 1%-TOLERANCE METAL-FILM RESISTORS FOR R1 AND R2.
2. CONNECT T1 AS SHOWN IN FIGURE 5.
3. Q1 COMPRISES PHILIPS BF862 JFETs CONNECTED IN PARALLEL.
4. T1 = COILTRONICS VP1-1400.
Figure 4 Adding Q3, Q4, and the bootstrapped negative-bias generator comprising D2, D3, and C4 reduces the circuits quiescent current from 25 mA to 1 mA.
TO R3
7
T1
TO Q1
GATES
designideas
offers functional equivalentsthe SN74LVC1G57 and SN74LVC1G58
(Reference 3). Both companies devices offer upper- and lower-trip-pointvoltage thresholds averaging 37 and
63%, respectively, of VCC, or approximately one RC time constant on the
rising or the falling edges. According to
the published data sheets from the
manufacturers Web sites, Texas Instruments versions impose somewhat
tighter tolerances on the analog
threshold levels and thus deliver
tighter timing tolerances than do the
Fairchild parts.
For digital-analysis purposes, any
voltage below the upper trip point for
a rising edge effectively represents a
logic zero, and any voltage above the
lower trip point for a falling edge represents a logic one. These conditions
are true only after the input crosses a
respective trip point, such as a rising
edge that approaches but never crosses
the upper trip point. This voltage
remains a logic zero, even if the voltage then drops back to ground potential on its falling edge.
Figure 1a shows some typical circuit
implementations. Note that these circuits lack some of the niceties of genuine monostables. For example, a circuit doesnt retrigger until after its RC
network has stabilized or about five
time constants have elapsed. The RC
time constant must be five times shorter than the time between triggering
events. Devices from the SN74LVC1G57 family produce the waveforms in
Figure 1b, and circuits using the SN74LVC1G58-family devices produce
the inverse of these waveforms. The
circuits operation is straightforward.
The RC circuits delay one input, so
that the inputs momentarily rest at
opposite states. When one RC time
constant elapses, the delayed voltage
crosses the Schmitt upper- or lowertrip-point thresholds, and the delayed
input catches up to the straightthrough input.
Of unusual interest and unlike the
usual variety of monostable that triggers only from a voltage transition in
one direction, the XOR implementation functions as a monostable trig-
REFERENCES
1 Roche, Stephan, Add a Schmitttrigger function to CPLDs, FPGAs,
and applications, EDN, Oct 13,
2005, pg 104, www.edn.com/
article/CA6262539.
2 NC7SZ57/NC7SZ58, TinyLogic
UHS Universal Configurable 2-Input
Logic Gates, Fairchild Semiconductor, April 2000, www.fairchildsemi
conductor.com/ds/NC/NC7SZ57
pdf.
3 SN74LVC1G57 Configurable
Multiple-Function Gate, Texas Instruments, November 2002, http://
focus.ti.com/lit/ds/symlink/
sn74lvc1g57.pdf.
INPUT
DEVICE CONNECTIONS
PIN 5 VCC
PIN 2 GND
UPPER
TRIP POINT
LOWER
TRIP POINTS
INPUT
1
4
PIN 3 VCC
3
R
1
R
FALLING-EDGE
PULSE
PIN 3 GND
4 OUTPUT
RISING-EDGE
PULSE
1
PIN 3 GND
1, 3
R
4 OUTPUT
INPUT
DELAYED FALLING
EDGE
PIN 1 GND
INPUT
4 OUTPUT
INPUT
OUTPUTS'
DELAYED RISING
EDGE
OUTPUT
C
INPUT
RC CIRCUIT'S OUTPUT
4 OUTPUT
FREQUENCY
DOUBLER
C
INPUT
1, 3
R
GATED
OSCILLATOR
RANDOMSTATE
GENERATOR
4 OUTPUT
C
(a)
(b)
Figure 1 One gate plus an RC network (a) can deliver a range of useful
timed outputs (b).
designideas
Stealth-mode LED controls itself
and triggers one-shot IC2A. The oneshot turns on transistor Q1 for an interval, lighting the LED for approximately 3 msec until the one-shots output
goes low. In a darkened room, the cycle
repeats at a 200-Hz rate, and the LED
blinks repeatedly with short off periods.
At high flash rates, the LED appears to
be continuously on.
The circuits current drain in the daylight state mainly comprises the current
driving the reference-bias network:
3.6V/162 k22 A. In both day and
night modes, with the LED drawing a
few milliamperes when illuminated, a
battery that can deliver 1 Ahr would
power the circuit for a couple of
months. You can reduce the current by
increasing the values of R1 and R2.
Given the circuits low and intermittent current drain in a well-lighted
environment, a 1-Ahr lithium cells
service life should approach its shelf
life.EDN
it turns off. The circuits main components comprise LED D1, micropower
operational amplifier IC1, one-shot
IC2A, and transistor switch Q1 to control current through the LED.
When dark, the LED produces no
photovoltaic current. When moderate
lighting, such as that in an office or a
lab, illuminates it, it generates 50 to
100 mV into a 4.7-M load resistor.
Comparator op amp IC1 compares the
voltage that the LED produces with a
threshold reference voltage of approximately 50 mV. You can vary the circuits sensitivity threshold by altering
the values of resistors R1 and R2 in the
voltage divider that connects to IC1s
Pin 2.
When ambient light decreases, the
LED produces less voltage, and, when
the voltage falls below the 50-mV
threshold, the op amps output goes low
REPEATED ONE-SHOT
PERIODS WHEN LED
SEES DARKNESS
3.6V
WHEN LED
SEES LIGHT
ONESHOT
0V
R1
160k
R5
10k
Q1
2N2907
R4
470
DETECTION
THRESHOLD
VOLTAGE
2
LED SEES
LIGHT
IC 7
1
OP-90
3
4
R2
2.2k
R3
4.7M
LED SEES
DARKNESS
6
5
16
VCC
RESET
Q
IC2A
MC14528
CXRX
D1
RED LED
VSS
R6
100k
2
C1
0.22 F
GND
3.6V
LITHIUM
CELL
NC
14
11
10
NC
IC2B
12
9
15
NC
13
Figure 1 An efficient LED forms the heart of a light-sensitive mystery lamp that contains no apparent photodetector.
designideas
Data-acquisition system captures 16-bit
voltage measurements using the USB
Terry Millward, Maxim Integrated Products Inc, Blonay, Switzerland
10
AVCC
0.1 F
10 F
0.1 F
0.1 F
FB1
150 F
0.1 F
MAX
CH0
4230
+
AVCC
DVCC
AVCC
DSEL
0.22 F
MAX
CH1
5V
USB
AIN0
DSPR
4230
+
100 pF
AVCC
_
CH2
DSPX
AIN1
0.22 F
J1
USB
CONNECTOR
100 pF
MAX
4230
+
AVCC
0.22 F
IC101
USBMICRO
U421
AIN2
100 pF
USB
5V 1
MAX
CH3
4230
+
USB D
AIN3
AVCC
IC100
MAX1168
100 pF
0.22 F
USB D
MAX
CH4
USB
DGND 4
AIN4
4230
+
AVCC
EOC
100 pF
0.22 F
AIN5
MAX
CH5
PA.0
DOUT
PA.6/SPI MISO
DIN
PA.5/SPI MOSI
SCLK
PA.7/SPI SCK
4230
+
100 pF
AVCC
AIN6
0.22 F
CS
CH6
MAX
4230
+
PB.0
NC
AIN7
AVCC
100 pF
0.22 F
MAX
CH7
4230
+
REF REFCAP AGND AGND DGND
0.22 F
100 pF
NOTE:
RESISTOR-DIVIDER PAIRS ARE PRECISION-MATCHED, 100-k MAX5490s.
1 F
DGND
0.1 F
FB2
Figure 1 This simple data-acquisition system provides eight channels of 16-bit data to a host computer through a USB
interface.
designideas
HID (human-interface deof 1/11, to allow maximum readvice), the U421 USB conable inputs of 45V at resolutroller can transfer data at rates
tions of 687.5 V.
as high as 800 bytes/sec. With
Written in Microsofts Visuadditional filtering to reduce
al Basic.Net, Standard Edition,
noise, the USB port provides
the evaluation software pro5V power to the circuit.
vides commands to the U421
The MAX1168s samplethrough the USBm.dll DLL
and-hold circuit must acquire
(dynamic-linking-library) file.
the input voltage and charge
The demo program sets the
its 45-pF holding capacitor in
MAX1168 to scan all eight
3 sec and thus requires a fast
channels and display the
amplifier to minimize acquisiresults. When you run the protion errors. Available in dual
gram, the Visual Basic form
and quad versions, the MAXallows you to set the reference
4230 provides a 10-MHz
voltage to allow for the input
bandwidth, 2V/sec slew rate, Figure 2 User-interface software for the data-acquisidivider, select the scan time,
rail-to-rail inputs and outputs, tion system allows selection of operating parameters.
and enable any of the eight
and the ability to operate from In this image, the lower three channels are unselected
input channels for screen disa 5V rail or from voltages as and hence are not visible in the display.
play (Figure 2). You can downlow as 2.7V. The MAX4230s
load the evaluation software at
bias currenttypically, 50 pAallows ing, each buffer amplifiers input in- www.maxim-ic.com/MAX=1168DI.EDN
significant input impedance without cludes a 100-k precision-matched
affecting accuracy.
resistive divider. This application uses A C K N O W L E D G M E N T
To provide protection from over- Maxims MAX5490VA10000 10-to-1 Thanks to Robert Severson of USBmicro
voltages and apply input-voltage scal- dividers, which provide a scaling factor for his help with the interface.
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
117V AC
D5
BRIDGE
RECTIFIER
T1
AC
LINE
receives a slightly positive reverse-gatebias voltage due to zener diode D4s forward-voltage drop. Each capacitor
charges to approximately one-half the
peak value of the rectified voltage
minus the forward-voltage drops that
D1 and D2 present. The full-wave bridge
rectifier, D5, or Graetz bridge, produces
these drops (Reference 1).
When the discharge phase begins, D1
gets reverse-biased, and capacitor C2
discharges through the load that voltage regulator IC1 presents. Subsequently, the anode voltage of diode D1
continues to decrease, Q1s gate-tosource voltage becomes negative, and
the transistor conducts, allowing C1 to
discharge into the load through for-
18V AC
TO ORIGINAL CIRCUIT
D1
1N4002
TRANSFORMER
C1
2200 F
R1
2.2k
R2
100
D4
15V
S
G
D2
1N4002
Q1
IRF9530
D3
1N4002
D
1
C2
2200 F
C3
100 nF
VIN
IC1
LM7805
GND
3
VOUT
5V
OUTPUT
C4
100 nF
Figure 1 In this unconventional step-down circuit, capacitors C1 and C2 charge in series and discharge in parallel, reducing the voltage applied to regulator IC1.
designideas
ing the raw rectified voltage and ripple
voltage at IC1s input. During C1s discharge, zener diode D4 protects Q1 by
clamping its gate-to-source voltage
within its maximum rating.
To function properly, the circuit
requires a minimum load current; the
PWM current-mode controller for universal offline power supplies, the circuit
in Figure 1 provides a low-cost, offline
constant-current source for powering
multiple LEDs. Although designers typically configure it to provide a voltage
source, in this application, the
NCP1200A provides a constant-current source. Figures 2 and 3 show
close-ups of the circuit.
A full-wave bridge rectifier, D2 to D5,
and filter capacitor C1 provide approximately 160V dc to the conversion circuit, IC1, and its associated compo-
www.answers.com/topic/graetz-ag.
D1
MUR160
D2 THROUGH D5 + 4
BRIDGE
1
TO AC
LINE
R1
500k
R4
10
C2
0.1 F
250V
NC
+ C1
47 F
400V
2
ADJ
HV
7
IC1 NC
NCP1200
3 CS
VCC 6
4
GND
DRV
R2
500k
R3
6.2k
C4
470 pF
OPTIONAL PWM
DIMMING INPUT
C3
0.001 F
400V
5 G
S
2 FB
IC2
4N35
L1
500 H
Q1
MTD1N60E
R5
43
C5
22 F
16V
R6
1.2
20
LEDs
designideas
to-track pc-board spacing for line-voltage applications. Use a capacitor rated
for line-bypass service for capacitor C2.
You can use any power MOSFET with
a suitable breakdown voltage and a low
on-resistance, such as an MTD1N60E
or IRF820, for Q1. Inductor L1, a 500H device, should be able to operate
at 100 kHz and handle more than 350
mA of continuous current. You can use
an inductor from Coilcrafts (www.
coilcraft.com) RFB1010 or DR0810
series of surface-mount inductors, or
you can experiment with inductors
manually wound on suitable core materials. As an option, adding optoisolator
IC2 allows microcomputer-controlled
illumination dimming using pulsewidth modulation of IC1s feedback terminal, Pin 2.
To understand the economic motivation for using LEDs as illuminators,
compare the light output of a string of
20 1W, white Luxeon emitters with a
standard incandescent light bulb. Each
LED provides 45 lumens, or 900 lumens
for a string of 20 LEDs. The average
Rectifier tracks
positive and negative peaks
Harry Bissell Jr, Welding Technology Corp, Farmington Hills, MI
designideas
NEGATIVE
R7
6.65k
FULL
R1
10k
INPUT
S1
POSITIVE
R4
10k
R2
10k
D1
1N4148
R3
10k
D2
1N4148
R6
20k
2
IC1A
3 TL072
R5
10k
12V
8
6
IC1B
5 TL072
4
OUTPUT
12V
Figure 1 Use this versatile precision rectifier circuit to recover a signals positive peaks, negative peaks, or both in fullwave mode.
tion rotary switch for input-mode selection, or an on/on/on toggle switch, such
as C&K Components 7211, available
from Digi-Key Corp (www.digikey.
com) and other sources, or a similar
switch, wired as a three-way selector.
(See the manufacturers data sheet for
a connection diagram.) You can also
use separate connectors for the inputs,
but connect no more than one input at
a time.EDN
OUTPUTS
WITH SIGNAL
APPLIED TO:
R7 IN
R1 IN
R6 IN
INPUT
AMPLITUDE
TIME
REFERENCE
1 Bissell, Harry, Envelope follower
combines fast response, low ripple,
EDN, Dec 26, 2002, pg 59,
www.edn.com/article/CA265499.
Figure 2 This waveform plot shows the circuits outputs for a sine-wave input
connected to the negative, full, and positive inputs, respectively. Traces are
vertically offset for clarity.
designideas
goes high, R4 and R2 form a parallel
resistance of 6.67 M, and the voltage
across C1 must reach 3.37V to deliver
a 1.245V input to the comparator. IC1s
output drives a photocoupler, IC2, a
Toshiba (www.semicon.toshiba.co.jp)
TLP190B. Unlike other photocouplers,
IC2 includes an array of photodiodes
that, when illuminated, delivers a voltage output. Although weak by powerconversion standards, the photocouplers output can deliver several microamperes at an open-circuit voltage that
exceeds 7V, or enough to drive a MOS-
R4
20M
TO
TELEPHONE
LINE
R1
5.6M
7
D1 TO D4
1N4007
VCC
R2
10M
3 IN
NC
C1
1F
R3
3.9M
IC1
MAX917
2 REF
OUT 6
R5
2.2k
IC2
TLP190B
1.245V
VEE
4
OUTPUT
Figure 1 Drawing minuscule amounts of power from a telephone line, this isolated-output circuit indicates whether the
line is in use.
designideas
The
single-ended-to-differential
stage comprises two cross-coupled op
amps, which resistors R5 and R6 configure as a unity-gain follower. To yield
a symmetric circuit, the outputs also
drive each other as unity-gain inverters through R7 and R8. The voltage you
apply to the positive terminal of op amp
IC2 sets the circuits common-mode
voltage. Resistors R3 and R4 control the
amplitude of the differential voltage.
Review your applications output-load
R4
10k
R3
10k
AD8042
IC3A
VDD
5V
R2
0.6V P-P
VVS
1.4V
R5
2.2k
0V
C1
VDD
VREF
1.8V
RFB
IOUT1
IC1
IOUT2
AD5424
DB0 TO DB7
GND
VREF
R1
IC
2A
AD8042
R7
2.2k
VOUT
R8
2.2k
R6
2.2k
8-BIT
DIGITAL
INPUTS
IC3B
0.6V P-P
VVD
1.4V
0V
1.4V
REFERENCE
Figure 1 This basic circuit combines a current-output DAC, IC1, with a single-ended-to-differential op-amp stageIC2,
IC3A, and IC3Bto generate the desired outputs.
R4
10k
R3
10k
VDD
5V
VIN
1V
IC2B
AD8042
RFB
IOUT1
IOUT2
AD8042
IC3A
8-BIT
DIGITAL
INPUTS
GAIN=1(R2/R1)=1.75
IC
2A
AD8042
R2
15k
GND
0V
R8
2.2k
R6
2.2k
0.343V P-P
CM=0.8V
1.4V
R5
2.2k
R7
2.2k
IC3B
R1
20k
1.4V
REFERENCE
Figure 2 In this configuration, a positive reference voltage produces a positive output voltage.
0.6V P-P
VVS
0.6V P-P
VVD
1.4V
0V
designideas
imum update rate to 1.5M samtime should determine the cirples/sec. You can use sections of
cuits maximum update rate.
a dual op amp to buffer the
The AD8042 in figures 1 and
DACs input and to amplify the
2 offers 170-MHz bandwidth
DACs output voltage (Figure
and a 225V/sec slew rate,
3). The circuits intended
allowing it to easily achieve
application determines your
these results. Other high-speed
choice of supporting amplifiers.
op amps, such as the AD8022,
For lower speed, precision apAD8023, and AD8066, also
plications, the op amp requires
work well in this application.
low input-bias currents and low
The DAC consumes only 0.4
input-offset voltage to avoid
A of power-supply current,
degradation of the DACs
and the op amps thus dominate
DNL (differential-nonlinearithe circuits power consumpty) performance. For example,
tion. To minimize the area for
Figure 3 The single-ended-to-differential conversion
the AD8628 offers 100-pA
the circuit on a pc board, you
of a digitized, eight-point sine wave produces differmaximum bias current at room
can replace all four op amps in
ential outputs.
temperature and 5-V maxiFigure 2 with a single AD8044
mum input-offset voltage. The
quad op amp. The singleop amps low-frequency noise is
For high-speed-system applications, ended-to-differential conversion of a
important in precision level-setting the op amps slew rate must not domi- digitized, eight-point sine wave in the
applications, and the AD8628 specifies nate the DACs slew rate. The op amps presence of a 1.4V common-mode
0.1- to 10-Hz noise of less than 0.5 V bandwidth must be large enough to voltage and a 0.6V differential signal
p-p. Its rail-to-rail inputs and outputs drive the feedback load and must not produces differential outputs (Figure
make it ideal for use in single-supply limit the circuits overall bandwidth, 3).EDN
circuits.
and the DACs output- voltage settling
designideas
READERS SOLVE DESIGN PROBLEMS
5V
C2
18 pF
4
15
4-MHz
CRYSTAL
16
13
C3
0.1 F
R6
6 560 A
RB0
VDD
R7
560 B
MC LR
RB1 7
R8
CLKOUT
560 C
RB2 8
R9
560 D
CLKIN
RB3 9
IC1
R10
PIC16F84A
RB7
10 560 E
RB4
R11
11 560 F
RA4
RB5
R12
12 560 G
RB6
R1
10k
17
RA0
R2
10k
18
VSS
RA1
5
14
C4
R3
0.1 F
10k
C1
18 pF
3
D
DS2
(TENS)
G
VIN
Q3
INPUT
S
MEASURE
R4
0.01V
2.7k
0.99V
R5
470
CALIBRATION
VIN
RETURN
NOTES: Q2=Q1=BC237/BC337/BC546 ... 550.
Q3=BF245A. (USE "A" GRADE ONLY.)
C1, C2=SEE TEXT.
DS1, DS2=COMMON-CATHODE, SEVEN-SEGMENT LED DISPLAY.
Q2
DS1
(UNITS)
Q1
D Is Inside
72 Inexpensive envelope tracker
handles wide signal variations
76 Hartley oscillator requires
no coupled inductors
What are your design problems
and solutions? Publish them here
and receive $150! Send your
Design Ideas to edndesignideas@
reedbusiness.com.
provides correction for a two-digit
display.
For an application requiring the display of readings of 0.01 to 0.99V, you
can use a 4-MHz crystal and Microchips PIC16F84A microprocessor for
IC1. To display the rightmost three
digits of readings in the 0.001 to
0.999V range, use a 20-MHz crystal
and a PIC16F84A-20 microprocessor.
Choose 15- to 33-pF values for capacitors C1 and C2, which the PICs data
sheet describes. Listing 1, which is
available online at www.edn.com/
060622di1, includes the full assembler source code for the PIC16F84A. The most critical portion of the
firmware comprises a subroutine that
provides a precision time delay according to the following steps:
1. Configure RA4 as an input to
sense the voltage across C3 during
the charging interval. When you
configure RA4 as an input, it
serves as a Schmitt trigger with
1.6V low-threshold and 3.2V
high-threshold voltages when
drain-to-drain voltage is 5V.
2. Configure RB7 as an output and
set it high to begin charging C3.
Initialize a counter (register 0CH)
to its maximum value of FFH.
3. Decrement the counter in a loop
designideas
until RA4 senses a low state. At
that time, C3 charges to nearly
66% of the power-supply voltage.
4. Use the time it takes to produce a
low on the RA4 input as a jump
value in the linearity-correction
look-up table to extract a value for
the two-digit LED readout.
5. Configure RB7 as an input and set
it low to discharge capacitor C3.
6. After a time delay, repeat Step 2.
To round out the design, another
software subroutine solves the problem
of driving a two-digit LED display at
adequate visibility with a minimum
amount of current. Although an LCD
would use less current, LCDs arent
visible in darkness. The display subroutine examines the eight bits of the
units and tensregisters 11H and
12Hand tests each one in sequence;
if the subroutine sets a bit, then the
subroutine puts a short-duration high
state on its corresponding segment-
designideas
5V
IC2A
_
VIN
15
10
IC1B
9
IC1C
R1
14
11
IC1A
R3
100k
13
R2
1k
12
R4
560k
VU
R5
560k
VL
INPUT SIGNAL, VIN
IC2B
VMID
C3
10 nF
VM
C1
100 pF
VUC
VLC
C4
10 nF
VOUT
C2
1 nF
OUTPUT SIGNAL, VOUT
Figure 1 This circuit tracks an NRZ signals envelope excursions and recovers the original waveform.
500 mV/DIV
100 mV/DIV
2V/DIV
5V/DIV
500 SEC/DIV
100 SEC/DIV
designideas
and would thus pull down VUC. Similarly, C4 would continue to charge on
the upward slope of VIN between VL and
VM and would thus pull up VLC.
Although VMID might be roughly equal
to VM, such a minimal configuration performs relatively poorly, particularly for
small signals and at extreme duty cycles.
The components in Figure 1 produce
good results for input frequencies of 5 to
50 kHz. Frequencies lower than 5 kHz
may require larger capacitor values, and
operation higher than 50 kHz may require reduction of capacitors values and
selection of a comparator with minimal
response time. With properly selected
components, the circuit performs well at
baud rates to or exceeding 128 kbps.
The values of R5, R4, C2,,and, to a lesser extent, the analog switches on-resistance and R1, C4, and C3 determine the
circuits response time to a sudden
change in input-signal amplitude or
L2
815 nH
C
67 pF
k=0.250
LM=92.5 nH
(a)
and
LB
907.5 nH
LB
907.5 nH
C
67 pF
L1
168 nH
(b)
LA
92.5 nH
LC
260.5 nH
C
67 pF
CA
845 pF
LC
260.5 nH
(c)
Figure 1 A traditional Hartley oscillators resonant circuit comprises a tapped inductor and resonating capacitor (a).
Allowing for mutual coupling between windings produces an equivalent circuit containing a negative inductance (b).
Replacing the negative inductance with a capacitor yields an easily modeled equivalent circuit (c).
designideas
L1
8.3 H
9.5V
2%
C1
0.01 F
NOTES:
L1, L2: SIX TURNS AWG #22 WIRE ON A FAIR-RITE 2643002402 CORE.
L3: FIVE TURNS AWG #26 WIRE ON A CWS BYTEMARK FT-23-61 CORE.
LB: 11 TURNS AWG #22 WIRE AIR CORE, 0.450-IN. AVERAGE DIAMETER, LENGTH=0.450 IN.
LC: SEVEN TURNS AWG #22 WIRE AIR CORE, 0.300-IN. AVERAGE DIAMETER, LENGTH=0.275 IN.
AVERAGE DIAMETER IS THE DIAMETER OF THE CORE PLUS ONE WIRE DIAMETER.
D1
1N4370A
C2
0.01 F
D
R1
10k
G1
C4
27 pF
OUTPUTLEVEL
ADJUSTMENT
R15
5k
R16
3.01k
C5
33 pF
LB
0.9075
H
C6
10 pF
LC
0.2605
H
CA
845 pF
C3
560 pF
C18
4.7 F
C19
0.22 F
C10
0.01 F
R4
4.3k
Q1
S BF998
C7
18 pF
R5
47k
C12
0.01 F
Q2
BF998
D
G1
G2
S
R2
C8
39 pF 100k
CONTROL VOLTAGE
R17
73.2k
G2
R6
10k
C9
0.01 F
R3
39
D2
SD101C
D3
SD101C
R18
43.2k
C20
220 pF
L2
8.3 H
C13
0.01 F
R8
22
C21
220 pF
R7
27k
C11
220 pF
R9
220
R11
13k
C15
0.01 F
R12
22
C16
240 pF
OUTPUT
L3
620 nH
C17
240 pF
Q3
2N3904
LOAD
R19
50
C14
560 pF
R13
10k
R14
220
R10
220
Figure 2 This buffered-output, 18-MHz oscillator has a resonant circuit that doesnt rely on mutual coupling for operation.
However, for frequencies near the resonant frequency, f0, you can replace the
negative inductor with a capacitor, in
which CA replaces LA (Figure 1c).
Note that the equivalent circuits derivation neglects parasitic winding
resistances and capacitances.
Figure 2 illustrates an oscillator and
output buffer using the equivalent circuit. The constructed circuit generally
performs as you would expect from an
initial Spice simulation. During testing,
several components values required
tweaking, and multiple iterations of
Spice analysis ultimately yielded the
final design. The oscillators tank circuit
comprises LB, LC, C4, and C5, plus
capacitance provided by voltage
divider C6, C7, and C8. This capacitance of approximately 6 pF
includes Q1s and Q2s input capacitances and some stray capacitance. The
total tank capacitance of 66 pF approximates the calculated value of 67 pF.
Capacitors that connect to the tuned
circuit feature ceramic-dielectric construction with NP0 temperature coefficients.
designideas
tive losses at L1 helps avoid spurious
resonances.
Source follower Q2 drives the output
stage, which uses a pi-matching network to transform the 50 output load
to 285 at Q3s collector. Bootstrapping
Q2s Gate 2 by one-half of its output
voltage increases the source followers
gain and dynamic range and reduces its
input capacitance. Potentiometer R5
adjusts the circuits output level from
about 0.9V p-p to approximately 1.5V
p-p across a 50 load. The circuits frequency remains stable at a constant
room temperature of about 23 C. Also,
the output-level-control circuit remains stable even if you apply no load
to the output. For a fixed-frequency
oscillator, the output circuits loaded
resistive losses of approximately 4 provide adequate bandwidth without retuning L3, C16, and C17.
To set the output level to a safe maximum, connect a 50 load to the output and adjust the output to 1.5V p-p.
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
VC
REGULATED
CURRENT
R4
1k
+
_
+
IC1
+
VREF
R2
47
Q1
CCOMP
2N3020
R3
1k
R1
1
designideas
achieve the same effect. Figure 3 shows
the final circuit. To understand its operation, think of the circuit as a voltage
regulator that delivers a voltage equal
to VREF across R1. If you short-circuit
base resistor R2, note that any commonmode error that resistors R5 and R6
introduce cancels and thus has no effect
on Q1s base voltage. When you feed
the voltage drop back to IC1s input
through R5 and R4, the voltage drop
across R2, representing Q1s base current, increases the regulated voltage
across R1 by the ratio of R5/R4. If the
ratio of R5/R4 equals that of R2/R1, the
voltage across R1 includes an error term
that effectively cancels the base current. If R3R4 and R5R6, the following equation describes the output current, IOUT:
VC
+
IC2
R6
47k
R5
47k
R9
47k
+
_
R8
47k
REGULATED
CURRENT
R7
47k
VCC
+
_
R2
47k
IC1
Q1
R4
1k
CCOMP
2N3020
R3
1k
R1
1
VREF
Figure 2 Adding base-current error compensation improves the circuits performance. Using perfectly matched resistors simplifies the output-current equation to IOUT(VREF/R1).
R5
47k
REGULATED
CURRENT
VC
R4
1k
R2
47
IC1
+
VREF
Q1
CCOMP
2N3020
R6
47k
R3
1k
R1
1
Figure 3 You can further simplify the current sinks design by adding only two
resistors, R5 and R6, to the original in Figure 1. The output-current equation
remains IOUT(VREF/R1), as in Figure 2.
designideas
REGULATED
CURRENT
R2
47
TO REMAINDER
OF CIRCUIT
Q1
R6
47k
2N3020
Q2
R3
1k
RSPEEDUP
470
2N3020
R1
1
In a three-phase ac system, a
power source with three wires
delivers ac potentials of equal frequency and amplitudes with respect to
a zero-potential wire, each shifted in
phase by 120 from one wire to the
next. Two possibilities exist for establishing a phase sequence. In the first,
voltage on the second wire shifts by
120 relative to the first, and, in the
second, a 120 shift occurs with
respect to the first wire. Phase order
determines the direction of rotation of
three-phase ac motors and affects other
equipment that requires the correct
phase sequence: a positive 120 shift.
You can use a few low-cost passive
components to build a phase-sequence
indicator.
Figure 1 shows a conceptual circuit
that can detect both phase sequences.
For certain component values, the following conditions apply: The voltages
across R1 and C2 are equalthat is,
their magnitudes and phases are the
sameonly when VS2 occurs exactly
120 ahead of VS1, which indicates the
correct phase sequence. In this case, the
voltage between points A and B is zero.
Conversely, the voltages across C2 and
R3 are equal only when VS2 is ahead of
VS3 by 120, which corresponds to a
reversed sequence.
Referring to the phasor diagram in
Figure 2, when the voltages across R1
and C2 are equal, VC1VR2, VC1
VR1VS1, and VC2VR2VS2. The following equations satisfy these conditions:
|VR1||VC2|(1/2)|VS2|
(1/2)|VS1|, and |VC1||VR2|
cos(30)|VS1|cos(30)|VS2|. You
calculate the component values by
VS1
VS2
VS3
C1
I1
A
R1
C3
R2
I2
B
C2
I3
C
R3
designideas
VR2
VS2
60
VS3
VC2
VR1
VR3
120
VC3
VS1
VC1
VS1
VS2
VS3
I1'
I1
R4 A
93.1k
C3
33 nF
R2
46.4k
C1
33 nF
I2
R6
499k
I3
LED1
LED2
B
R7
499k
I3'
C
R5
93.1k
R1
46.4k
D1
1N4004
D2
1N4004
C2
100 nF
R3
46.4k
Figure 3 This phase-indicator circuit balances branch voltages and currents and
requires no ground reference. These component values are for a 60-Hz line frequency.
VS2
I1+I2
I2
VS3
I3 '
60
120
I3
I1
I1 '
VS1
designideas
WIDTH T1
LONG
MICROPULSE
CONTROLLER
OUTPUT
T1
NAND
OUTPUT
(T1T2)
T2
SERIAL
IN B
5V
1
C2
0.1 F
PORT
LINE
R1
40k
Q1
A1
1
GND
8
(QC) 5
6
(QD)
IC2
74164
10
(QE)
C1
100 pF
1
2 IC3
3 CLEAR
CLOCK
(QF)
(QG)
(QH)
GND
7
C3
0.1 F
MOST
SIGNIFICANT
SEGMENT R2
750
3
(QB) 4
REXT1 15
IC1
74123
CEXT1 14
MICROCONTROLLER
2 14
(QA)
3 11 16
VCC
QA
5V
R3
750
R4
750
R5
750
R6
750
11
R7
750
12
R8
750
13
R9
750
EIGHT-SEGMENT
LEAST
LED BAR GRAPH
SIGNIFICANT
SEGMENT
T3 T4
SEGMENT
IS OFF
(HIGH)
QB
QC
QD
QE
SEGMENT
IS ON
(LOW)
QF
QG
QH
LEAST SIGNIFICANT
SEGMENT
designideas
READERS SOLVE DESIGN PROBLEMS
Microprocessor generates
programmable clock sequences
D Is Inside
ization to produce a group of 29 constant instruction times. During software development, you can use coded
constants and a table-based approach
as a flexible method of modifying the
pulse sequence. The three parameters
that Figure 2 highlights include the
number of PWM cycles that execute
between tabled steps, which the algorithm passes as temp_cntK. This
parameter defines how many PWM
periods of a range from one to 255
repeat within each tabled step. For
three cycles per table step, you use
#define temp_cntK .3. The next
parameter is the number of 29instruction loops that execute during
each PWM period. All branches of
the coded instructions equalize to
constant 29-instruction periods.
When you copy this parameter as
loopsK, it can range from one to
255. Using the 10F200s internal 4MHz clock and an 8-bit counter to
generate 1-sec instruction periods,
you can gener-
2 TO 5.5V
VDD
1
R1
10k
ENB
PWMOUT
IC1
PIC10F200/202
VSS
VDD
6
PWMOUT
PWM CYCLE
STEP
ENB
MODE
PROFILE
VSS
designideas
ues undergo scaling according to the
following equation: Duty cycleINT
(%TDTY/100loopsK0.5), in which
INT is the integer value and %TDTY is
the percentage of the total duty cycle.
In this example, loopsK31. The
number of steps in the table passes to
the program as #define loop_maxK .5.
The pulse-duty cycle can vary only in
increments of a single 29-instruction
base loop, and, as a consequence, the
pulse duty cycles resolution varies as
the number of basic loops for the waveforms desired period, which you define
as loopsK31 loops. Thus, the dutycycle resolution equals 1/(loopsK), or
1/(31)3.22% for this application.
You can use a spreadsheet or manually calculate the translated and
scaled duty-cycle values and store
them in the data-profile table. For
example, you calculate the value for a
25% duty cycle as INT(25/resolution
0.5)=INT(25/3.220.5), where INT
represents extraction of the integer
value of the computed quantity. For
required duty cycles of 25, 50, 87.5,
12.5, and 75%, the values that pass to
the data-profile table are retlw_8, 16,
27, 4, and 23, respectively. The assembly-language program available for
Figure 3 After undergoing lowpass-filtering, the controllers pulse-width-modulated output (lower trace) reveals its sine-wave origin.
80
75
70
DUTY65
CYCLE
TABLE
VALUES 60
55
50
45
1
15 22 29 36 43 50 57 64 71 78 85 92 99
PULSE-POSITION TABLE ENTRIES
Figure 4 Devised for testing a serial links error response, this waveform plot
displays pulses locations within the waveform (horizontal axis) versus the
duty cycle for each pulse (vertical axis). The waveform cycle repeats after
pulse 100 ends.
In the example in Figure 3, the controller delivers a pulse-width-modulated output (lower trace), which, after
processing by a single-pole lowpass filter, corresponds to a sine wave (upper
trace). Using another version of the
circuit, you can evaluate how a critical midword error affects a serial links
characteristics, system timing, and
response latency.
The waveform in Figure 4 comprises 100 pulses, 99 of which exhibit a
nominal duty cycle that varies from 48
to 51%, and a single error pulse with a
75% duty cycle. The waveform-table
entries use values of loopsK100,
temp_cntK1, and table_maxK100
to produce a pulse sequence comprising 74 pulses with nominal duty cycles,
a single pulse with a 75% duty cycle,
and a final sequence of 25 clocks with
nominal duty cycles. The entire
sequence repeats at a 345-Hz rate.
Using a 4-MHz-clock-rate version
of Microchips 10F220 controller
constrains the basic software-timing
loop to a 29-sec period. You can
compile the program into an 8-MHz
10F220 to reduce the timing loop to
14.5 sec and extend the outputs
usable bandwidth. You can modify the
code in the listing to suit other compatible microprocessors to obtain
greater bandwidth and integrate additional functions. As is, the circuit
requires only 155 bytes of internal
EEPROM and occupies an SOT-23
pc-board footprintnot bad for a
processor that costs less than $1.EDN
designideas
Ceramic output capacitors enhance
internally compensated switchers
+
+
above the power supplys
1V AC
RINT2
C0
R2
(continued on pg 90)
designideas
40
160
OVERALL PHASE
120
ERROR AMPLIFIER
20
PHASE ()
GAIN (dB)
80
60 PHASE
MARGIN
40
0
20
OVERALL GAIN
MODULATOR/FILTER
40
40
100 Hz
1 kHz
10 kHz
FREQUENCY
100 kHz
1 MHz
80
100 Hz
1 kHz
10 kHz
FREQUENCY
100 kHz
1 MHz
(b)
(a)
Figure 2 Gain (a) and phase (b) plots show that the circuit of Figure 1a includes adequate compensation and phaseangle margin for an aluminum electrolytic output-filter capacitor.
200
40
OVERALL PHASE
ERROR AMPLIFIER
150
20
PHASE ()
GAIN (dB)
100
0
50
20
0
NO PHASE
MARGIN
OVERALL GAIN
MODULATOR/FILTER
40
50
100
60
100 Hz
1 kHz
10 kHz
FREQUENCY
100 kHz
100 Hz
1 kHz
1 MHz
(a)
10 kHz
FREQUENCY
100 kHz
1 MHz
(b)
Figure 3 Gain (a) and phase (b) plots show that using a ceramic-dielectric output-filter capacitor erodes the phase-angle
margin and pushes the circuit dangerously close to oscillation.
160
V1
1V AC
C1
2.5 nF
+
R1
2.1k
TO PIN 4,
VSNS, OF IC1
C2
0.5 F
R2
1.2k
R3
75
120
OVERALL PHASE
80
45 PHASE
MARGIN
40
OVERALL GAIN
40
80
100 Hz
1 kHz
10 kHz
FREQUENCY
100 kHz
1 MHz
designideas
loop response (Figure 3) illustrates the
circuits behavior when the design
includes ceramic-dielectric output-filter capacitors and the same integratedcompensation components in Figure 1.
Ceramic capacitors present a much
lower ESR than do aluminum electrolytic capacitors, and their capacitance determines the filters attenuation rather than their ESR. Consequently, at high frequencies, the LC filters characteristics include a double
pole and a steeper, 40-dB/decade
slope. In addition, filter attenuation increases at the desired crossover frequency, degrading phase and gain margins. Figure 3b indicates that the power
supply is unstable and, with no phase
margin, will likely oscillate.
Replacing the divider network, R1
and R2 in Figure 1 with the passive network in Figure 4 stabilizes the regulation loop and allows an internally compensated controller to use ceramic output capacitors. The networks compo-
L1
COILTRONICS
CTX02-17409-R
1-TO-6 TURNS RATIO
L1A
L1B
VIN+
3V
C1
22 F
6.3V
R1
37.4k
IC1
LT1949
8
LBO
7
3
LBI
SHDN
1
5
VC
SW
4
2
GND
FB
6
C2
1 nF
GND
VIN
NC
NC
R4
2k
C4
10 pF
D1
BAS21
C3
0.1 F
250V
R2
1M
VOUT+
100V
5 mA
R3
12.4k
GND
Figure 1 Using a tapped inductor extends a boost-topology switching regulators practical output-voltage range.
designideas
Figure 3 The entire boostconverter circuit occupies
a footprint of less than
1.51.25 cm on a singlesided pc board.
Figure 2 For a 3V-dc input (lower trace, horizontal line), the voltage at regulator IC1s SW pin reaches a peak of approximately 18V (lower trace, pulsed
waveform). The 1-to-6 step-up turns ratio of inductor L1 further increases the
peak output voltage to 160V (upper trace) to produce 100V dc. The upper
traces lower limit goes to 6VIN(18V) due to the tapped inductor.
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
82 Novel circuit isolates temperature sensor from its host
rectifier power supply delivers a fluctuating output voltage that depends on its
input voltage. As the difference between its input and output voltage
increases, a low-dropout regulators efficiency decreases, and its power dissipation increases. To remain in regulation at low ac-line voltages, even a lowdropout regulator requires a certain
amount of head-room input-to-output
voltage.
To overcome the disadvantages inherent in both circuits, you can use an
SMPS to maintain high efficiency and
a low-dropout regulator to reduce the
output noise and ripple voltage of the
SMPS. Setting the output voltage of
the SMPS slightly higher than the lowdropout regulators minimum dropout
voltage reduces the regulators power
V+
UNREGULATED
INPUT
VSET
RT
2.61k
R4
100k
D2
R3
768k
RB
1k
C2
B2
A2
C1
10 F
FB
VOUT
ADJ
IC2 SYNC
TPS62300YED
EN
VIN
SW
D1
VCC
OUTPUT
VOUT
C1
L1
2.2 H
VPS
1
B1
GND A1
C2
10 F
C4
0.1 F
IN
IC1 OUT
TPS736XXDCO
5
EN
GND
NRFB
GND
6
R1
31.6k
C3
47 F
R2
10k
Figure 1 Connected in cascade, a low-dropout linear regulator and a switched-mode power supply improve output-voltage ripple and maintain overall efficiency. (Note: In IC1s part designation, XX represents the regulators output voltage.)
designideas
rent as high as 400 mA. Although a
fixed 6V supply powers the cascaded circuit, its design accommodates any input
voltage at least 0.5V higher than the
cascaded pairs desired output voltage.
Adjusting the reference voltage,
VSET, over 0 to 1.105V linearly varies
the circuits output voltage. Resistors R1
and R2 and reference voltage VSET
determine the low-dropout regulators
output voltage and thus the cascaded
pairs output voltage. Resistors RT, RB,
R3, and R4 divide VSET to maintain the
SMPS output voltage, VPS, at a constant 0.2V higher than the regulators
output voltage, reducing the regulators
power dissipation to 80 mW at full output current and any output voltage.
At its maximum output current of
400 mA, the cascaded supply reaches
a maximum efficiency of 89% with a
6V input and a 4.69V output (Figure
2). The overall efficiency decreases as
the output voltage decreases. Figure 3
compares the PSRRs of the SMPS
alone and of the SMPS cascaded with
the regulator, which improves PSRR by
46 dB at 500 Hzessentially that of the
regulator alone at 500 Hz.
Over a frequency range of 100 Hz to
100 kHz, the low-dropout regulator
improves PSRR by at least 25 dB (Figure 3). Circuit-layout and -measurement techniques compound the diffi-
92
88
84
EFFICIENCY
80
(%)
76
72
1.5
2.5
4.5
100
90
CASCADED PAIR
80
70
60
PSRR
(dB)
50
40
30
SWITCHED-MODE
POWER SUPPLY
LOW-DROPOUT
REGULATOR
20
10
0
10
100
1000
10,000
100,000
1 MILLION
FREQUENCY (Hz)
3.5
Electronics (www.haloelectronics.com)
TGM-010P3 1-to-1-to-1 transformer
with dual primary windings and a single untapped secondary winding (Reference 1). The secondary winding
feeds a Graetz-bridge rectifier that generates approximately 4.5V to power
IC2, a Maxim MAX6576 sensor. Combining a temperature sensor, signal-processing electronics, and an easy-to-use
digital-I/O interface in a low-cost package, the MAX6576 draws little current
from a single supply source and maintains its specified accuracy over a 3 to
5V supply-voltage range.
designideas
INSULATION
BOUNDARY
5V
R5
1k
D1
R1
2.2k
OUT
VCC
D1
C4
10 F
T1
FS
D2
SD
D3
5V
Q1
2N3904
0
T
C1
0.1 F
C3
1 nF
D2
GND1 GND2
D4
C2
20 nF
VCC
R3
390
IC1
MAX845
TS0
IC2
MAX6576
OUT
R4
10k
Q2
2N3904
TS1
GND
R2
75
NOTE: D1 THROUGH D4: MBR0520L.
Figure 1 Transformer T1 isolates the temperature sensor, IC2, from the equipment under test. The period of IC1s digital
output varies as a function of temperature. The circuits output period varies at a rate of 10 sec/K. User-selected scale
factors range from 10 to 640 sec/K.
MAX6576 OUTPUT
MAX6576 OUTPUT
0V
0V
2V/DIV
OUTPUT
FROM Q1'S
COLLECTOR
0V
2V/DIV
OUTPUT
FROM Q1'S
COLLECTOR
0V
1 SEC/DIV
1 SEC/DIV
designideas
This design can accommodate temperature-to-frequency converters and
other types of temperature sensors.
For further information on IC1 and
IC2, review the devices data sheets
and the data sheet for the MAX845
evaluation kit (references 2, 3, and
4).EDN
REFERENCES
PCMCIA DC/DC Conversion
Isolation Modules, Halo Electronics
Inc, www.haloelectronics.com/pdf/
lowpower-oper.pdf.
2 Isolated transformer driver for
PCMCIA applications, Maxim Inc,
October 1997, http://pdfserv.
1
maxim-ic.com/en/ds/MAX845.pdf.
3 SOT Temperature Sensors with
Period/Frequency Output, Maxim Inc,
April 1999, http://pdfserv.maxim-ic.
com/en/ds/MAX6576-MAX6577.pdf.
4 MAX845 Evaluation Kit, Maxim Inc,
October 1997, http://pdfserv.maximic.com/en/ds/MAX845EVKIT.pdf.
(1)
VOUT
(3)
(4)
(5)
and
(6)
VIN
+
VOUT
R1
S1
G1 TAP
G2 TAP
R1
G1 TAP
R2
G2 TAP
R2
S1
GN TAP
R[N+1]
RG
RN
GN TAP
SN
designideas
Next, normalize R1 to 1 and solve the equations for R1:
(7)
(8)
The nth value of RP equals the nth1 value of RP in parallel with the ladders nth resistor. Solve the following equations for the nth resistor value:
(16)
and
(9)
(17)
and
(18)
(10)
(11)
(19)
(12)
(22)
and
(23)
(13)
Scaling to 1 k and selecting the closest available standard-value resistors yields gains of:
(24)
(15)
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
70 Two-wire, four-by-four-key keyboard interface saves power
Noureddine Benabadji,
University of Sciences and Technology, Oran, Algeria
The ultralow-cost, two-digitcounter circuit in Figure 1 represents an attempt to reduce the number of components using a mostly software approach and a low-cost microcontroller, the PIC16F84A. The circuit lacks the current-limiting resistors
that normally connect to a seven-segment LED displays pins because a software routine lights only one of the displays segments at a time, first in the 10s
display and then in the units display.
Doing so keeps the circuits maximum
current consumption at a nearly constant level, even if you add a third LED
display to implement a three-digit
counter. The circuit also lacks digitselection switching transistors that clas-
VCC
2.7V
VCC
2.7V
R3
10k
14
4-MHz
CRYSTAL
C2
18 pF
VDD
6
RB0
7
IC1
RB1
8
PIC16F84A
RB2
15
CLK OUT
9
RB3
10
RB4
11
RB5
16
CLK IN
12
RB6
VSS
4
C1
18 pF
DS1
SC52=11EWA
(10s)
MC LR
R1
180 OR
220
A
B
C
D
E
F
G
ID
R2
180 OR
220
ID
DS2
SA52=11EWA
(UNITS)
designideas
corresponding segment of the common-anode display. The 16F84A requires a minimum of 2V for operation,
DISPLAY ON
(349.633 MSEC)
DISPLAY OFF
(651.78 MSEC)
RB0 (SEGMENT A)
HIGH Z
RB1 (SEGMENT B)
HIGH Z
RB2 (SEGMENT C)
HIGH Z
RB3 (SEGMENT D)
HIGH Z
RB4 (SEGMENT E)
HIGH Z
RB5 (SEGMENT F)
HIGH Z
RB6 (SEGMENT G)
HIGH Z
10s
DIGIT
UNITS
DIGIT
TIME
designideas
RC
S(3,3)
S(2,3)
RB
RA
S(1,3)
S(0,3)
VREF
40.2k
S(3,2)
S(2,2)
S(1,2)
40.2k
40.2k
VREF=VCC
S(0,2)
RD
10k
S(3,1)
S(2,1)
S(1,1)
S(0,1)
RE
1
S(3,0)
S(2,0)
S(1,0)
S(0,0)
RF
PERIPHERALS
VOUT
10k
IC1
MC68HC908QT4
10k
Y
3
10k
RG
X
Resistance ()
141 to 142
134 to 135
132
109
98
91
88
76
70 to 71
68
designideas
er-supply voltage VCC as the resistor
matrixs reference voltage, VREF. To satisfy the requirement for p(4.074
p 4), use R110 k1% tolerance
and R240.2 k1% tolerance, both
standard values that the E48 series
offers. Table 1 lists output codes corresponding to 16 individually pressed keys,
and Table 2 lists data obtained when
simultaneously pressing two keys and
illustrates that two-key combinations
can evoke special functions.
If your application requires a microcontroller that lacks an internal inter-
Gain-of-three amplifier
requires no external resistors
Marin tofka, Slovak University of Technology, Bratislava, Slovakia
C1
4.7 pF
8
matrix encoded by 10 resistors. Repeating the analysis shows that a rowto-column p ratio of 5 to 5.51 and a
required resistor tolerance of less than
4.3% correctly encode the keys. You
can use values of 10 k for R1 and 51.1
k or 53.6 k for R2 of the 1%-tolerance E48 series.
REFERENCE
1 Amorim, Vitor, and J Simes,
ADC circuit optimizes key encoding,
EDN, Feb 4, 1999, pg 101, www.
edn.com/article/CA56657.
as a noninverting gain-of-two amplifier. Due to its internal feedback networks, the device offers a bandwidth of
300 MHz and excellent insensitivity to
stray capacitance, variations in pc-board
layout, and proximity of other devices.
According to its specifications, each of
IC1s three internal amplifiers offers
+VS=2.5V
4
R
550
IN
R
550
R
550
R
550
10
A1
OUT
+
IC1
ADA4862-3
R
550
13
A3
R
550
A2
C2
100 nF
12
14
11
VS=2.5V
NOTES:
CONNECT TO VS FOR ENABLE.
CONNECT TO +VS FOR DISABLE.
Figure 1 A one-IC amplifier with a voltage gain of three provides flat response to more than 60 MHz.
C3
47 nF
designideas
three gain configurationstwo, one, or
negative one (Reference 1). When you
configure it for a gain of two, a cascade
of two or three amplifiers yields gains of
four or eight, respectively. If your application requires a gain of three, you can
use the circuit in Figure 1. Amplifier A3
serves as an impedance converter with
a net voltage gain of one and a lowimpedance driver for A1s gain-setting
network. Amplifier A2 provides a gain
of two at its noninverting input.
In addition, A3 introduces the proper time delay (phase shift) in A1s
inverting-input path and thus roughly
equalizes the time delay in A1s noninverting signal path. This configuration
improves the circuits dynamic performance over that you can achieve
when A1s inverting input connects
directly to the input signal. A 4.7-pF
chip capacitor that connects from voltage follower A3s output to ground
MORE AT EDN.COM
+ For more Design Ideas, visit
www.edn.com/designideas.
+ For our best entries, go to
www.edn.com/bestofdesignideas.
designideas
READERS SOLVE DESIGN PROBLEMS
C2
0.1 F
R1
4.7k
14
R2
10k
4
MCLR
16
3V
C1
22 pF
CKIN
R3
10k
RB0 6
GP0 7
RB1 7
GP1 6
RB2 8
GP2 5
RB4 10
GP4 3
S1
IC1
PIC12C508A/PIC16F84A
VDD
D Is Inside
9 RB3
RB5 11
4 GP3
VSS GP5 2
R4
56
R5
56
R6
56
R7
56
R8
56
5 8
Figure 1 A dot- or bar-graph display uses either a one-time-programmable PIC12C508A or, for experimentation, a reprogrammable and reusable PIC16F84A. Use high-brightness diodes for LED 1 through LED 20.
designideas
the PIC16F84A in the 0CH to 1FH
range, use of the RETLW 00H instruction instead of Return, and avoidance
of the ADDLW and SUBLW instruc-
tions. The software defaults to the dotdisplay mode. Pressing and holding S1
before and during power application
selects the bar-display mode. Note that
This Design Idea describes a circuit that uses a PCs serial port
to control a sine-wave generator that
covers a frequency range of 2 Hz to 20
kHz in 1-Hz steps (Figure 1). The circuits output voltage of approximately
2.2V p-p remains constant over the
entire frequency range. The circuits
signal source, a Linear Technology
(www.linear.com) LTC6904, IC1, consists of a digitally programmable
square-wave oscillator that, without
using a clock crystal, covers a frequency of approximately 1 kHz to 68 MHz
at 0.1% resolution and a few percentage points of accuracy. The LTC6904
features an I2C serial-communications
interface that controls the output frequency according to: OSCCLK2a
J1
TO PCs
RS-232
PORT
CD
RX
TX
DTR
GND
DSR
RTS
CTS
RI
TO 5V
POWER SUPPLY
1
2
10
Q1
Q4
Q5
11
RST
Q6
Q7
IC2
74HC4020 Q8
Q9
Q10
16
VCC
Q11
Q12
8
Q13
GND
Q14
7
SDI IC1 OE
LTC6904
3 SCK
CLK 6
D3
1N4148
GND
4 ADR
D4
1N4148
CLK 5
7
8
9
D1
1N5232
D2
1N5232
R1
20k
R2
20k
C1
47 F
10V
C2
0.1 F
CLK
9
7
5
4
6
13
12
14
15
1
2
3
CLK
IN
IC3 V 7
MAX291
3 OP OUT GND 6
OP IN
C3
0.1 F
OUT
C4
0.1 F
R3
20k
OUTPUT
R4
20k
GND
Figure 1 Three ICs and a few passive components generate sine waves under the control of a PCs serial port.
designideas
output-frequency request, calculates
the nearest values of programming
codes a and b, transmits the codes
to IC1, and shows the calculated fre-
minal-ready pin, and Pin 7, the readyto-send pin, to levels compatible with
the I2C buss SDI and SCK signals,
respectively.EDN
Logging data from a large number of monitored channels usually requires a lot of memory for storing the measured data. Unfortunately,
smaller microcontrollers offer only limited amounts of internal data RAM and
EEPROM and may also lack spare
address and data ports for adding external memory. Many low-end microcontrollers include an industry-standard
I2C interface for attaching external
ADCs, DACs, real-time clocks, and
other peripherals.
The circuit in Figure 1 connects a
CompactFlash card to a microcon-
TO HOST
MICROCONTROLLER
2
I C BUS
D3
D4
1
2
26
27
28
D5
D6
D7
INT
D0
D1
D2
D3
D4
D5
D6
D7
V+
V+
CE
29
30
31
7
8
32
33
34
AD1
SDA
AD2
SCL
10
35
I/O0
AD0
11
36
I/O1
I/O2
IC1
MAX7311
I/O3
I/O4
I/O15
A2
I/O14
A1
A0
I/O13
I/O12
I/O5
I/O11
I/O6
I/O10
I/O7
GND
RDN
I/O9
I/O8
CE
A2
A1
SEE
TEXT
RDN
WRN
A0
12
37
13
38
14
39
15
40
16
41
17
42
18
43
19
44
20
45
21
46
22
D2 23
24
25
48
49
50
D0
D1
J1
50-PIN
COMPACTFLASH
CONNECTOR
WRN
D1
1N4148
R1
10k
RESETN
C1
10 F
47
Figure 1 A 16-bit I/O extender, IC1, and a CompactFlash connector add external data storage to a microcontrollers
I2C bus.
designideas
for reading or writing data. Each track
contains 512 data bytes. The processor
indicates reading and writing tracks and
other functions by writing to 0x07, the
command register, and registers 0x01
and 0x07 contain error conditions and
status information.
Two unused pins, 10 and 11, on Port
2 are available to drive LEDs that display circuit activity and status. As an
alternative, the pins can support a userinstalled configuration jumper. In this
configuration, IC1s interrupt output
should connect to the host microcontrollers interrupt input so that installation or removal of the jumper can signal the microcontroller to recognize or
ignore the CompactFlash card. Selecting a CompactFlash-card connector
with hot-plugging contacts allows insertion or removal of a card without
switching off power or disturbing an
ongoing data-logging process.
With software modifications, a host
microcontroller can switch between
two CompactFlash cards. Adding a second MAX7311 supports an additional
CompactFlash card and expands the
circuits storage capacity, and the hotplug feature supports removal of a fully
loaded card for data processing on
another system. Microcontrollers that
include hardware-based I2C interfaces
can use two relatively simple I2C software functions to read and write a CompactFlash card through IC1s I/O ports.
The first function is: Write_MAX
3711(slv,prt,dat). This procedure
Register
Data
Error/features
Sector count
Sector number
Address
0x04
0x05
0x06
0x07
Register
Cylinder low
Cylinder high
Select card/head
Status/command
designideas
temperature-controlled oil bath. The
circuits relative error with respect to
the standard thermometer varies only
4C over 40 to 125C. The MAX6610s data sheet includes additional
information on temperature-measurement error and output range.
To apply the circuit as a temperature
probe, solder a 5-mm length of 1-mmdiameter, uninsulated copper wire
directly to a small copper pad at IC1s
GND pin. The wire should make thermal and electrical contact with the
GND pin and thus provide a path of
low thermal resistance from the sensor
IC to the point of probing. Glue the
wire to the pc board to add mechanical support. Heat loss affects the temperature measurements accuracy, and,
to minimize heat loss from the probe
through the pc board, use long and thin
copper traces to make electrical connections from IC1 to its supporting
components.
Applying the MAX6610 as a pcboard temperature sensor differs somewhat from using it as a temperature
probe. For board-temperature sensing,
IC1 must reside in intimate thermal
contact with the board. Connect large
copper areas immediately to the ICs
pins and use short, thick tracesor
none at allbetween the copper areas
and the ICs pins. The copper areas
guarantee accurate temperature readings by providing thermal contact with
the board and good heat transfer between the board and the sensor.EDN
REFERENCE
1 Precision, Low-Power, 6-pin
SOT23 Temperature Sensors and
1 mV/F
68.1
19.6
3.32
S1
VCC
C1
0.1 F
TEMP
SHDN
BT1
+
CR2016
3V LITHIUM-
COIN CELL
IC1
MAX6610
R1
R3
TO DMM INPUTS
REF
GND
R2
10
1500
1250
1000
750
OUTPUT
VOLTAGE
(mV)
500
250
0
250
500
750
50 25 0
25 50 75 100 125 150
NOTE:
TEMPERATURE (C)
SCALE FACTOR=10 mV/C.
4
2
TEMPERATURE
ERROR VERSUS 0
STANDARD
2
THERMOMETER
4
(C)
6
8
10
50 25
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
R1
50
SIGNAL
SOURCE
VIN
L1
560.32 H
INPUT
TO
FILTER
L3
81.741 H
L5
722.53 H
L7
420.89 H
L2
73.7801 H
L4
365.31 H
L6
264.74 H
C1
270.08 nF
C2
192.24 nF
C3
198.41 nF
OUTPUT
R2
50
Selecting a topology for a passive filter that contains the maximum number of inductors and references all
capacitors to ground yields a transformed filter that consists of many resistors, several supercapacitors, and only
two capacitors. You cannot obtain a
supercapacitor as an off-the-shelf component, but its electrical analog comprises a few operational amplifiers and
resistors (Figure 2). The following
equation defines the gyrators input
impedance, ZIN, with respect to
ground:
designideas
Selecting Z1Z31/Cs in the equation, setting capacitor value C at 2.2 nF,
replacing impedances Z2 and Z5 with
R11 k, and setting Z4R4 yield a
solution for Di:
GAIN
ADJUSTMENT
R1
100k
INPUT
R28
100k
R27
10k
C1
2.2 nF
IC1A
LF347
R3
5.1k
R10
6.2k
R11
1.2k
R5
560
R4
110
R7
5.6k
OUTPUT
IC2D
LF347
C8
2.2 nF
R13
11k
C5
2.2 nF
Z3
Z4
R14
3.9k
Z2
Z5
IC2B
LF347
_
IC2A
LF347
+
C7
2.2 nF
IC2C
LF347
+
R22
910
R16
11k
R9
11k
R20
11k
R21
3.6k
R15
470
R8
510
C6
2.2 nF
IC1C
LF347
R26
270k
Z1
IC1D
LF347
R6
11k
C3
2.2 nF
R25
150
C4
2.2 nF
R24
3.6k
R19
2.4k
R12
3.3k
ZIN
C2
2.2 nF
IC1B
LF347
R18
360
R2
270k
R17
6.2k
GYRATOR
R23
11k
Figure 2 The finished circuit design eliminates inductors and substitutes gyrators as supercapacitors. Using medium-tolerance components and quad op amps to reduce component count minimizes circuit cost.
designideas
RN3
10k
TO THE
JUNCTION OF
R4 AND F1
RN1
5k
1
RN3
10k
15V
RN1
1k
3
2 7
V
IC3
OP1177
3 V
C1
10 pF
DEVICEUNDERTEST
INPUT
OUTPUT
6
J1
4
R1
100M
VCC
R2
100
D1A
D1B
D1
15V
VCC
NC
2 7
V 1
IC2
6
AD795
3 V 5
NC
4
NC
2 7
V 1
IC1
6
AD795
3 V 5
NC
4
RN2
10k
RN2
10k
2
VEE
VEE
NOTE: RN1, RN2, AND RN3 ARE VISHAY MPM-SERIES RESISTOR NETWORKS.
Figure 1 This IVC uses a feedback-ammeter topology, which subtracts an unknown current from a feedback current and
delivers an output voltage proportional to the unknown current.
R3
47k
TO D1A, RN1,
AND RN3
(FIGURE 1)
TO F1
(FIGURE 3)
30V
VFORCE
INPUT
8
FLAG
3
7
V
R4
15
IC4
OPA551
V
5
C2
220 pF
1
30V
2
3
RN4
10k
RN4
5k
designideas
fier IC3s CMRR (common-mode-rejection ratio) introduces. Differential
amplifier IC3, an OP1177, subtracts the
forcing voltage from the IVCs output
and provides a ground-referenced output signal.
A back-to-back pair of BAV199
diodes, D1A and D1B, protects IC1 from
voltage overloads by shunting high currents to the forcing-voltage amplifier,
IC4, and its protective fuse, F1. When
the forcing voltage rapidly slews from
one value to another, the diodes greatly improve the IVCs settling time by
providing high-drive currents during
high-slew-rate intervals.
Operating from 30V supply rails, a
lightly compensated, gain-of-three,
high-voltage OPA551 amplifier, IC4,
derives forcing voltages as high as
22V from ordinary ATE (automatictest-equipment) voltages of 7V (Figure 2). In case of a catastrophically
shorted device under test, fuse F1 prevents further damage by limiting fault
current from IC4, which can deliver as
much as 380 mA of short-circuit current.
The output of IC4 also drives a regulator circuit that produces 5V floating-power-supply voltages referenced
to the test-input forcing voltage (Figure 3). This part of the circuit dissipates less than 100 mW of power with
30V supplies. Vishay/Siliconix (www.
vishay.com) SST505 JFET constantcurrent regulator diodes Q1 and Q4 provide 1-mA constant-current sources,
which transistors Q2 and Q3 buffer.
Each current-regulator diode carries a
45V maximum rating, and the buffers
provide overvoltage protection by limiting the voltages applied across the
diodes to approximately 3V.
Applying 1 mA to resistors R5 and R6
develops the 5V rail voltages. Diodes
D2 and D3 compensate for the baseemitter-voltage drops across emitter followers Q6B and Q7B. Transistors Q6A and
Q7A provide overvoltage protection
when a defective device under test
short-circuits its power supply to the
IVCs input node. Transistors Q5 and
30V
R11
100
Q1
SST505
Q5
BC856
R7
6.04k
Q2
R8
53.6k
BC856
Q6B
D2
BAS16
C3
1000 pF
FROM IC4
PIN 6
R5
4.99k
F1
140 mA
VCC
3
BCB46BDW1T1 Q6A
R12
12.4k
R13
750
4
4
BCB56BDW1T1
R6
4.99k
C4
1000 pF
BC846BDW
Q7A
D3
BAS16
R14
750
C5
0.1
F
C6
0.01
F
D4
MMBD301
R15
12.4k
VEE
Q7B
BCB856BDW
R9
53.6k
Q3
R10
6.34k
BC846
Q8
Q4
BC846
SST505
R16
100
30V
1
0.8
0.6
CURRENT MEASUREMENT
0.4
MEASURED 0.2
CURRENT 0
(pA)
0.2
LINEARITY
0.4
0.6
0.8
1
20
15
10
5
0
5
FORCE VOLTAGE (V)
10
15
20
designideas
Q8 limit the floating supplies output
currents by shunting the current
diodes. Diode D4 protects against polarity inversion of the floating-supply rails
during unusual start-up conditions.
In operation, the circuit delivers an
output of 0.999V/nA over a 4-nA
full-scale input range at an effective
transresistance of 1 G. The circuits
output offset corresponds to approximately 143 fA. Beyond the forced-voltage span of 22V, the floating-supplyrail voltages begin to saturate, the
input-CMRR limitations of IC3
become evident, and the IVCs output
voltage becomes nonlinear. Figure 4
shows the circuits current-measurement error of 31 fA/V from the circuits unloaded output over a 20V
forcing-voltage span. The differential
amplifier comprising IC3, RN2, and RN3
contributes most of the circuits gain,
and IC1s low input-bias current contributes to the low offset error. Output
designideas
READERS SOLVE DESIGN PROBLEMS
D Is Inside
192 Composite-VGA encoder/
decoder eases display upgrade
D1A
R1
IC1
VOUT
D1B
3V
Figure 1 In a conventional ESD-suppression circuit, diodes clamp an amplifiers input voltage to its power-supply rails but introduce unwanted leakage
currents.
J1
INPUT
VIN
3V
3V
D1
MMBD1503A
R1
1k
D1A
D1B
3V
C2
0.1 F
C3
0.1 F
R2
1k
IC1
AD8603
_
VOUT
LEAKAGE GUARD
3V
D2
MMBD1503A
3V
R3
270
D2A
D2B
3V
VIN
C1
1 nF
3V
designideas
power-supply rail. Capacitor C1 acts as
an intermediate charge reservoir that
slows the ESD spikes rate of rise and
protects IC1s output stage from latching until diode D2A or D2B begins diversion of the ESD transient into the positive or the negative supply rail. In
effect, C1 compensates for D1s parasitic
capacitance. Resistor R3 allows IC1 to
drive the capacitive load that C1 presents without going into oscillation.
During an ESD event, both D1 and
D2 can conduct, but the voltage at VIN
exceeds the power-supply-rail voltage
by only two forward-biased diode voltage drops. Resistors R1 and R2 limit the
amplifier inputs currents below the
manufacturers recommended 5-mA
maximum rating.
When packaging the circuit, pay special attention to the pc boards layout.
Imperfections in the boards dielectric
Figure 3 For best performance, place copper traces around the amplifiers
high-impedance points to intercept leakage currents.
guard rings around the circuits highimpedance nodes diverts leakage currents (Figure 3).EDN
Composite-VGA encoder/decoder
eases display upgrade
However, the VGA standard uses separate horizontal and vertical positivegoing synchronization signals. Adding an
extra coaxial cable to the original cables
to carry the separate synchronization signals presented a difficult and expensive
proposition. An obvious solution would
be to combine the separate synchronization signals into a composite format.
150 feet away. To upgrade it, the replacement VGA video cards could directly
drive the 75 loads that the VGA monitors internal terminations presented.
12V
0.1 F
VERTICALSYNCHRONIZATION
INPUT
HORIZONTALSYNCHRONIZATION
INPUT
D1
D2
D3
1N4148 1N4148 1N4148
D4
1N4148
J1
R6
1k
HORIZONTALSYNCHRONIZATION
OUTPUT
Q2
C2
0.01 F
J2
COAXIAL
CABLE
R5
4.7k
R4
4.7k
SIMPLE VGA-COMPOSITE
SYNCHRONOUS ENCODER/DECODER
2N3904
Q1
R1
75
2N3904
R3
1k
R2
2.2k
12V
SYNC
OUT
R7
4.7k
SYNC
IN
R8
1k
Q4
VERTICALSYNCHRONIZATION
OUTPUT
2N3904
Q3
C1
0.01 F
2N3904
Figure 1 The synchronization-pulse combiner and recovery circuits comprise readily available and inexpensive components.
designideas
The combiner circuit in Figure 1 offers
simplicity, low cost, and rapid assembly
from readily available spare parts.
In operation, two 1N4148 diodes, D1
and D2, attenuate the VGA signals 5V
logic-level vertical-synchronization
pulses by 1.4V, and diodes D3 and D4
form a diode-logical-OR gate to combine the vertical- and horizontal-synchronization pulses. The resultant output signal comprises an approximately 4.3V horizontal-synchronization
signal superimposed on a 2.9V verticalsynchronization signal.
At the receiving end, a capacitively
12V
R1
5.5k
8
3
D1
1N4148
R2
2.2M
C1
100 nF
IC1A
2 _AD822
R4
10k
D2
1N4148
IC1B
6 _AD822
R3
1k
TRIGGER IN
+ C
2
R5
2.2M
68 F
R6
10k
R7
1k
Q1
6
7
IN
OUT
OUT
LOCKDIS
IC2
TC4432
1
VDD
VDD 8
4
GND
5
GND
IRL3705N
TO SOLENOIDS
2
NC
24V
designideas
capacitor) circuit. During solenoid
activation, R2 provides a charging path
for C2, and diode D1 prevents C2 from
discharging through the solenoids.
When the solenoids are off, the discharge path comprises R2 plus R5, which
provides a longer time constant. The difference between the two time constants
determines the solenoids activation and
recovery periods. A Schmitt trigger designed around one-half of IC1, an Analog Devices (www.analog.com) AD822
dual operational amplifier, senses the
voltage across C2 and defines the solenoids cutoff- and turn-on-timing intervals. An intermediate buffer stage,
IC1B, drives a Microchip (www.microchip.com) TC4432 MOSFET driver,
C2
DISCHARGING 68 F
Figure 2 A resistance-capacitance
circuit determines on- and off-time
intervals.
R1
100k
IC1
REGULATOR
IN
+ C
1
TO IC1A,
PIN 2
CHARGING
R5
2.2M
2.2M
FROM
SOLENOIDS
R2
D1
1N4148
VCC
OUT
GND
C2
10 F
10 F
VCC
POWER HOLD
D1
1N914
S1
SPST
Q2
2N3904
R2
10k
R4
47k
R3
47k
SWITCH
D2
1N914
C3
10 nF
P1.1
IC2
P1.2
GND
Figure 1 One switch can provide power control and user inputs to a microcontroller-based system.
designideas
and D2 with a suitable common-cathode dual-diode array, such as the
BAV70. Omit resistor R3 if IC2 includes built-in pullup resistors, as do
Electronic
circuit replaces
mechanical pushpush switch
Donald Schelle, Maxim Integrated
Products Inc, Sunnyvale, CA
Mechanical push-pushbutton
switches (also known as alternate-action or push-on/push-off switches) can be bulky and expensive. As an
alternative, an electronic version uses a
cheaper, NO (normally open), momentary-on switch (Figure 1). A supervisory microprocessor, IC1, serves as a combination switch debouncer and intelligent controller. Applying power holds
IC1s LBO output (Pin 4) low, which in
turn resets flip-flop IC2s output to a
logic-low state (off) (Figure 2). Pressing
the NO momentary-contact switch, S1,
evokes a pulse from the RESET output
(IC1, Pin 5), which triggers IC2s CK
input (Pin 1) and toggles IC2s output to
a logic-high state (on). Pressing the
switch a second time triggers another
RESET pulse that toggles flip-flop IC2s
output to a logic-low state (off).
You can add an optional watchdog
timer, IC3, to reset IC2s output to the
logic-low state after a user-selectable
interval as long as 60 sec. You can select
shorter reset times using IC3s programming pins: SET0, SET1, and
SET2. The entire circuit costs about $2
(1000) and occupies a pc-board area
thats no larger than its mechanical
counterpart.EDN
MORE AT EDN.COM
+ For more Design Ideas, visit
www.edn.com/designideas.
REFERENCE
1
VCC
3.3V
VCC
3.3V
VCC
3.3V
C2
0.1 F
VCC
3.3V
R2
470k
7
C4
0.1 F
R1
470k
C1
0.1 F
VDD
VCC
7
PR
LBO
HTHIN
OUTPUT
IC2
NC7SV74
LTHIN
RESET
MR
GND
S1
CLR
IC1
MAX6847
8
VCC
CK
D
GND
4
OPTIONAL
VCC
3.3V
C3
0.1 F
8
VCC
NC
SET2
IC3
MAX6369
7
SET1
SET0
VCC
3.3V
6
5
4
WDI 1
WDO
GND
2
GND
SWITCH
BOUNCE
SWITCH
BOUNCE
SWITCH
BOUNCE
SWITCH
BOUNCE
S1
GND
225 mSEC
OUTPUT
GND
225
mSEC
OUTPUT IS ZERO
AT START-UP.
225
mSEC
60
SEC
225
mSEC
TIME
designideas
Edited By brad thompson
and Fran Granville
VCC12V
AMPLIFIER
BLOCK
RG
10k
RC1
33k
VCC12V
Q4
2N3906
VOUT
IC1
TL081
VIN
Q1
2N2222
RE1
100
RE2
100
VOUT
Q2
2N2222
VEE12V
RE3
100k
IEE
VEE12V
R3
10k
R2
10k
R1
10k
C1
1 nF
RC2
33k
Q3
2N3906
D Is Inside
C2
1 nF
C3
1 nF
FREQUENCY-DETERMINATION NETWORK
6
6
=
39 kHz.
2RC 2 10 k 1 nF
designideas
to a single-ended current, which operational amplifier
IC1 converts to an output voltage. In the prototype circuit, calibration trimmer RE3 has a value of approximately
33 kV. Figure 3 shows the oscillators output voltage for
the component values in Figure 1, and Figure 4 shows
the sinusoidal outputs spectral purity.
The nonlinear amplifiers wave-shaping action occurs
independently of frequency, and this circuit offers convenience for use with variable-frequency oscillators. Note
that IC1s gain-bandwidth product limits the circuits performance. To use the limiter portion of the circuit with a
noninverting amplifier, such as a Wien-bridge oscillator,
apply the signal input voltage to Q2s base, and ground
Q1s base.EDN
Figure 3 For the component values in Figure 1, the oscillators output voltage reaches full amplitude in approximately
400 msec, or 15 cycles after start-up.
VHIGH
IC
R1
MAX
VOUT
CURRENT
NC
IC
Q1
BIAS POINT
2
IC
1
VCE(SAT)
VCE
VHI
VCE
MODULATED LIGHT
PRODUCES
AC-OUTPUT SIGNAL, VOUT
Figure 1 Varying levels of ambient-light flux affect the bias point of a basic
phototransistor circuit. Higher levels force the bias point closer to saturation
and compress the desired signal, VOUT.
EDN061012DI3851FIG1
AMBIENTLIGHT
FLUX
()
MIKE
designideas
around VCE. Its output,
R4
R3
R7
R8
VOUT, faithfully repro18k
47k
10k
10k
VCC
duces ampltude fluctuaVCC
VCC
tions in the modulated
VCC
optical signal. Applying
R1
_
_
extraneous steady-state
1k
R2
IC1
IC2
VOUTPUT
470k
TL082
background illuminaTL082
+
+
tion shifts the circuits
operating point to bias
C1 +
R5
VDD
Q1
VDD
500 F
point f 3, and the output
1k
BPX43
voltage compresses and
R6
distorts.
1k
Unlike photodiodes
and photovoltaic cells
Figure 2 A feedback circuit consisting of a single-pole lowpass active filter and a Howland
that have only two
source diverts current from the phototransistors base to avoid saturation at excessive backleads, a phototransistors
ground-light levels.
base connection allows a
feedback circuit to control the devices quency below the signal frequency to R5 sets the current sources transconedn061012di38512 DIANE
bias point. Diverting current from the sample Q1s collector voltage. Apply- ductance: GM51/R5. Altering these
base terminal reduces collector cur- ing a reference voltageVCC, in this resistors affects the amount of current
rent. In Figure 2, phototransistor Q1 exampleto R3 sets the filter circuits drained from the phototransistors
detects an optical signal plus back- dc operating point midway between base and the circuits operating point.
ground light that illuminates its base the phototransistors cutoff and satura- The phototransistor has much lower
region. A lowpass active filter samples tion voltages. The lowpass filters out- capacitance than the filter, ensuring
the collector voltage generated by put drives a Howland current source to that the circuit in Figure 2 cannot
the background light, and a Howland produce a current proportional to the oscillate. However, replacing the firstcurrent source alters the circuits bias filters output. As background illumi- order lowpass filter with a secondpoint by draining current from the nation increases, Q1s collector voltage order lowpass filter requires careful
phototransistors reverse-biased col- decreases. The current sources output selection of the capacitors values to
lector-base junction.
subtracts from Q1s base current, which avoid oscillation.
In general, extraneous background in turn raises Q1s collector voltage to
Illuminating the phototransistor
illumination fluctuates more slowly avoid saturation.
with a 100W incandescent light bulb
than the desired signal. For simplicity,
The ratio of R4 to R3 establishes the provides high-intensity-light backthis design uses a first-order lowpass active lowpass filters gain according ground lighting plus a rapidly changfilter, C1 and R2, with a cutoff fre- to the equation AV511(R4/R3), and ing signal due to the applied ac-line
Figure 3 A 100W light bulb at a 40-cm distance illuminates a collector-emitter voltage of a phototransistor with
a feedback circuit (a) and with no feedback (b). Both bias
points remain in the linear region.
designideas
voltage. Figure 3 shows Q1s collector-to-emitter voltage with the light
bulb 40 cm from the phototransistor
with the feedback circuit active (Figure 3a) and for the circuit with the
phototransistors base floating (Figure
3b). The responses appear similar because the phototransistor doesnt saturate at the applied light intensity.
Three-phase sinusoidal-waveform
generator uses PLD
5V
748 Hz
NC
NC
Using the circuit in this Design Idea, you can develop and
implement a lightweight, noiseless,
inexpensive, three-phase, 60-Hz sinusoidal-waveform voltage generator.
Q3
1
2
3
4
CLK
V
OPOUT
IN
IC2
MAX294
OPIN
V+
GND
OUT
NC
NC
NC
NC
NC
NC
NC
NC
1
2
VCC 24
23
22
21
20
IC1
Q5 19
22V10
Q4 18
CLK
7
8
Q3 17
Q 16
10
Q1 15
Q 14
11
12 GND
13
NC
NC
NC
NC
Q5
Q4
Q3
NC
NC
NC
NC
5V
Q4
1
2
3
4
CLK
V
OPOUT
IN
IC3
MAX294
OPIN
V+
GND
OUT
CLK
8
1.5k
1.5k
6
5
100 nF
B PHASE
Q0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Q1
0 0 1 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 0
Q2
1 1 1 0
0 0 0 0 1 1 1 0 0 0 edn061012di39371
1 1 1 0 0 0 DIANE
Q3
Q4
Q5
5V
Q5
1
2
3
4
CLK
V
OPOUT
OPIN
IN
IC4
MAX294
V+
GND
OUT
A PHASE
8
1.5k
B PHASE
5
100 nF
6 kHz
1.5k
C PHASE
C PHASE
60
120 180
240 300
PHASE ()
DIANE
edn061012di3937fig2
mike
designideas
Q3 bit to lead the Q4 bit by 1208 and
set the Q5 bit to lag behind the Q3 bit
by 2408 (Figure 1). Setting IC1s clock
frequency to 748 Hz produces 60-Hz
outputs at Q3, Q4, and Q5.
IC1s three square-wave output voltagesQ3, Q4, and Q5drive IC2, IC3,
and IC4, three Maxim (www.maximic.com) MAX294 eighth-order, lowpass, switched-capacitor filters to produce three 2V sinusoidal waveforms
(Figure 2). When you connect IC5, a
common 555 timer as an astable oscillator, it produces a 6-kHz, TTL-level
source that clocks all three filters at
100 times the desired 60-Hz output frequency. A 100-nF dc-blocking capaci-
Reset_Q0=Q0
Set_Q1=Q13Q0
Reset_Q1=Q23Q13Q0+Q23Q13Q0
Set_Q2=Q23Q13Q0
Reset_Q2=Q23Q13Q0
Set_Q3=Q33Q23Q13Q0
Reset_Q3=Q33Q23Q13Q0
Set_Q4=Q43Q23Q13Q0
Reset_Q4=Q43Q23Q13Q0
Set_Q5=Q53Q23Q13Q0
Reset_Q5=Q53Q23Q13Q0
2
6 kHz
5V
3
4
5V
12k
8
IC5
555
NC
10 nF
edn061012di39373
6.2k
DIANE
designideas
Edited By brad thompson
and Fran Granville
Connecting an LVDT
(lin-EDN061026DI3924
output signals amplitude
and phase
STEVE
FIGURE1
ear-variable-differential trans- into a form compatible with a microformer) to a microcontroller can prove controllers internal ADC usually
challenging because an LVDT requires requires additional external circuitry.
ac-input excitation and measurement
In contrast with conventional microof ac outputs to determine its mov- controllers, Cypress Semiconducable cores position (Reference 1). tor Corps (www.cypress.com) PSoC
Most microcontrollers lack dedicated microcontrollers include user-configuac-signal-generation and -processing rable logic and analog blocks that simcapabilities and thus require external plify generation and measurement of ac
circuitry to generate harmonic-free, signals. PSoC devices have the unusual
amplitude- and frequency-stable sine- feature of being able to generate analog
wave signals. Conversion of an LVDTs signals without demanding continuous
C3
1 F
C2
0.1 F
J2
1
2
3
C1
0.01 F
POWER
CONNECTOR
ANALOG-REFERENCE GROUND
SINE-WAVE DRIVE
DC ANALOG OUTPUT
MEASUREMENT SIGNAL
TRANS TEK#
0218-0000
4-IN. LVDT
YELLOW
REF_CLOCK_TP
19
PRIMARY
WHITE
VCC
CORE
SECONDARY B
SECONDARY A
BLACK ORANGE
BLUE RED
XRES
13
P1(1)/XI/SCLK
28
VDD
15
P1(0)/XO/DAT
SMP
P0(7)
P0(6)
P0(5)
P0(4)
10
P0(3)
P1(7)
IC1
18
P0(2)
P1(6)
CY8C27443- P0(1)
11
P1(5)
24PXI
17
P0(0)
P1(4)
12
P1(3)
16
P2(7)
P1(2)
P2(5)
14
VSS
P2(3)
23 P2(6)/VREF
P2(2)
P2(0)
22 P2(4)/AGND
P2(1)
9
1
27
2
26
3
25
4
24
5
6
7
21
20
8
VCC
LCD-MODULE
CONNECTOR
LUMEX
LCM-S01602DSR
INDICATE NO CONNECTION.
Figure 1 A single PSoC can excite an LVDT, digitize the position of its core, and present the data to an external LCD.
designideas
MODULATOR
VOLTAGE
REFERENCE
PROGRAMMABLEGAIN AMPLIFIER
SINE WAVE
SWITCHED-CAPACITOR
BANDPASS
FILTER
CARRIER-FREQUENCY
SQUARE-WAVE
GENERATOR
OUTPUT
PIN
24-MHz
SYSTEM
CLOCK
SAMPLE-CLOCK
GENERATOR
MODULATOR
INPUT
PIN
SAMPLE-CLOCK
GENERATOR
SWITCHED-CAPACITOR
LOWPASS
FILTER
SWITCHEDCAPACITOR
ADC
OUTPUT
PIN
DC
designideas
Figure 3 You can use the unlabeled circuit blocks for expansion.
designideas
Single microcontroller pin senses
ambient light, controls illumination
Loren Passmore, Berkeley, CA
VCC
C1
100 nF
R1
330
1
P10
D1
GREEN
LED
2
3
4
5
6
7
VCC
GND
P1.0
P1.1
P1.2
XIN
IC1
MSP430F2013
XOUT
TEST
P1.3
RST
P1.4
P1.7
P1.5
P1.6
R2
47k
14
13
12
11
10
SBWTDIO
9
8
INDICATE NO CONNECTION.
Figure 1 An LED, a microprocessor, two resistors, and one capacitor constitute the entire circuit.
edn061026di39391
DIANE
designideas
Hartley oscillator requires
no coupled inductors
Jim McLucas, Longmont, CO
and
L2
815 nH
C
67 pF
k=0.250
LM=92.5 nH
LB
907.5 nH
C
67 pF
LA
92.5 nH
LC
260.5 nH
L1
168 nH
(a)
(b)
LB
907.5 nH
C
67 pF
CA
845 pF
LC
260.5 nH
(c)
Figure 1 A traditional Hartley oscillators resonant circuit consists of a tapped inductor and resonating capacitor (a).
Allowing for mutual coupling between windings produces an equivalent circuit containing a negative inductance (b).
Replacing the negative inductance with a capacitor yields an easily modeled equivalent circuit (c).
edn060608di38541
DIANE
designideas
L1
8.3 H
9.5V
2%
C1
0.01 F
NOTES:
L1, L2: SIX TURNS AWG #22 WIRE ON A FAIR-RITE 2643002402 CORE.
L3: FIVE TURNS AWG #26 WIRE ON A CWS BYTEMARK FT-23-61 CORE.
LB: 11 TURNS AWG #22 WIRE AIR CORE, 0.450-IN. AVERAGE DIAMETER, LENGTH=0.450 IN.
LC: SEVEN TURNS AWG #22 WIRE AIR CORE, 0.300-IN. AVERAGE DIAMETER, LENGTH=0.275 IN.
AVERAGE DIAMETER IS THE DIAMETER OF THE CORE PLUS ONE WIRE DIAMETER.
D1
1N4370A
C2
0.01 F
D
R1
10k
G2
C4
27 pF
OUTPUTLEVEL
ADJUSTMENT
R15
5k
R16
3.01k
C5
33 pF
LB
0.9075
H
C6
10 pF
LC
0.2605
H
CA
845 pF
C3
560 pF
C18
4.7 F
C19
0.22 F
C10
0.01 F
R4
4.3k
Q1
S BF998
C7
18 pF
R5
47k
C12
0.01 F
Q2
BF998
D
G2
G1
S
R2
C8
39 pF 100k
CONTROL VOLTAGE
R17
73.2k
G1
R6
10k
C9
0.01 F
R3
39
D2
SD101C
D3
SD101C
R18
43.2k
C20
220 pF
L2
8.3 H
C13
0.01 F
R8
22
R7
27k
C11
220 pF
C21
220 pF
R9
220
R11
13k
C15
0.01 F
R12
22
C16
240 pF
OUTPUT
L3
620 nH
C17
200 pF
Q3
2N3904
LOAD
R19
50
C14
560 pF
R13
10k
R14
220
R10
220
Figure 2 This buffered-output, 18-MHz oscillator features a resonant circuit that doesnt rely on mutual coupling for
operation.
designideas
Edited By brad thompson
and Fran Granville
D Is Inside
LED
MICROCONTROLLER
VCC
PIN 2
INPUT
PIN 3
DIGITAL VOLTMETER
RED LED
AS SENSOR
RED LED
AS EMITTER
edn061109d839801
DIANE
designideas
VCC
3 TO 5.5V
VCC
C1
10 F
16V
PB3
IC1 PB1
ATTINY15
4
GND
PB0
SQUARE-WAVE
OUTPUT
(FOUT)
3
R1
100
D1
5
edn061109di39803
DIANE
80
IC1 PIN 3
OUTPUT
FREQUENCY
(Hz)
60
40
20
0
0.5
1.5
2.5
first applying forward bias to the LED fairly linear (Reference 2). To test
for a fixed interval and thenEDN061109DI3980FIG4
applying theMIKE
circuit, couple the light output
reverse bias to the LED by changing of a second and identical LED to the
the bit sequences you apply to PB0 and sensor LED, D1, in Figure 3. Ensure
PB1. Next, the microcontroller recon- that external light doesnt strike the
figures PB0 as an input pin. An inter- sensor LED by enclosing the LEDs in a
nal timing loop measures the interval, sealed tube covered with opaque black
T, for the voltage you apply to PB0 to tape. Varying the illuminating LEDs
decrease from logic one to logic zero.
forward current from 0.33 to 2.8 mA
Reconfiguring pins PB0 and PB1 to produces a relatively linear sensorapply forward bias to the LED com- flash-frequency plot (Figure 4).
pletes the cycle. Time interval T varies
The efficiency of an LED as a sensor
inversely with the amount of ambient depends upon its reverse-biased interlight incident on the LED. For lower nal-current source and capacitance.
light, the LED flashes at a lower fre- To estimate the reverse photocurrent,
quency, and, as the incident-light inten- connect a 1-MV resistor in parallel
sity increases, the LED flashes more fre- with a sensor LED and measure the
quently to provide a visual indication of voltage across the resistor while applythe incident-light intensity.
ing a constant level of illumination
For low values of forward current, from an external source. Replace the
an LEDs light-output intensity is 1-MV resistor with 500- and 100-kV
designideas
AC line powers microcontrollerbased fan-speed regulator
Abel Raynus, Armatron International Inc, Malden, MA
A microcontroller requires
stevedc
operating power in the 2 to
5.5V range, an amount that a battery
or a secondary power source can easily
supply. However, in certain situations,
a microcontroller-based product must
operate directly from a 120 or 220V-ac
power outlet without a step-down transformer or a heat-producing, voltagedecreasing resistor. As an alternative,
120V
AC
C1
2 F
250V
R1
51
a polyester/polypropylene FIGURE
film capaciEDN061026DI3912
1
DC LOAD
R2
160
5W
D1
KB152
DC LOAD
C2
100 F
R4
10k
120V
AC RETURN
FIGURE 2
3
IC1
2
MC68HC908QT2 7
D2
1N4733A
COOLING
FAN
TH
steve EDN061026DI3912
1
+
_
Q1
IRF520
R3
100k
LED
Figure 1 C1 provides capacitive reactance, which limits ac-input current without dissipating excessive heat in this dc fanspeed controller.
AC LOAD
120V
AC
R1
51
C1
3 F
250V
D2
1N4003
+
D1
1N4003
120V
AC RETURN
R2
330
5W
C2
100 F
AC LOAD
D3
1N4733A
R4
20k
1
2
PR1
VT90N1
R3
470
IC1
MC68HC908QT2 7
8
2
3
Q1
1 LZ004F31
LED
D4
Figure 2 A two-diode rectifier and lamp-control bidirectional thyristor share a common return path to the ac line.
designideas
fans motor. Figure 2 illustrates a
light-intensity regulator based on an
inexpensive two-diode rectifier and
a bidirectional-thyristor-lamp controller that share a common ground.
120V
AC
AC LOAD
C1
R1 2 F
51 250V
D1
KB152
+
_
C2
100 F
AC LOAD
R4
180
R2
160
5W
D3
1N4733A
120V
AC RETURN
R4
20k
2
1
3
IC1
MC68HC908QT2 7
PR1
VT90N1
R3
470
3
6
1
LED
Q1
1 L2004F31
4
IC2
MOC3021M
Figure 3 An optoisolator separates the bidirectional thyristors high-current ac-line return path from the microcontrollers power supply.
designideas
capacitor C1 form a lowpass filter that
reduces high-frequency noise that the
sensor cables pick up. Voltage follower
IC1D buffers the filters output voltage.
Figure 2 (pg 136) shows the results of
an LTSpice simulation featuring three
sinusoidal inputs and the resultant
analog output summed with a small
dc-offset voltage for clarity.
The breadboarded circuit works as
designed. Given its electrically noisy
location near a 300-kHz, 30-kW
switched-mode power converter, it
15V
R2
3.3k
D4
3-mm
RED
LED
15V
IN1
4
IC1A
LM324
D1
1N4004
Q1
2N7000
2 _
11
D5
3-mm
RED
LED
15V
IN2
IC1B
LM324
D2
1N4004
Q2
2N7000
6 _
D6
3-mm
RED
LED
IN3
10
IC1C
LM324
D3
1N4004
Q3
2N7000
9 _
12
R1
22k
15V
R3
2.2k
R4
22k
C1
10 nF
IC1D
LM324
13 _
14
15V
Figure 1 This circuits output voltage tracks and indicates the highest of three input voltages and can drive an external
strip-chart recorder or alarm comparator.
OUT
designideas
Figure 2 Three sine waves of different frequencies provide input voltages (lower traces) that evoke the greatest-of-three
response in the current through R2 (top trace, in which colored horizontal segments match the largest inputs).
designideas
Edited By brad thompson
and Fran Granville
Chopper-stabilized amplifier
cascade yields 160 to 10,240
programmable gain
D Is Inside
76 Current-mode instrumentation
amplifier enhances piezoelectric
accelerometer
78 Low-cost RF sniffer finds
2.4-GHz sources
offers typical offset voltage of 5 mV, offset drift of 20 nV/8C, and equivalent
input-noise voltage of 9 nV=Hz at 0.1
Hz. IC1, a Cirrus Logic (www.cirrus.
com) CS3301 low-voltage, differential-input, differential-output, chopperstabilized programmable-gain amplifier,
serves as an input-amplifier stage and
drives IC2, a higher voltage INA114
instrumentation-amplifier output
stage. The CS3301 provides seven programmable gains of one to 64, and the
INA114 provides a fixed gain of 160.
IN2
INA+
INB+
16
VA
3.3V
2.5V
1
IN1
IC1
CS3301
VD
680
MULTIPLEXER 0
10
R1
1k
680
11
15V
400
GAIN0
TO MICROCONTROLLER 24
OR DIPSWITCH 23
INPUT
SELECT
GAIN1
GAIN2
TO MICROCONTROLLER
OR DIPSWITCH
GAIN
SELECT
C1
0.1 F
400
680
IN1
IN2
INA
INB
MULTIPLEXER 1
R3
316
5 13
2
IC2
INA114
15
10
4 7
11
OUTPUT
15V
R2
1k
680
3
12
18
19
15 13
17
14
VA
2.5V
Figure 1 Combining a programmable-gain, chopper-stabilized amplifier with an instrumentation amplifier delivers high gain
and low noise over a subaudible frequency range.
edn061109di39861
DIANE
designideas
gain, change the value of the INA114s
gain-setting resistor, R3.
External DIP switches and pullup resistors, which connect to the
3.3V supply (not shown), program
the CS3301s gain- and multiplexercontrol pins. A microcontroller that
can drive 3.3V logic can also control
these control inputs. Connecting the
CS3301s outputs and the INA114s
inputs, an RC lowpass filter composed
of R1, R2, IC1s output resistors, and C1
limits noise above 500 Hz.
Figure 2 illustrates the combined
amplifiers measured input-referred
noise performance at a gain of 10,000.
With its 1/f noise corner at 0.08 Hz,
the amplifier cascade achieves an
equivalent input-noise voltage of
about 9 nV=Hz at 0.1 Hz. The noiseversus-frequency plot represents the
results of FFT processing of more than
2 million output samples over an 18-
Figure 2 A three-octave plot displays the cascaded amplifiers low equivalentinput-noise voltage versus frequency.
hour period. For simplicity, the schematic doesnt show power supplies and
bypass capacitors. Due to the circuits
extreme amplification factor, use con-
Current-mode instrumentation
amplifier enhances
piezoelectric accelerometer
Dave Wuchinich, Modal Mechanics, Yonkers, NY
A typical piezoelectric sensor comprises a disk of PZT5A ceramic material with metallized
electrodes on its surfaces. Applying
PIEZOELECTRIC-SENSOREQUIVALENT CIRCUIT
ES/2
VCM
R1
10M
ES/2
ei
VSS
7
IC1
2 INA121
4
3
CS
1 V
SS
R4
10k
6
8
RG
100
eoAei
VSS
2
7
IC2
TL081
3
eO
6
VSS
C1
0.1 F
R2
10M
R5
10k
VSS
2
7
IC3
TL081
3
4
E
6
VSS
Figure 1 Three amplifiers and a handful of passive components suppress stray noise pickup on a piezoelectric accelerometer and its wiring.
edn061123di39941
DIANE
designideas
low frequencies, making the disk and
its wiring susceptible to interference
that surrounding electrical equipment
and power lines produce. Placing the
sensor in a remote location requires
shielded interconnecting cable, but
even shielding is not entirely effective
in removing common-mode signals
because noise pickup can still occur at
the disks conductive surfaces.
One method of extracting the sensors signal employs an instrumentation amplifier, which amplifies only
the potential the sensor produces; the
amplifier rejects common-mode-coupled noise potential that appears on
each of the sensors terminals.
A typical miniature piezoelectricdisk sensor thats 0.125 in. in diameter
and 0.0075 in. thick presents a capacitance of approximately 500 pF. If the
measurement application requires a
dynamic response to force excitation
frequencies of 10 Hz or below, the
sensors output reactance ranges into
the tens of megohms. The circuits
pc-board insulating substrate and
ambient humidity impose a practical
limit of approximately 10 MV on the
amplifiers input resistance.
You must carefully choose insulation
and apply guarding potentials, and you
must use an amplifier with picoampere
input-bias currents. Otherwise, the
sensors capacitance and the amplifi-
2A + 1
E ,
i=
S
(2A + 1)
2R +
jC S
loop
the sum of voltages
around the
instrumentation
and
comprising the
2A + 1
E ,
i
=
inverting amplifiers
output, the
S two
(2A + 1)
2R and
feedback resistors
+ the instrumen
jC S terminals,
tation amplifiers
input
whose potential difference is zero,
yields eO5jvRCES, where eO represents IC1s output and also the negative value of IC2s output.
An operational-amplifier-based
Equation 2
integrator, IC3, delivers the value for
ES at IC3s output, E9 in the following
equation.
RC E
E = S S .
C(R 5)
to 2.4 to 2.5 GHz and limits out-ofband interference. The filter drives
IC1, whose internal circuitry comprises
a cascade of RF detectors and limiters.
The detectors and limiters summed
outputs generate an accurate logarithmic-linear voltage proportional to the
RF input in decibels. A single discrete
transistor, Q1, converts IC1s RSSI
output to a current that drives a lowcurrent-LED signal-strength indicator.
You can connect a digital voltmeter to
IC1s RSSI output to provide a digital
readout of signal strength or rely on
the lighted LED to visually indicate
an RF signal. Two 1.5V alkaline batteries or three nickel-cadmium cells
provide 3V power for the circuit.
The LT5534s frequency range of
50 MHz to 3 GHz covers the VHF,
UHF, 800-MHz-cellular-telephone,
designideas
902- to 928-MHz-ISM, 2-GHz-PCS
(personal-communications-system)/
UMTS (Universal Mobile Telecommunications System), and 2.4-GHzISM bands. For the 2.4- to 2.5-GHz
range, use a Laird Technologies (www.
lairdtech.com) BlackChip antenna or
a Toko dielectric antenna (Part No.
DC2450CT1T). To build a sniffer for
the 915-MHz band, replace the antenna with Part No. ANT-916-JJB-ST
from Antenna Factor (www.antenna
factor.com) and replace the input
filter with a Toko 4DFA-915E-10
ceramic filter that provides 26 MHz of
bandwidth centered on 915 MHz.EDN
R e fe r e nce
1 LT5534 data sheet, Linear Technology, www.linear.com.
VCC
3.6V
FL1 RF
ANTENNA BANDPASS
FILTER
TDFU2A-2450T-10A
EN
D1
MMBT3904
Q1
180
RF DETECTORS
VOUT 1k
RSSI
OUTPUT
1 nF
2, 5
Figure 1 For best results, assemble this 2.5-GHz circuit on a double-sided pcboard layout according to the LT5534s data sheet and application notes.
edn061026di39751
DIANE
24k
IC1
RF DETECTOR LT5534
LED
1 F
VCC
designideas
10V
C2
0.01 F
T1: SEVEN TURNS OF #30 AWG
WIREWOUND TRIFILAR
ON A FAIR-RITE 2643002402 CORE.
SIGNAL
GENERATOR
50
R1
220
D2
SD101C
R9
15
Q4
R6
500
R2
750
INPUT
A
Q3
C1
0.01 F
C5
L1: EIGHT TURNS OF #28 AWG WIRE,
0.01 F WOUND ON AN AMICON FT-23-61 CORE.
2N3904
2N3906
F
E
C3
0.01 F
R4
750
D1
SD101C
T1
R5
22
R7
750
C6
0.01 F
L1
1.6 H
OUTPUT
C8
560 pF
LOAD
R10
50
D3
1N914
C4
0.01 F
R8
22
C7
0.01 F
10V
INPUT-SIGNAL SPECIFICATIONS:
2- TO 3.35-MHz FREQUENCY
0.5 TO 5V P-P INPUT
Figure 1 A full-wave rectifier, buffer, and lowpass filter produce a sine-wave output at twice the frequency of a triangularwave input.
edn061123di39721
E
A
C
D
F
TRIFILAR-WOUND TRANSFORMER
MIKE
designideas
Edited By brad thompson
and Fran Granville
D Is Inside
C2
1000 pF
VDD
L1
FERRITE
14
C1
0.1 F
7
13
C3
1 F
PVDD
VDD
C4
0.1 F
PGND
GND
16
B STEP
OUTL
INL
2
BLUE
3
RED
B
IC1
MAX9715
C8
1 F
L3
FERRITE
OUTR
15 INR
A STEP
C9
1 F
STEPPER
MOTOR
10
YELLOW
OUTR+ 11
WHITE
VDD
NOTES:
L1, L2, AND L3 ARE TDK PART NO.
MPZ1608S101A.
IMPEDANCE IS 100 AT 100 MHz.
DC RESISTANCE IS 50 m,
AND MAXIMUM CURRENT IS 3A.
C5
100 F
BIAS
OUTL+
L2
FERRITE
6
5
SHDN
PVDD
GAIN
NC
PGND
12
C6
0.1 F
C7
100 F
edn061201di38891
DIANE
VDD
8
Step
A_Step
B_Step
designideas
ply input. A suitable controller feeds
digital pulses to IC 1s A_Step and
B_Step inputs, which respectively
drive the motors right and left channels. Internal short-circuit and thermal protection guards the amplifier
against overcurrent and short circuits caused by the stepper motor or
its connecting leads.
Table 1 illustrates the A_Step and
B_Step pulse sequence that rotates a
typical stepper motor in one direction by continuous application of
steps 0 through 4. Step 4 returns the
motors shaft to its starting position
and completes its 3608 rotation. To
reverse the motor, begin at the bottom of the table to reverse the pulse
pattern and work upward. You can
disable both of the amplifiers channels by applying a logic-low signal to
Pin 8, IC1s active-low SHDN input.
Figure 2 illustrates the circuits input
and output waveforms.EDN
Figure 2 Waveforms from the circuit in Figure 1 include the A_Step input (Channel 1), B_Step input (Channel 2), outputs OUTR1 (Channel 3) and OUTR2
(Channel 4), and the signal that arrives at the motors windings (OUTR1 minus
OUTR2, middle trace), which the oscilloscopes math function computes.
TO
PHONE
LINE
D1 TO D4
R1
5.6M
Q2
S
R2
20M
IN4004
C1
1.5F
2.5V
IC1
MAX917
1
2
3
R3
20M
R4
20M
NC
NC
REF
VCC
IN+
OUT
VEE
NC
8
7
Q1
6
5
L1
22 H
G FDN304PZ
FDN339AN
C2
0.1 F
ON
FDN339AN
Q3
CONTROL
INPUTS
R5
324k
OFF
6
SW IC2 VIN
LTC3459
5
GND
VOUT
4
3
FB
SHDN
R8
1M
R6
1M
C3
47 pF
C4
1 F
R7
2.2M
C5
4.7 F
5V
OUTPUT
R9
1M
Figure 1 This power-conversion circuit delivers intermittent bursts of regulated voltage from a supercapacitor charged by a
trickle of current from a telephone line.
edn061201di39971
DIANE
designideas
R2 and R3 halve the voltage across
C1 and apply it to IC1s positive input
voltage at Pin 3 for comparison with
its built-in 1.245V reference. For
voltages across C1 that do not exceed
2.49V, IC1s output at Pin 6 remains
low. When C1s voltage reaches 2.5V,
Pin 3s voltage exceeds the reference
voltage, and IC1s output goes high,
turning on Q1 and Q2.
Several days must elapse before C1
becomes fully charged, given its huge
capacitance and a charging current of
less than 10 mA. The voltage on C1
can never exceed 2.5V because, once
it reaches 2.49V, Q1 and Q2 turn on,
connecting C1 to a switched-modepower-supply circuit. Because the
power-supply current exceeds the
R5
8.06k
C4
1.5 nF
R1
11k
R6
11k
C3
100 pF
2
3
VDD
GND
C5
100 nF
GND
IN
C8
R10
10 F
8.06k
C11
1.5 nF
C12
100 pF
R12
8.06k
C1
470 pF
R3
22k
R4
100
R7
11k
19
18
IC1
VSS 17
MAX9727
+ 16
7
8 SHDN
9 PVDD
10 C1P
14
PVSS 13
C1N 12
PGND 11
C10
1 F
15
C7
100 nF
C6
1 F
C9
1 F
Figure 1 Use this third-order, 30-kHz filter circuit to observe a Class D amplifiers output signal on an oscilloscope.
OUT
GND
20
4 VDD
R11
22.1k
R2
11k
R9
22.1k
IN
R8
8.06k
C2
10 F
designideas
supply voltage. Even if the linear
amplifier drives a BTL (bridge-tied
load), youll still see a recognizable
replica of the input at either end of
the load, albeit at half of the output
signal thats available.
Testing a Class D amplifier poses
more difficulties. The amplifiers
output comprises a PWM (pulsewidth-modulated) signal that swings
between ground and the supply voltage at a frequency thats usually 200
kHz to 2 MHz. However, when you
view this PWM output on an oscilloscope, youll see no resemblance to the
sine-wave input.
You can observe a Class D audio
amplifiers output if you introduce
the filter circuit in Figure 1. Based
on Maxims (www.maxim-ic.com)
MAX-9727 quad-audio-line driver,
IC 1, the circuit combines separate
single-ended filtersone for each
of the BTL outputs phaseswith a
third amplifier that provides a difference signal with additional filtering.
The first stage of each single-endedfilter section contributes the com-
Voltage-to-pulse-width converter
spares microprocessors resources
James Christensen, Kris Design Co, El Cajon, CA
designideas
uploading the compiled code. The
AT89LP4052 microprocessor typically executes one instruction per
clock cycle, and a 10-msec timer
routine can perform the required
STEVE EDN061201DI3977
housekeeping functions with plenty
of time left over for other program
tasks, including a future application
that requires a binary-coded analogto-digital output. You can download
VDD
VDD
5V
VDD
4.25V
PROGRAMMING
CONNECTOR
C1
10 F
LSCK
LMISO 3
LRST
10 mV
0
0
VDD
R1
17.4k
1 mSEC
5
7
6
8
J1
NC
LMOSI 9
TIME
C2
2200 pF
R3
6.04k
12
LSS
RV1
25k
R4
499
C3
30 pF
VDD
VDD
LSS
R2
22k
VOUT
IC2 LM334
NC
10
R
V
Y1
12 MHz
12
VCC
P1.5 17
6
P3.2/INT0
15 P1.3
19
P1.7
16 P1.4
2
P3.0
IC1
3
AT89LP4052 P3.1
11 P3.7
14
P1.2
9
13 P1.1/AIN1
P3.5
1
7
RST/VPP
P3.3/INT1
8
P3.4/T0
5
18
XTAL1
P1.6
10
4
XTAL2
GND
P1.0/AIN0
LMOSI
VOUT
TIME
LSCK
LRST
LMISO
C4
30 pF
Figure 1 An analog-voltage-to-pulse-width converter features minimal parts. Subgraphs show timing-network and outputvoltage waveforms. IC1s unlabeled pins are available for user functions.
Large analog systems that present many loads to a voltage-reference source can often demand more
current than a single reference IC can
deliver. However, if the reference IC
includes force and sense terminals, you
can easily add a buffer to the circuits
designideas
emitter voltage drop. If you add the
required minimum power-supply
voltage plus the maximum allowable
base-emitter voltage, the configuration runs out of head room. Using a
PNP stage to drive the emitter drive
stage solves the head-room problem
but inverts the output voltage and
prevents the force/sense loop from
functioning. Adding a second PNP
stage cancels the phase inversion but
destabilizes the force/sense loop by
adding excessive gain.
The modified complementary Darlington, or Sziklai, connection (Reference 1) in Figure 1 solves both problems by providing an emitter followers
unity-voltage gain with no inversion.
The output PNP stage provides plenty
of head room, but the NPN stage does
not. You can easily overcome this
drawback by adding diode D1 to shift
the NPN transistors emitter voltage
downward by a diode drop. Thus,
to a first approximation, the diodes
voltage drop and the transistors baseemitter voltage cancel one another,
leaving plenty of voltage head room.
5V
5V
C1
0.1 F
IN
OUTF
IC1
MAX6033A
OUTS
GND
R1
10k
C2
0.1 F
Q2
Q1
2N2907
2N2222
VOUT =
4.096V
D1
1N4148
CLOAD
RLOAD
R2
2.7k
Transistor Q2, a 2N2907, provides lim- reference-voltage ICs cannot accomited current gain, which in turn
limits modate
edn061201di39311
DIANE a fast-changing load-curthe circuits maximum output current rent step; thus, the circuits transient
to 80 mA. Substituting a higher gain response and its ability to supply fast
transistor can increase the output cur- current spikes depend on the output
rent to any reasonable level.
capacitor, CLOAD. Values of CLOAD as
For stability, the MAX6033 requires high as 10 mF do not affect the cir0.1-mF ceramic bypass capacitors on its cuits stability.EDN
In and OutF pins. Capacitor C2 determines the circuits response speed, but R e f e r e n c e
the buffer circuit exerts no significant 1 Sziklai Pair, Wikipedia, http://
effect on transient response. Most dc- en.wikipedia.org/wiki/Sziklai_pair.
designideas
Edited By brad thompson
and Fran Granville
D Is Inside
few components
VCC
INPUT
VDD
GP2
R5
100
D8
D9
GP3
GP1
D6
VCC
5V
D10
IC1
PIC10F200
D1
1N4148
R3
390k
Q1
BC182C
VREF1
R1
3.3k
D7
R6
100
D5
D4
D2
VSS
GP0
D3
R4
2.2k
R7
100
D11
R2
2.7k
D12
D13
VREF2
Q2
BC213C
NOTE: LEDs ARE PANASONIC SSG LN224 SERIES (RED), LN324 SERIES (GREEN), AND LN424 SERIES (YELLOW).
Figure 1 A PIC microprocessor and a 12-LED bar-graph display form a simple tachometer circuit. (The decoupling capacitors are not shown.)
designideas
START
INITIALIZATION
COUNT INCOMING
PULSES
NO
Figure 2. The bar graph displays 12 LEDs can form a linear array or circular
arc (not shown).
EDN061215DI3993FIG2 MIKE
TIMER0
OVERFLOW?
YES
NEXT LEDS
DRIVE TIME
SLOT
KK1
NO
K200?
YES
K0
ates reliably, but you can add an external protection diode for enhanced
protection against transient-induced
latch-up. Connect the diodes anode
to ground and its cathode to pin GP3
of IC1.
You can configure the bar graph to
indicate engine speed by the number
of LEDs turned on (bar mode) or by
illuminating only one or two LEDs
(dot mode). The color scheme in Figure 2 uses yellow LEDs to indicate
too-low speed, green LEDs for nominal speed, and red LEDs for excessive
speed. Figure 3 shows the indicator
softwares flow chart. The processors
internal clock drives Timer0 to overflow every 512 msec, which represents one time slotthat is, a multiplexing phase. Of eight time slots,
one drives the three upper LEDs,
and a second drives the three lower LEDs. For software simplicity, the
last six time slots drive the middle
designideas
Magnetic-field probe
requires few components
designideas
and polarity detection of a dc magnetic
field (Reference 2).
After assembling the circuit, connect
the probes output to the DMM using
two 4-mm banana plugs. Allow a oneminute warm-up and place the probes
sensor in a magnetically shielded enclosure. (Editors note: You can use salvaged steel, or tin, concentrically fitting food cans to build a magnetically
shielded enclosure. Arrange the cans
so that their unopened ends point in
opposite directions. Drill a small opening in the larger cans unopened end
to accommodate the sensors output
cable.) Press the DMMs RELD function key. The DMMs display will show
the sensors quiescent voltage output of
2.25V as 0.0000V, indicating that the
probe is calibrated for a zero magnetic
field and ready for use.
Remove the probe from the shielded enclosure and measure the magnetic field under observation. To achieve
maximum sensitivity, place the sensors
face perpendicular to the field. If the
fields direction is unknown, rotate the
probe about its longest axis to search
for maximum voltage. To calculate the
magnetic-flux density, divide the out-
Dynamic siphon
steals current
from USB port
ing formula: B5m03H, where B represents magnetic-flux density in teslas, H represents magnetic-field intensity in amperes per meter, and
m054p31027H/m (the permeability
of free space). Given that the tesla represents a relatively large measurement
unit, a 1T field is quite strong.
For greater measurement resolution,
apply the following conversion factors
to use the gauss, a more popular unit:
10,000 gauss51T, 1 gauss579.6 A/m,
1.2560 mT51 kA/m. Applications
for the magnetic-field sensor include
troubleshooting moving-magnet linear-position detectors, fabrication of
dc motors and audio speakers, investigation of low-frequency-magneticfield interference, and designing and
fabricating electromagnetic-interference shields.EDN
R e fe r e nce S
1 A1323 Ratiometric Linear HallEffect Sensor Data Sheet, Allegro
MicroSystems Inc, www.allegromicro.
com/sf/1321.
2 Users Manual, Model 187 & 189,
True RMS Multimeter, Fluke Corp,
www.fluke.com.
300 mA MAXIMUM TO
100 mA TYPICAL
USB CURRENT
HIGH POWER=500 mA MAXIMUM
LOW POWER=100 mA MAXIMUM
ESSENTIAL
CIRCUITRY
USB PORT
CURRENTLIMITING
DEVICE
LIMITS CURRENT
TO 200 mA
Figure 1 In this typical method for drawing power from a USB port, the storage-element current is limited to a fixed value that is less than optimal.
edn061201di39431
ENERGY-STORAGE
ELEMENT (BATTERY,
CAPACITOR)
DIANE
designideas
TO ESSENTIAL
CIRCUITRY
C6
150 F
10V
VUSB
5V FROM USB PORT
+ C5
150 F
10V
4
RS+
C1
0.1 F
1 IN
3
NC
4
NC
12 3
GND
1
C4
1 F
5
RS
IC1
VCC MAX4173- OUT
FEUT
C2
0.1 F
R1
0.1
1%
0 TO 500 mA=
0 TO 2.5V
6
4 _
IC2
MAX6129AEUK25
Q1
5 6 7 8
C3
0.1 F
VUSB
2.5V REFERENCE
TO ENERGYSTORAGE ELEMENT
4 FDS6679
GND
2
OUT 5
R2
1k
IC3
+
5
1
MAX4238AUT
Q2
FDN359AN
GND
2
Figure 2 This circuit continuously monitors the total current drawn from the USB port and dynamically adjusts the storageelement current to avoid exceeding the ports maximum output capability.
edn061201di39432
DIANE
Figure 3 These waveforms taken from Figure 2 show that the sum of the essentialcircuitry current (middle trace) and storage-element current (bottom trace) never
exceeds the 500 mA maximum that the USB port (top trace) specifies.
device in the path of the energy-storage device (Figure 1). Although easy
to implement, this method doesnt use
all of the current available from the
USB port, and the energy-storage device slowly charges or recharges.
The circuit in Figure 2 uses all available USB power by dynamically adjusting the amount of current delivered to the energy-storage device and
thereby siphoning a relatively constant
and maximum current from the USB
port. IC1, a Maxim (www.maxim-ic)
MAX4173FEUT; IC2, a Maxim MAX6123AEUK25; and the load-switch
circuit comprising Q1, Q2, R2, and C4
form a control loop that limits the current flowing through Q1. The circuit
maximizes current flowing to the energy-storage element (Figure 3) by
ensuring that the sum of battery and
essential-circuitry currents never exceeds the maximum of 500 mA for a
high-power USB device. To reconfigure the circuit for low-power USB operation of 100 mA maximum, you can
replace IC1 with a MAX4173HEUT, a
device with 100V/V gain, and R1 with
a 0.25V resistor.EDN