Beruflich Dokumente
Kultur Dokumente
EDITED
BY
DESIGN IDEAS
FIGURE 1
T1
10:1:1
VOUT
5V
1N5817
NOTES:
T1=DALE LPE-4841-A313, LPRI=2 mH.
Q1=ZETEX ZVN4424A,
BVDSS=240V,
RDS(ON)=4.3V AT VGS=2.5V.
R6, Q2, AND R5 MUST SIT NEXT
TO THE FB PIN.
L1
L3
47 F
1N4148
R1
1.3M
L2
VA
1N4148
Q1
0.022 F
C1
0.1 F
R2
1.30M
1%
R3
2M
VIN
SW
7 SHDN
1 LBO
2N3904
LT1316
2 LBI
RSET
604k
1%
FB
R4
69.8k
1%
47 F
Q2
MPSA92
8
R6
121k
1%
GND
R5
432k
1%
48V
SWITCH-PIN
VOLTAGE
10V/DIV
200 mV/DIV
AC-COUPLED
SECONDARY
CURRENT
200 mA/DIV
SECONDARY
CURRENT
200 mA/DIV
PRIMARY
CURRENT
50 mA/DIV
PRIMARY
CURRENT
50 mA/DIV
(a)
1 SEC/DIV
(b)
50 mSEC/DIV
Switch voltage and current waveforms (a) show how the primary current ramps up during the switching cycle. The output
ripple voltage is approximately 100 mV p-p (b).
EDN
The circuit operates as a flyback regulator with an auxiliary winding to provide power for the LT1316 switching-regulator IC. When you first apply power, the LBI pin is low,
causing the SHDN pin to connect to ground through LBO.
Grounding the SHDN pin places the part in shutdown mode,
and only the low-battery comparator remains active. During
this state, VIN rises at a rate determined by R1 and C1. The IC
draws only 6 mA in shutdown mode. R1 needs to supply only
this shutdown current, the current through R2 and R3, and
C1s charging current.
When LBI reaches 1.17V (which corresponds to a VIN of
approximately 3.7V), the LBO pin lets go of SHDN and the
IC enters the active mode; switching action begins, and the
output voltage begins to increase. As the device switches,
the VIN pin draws current out of C1. VIN then decreases sufficiently to trip the low-battery detector, stopping the
switching. Start-up proceeds in this irregular fashion until,
eventually, the voltage at VA increases to 5V. (VA is the same
as VOUT because L2 and L3 have the same number of turns.)
After start-up, current flows to the IC from VA rather than
from the 48V rail, increasing efficiency. The circuit will not
DESIGN IDEAS
start if VOUT is loaded before it reaches 5V.
During each switch cycle, current in the transformer primary ramps up until reaching the current limit (Figure 2a).
The value of R4 sets the peak switch current. The circuit uses
a 69.8-kV resistor to provide a peak switch current of 50 mA;
increasing R4 decreases the current limit. Secondary peak
current is approximately equal to the primary peak current
multiplied by the transformers turns ratio (Figure 2b). The
FB pin has a sense voltage of 1.23V, and you can set VOUT by
the following formula:
R
VOUT = 1.23 5 + 0.6V.
R6
For the load currents of 4 to 80 mA, the circuit achieves a
minimum of 70% efficiency. Less than 80 mA quiescent current flows when the converter supplies 0.5 mA over 36 to
72V. (DI #2148)
e
To Vote For This Design, Circle No. 356
AND
FIGURE 1
BREAK
MARK
SPACE
DATA (NULL)
START
STOP
FIGURE 2
BREAK
DATA 1
DATA 2
DATA n
BREAK
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
1
2
VDD
VDD
GND
OUT
OUT
ENB
A0
4
ENB
12C508
VDD
A1
8
7
PIEZOELECTRIC
ELEMENT
6
5
A1
A0
Alarm output
SEE TABLE 1
FIGURE 1
A programmable controller and a piezoelectric element combine to produce an alarm generator with multiple output formats: continuous frequency, two chirps, a warble, or a siren.
EDN
the result with the original number. Five decimal places are set up for the print command to
allow an accurate comparison.
This algorithm is similar to the square-root
algorithm that uses the divide-and-average
technique to reach a minimum error value.
Before the cube-root operation begins, the routine determines if the number is positive or
negative. If the value is negative, the program
sets a flag so the returned root value can be set
to a negative value. To start the process, the
routine sets up an error value and assigns an
initial value for the integer root. The error value
for this function is 0.00001, and the initial
value of root is 2.0. The routine squares this
value and divides it into the given number. The
routine then adds the result to the original
value of root and divides this sum by 2 to generate the new value of root. This process continues until the absolute value of the difference
between the cube of the value of root and the
given number is less than the error valuein
this case, 0.00001.
For some values, this algorithm approaches
but never reaches the set error. Thus, the routine increments a counter after each iteration.
If the counter reaches the maximum set count
before the routine finds the minimum error,
the function ends and returns the value of root.
If the original number was negative, the routine changes the cube root to a negative value.
With the values in Listing 1, the accuracy for
numbers from 0.1 to greater than 1 billion is
better than 0.001%. For numbers less than 0.2,
the accuracy is slightly lower. However, this
accuracy difference is a result of the error value
that you use in the calculation. By setting the
error value (float variable error) to a smaller
value, such as 0.000001, the accuracy for very
small numbers can also approach this value.
Two other factors affect the accuracy: the
number of bits the processor uses for floatingpoint numbers, and the size of the original
number. For numbers with small absolute values, the variable error controls the accuracy.
The accuracy, which is
(calculated rootactual root)/actual root,
is approximately equal to
error variable/33original number.
So, with error set to 0.00001, the accuracy is about 0.003%
for the cube root of 0.1, 0.03% for the cube root of 0.01, 0.3%
for the cube root of 0.001, and so forth. In the limitthe
cube root of 0you cant divide by 0 to find percent accuracy, but the actual root that the program calculates is
DESIGN IDEAS
0.0156250.
For numbers with large absolute values, the number of
iterations determines the accuracy. For instance, the algorithm calculates the cube root of 1012 as 10083.87109 after
25 iterations and as10000.00000 after 45 iterations. (DI
#2144)
e
To Vote For This Design, Circle No. 359
EDN
DESIGN IDEAS
FIGURE 1
is then always equal to the voltage drop across R3 plus a current set by VCONTROL. IC1s op amp forces the voltage across R2
to equal the voltage at Pin 3 of IC1.
The addition of just one component, IC2, adds precise
overvoltage protection to the variable-output power supply.
IC2 is a low-voltage shunt regulator that incorporates an
internal 1.24V precision reference. This low reference voltage allows you to use this protection circuit with conventional power-supply control ICs for which 2.5V is a common
internal reference voltage. Under normal operating conditions (for output voltages between 5 and 75V), IC2 does
nothing. The voltage at IC2s reference (Pin 1) is less than its
internal 1.24V reference, so its cathode (Pin 3) draws no current. In this case, IC1 solely controls the voltage at the base
of Q1. For example, if VCONTROL is 3V, then the voltage across
R2 is 1.13V and VOUT equals 75V. Note that, to simplify this
example, the beta of Q1 is assumed to be infinite.
However, in the event of any kind of fault that might
cause the voltage across R2 to rise above 1.24V (which corresponds to a maximum VOUT of 81.7V), the shunt regulator
begins to function. As the voltage at Pin 1 of IC2 begins to
exceed the internal 1.24 reference voltage, the cathode of IC2
begins to conduct. The cathode of IC2 then pulls down on
the base of Q1 to maintain 1.24V at Pin 1 of IC2. As this happens, IC2 through Q1 controls the voltage across R2. This con-
VCC
5V
VOUT
5 TO 75V DC
10
VCONTROL
0 TO 3V
LM358
0.1 F
6.8 F
TANTALUM
NODE A
R3
45.3k
1.65k
NODE B
2.5V
+
3
2
8
+
IC1
R1
Q1
2N3904
ERROR AMPLIFIER
1k
4
UC3843AN
3
1.00k
IC2
TLV431A
R2
732
R4
45.3k
Adding one shunt regulator, IC2, to an otherwise typical programmable power supply provides precise overvoltage protection.
EDN
DESIGN IDEAS
surges when you first apply power. The 1N4733 5.1V zener
diode protects the LED from high-voltage excursions.
Some applications require a more intense alarm. A simple
triac pulser can pulse a 120V-ac lamp or other resistive load
of as much as 8A (Figure 1b). This circuit is also reliable,
compact, efficient, and inexpensive. The circuit is similar to
the one in Figure 1a, but, in this case, the F336HD LED drives an MOC3010 opto-coupled triac driver. The 180V resistor provides current limiting for the 2N6343 triac gate. This
configuration can pulse a load as high as 960W. You can
increase the power rating by choosing a different triac. (DI
#2143)
e
To Vote For This Design, Circle No. 361
FIGURE 1
LOAD
2N6343
100
1/4W
120V AC
60 Hz
0.5 mF
200V
100
1/4W
0.5 mF
200V
180
2W
F336HD
W04G
120V AC
60 Hz
W04G
F336HD
MOC3010
1N4733
5.1V
(a)
1
1N4733
5.1V
(b)
A full-wave bridge rectifier provides a dc signal for the red-flashing LED (a). Adding a triac allows the circuit to pulse a 120Vac lamp or other resistive load of as much as 8A (b).
EDN
DESIGN IDEAS
Fax
E-mail
My e-mail address may be published
Yes
No
Company
Address
Country
ZIP
EDN
EDITED
BY
DESIGN IDEAS
J2
BNC
FIGURE 1
S1
F/100
IC8
DM74LS90
2
R0(1)
3
12
R0(2)
QA
6
R9(1)
9
7
R9(2)
QB
QC 8
14
11
CKA
QD
1
CKB
IC9
DM74LS90
2
R0(1)
3
12
R0(2)
QA
6
R9(1)
7
9
R9(2)
QB
QC 8
14
11
CKA
QD
1
CKB
RISE/FALL
QDFALL=
POSITIVE PEAK
VCC
R27
1k
VCC
4
3
LOW
2
1
3 IC1B
IC11A
DM74LS74A
PRE
CLK
D
DM74LS05
VCC
DM74LS05
R14
220
J3
BNC
TTL
OUTPUT
DM74LS10
HIGH
R26
1k
1
12
2 IC10A
13
DM74LS10
3
4 IC10B
5
CLR
9 IC
1D
VCC
VCC
R25
1k
R24
1k
5 IC
1C
S2
SW-PB
TEST
TEST
C5
0.22 F
12V
DM74LS05
VCC
14
5
4
11
15
1
10
9
TESTNOT
14
5
4
11
15
1
10
9
IC6
DM74LS193
CO
CLR
BO
UP
DOWN
QA
LOAD
A
QB
B
QC
C
QD
D
IC7
DM74LS193
CLR
CO
BO
UP
DOWN
QA
LOAD
QB
A
QC
B
QD
C
D
12
13
C7
10nF
THRCNT
VS COMPEN
LSB-B8
11
B7
10
B6
IC12
9
AD-DAC-08
B5
8
B4
7
B3
6 B2
5
VS
MSB-B1
2
6
7
12
13
13
R29
7.5k
VRF 15
VRF+ 14
9
10
11
6
7
IOUT
IOUT
C6
0.22 F
IC13B
DM74LS123
A
Q
B
CLR
Q
CEXT
REXT/CEXT
C9
1 F
VCC
R28
15k
IO
VCC
R15
220
D2
LED
RAISE INPUT
FREQUENCY
5
12
R16
220
VCC
R31
15k
12V
R30
7.5k
12V
3
2
6
7
C8
1 F
16
12
1
2
3
14
15
IC13A
DM74LS123
A
Q
B
CLR
Q
CEXT
REXT/CEXT
13
4
D3
LED
LOWER
INPUT
FREQUENCY
EDN
DESIGN IDEAS
erating a triangle wave. An op amp buffers the triangular signal; potentiometer R22 adjusts the output level. Assuming a
fixed input frequency and a fixed capacitor value, you can
adjust the current sources for the desired amplitude.
If the frequency decreases, the triangle-wave amplitude
increases. To keep the amplitude constant, comparator IC4
detects that the positive-peak amplitude is too high. The
comparator sends input-clock signals to decrement the 8-bit
counter IC6 and IC7, thus controlling the source- and sinkcurrent value through the DAC. Similarly, if you raise the
clock frequency, the triangle-wave amplitude decreases.
Comparator IC5 detects that the positive-peak amplitude at
the end of the triangle waves rise is too low. IC11a latches the
comparator output and gates clock pulses to increase the
count and the source- and sink-current values.
FIGURE 2
12V
C4
0.33 F
TRIANGULAR-WAVE OUTPUT
7
3 +
2 IC2
R23
220k
4 1 5 TL081
J1
BNC
R13
220
R22
10k
12V
OUTPUT LEVEL
VCC
VCC
12V
R11
3.9k
8 6 5
2 +
3 IC4
R19
4.7k
7
HIGH
LM311
PEAK TOO HIGH
12V
R12
220
VCC
12V
12V
R1
100
1%
Q3
2N3906
IO
R3
100
1%
Q5
2N3906
R2
100
1%
Q4
2N3906
8 6 5
2 +
3 IC5
R17
910
R18
4.7k
7
LOW
LM311
PEAK TOO LOW
12V
VCC
R5
10k
IC1A
RISE/FALL
Q6
2N3906
2
DM74LS05
R4
10k
AUTOZERO CIRCUIT
C3
0.1 F
D1
1N4001
12V
Q2
2N3904
Q1
2N3904
C1
0.1 F
R9
1M
R8
1M
7
+
IC
2 3
3
R7
150
R6
200
4 1 5 TL081
R21
100
C2
0.1 F
R10
1M
R20
100k
12V
12V
A companion to Figure 1s converter, this block contains the supporting current sources, output circuits, and comparators.
EDN
DESIGN IDEAS
If you run out of counts on IC6 and IC7, the carry and borrow output signals trigger the monostables, IC13A and IC13B.
LED D2 or D3 lights to warn you to change the input frequency accordingly. Frequency tracking is asymmetric: As
soon as the circuit detects the high limit, pulses decrement
the counter. The sooner the high limit occurs, the more
decrementing pulses the counter receives. However, you
detect that the current is too low only when the RISE/FALL
signal falls, and the triangular wave is still below the positive-peak low limit. This occurrence triggers a single pulse.
AND
FP FONTAN, UNIVERSITY
FIGURE 1
OF
VIGO, SPAIN
at 1-dB compression, a useful trait for obtaining intermodulation products with low input power. The gain of the MMIC
varies from 17 dB at 100 MHz to 10 dB at 2.4 GHz. The gain
can thus generate intermodulation products using two input
signals whose power is lower than 10 dBm. Finally, the
MMICs 3-dB noise figure is an important factor for low-level
input signals. The adder uses two standard-value 22
resistors and thus presents a reasonably good impedance match
in 50
systems (Figure 1b). For perfect impedance matching, you would need 20.7
(unavailable) resistors. With
the 22
resistors, the input VSWR is less than 1.4 at 1 GHz.
To obtain optimum results, you should use microstrip techniques, with the dimensions in Figure 1b, in designing the
pc board.
V
V
INPUT
OUTPUT
LOCAL
OSCILLATOR
MMIC
AMPLIFIER
(a)
12V
TLINE
VCC
22
INPUT 1
1 nF
470
TLINE
5 pF
TLINE
5 pF
TLINE
OUTPUT
MMIC
TLINE
22
INPUT 2
(b)
A summing network and a standard MMIC (a), connected with microstrip techniques (b), produce an efficient mixer for lowlevel signals.
EDN
DESIGN IDEAS
You can use this mixer in a variety of applications: downconverters and modulators, for example. Another example
is an amplitude-shift-keying (ASK) modulator for digital
applications (Figure 2). The mixer block in Figure 2 uses the
circuit in Figure 1a. The measurements of Figures 3, 4, and
5 reflect a 1-GHz carrier frequency and a 4-Mbps digital signal. To obtain a good relationship between the carrier level
and the modulated-signal level, use a 5-dBm input-carrier
level, a 0.5-dBm digital signal, and a 12V supply. The output-signal level is 0 dBm.
Figure 3 shows the magnitude of the intermodulation
products as a function of the 100-MHz signal power. The
input frequencies are 1.3 GHz and 100 MHz. The most
important intermodulation frequencies are the sum-and-dif-
FIGURE 4
5
10 INPUT-INPUT ISOLATION
15
FIGURE 2
100 nF
1-GHz
GENERATOR
MODULATED
OUTPUT
SIGNAL
MIXER
ISOLATION
(dB)
20
25
OUTPUT-INPUT ISOLATION
220
TTL
INPUT
1 H
30
100 nF
500
1000
1500
2000
2500
3000
FIGURE 3
1.8
1.7
10
1.6
1.2-GHz INTERMODULATION
INPUT VSWR
15
SWR
OUTPUT
POWER
(dBm)
1.5
1.4
20
1.3
25
1.2
1.4-GHz INTERMODULATION
OUTPUT VSWR
30
35
30
1.1
25
20
15
10
500
1000
1500
2000
2500
3000
FREQUENCY (MHz)
The slight input-impedance mismatch and varying input reactance of the MMIC produces input VSWR degradation with
frequency, but the VSWR remains within a respectable 1.4 at
frequencies to 1 GHz.
EDN
DESIGN IDEAS
FIGURE 1
RTD
EXCITATION
}
}
5V
0.002*
F
RTD
OUTPUT
OPTIONAL
RTD AMP
0.1
F
C1
470 pF
2 _
2 _
6
IC1
CASE
113k
IC2A
113k
5 +
IC2B
34k
E2
0.047
F
5V
0.1
F
100% RH
ADJUST
R3
40.2k
402k
6
LT1236-5
R5
49.9k
C2
0.001 F
2
1
LT1121-5
0.1
F
6
7
5V
IC3B
8
LTC1044
2.2
F
ELECTROLYTIC
NOTES:
*POLYPROPYLENE 2% CAPACITORS;
IC1=IH3602-C (HYCAL);
IC2=LT1078-ACN8;
IC3=LT1112-ACN8;
ALL RESISTORS (EXCEPT TRIM POTS) ARE 0.1%, 25 PPM.
5
18.7k
10 F
TANTALUM
5V
ON
RETURN
R4
50k
0% RH
ADJUST
49.9k
9V
OR
9V
BATTERY
(MN-1604)
R6
24.9k
5V
(0.8V)
5.00V REF
E0
5V
50k
(19T)
0 TO 100 mV OUTPUT
(0 TO 100% RH)
IC3A
+
R2
402k
0.001
F*
E1
0.1
F
0.1
F
R1
402k
6 _
10 F
TANTALUM
5V
0.1
F
SIMPLIFIED DC TRANSFER FUNCTION:
E13
E0=
R3
R
+ E23 3 + ...
R2
R1
R4+R5
R6
Precise signal conditioning transforms the 0.8 to 4.0V output of an accurate 0 to 100% relative-humidity sensor, IC1, to a 0to 100-mV output.
EDN
DESIGN IDEAS
Channel B
Phase increment ()
90
135
180
45
EDN
DESIGN IDEAS
FIGURE 1
VCC
5
22M
IC1C
4069
IC1F
4069
IC2A
4069
13
IC2D
4069
12
R1
C1
1M
100M
0.1 F 100k
CLK RST
IC3G
40175
OPEN LEAD
100M
1
EKG-HI
IC1A
4069
10M
IC1B
4069
1M
10 pF
22 pF
EKG-LO
IC2B
4069
100M
Q0 2
IC3A
40175
3 D
0
IC2C 5
4069
14 D
5
D6 15
IC3F
40175
100k
DT1028K
100M
13
IC1D
4069
12
10M
VCC
11
IC1E
4069
1M
22 pF
10
11
10 pF
8
100M
IC2E
4069
10 4 D
1
Q1 5
IC3B
40175
7
5
3
1
6
4
2
15
A1
A2
A3
A4
B1
B2
B3
B4
S1
S2
S3
S4
10
11
12
13
9 CI CO 14
13
D4
Q4 12
IC3E
40175
11
IC4
CD4008
D3
Q3 10
MODULATOR
DRIVE
IC3D
40175
IC2F 9
4069
6
D2
Q2 7
IC3C
40175
Inexpensive sensors and simple CD4069-based sigma-delta ADCs comprise the front end of low-power, remote data-acquisition for monitoring a patients temperature, pulse, and respiration.
EDN
DESIGN IDEAS
FIGURE 1
MOTOR OR
SERVO OUTPUT
5V
R1
RIN1
6.0k, 3W
RIN2
6.0k, 3W
5V
C1
D1
D2
D3
IC1
56k
NC
VCC
VB 7
ANODE
330 pF
CATHODE
VOUT 6
NC
GND
C2
0.1 F
R3
10k
D4
4
IC2
HCPL-2601
R2
2
3
4
RTC
VCC
CTC
RS
NC
NC
AR
MODE
MR
Q/Q SEL
13
12
11
120k
5
IC3
6
7
GND
IC1
MC14541B
Did you leave your motor running? This circuit lets you or your C know.
14
10
9
8
MOTOR
RUNNING
EDN
EDITED
DESIGN IDEAS
BY
FIGURE 1
OUTPUT PORT 2
19 18 17 16 15 14 13 12
CLK
D D D D D D D D
1 2 3 4 5 6 7 8
11 2 3 4 5 6 7 8 9
CLK
D D D D D D D D
1 2 3 4 5 6 7 8
19 18 17 16 15 14 13 12
Q Q Q Q Q Q Q Q
1 2 3 4 5 6 7 8
IC3
OC
OUTPUT PORT 4
19 18 17 16 15 14 13 12
Q Q Q Q Q Q Q Q
1 2 3 4 5 6 7 8
IC2
OC
OUTPUT PORT 3
19 18 17 16 15 14 13 12
Q Q Q Q Q Q Q Q
1 2 3 4 5 6 7 8
IC1
Q Q Q Q Q Q Q Q
1 2 3 4 5 6 7 8
IC4
OC
CLK
11 2 3 4 5 6 7 8 9
D D D D D D D D
1 2 3 4 5 6 7 8
OC
11 2 3 4 5 6 7 8 9
CLK
D D D D D D D D
1 2 3 4 5 6 7 8
11 2 3 4 5 6 7 8 9
DATA BUS
DB0..7
CS0
CS1
CS2
CS3
NOTES: DECODED ADDRESS=CHIP SELECTION.
IC1 TO IC4=SN74HC574N.
(a)
OUTPUT
PORT 1
OUTPUT
PORT 2
OUTPUT
PORT 3
OUTPUT
PORT 4
CS
IC1
IC2
11
1
11
IC4
IC3
1
OC
OC
1
11
OC
1
11 C
OC
DATA BUS
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
(b)
2
3
4
5
6
7
8
9
D1
D2
D3
D4
D5
D6
D7
D8
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
19
18
17
16
15
14
13
12
2
3
4
5
6
7
8
9
D1
D2
D3
D4
D5
D6
D7
D8
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
19
18
17
16
15
14
13
12
2
3
4
5
6
7
8
9
D1
D2
D3
D4
D5
D6
D7
D8
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
19
18
17
16
15
14
13
12
2
3
4
5
6
7
8
9
D1
D2
D3
D4
D5
D6
D7
D8
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
19
18
17
16
15
14
13
12
One way to update output ports is to address every port (a); another method is to address them all simultaneously (b).
EDN
referred port, and let N=N1.
Note that, in the above example, data from location n in
the buffer updates the nth port, where n is between 0 and
N1. Listing 2 is the MCS-51 native routine to simultaneously update the output ports. Assume that the single
address of the N ports is OUTPUT_PORT. By using this sin-
DESIGN IDEAS
gle-address configuration, you do not need to refer to output ports addresses every time you need to update them.
You thus eliminate one instruction in the update loop, making the routine shorter and faster. This routine is suitable for
implementation in an interrupt-service routine. (DI #2151)
e
To Vote For This Design, Circle No. 381
AND
EDN
and into an output port. This operation would normally
mean wasting an entire output port, because the remainder
of the ports pins would always contain stale shifted pixels. However, the PIC allows A/D input through pins designated for digital input, so all the I/O pins are usable. Figure
3 shows the PIC 16C73 port assignments. Listing 1 shows
the code fragment that displays a single pixel on the screen.
Note that the routine requires only six cycles. However, if
you include the start-of-line pulse (CP1, two cycles), subroutine calls (two cycles), and other overhead, the worst case
requires 12 cycles. This time budget results in an unacceptable refresh rate of approximately 50 Hz. The screen areas
that require unchanging information, such as borders, tick
marks, and labels, are stored in program ROM. Because it
would take too many cycles to recover this data from lookup tables (which are cumbersome in the PIC), you code each
byte explicitly and clock them out 1 bit at a time using the
routine in Listing 2.
You need approximately 700 lines of repetitious coding
and a large, binary shape table to specify the static information; a good editor simplifies this chore. You implement a
blinking x-axis cursor by periodically replacing the datum in
the appropriate RAM location with 255 decimal. This operation has the effect of drawing a flashing vertical line above
the pointed-to datum. By setting 64 screen scans with and
64 without the 255, you obtain a blink rate of approximately 2 sec. You control the cursors position by rotating a 50kV potentiometer that feeds the PICs A/D converter
through Pin RA2. As the cursor moves, the x and y coordinates of its position display numerically at the bottom of the
graph. The updatable, three-digit x and y positions (requiring a total of 6 bytes of RAM) make up a classic character generator, with each numerals shape stored in 7 bytes of RAM.
DESIGN IDEAS
FIGURE 2
LINE 0
LINE 1
FLM
CP1
CP2
M
D1
The 16C73A sends these signals to the DMF697. FLM is startof-scan, CP1 is start-of-line, CP2 is data latch, M is driver-voltage polarity, and D1 is data.
FIGURE 3
9V
5V
RA0
10k
CONTRAST
MPS
2907
50k
CURSOR
RA2
PIC16C73A
DMF697
VEE
VCC
20 MHz
OSC1
VSS
D1
FLM
CP1
CP2
M
RC0
RC1
RC2
RC3
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
+V
+
V+
_ V
+V
FOSC=1 MHz
0 TO 5V
Q1
IC1A
MAX912
_
GND1
4 3
LE1
4990
TP1
0.1 F
C1
33 pF
NPO
5V-DC
INPUT
5V
5V
0.1 F
4530
R1
499
VOUT
C2
5V
RG316/U
6-IN. LENGTH
R2
C1
ANTENNA PLATE
4 IN. SQ
FIGURE 1
FIGURE 2
+V
R1
4.7 F
14
3
10k
C8
0.1 F
1/4 74HC86N
15 Q2
IC1B
10k
10 _
5V
0.22 F
10k
LE2
13
14
GND2
249
5V
5V
5V
5V
562
TP2
+ IC
2A
R2
20
15
TURNS
1000
1k
MAX407
2 _
6
30.1k
10.0
HLMP3762
0.1 F
8
+
IC2B
_
1N4148
10k
10k
Q1
2N3904
1k
0.22 F
R3
75k
0.1 F
This proximity detector lights the LED when a person approaches the antenna plate within a threshold distance set by potentiometer R2.
EDN
DESIGN IDEAS
FIGURE 1
5V
10k
C1
100 F
10V
ELECTROLYTIC
1k
1k
24V
5V
L1
330 H
DCR2
ISAT200 mA
+
0.001 F
Q1
Q2
0.047 F
Q3
D1
1N4933
D2
24V
ZENER
1N5252B
R1
10k
VOUT
24V
8 mA
NOTES:
Q1 TO Q3 ARE 2N3904.
ALL RESITORS ARE 5%.
2
+
C1
10 F
35V
ELECTROLYTIC
8
1
Qw LM358N
0.1 F
0 TO 20V
TO VCO
300k, 1%
100k
1%
(a)
0.1 F
0 TO 5V
CONTROL
VOLTAGE
C1
150 pF
(b)
A simple three-transistor switching regulator (a) supplies 24V and 8 mA. The circuit can help provide a 0 to 20V VCO tuning
voltage from a 0 to 5V control voltage (b).
EDN
DESIGN IDEAS
FIGURE 1
R5
10k
1%
1
IC1A
3 +
TLC2274
4
C1
0.1 F
5V
R1
390k
J1
INPUT
chopped signal from IC1B connects to the switched-capacitor filter, IC2. This eight-pole lowpass filter converts the
square wave from IC1B to a sine wave.
Capacitor C2 sets the filters 71-Hz cutoff frequency. C5
and R6 form a 16-Hz highpass filter that removes any dc offset from the output of the switched-capacitor filter. IC1D
buffers the filter and provides a 0 to 1V-rms, 60-Hz output.
Calibration involves applying a 10V-dc signal to the input
and adjusting R2 until the output reads 1V rms on an ac voltmeter. Measurements show linearity within 1% over the
entire input range. To use the recorder, connect the input to
the process variable under measurement, and connect the
output to any voltage-input channel on the 1V-rms power
recorder. You can also use the circuit on current-input channels designed to use low-voltage, 1V-rms current clamps. To
record 4- to 20-mA signals, shunt the input with a 500V
resistor. (DI #2157)
e
0 TO
10V DC
R2
100k
J2
COMM
R3
10k
1%
C3
0.1 F
3
4 7
OPOUT OPIN V+
IC1B
5
+
R4
10k
1%
1
C2
0.0047
F
Q1
2N7000
CALIBRATE
IN
13
IC1D
12 +
C5
0.1 F
IC2
MAX292
OUT
CLK
GND
J3
OUTPUT
14
0 TO 1V
RMS
60 Hz
R6
100k
V
2
fC=71 Hz
C4
0.1 F
5V
5V
C6
0.1 F
R7
1k
11
IC1C
10 +
D1
1N4001
5V
C11
10 F
R8
10k
R10
1k
VO
+
C8
0.1 F
IC3
78L05
T1
VI
+ C7
470 F
GND
12V AC
120V AC
D2
1N4001
R9
1M
5V
C12
10 F +
VO
C10
0.1 F
IC4
79L05
GND
VI
+
C9
470 F
Chopper techniques convert a dc input signal from a process variable to a 60-Hz ac signal for measurement on a three-phase
power monitor.
EDN
DESIGN IDEAS
Fax
E-mail
My e-mail address may be published Yes
No
Company
Address
Country
ZIP
EDN
EDITED
BY
DESIGN IDEAS
EDN
DESIGN IDEAS
tified line voltage. This converter operates at 250 kHz and handles ac inputs from 90 to 135V.
IC2 is a chemistry-independent battery charger. Though
designed to drive an external transistor, in this case, it drives
the MOC211 optoisolator to control IC1 across the isolation barrier. IC 2 s internal circuitry sets the battery voltage to
8.4V0.5%. The 0.1V current-sense resistor,R1, and ISET resistor, R2, set the battery current to 1A2%. (DI #2161)
To Vote For This Design, Circle No. 344
FIGURE 1
EMI FILTER (DELTA 01DEEW3R)
DF04S
CTX03-13384-X1
12
120V
AC
LINE
220 F
250V
1000 pF
39k
MURS160
1
47k
1W
DO3316-473
47 H
MBRS1100
470 F +
10V
MBRS1100
R1
0.1
1/2W
1N4148
11
MBRS120
1k
1N4148
16
0.1 F
13
DRV DCIN
2
14
CS+ CS
VL
12
BATT
0.1 F
3
IRF830
7
VCC
10 F
6.2k
IC2
3
UC3845B ISEN
4
470
pF
OUT
REF
0.1 F
5
11
1k
GND FB
2
COMP
1
470
pF
CELL2
GND
4
8
10
ISET
7
2
1/2W
0.1 F
4.7k
OFFV
ON
15
TWO-CELL
Li+
BATTERY
IC1
MAX846
CCV
PGND
R/C
4.7 F
CCI
1/2
MOC211
R2
16.5k
1%
1/2 MOC211
(MOTOROLA)
A high-voltage controller, IC1, transformer, and chemistry-independent battery charger, IC2, charge two-cell Li-ion batteries directly from the ac
line.
EDN
DESIGN IDEAS
FIGURE 1
COMMON-MODE
CHOKE
DIGITAL
DRIVER
UNSHIELDED TWISTED-PAIR CABLE
CENTER-TAP
CAPACITOR (470 pF WITH
SUFFICIENT VOLTAGE RATING)
A center-tap capacitor connected to earth ground implements a common-mode current trap and reduces RF emissions. A common-mode choke
in addition to this center-tap trap results in a common-mode killer.
EDN
DESIGN IDEAS
FIGURE 1
5V
24V
24V
OPTIONAL
LOAD
(MOTOR OR
VALVE COIL)
1N4007
LOGIC-LEVEL
PWM INPUT
330
IC1A
1
INPUT
2
74HC14
2.2k
1
IC2B
2
PS2501-2
IC2A
IRF540
R2
3
1N4007
1k
POWER
4.7k
RESET
Q1
EC1030
R1
0.1
5W, 1%
CONTROL POWER
GROUND
CONTROL POWER GROUND
An overcurrent condition in this isolated PWM driver turns on SCR Q1, which stops IC2B from conducting.
EDN
DESIGN IDEAS
FIGURE 1
INPUT
FREQUENCY
C
12-BIT
74HC4040
RIPPLE
COUNTER
Q11
CNTL2
I/O
CNTL1
I/O
8-BIT
TIMER/
COUNTER
TMR0
(a)
INPUT
FREQUENCY
PICmicro C
8-BIT
PRESCALER
CNTL2
I/O
CNTL1
I/O
8-BIT
TIMER
TMR0
(b)
INPUT
FREQUENCY
PICmicro C
8-BIT
PRESCALER
(c)
CNTL2
I/O
8-BIT
TIMER
CNTL1
I/O
TMR0
A binary ripple counter and NAND gate team with a mC (a) to measure
input frequencies higher than the mC clock. Using a PICmicro mC
reduces the number of necessary components (b). A further simplification (c) replaces the NAND gate with one transistor and four resistors.
inputs.
Note that the architecture of the PICmicro mC allows accurate timekeeping for the gating pulse because the timing of a
software loop is predictable and accurate to within one instruction cycle; a PICmicro mC executes each instruction in one
cycle, except for branch instructions, which take two cycles. (DI
#2164)
To Vote For This Design, Circle No. 347
EDN
DESIGN IDEAS
OF
WISCONSINMADISON
of the battery life, yet allows some reserve for continued operation after the LED comes on.
The circuit has two convenient features that were unforeseen before testing. One is that when the batteries switch off
,
the LED flashes briefly as the decoupling capacitors discharge.
The flashing indicates that the batteries are not so totally dead
that they cannot light the LED. The other is that the LM385 has
an initial turn-on voltage about 10% higher than the steadystate 1.2V reference. Thus, when you switch the batteries on,
they must have a voltage about 10% higher than the steadystate threshold to be considered good. So if the Battery Low
LED stays off when the device turns on, the batteries will
remain good for a while. Of course, if you are not using the shutdown signals to turn off regulators, you can set the threshold
so that your device will continue to operate for a period after the
LED comes on. Using the battery-discharge characteristics and
your circuit s voltage and current requirements, you can select
a threshold that gives appropriate reserve for your application.
(DI #2169)
To Vote For This Design, Circle No. 348
FIGURE 1
9V
R3
2M
R1
270k
R13
4.7k
2
TRM1
500k
C1
0.47 F
C4
22 F
C3
0.47 F
R2
CR1 22k
1.2V
LM385Z
CR2
1.2V
LM385Z
R8
22k
R7
270k
R4
430k
R6
3M
R9
430k
R12
3M
BATTERY
LOW
+
POSITIVE
SHUTDOWN
_
3
TRM2
500k
NEGATIVE
SHUTDOWN
R11
2M
9V
NOTES:
1. IC1 AND IC2 ARE MAXIM ICL7612ECPA.
2. CR1 AND CR2 ARE MOTOROLA LM385Z-1.2.
3. C1 AND C3 ARE 0.47 F, 50V CERAMIC.
LED 1
HP HLPM-D150
Q1
R5
2M
IC2
R10
2M
IC1
3
C2
22 F
If either battery voltage in a two-battery supply drops below a preset limit, a Battery Low LED turns on.
ZETEX
ZVN3306A
N-CHANNEL MOSFET
ENHANCEMENT MODE
EDN
DESIGN IDEAS
LISTING 1C++
LISTING 2CLASSICC
INTEGER-TO-BINARYCONVERSION ROUTINE
EDN
EDITED
BY
DESIGN IDEAS
FIGURE 1
K1
A
R1
B
NO
NO
COM
COM
R1
NC
NC
RETOTAL
C
K2
NO
NO
R2
COM
COM
Reference designator
NC
NC
K3
NO
NO
R3
COM
COM
R3
NC
NC
RTOTAL/21
R2
RTOTAL/22
R3
RTOTAL/23
R4
RTOTAL/24
R5
RTOTAL/25
Rn
RTOTAL/2n
NO
NO
COM
COM
RAB=RTOTAL
R4
RTOTAL
NC
NC
Resistance
R1
FIGURE 2
K4
R4
DIGITAL POTENTIOMETER
R2
RBC=O
B
K5
NO
R5
COM
NC
RAC=RTOTAL
C
(a)
NO
COM
R5
RAB=O
NC
RTOTAL
B
RBC=RTOTAL
RAC=RTOTAL
(b)
A handful of relays and fixed resistors replaces an analog potentiometer. The resolution of the simulated potentiometer is one part
in 2n, where n is the number of relays.
EDN
configuration shown in Figure 2a.
With all the relays energized, the relay
takes the form shown in Figure 2b. The
resistors are weighted in a RTOTAL/2n relationship. This weighting gives a good
approximation of a linear taper with 32
(25) positions. Table 1 shows the selection of resistor values.
The circuit uses a 74HC374 latch and
MPS2222A npn transistors to interface
the relays to the system CPU (Figure 3).
The primary disadvantages of the
method are board space and cost. However, for the monitor application, the
circuit proved flexible and reliable.
Applications that require replacing
existing potentiometers or rheostats
are potential candidates for this circuit.
For example, you could replace a highpower rheostat with the circuit if you
select relays and resistors with suitable
current ratings. (DI #2167)
e
DESIGN IDEAS
FIGURE 3
5V
5V
D1
D2
TO
CPU
D0
Q0
D1
Q1
D2
Q2
D3
D4
IC1
1k
R1
D5
K2
K1
74HC374
5V
Q1
MPS2222A 1k
R2
K5
Q2
MPS2222A 1k
Q5
MPS2222A
R5
Q3
Q4
D5
Q5
D6
Q6
Q7
D7
OE
A TTL latch and a collection of inexpensive npn transistors, resistors, and relays
allow you to configure a simulated potentiometer with any desired degree of resolution.
rent gain of 2.
EDN
FIGURE 2
DESIGN IDEAS
FIGURE 3
VIN
VIN 12V
1
8
3
2
C1
VOUT
+
4
10 F
4
COUT
C1*
+
VIN
CURRENT
V+
CAP+
NC
5V/200 mA
GND
LT1054CS8
IC1
CAP
VREF 6
10 F
1
VOUT
5
OSC
VOUT
39.2k
R1
10 F
3.3k
R4*
FB/SHDN
200k
R 2*
330
pF
3
C1
VOUT
COUT
The LT1054s internal switches alternately charge and discharge C1, thereby delivering a continuous current to the output.
This switched-capacitor regulator doubles the current from
the input to the output, thus increasing efficiency and eliminating the need for a heat sink.
current (through switch 1 of Figure 2) to regulate the output. A servo loop keeps the potential at the FB pin equal to
the potential at the GND pin. The circuit can deliver 200 mA
at 5V from an input of 11.2 to 13V. Typical efficiency is 74%,
compared with 42% for a linear regulator. More important,
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
FIGURE 1
LOGIC
5V
R6
R1
510k
RED
3
R2
510k
8
1
IC1A
OPA2340
+
R3
725
VB
VA
LED
VPROBE
IC1B
4
GREEN
R4
R5
LOGIC
GND
R8
R7
NOTE:
LED=RADIO SHACK 276-012.
RESISTOR 5V CMOS
R4
160k
120k
R5
510k
R6
270k
R7
180k
R8
(a)
TTL
250k
100k
820k
220k
470k
LOGIC
3V
510k
510k
120k
RED
3
510k
+
1
IC1A
OPA2340
225
VA
VB
LED
+
IC1B
4
GREEN
VPROBE
120k
LOGIC
GND
150k
470k
510k
probe can measure high, low, and highimpedance logic states, in addition to
indicating switching logic states. This
probe is useful for quick measurements
of dc logic levels. You can use a similar
probe circuit (Figure 1b) for 3V CMOS
logic.
The circuit centers around the
OPA2340 dual rail-to-rail op amp and a
Radio Shack 276-012 bicolor LED. The
forward voltage for the red and green
LEDs are 2 and 2.1V, respectively. Op
amp IC1A derives a buffered 2.5V reference output from the 5V supply, and R3
limits the current to the LED when it is
on. IC 1B buffers and amplifies the
probed logic signal to a 0 to 5V output
level. R4 and R5 set a reference level for
the positive input of IC1B for the case of
a high-impedance level. When a logic
high is present, the green LED lights; a
logic low lights the red LED. When a
high-impedance state is present, the
LED is off.
The output voltage transfer function
of IC1B is
R (R + R 7 )
R8
VB = 1 + 8 6
VCC ,
VPROBE
R
R
R6
6
7
2.0
1.5
1.0
0.5
0.0
0.0
0.5
1.0
1.5
3.5
4.0
4.5
5.0
EDN
DESIGN IDEAS
FIGURE 1
3 TO 36V
5V
IC1
MAX471
1
2
3
4
SHDN
OUT
RS+
RS
RS+
GND
RS
RHYST
8
+
IC2
LMC7211
4 _
7
6
RIV
RINTEG
CLOCK
OUT
CLOAD
RLOAD
CLOCK IN
RLIM
By using a high-side current-sense amplifier IC (IC1) in an unconventional manner, you can combine clock or data signals with
dc power in cables.
EDN
EDITED
BY
DESIGN IDEAS
FIGURE 1
FB
FPGA
XCLK
ICLK
have the same frequency. When the PLL locks, the XCLK signal precedes MCLK by a time equal to the sum of the clockbuffer delay (from XCLK to ICLK) and the combinatorial
output-buffer delay (from ICLK to the PLL feedback pin). The
address, control, and data-out signals obtain their clock signals from ICLK. Because the delay from ICLK to the clocked
output pin (7.0 nsec for the slew-rate-limited output) is close
to but higher than the delay from ICLK to the FB output pin
(4.8 nsec for a fast output), the clocked output appears early
in the CLK period.
The required SDRA setup time is thus easily fulfilled in a
100-MHz system: (10(7.04.8))>3 nsec. Note that changes
in temperature, IC processes, and voltage have little influence on performance, because the XCLK clock-generating
circuit is a closed-loop system. Moreover, the output buffer
of the FB pin and the control and data pins have the same
clock input as does the input pin, and all circuit blocks reside
on the same die. Tests designed to check the data-input
setup-and-hold times used a clocked input flip-flop (in the
same I/O block as the data-output flip-flop), which received
its clock from an internal version of MCLK. This configuration avoids excessive hold-time requirements for the
SDRAM. (Editors note: An EDN contributing editor warns that
the 7.04.8 nsec reflects maximum specified times for the
XC4010E-2 and yields an acceptable margin for an SDRAM with
1.5-nsec minimum hold time. However, an FPGA running at
typical specs may present a marginal situation.) Tests using the
AV9170-01 PLL from ICS show satisfactory performance to
106.25 MHz. (DI#2165)
e
To Vote For This Design, Circle No. 415
PLL
FB
VCO
REF
CLKBUF
MCLK
XCLK
SDRAM
CONTROL
ADDR
DATA
CLK
MCLK
ICLK
DOUT
DIN
DELAY
FB
CONTROL/
ADDRESS/
DATA OUT
(2)
(1)
(3)
CLKBUF
(4)
FIGURE 2
The use of a PLL with an FPGA eliminates the setup-time problems inherent in an FPGA-only configuration, allowing you to
design SDRAM controllers for clock frequencies of 100 MHz
and beyond.
EDN
DESIGN IDEAS
AND
L SLIWCZYNSKI, UNIVERSITY
OF
MINING
AND
VO1, O2 = VT ln I1, I2 ,
RI
S
combine in the summing amplifier, IC1C. Using the assumption that R3=R5 and R4=R6 and that the diodes are matched,
VO3 =
V
R4
R
(VO2 VO3 ) = VT 4 ln I1 .
R3
R 3 VI2
V + R
V R
VI1 > VI2 exp H 3 , or VI1 < VI2 exp H 3 .
VT R 4
VT R 4
FIGURE 1
D2
VO2
IC1=LM324
VI2
R2
3.3k
R3
1k
IC1B
+
VO3
+
IC1C
R4
100k
VI1
R1
3.3k
R9
1k
VO4
R8
33k
+
IC1A
R6
100k
R5
1k
D1
IC1D
+
R7
15k
R7
R7
, and VH = VO4
.
R 7 + R8
R 7 + R8
D3 TO D8
VO1
EDN
DESIGN IDEAS
FIGURE 1
R1
1
R2
R4
VCC
VCC
TWO-SIGNAL
WIRE
CONNECTION
SERIAL DATA
8
SERIAL CLK
100 pF
100 pF
R3
150
4.7k
1
A
2
B
9
0.1 F
CLK
CLR
10k
LED
BACKLIGHT
QB
QC 5
QD 6
QE 10
QF 11
Q 12
33
1
3
5
2
4
6
11
13
12
14
LCD HEADER
D1
1N4148
74LS164
(a)
ALWAYS
ALWAYS
"1" RS DB7 DB6 DB5 DB4 "0"
DATA
CLOCK
RESET SHIFT REGISTER
(b)
CLOCK DATA IN
STROBE LCD
MODULE
Using a 74LS164 shift register and 4-bit communication, a mC can control an LCD module using just two lines: serial data and
clock (a). The mC must first clock a series of zeros to the circuit, followed by a one, RS, and DB7 through DB4 (b).
EDN
DESIGN IDEAS
1STEPPER-MOTOR-DRIVE SEQUENCE
B
State
OFF
ON
OF
OFF
OFF
ON
ON
OFF
ON
ON
ON
OFF
CW
(b)
You can then produce the present-state/next-state assignment (Table 2) and the next-state maps (Figure 3). Then, by
inspection, the logical choice is to loop the state maps out
for D flip-flops, which produces the following two logic
equations:
FIGURE 1
5V
14
14
IC1A
CLK
IC2A
4
PRE
VCC
STEP
DIR
(1)
(2)
DA=((DIR)(C))+((DIR) (C));
DB=((DIR) (A))+((DIR) (A)).
IC1B
2
6
CLR
1
13
10
PRE
CLR
11
12
13
IC1C
11
CLK
IC2B
10
IC1D
9
7
12
8
Q
Q
GND
7
GROUND
NOTES:
IC1=74LS36;
IC2=74LS74.
Two logic-level ICs can implement simple and inexpensive control of a stepper-motor driver.
9
8
C
D
EDN
DESIGN IDEAS
FIGURE 2
FIGURE 3
AC
4
DIR
0
1
0
DIR
0
01
11
10
00
01
11
10
DA
AC
00
DB
TABLE 2PRESENT-STATE/NEXT-STATE
ASSIGNMENT TABLE
Present state
Next state
DIR
EDN
most mCs and other digital circuits.
Low power consumption distinguishes this circuit. The
IC typically draws only 5 mA, and the R1/R2 divider draws
slightly more than 1 mA in a 2.7V application. Pullup resistor R3 consumes power only when the supply voltage
droops out of tolerance, so the power loss is minimal in normal operation.
To prevent erratic behavior, IC1 offers approximately 6 mV
of built-in hysteresis. For more hysteresis, you can add a
large-value resistor, RHYST, between the ICs input and output;
to reject short transients, IC1 has an inherent glitch immunity of 35 msec with 100 mV of overdrive. The input capacitance works with R1 and R2 to provide some lowpass-filter
action. For further immunity from transients, which is
unnecessary unless the power bus is noisy, you can form an
additional lowpass filter by adding a small-value capacitor,
CG, to the input pin. (DI #2174)
e
To Vote For This Design, Circle No. 419
VCC
FIGURE 1
1
R3
390k
1.204V
REF
VCC
+
OUT 4
RESET
+
C1
0.2 F
MAX836
IC1
2
2.5V
2.25V
GND
VCC
DESIGN IDEAS
TIME
RHYST
(OPTIONAL)
IN 3
RESET
VCC
R1
0.1 F
(a)
931k
1%
R2
1.07M
1%
CG
(OPTIONAL)
54 mSEC
(b)
A 1.2V reference and micropower regulator in IC1 (a) provide an active-low reset pulse of approximately 54 msec at power-up
or when VCC dips below 2.25V (b).
FIGURE 1
5V
D1
BLINKER
LED1
RADIO SHACK
276-036
LED2
RADIO SHACK
276-041
R1
82
EDN
DESIGN IDEAS
s1 (t ) =
2 EB
TB
s2 (t) =
2EB
TB
sin(2ft ),
sin(2ft),
where EB is the transmitted energy per bit, TB is the bit duration, and f is the transmission frequency equal to NC/TB.
(NC is an integer constant, and the period is 23TB; thus, the
duty cycle equals 50%.) In Listing 1, the input voltage
source, VSIG, produces the polar form of the input signal.
Using the B1 element, the subcircuit multiplies this input by
the local oscillator voltage, VLO1, to produce the PSK output signal.
The subcircuit, FSK, produces a coherent binary FSK sig-
EDN
DESIGN IDEAS
5V
OUTPUT
2
3
INPUT
FIGURE 1
PIC12C508
1
VDD VSS
GP5
GP0
GP4
GP1
GP3
GP2
8
7
INPUT
6
5
100 1 2 3 4 100 1 2
OUTPUT
tW
EDN
DESIGN IDEAS
FIGURE 1
V
This wheel, using transparent material, gives current values of 1 nA to 100A.
EDN
fies such calculations. The slide rule uses one large, opaque,
double-sided wheel and two smaller, transparent wheels.
You can make the opaque wheel by gluing back-to-back
the patterns in Figures 2 and 4. For the transparent wheels,
you simply photocopy the patterns in Figures 1 and 3 onto
DESIGN IDEAS
overhead-transparency foils. To attach the wheels, you can
use a rivet or a screw and nut. Using side A (Figures 1 and
2), you can calculate resistance (V/I), power (VI), and percentage products (D=dX, where d is a percentage). X can be
voltage, current, power, or resistance. Side A also gives stan-
FIGURE 2
This wheel, an opaque background, gives voltage, current, power, and dissipation-factor percentages. The inner rows give
standard EIA resistance values.
EDN
dard EIA values for resistance.
DESIGN IDEAS
FRES =
= RC,
1
FC =
,
2 RC
XC =
1
,
2 fC
T=
1
2 LC
1
.
f
On side B (Figures 3 and 4), you can calculate the following formulas:
FRES =
1
2 LC
FIGURE 3
This wheel, copied onto transparency material, gives capacitance values from 1 pF to 10 mF (10,000 mF).
EDN
L=
1
,
4 2 (FRES )2 C
C=
1
.
4 2 (FRES )2 L
DESIGN IDEAS
You can modify the slide rule to incorporate the formulas
you use most often. The design of the slide rule uses AutoCAD LT. (DI #2137)
e
To Vote For This Design, Circle No. 423
FIGURE 4
This wheel, the opaque backing for the wheel in Figure 2, relates resistance, frequencies, and time constants to the capacitance values on the wheel in Figure 3.
EDN
EDITED
BY
DESIGN IDEAS
FIGURE 1
OF THE
5V
5V
5V
5V
5V
56k
2
3
16
680
680
1B
VCC
200k
15
3
+
CLR
CEXT 14
4700 F
25V
REXT /CEXT 13
B2
CEXT 11
+
4
TxD
1 1A
2Q
4700 F
25V
IC3
74HCT122
1
1Q 13
B1
IC2
74HCT123
IC1
DS1489
TxD 1
REXT /CEXT
A1
IC4
SFH610-2
RS-232C
RxD 4
6 RxD
5V
VDD
5V
A2
1
5V
2A
5V
5V
7
GND VCC
56k
14
10 2B
11
8
Q 8
+
CEXT
4700 F
25V
2.2k
MODEM
SHUTDOWN
REXT /CEXT 7
CLR
GND
5 CLR
14 V
CC
GND
A lack of activity on the TxD or RxD lines fails to retrigger IC2, which causes the circuit to hang up the modem connection.
EDN
DESIGN IDEAS
FIGURE 2
60
50
40
TRISE
(mSEC)
30
20
10
0
0
2000
4000
6000
RLOAD
8000
10,000
The relationship between worst-case rise time and load resistance for the basic phototransistor circuit indicates that for a
tRISE of 42 sec, RLOAD should equal 7.5 k .
10% error on the bit length, the rise-time estimate is 42 msec,
which corresponds to a 7.5-kV resistor.
To get a faster response time, you can use an op amp, but
FIGURE 1
12V
5k
VDD
5V
1
3 +
100k
SFH320
OUTPUT
1/2 TL082
SFH320
5k
OUTPUT
2
1
3 +
1k
BC847B
1
100 nF
SFH320
1/2 TL082
100k
(a)
(b)
(c)
A basic phototransistor (a) has a 5- to 8-sec rise/fall time with a 1-k resistor. An op amp can improve a phototransistors
response time (b) but performs poorly without additional phase compensation. Alternatively, you can use a transistor to isolate the phototransistors capacitance and to hold the signal voltage across the phototransistor to a stable dc value (c).
EDN
without phase compensation the result is poor. In Figure
1bs circuit, the phototransistors internal capacitance and
the amplifiers gain bandwidth limit the overall speed. To
cancel the side effect of the phototransistors CCB, the amplifier needs a small capacitor in parallel with R. Choosing the
right value for the compensation capacitor is a difficult task,
because the current-to-voltage converter exhibits a two-pole
response. Also, to ensure stability, you need to consider
phase compensation and bandwidth together.
Fortunately, there is another way to get the best of the
phototransistor bandwidth. You can isolate the phototransistors internal capacitance with a transistor (Figure 1c). The
DESIGN IDEAS
transistor, with its low output impedance and its large gain
bandwidth, holds the signal voltage across the phototransistor to a stable dc value. The versatile BC847 can do the job,
and, with Siemens SFH320, the circuit can reach a transmission speed of 153.6 kbps. You cant increase the speed
beyond this point, even with the fastest op amp, because of
the photoelectric delay that the charging and collecting
processes cause. (DI #2188)
e
To Vote For This Design, Circle No. 527
FIGURE 1
5
4.5
4
5VCC
3.5
1
D2
R/4
VOUT
0
1
D1
VOUT (V)
2.5
R/2
R
1.5
0
1
0.5
GND
0
DUPLICATE
CODES
TERNARY CODE
1F
1
11
F
11
1
F
10
0
F1
0
10
F
10
1
FF
1
1F
0
F1
F
11
0
F1
1
1F
F
FF
(b)
F
0F
0
0F
F
F0
0
00
1
F0
F
0F
1
01
0
FF
0
01
F
F0
1
01
1
(a)
00
00
D0
DUPLICATE
CODES
Providing three possible inputs1, 0, and F (floating)to the resistor network (a) produces a ternary-code transfer characteristic (b).
EDN
DESIGN IDEAS
5V
FIGURE 2
14
4
MCLR
VDD
15k
16
BINARY INPUT
OSC1/CLKIN
10
9
8
7
6
B4
B3
B2
B1
B0
RB4
RB3
RB2
RB1
RB0
1
PIC16C84
RA2
RA1
RA0
VOUT
18
17
9215k
15 pF
VSS
5
BOURNS SINGLE-INLINE ARRAY TYPE
4610X-101 OR SIMILAR
EDN
DESIGN IDEAS
FIGURE 1
fM = fS /2
where fM is the maximum allowable signal frequency and fS is the sampling
rate. If you want the sampled signal
data to directly form a high-quality
visual representation of the signal
waveform, a considerably higher sampling rate is necessary. A practical
implication of this equation for highfrequency signals is that you can
acquire sequences of signal data for
only short periods before the available
memory is filled.
However, many high-frequency signals, such as RF and IF signals in communications systems, are bandpass signals whose bandwidths are very small
relative to the center frequencies. Consequently, you can intentionally
undersample these signals so that their
spectral components alias to lower frequencies. To ensure that the spectral
An undersampling technique helps capture the envelope (a) and instantaneous frequency (b) of a single hop from a typical frequency-hopping radio using FSK modulation.
fL mfS ,
components of the signal do not fold over on themselves or
become reversed, you must choose the sampling rate, fS,
fU < (2m + 1)fS /2,
such that simultaneous solutions exist for
and
where m=fL/fS (an integer) and fL and fU are the respective
upper and lower bounds for the bandwidth that the signal
of interest occupies. The undersampled signal differs from
the original signal by a downward shift in frequency of mfS.
In carrying out this concept, you need to disable analog lowpass filters at the oscilloscope input or ensure that the filters
have a cutoff frequency high enough to preserve the signal
information.
You can apply this concept to practical applications, such
as the digitization, storage, and analysis of the RF-signal output from a VHF radio that employs frequency-hopping techniques. In this application, the radio was programmed so
EDN
DESIGN IDEAS
FIGURE 1
5V
GROUND
S1
TO I/O 0 ON
BASIC STAMP (DOWN)
5V
GROUND
S2
TO I/O 1 ON
BASIC STAMP (UP)
EDN
selection and gain control. The format is simple: The system
must first pull the Load line on the LM1973 low and then
pulse 16 clocks on the Clock line with a corresponding 16
bits of input data on the Data-in line. The 16 bits of data
comprise 8 address bits, which select one of the three channels and 8 attenuation bits, which select the attenuation setting for the selected channel. This data format is most significant bit first with the address bits first and the
attenuation bits immediately after. This straightforward format could be difficult to implement in a prototype without
a controller, but the BSII makes a kluge programmer devilishly simple.
This example uses only one channel of the LM1973,
although using all three channels is just as simple. Two normally open pushbuttonsone for up and one for down
provide an active high when depressed (Figure 1). You also
need to connect the following three BSII outputs to the digital potentiometer: I/O 8 to Data (Pin 11 for LM1973), I/O 9
to Clock (Pin 9 of LM1973), and I/O 10 to Load (Pin 10 of
LM1973)
The meat of the code required for this application comprises two BSII instructions: Button and Shiftout. Button
DESIGN IDEAS
checks the status of a BSII input line and allows for branching according to that status. This example monitors the up
and down buttons until one is pressed and then reprograms
the LM1973 accordingly. The Shiftout instruction shifts out
a data word synchronously along with a clock output. You
select the appropriate output pins and specify a most-significant-bit-first protocol, as the LM1973 demands.
This minimal code provides up/down programming on a
single channel but is easily expandable to provide other
functions, including data readback from the serial device,
multiple channels, or custom programming sequences. You
can easily edit the code on the PC, debug the code with the
BSII connected to the PC, and then download the code and
carry it away on the BSII.
Listing 1 is available for downloading from EDNs Web
site, www.ednmag.com. At the registered-user area, go to the
Software Center to download the file from DI-SIG #2178. (DI
#2178)
e
To Vote For This Design, Circle No. 530
OF
ward drops (VD) and stray capacitance (CS), then the net feedback current from the pump is
2C1
C1
2 VD )
fOUT (2C1 + CS )4.55V3
2VD (4.55V3
2C1 + CS
2C1 + CS
2C C1
= fOUT (2C1 + CS )4.55V3 1
+ 2VD 2VD
2C1 + CS
EDN
DESIGN IDEAS
temperature coefficient to approximately 50 ppm/8C. The
converter linearity is 0.03%, and the current draw is an
unexcelled 6.5 to 10 mA as fOUT goes from 0 to 10 kHz. IC1s
approximately 300-mV input-offset spec determines the converters zero offset. IC2s regulation of the 4.55V reference
affords good power-supply rejection, yielding undiminished
accuracy for supply voltages from 5 to 36V. (DI #2183) e
FIGURE 1
2N5087
5 TO 36V AT
<
10 A
CA1
4.55V
510
1M
+
10M
Q2
5.11M
Q3
0.01 F
10 F
2N5089
2.2M
VIN
+
2.5V
2.49M
1M
0.01 F
IC2
5
+
1.8M
1.2V
Q1
*R1
wQ
*R3
2
3
1M
IC1
+
470k
R2
3.6M
IC3 100k
8
LT1495
LTC1440
FOUT
5 VHYST
1
2.26M
wQ
LT1495
30k
16
470 pF
12
1k
22M
15
7
C5
0.01 F
S2
MINUS
D3
C1
C3
S3
3
4
10
9
6
1
NOTES:
S1, S2 = HCT4053; C1 TO C4=22 pF+
5%, NP0;
ALL DIODES =1N4148.
*1% METAL FILM.
14
11
13
D1
2
S1
C2
D1
C4
D4
A fleapower bipolar-input VFC uses a modified charge-pump technique to achieve high linearity with power supplies ranging
from 5 to 36V.
EDN
DESIGN IDEAS
FIGURE 1
COMPONENTS NEEDED
FOR LCD-BIAS OUTPUT
VIN
4V
D2
C2
LCD BIAS
6V AT 0.5 mA
C+
VDD
D1
IC1
MAX844
C4
3
C3
VOUT
GaAs BIAS
3V AT 4 mA
QUIET
(1-mVP-P RIPPLE)
OUT
C1
100k
R2
C5
CONT
NEG
100k
4
SHDN
R1
GND
GaAs OUTPUT
CONTROL
VOLTAGE
.
NOTES: 1. C1=C2=C3=0.22 F.
2. C4=C5=4.7 F.
3. D1=D2=SGL41.
R2
4. VOUT=(CONTROL VOLTAGE)3 R1
GaAsFET
ON/OFF
EDN
DESIGN IDEAS
Fax
E-mail
My e-mail address may be published
Yes
No
Company
Address
Country
ZIP
EDN
EDITED
BY
DESIGN IDEAS
FIGURE 2
5V
2
FIGURE 1
X
K1A
TO FPGAs
R19
51
1
+
C13
K1
10 mF
D7
1N4446
10
A large negative spike (top waveform) in the turn-on waveform of the 5V supply line is an effective FPGA destroyer.
EDN
FIGURE 2
95
1A
90
2A
0.25A
EFFICIENCY
(%)
DESIGN IDEAS
85
80
75
2.7
2.9
3.1
3.3
3.5
3.7
3.9
4.1
4.3
4.5
The conversion efficiency for the boost regulator in Figure 1 averages 87% overall.
The circuit provides its best efficiency for all input voltages with a 1A load.
FIGURE 1
R3
0.025
2.5VIN TO 4.2V
C1
330 mF
6.3V
D1
D2
MBR0530T1
D3
D4
R1
R2
100
100
L1
22 mH
7A
DO5022-223
COILCRAFT
C2
1 mF
SEN1
SEN+
BDRV
16
2
PWRVIN
3
4
5
6
C6
1 mF
C5
10 mF
16V
C7
220 pF
C8
0.012 mF
R4
LBO
PINV
BINH
LTC1266
IC1
LBIN
TDRV
ITH
R8
SGND
6.2k
12
C9
0.033 mF
VFB
S/D
PGND
VOUT
5V, 2A
14
13
1
Q1
IRF7401
R5
2
VIN
CT
Q2
IRF7401
C3* +
D5
MBRS120T3
R6
100k
1%
C4
1200 pF
32330 mF
6.3V
10
11
R7
33.2k
1%
15
A charge-pump arrangement allows this boost regulator to operate with input voltages far below the minimum specified value
for the regulator IC.
EDN
DESIGN IDEAS
AND
FIGURE 2
INPUT SIGNAL A
0V
OUTPUT SIGNAL B
0V
The clamp level at Point B in this circuit is independent of the average level at Point A. The circuit thus keeps signal levels with
the ADCs input range.
EDN
range in the absence of an input signal and forces any signal
other than composite video to be within the ADCs input
common-mode range.
The circuit accomplishes video clamping by building a
control loop that forces the dc voltage at IC2s output to a
desired level during the blanking period. This level, approximately 25% of full scale for a composite-video signal, forces
the ADCs output-pedestal (blanking) level to an 8-bit code
of approximately 64. The simple filter comprising R3 and C3
bandlimits the signal at the output of IC2. This high-frequency attenuation is necessary to prevent noise spikes from
upsetting the operation of the LM1881. The LM1881 is a
video sync-separator chip that produces burst-gate pulses at
its Pin 5 when a composite-video signal is present at Pin 2.
The burst-gate output of the LM1881 serves to sample the
blanking level of the video signal. Potentiometer VR1 and R5
produce an adjustable offset in the signal path when Q1 gates
on. During the blanking period, the ac-coupled burst-gate
signal pulls Q2s base low (to approximately 4V), thus pulling
Q1s gate high, thereby sampling and storing the sum of the
video-blanking level and the dc offset from VR1 onto C7. At
times other than the back-porch interval, Pin 5 of the
DESIGN IDEAS
LM1881 is high, and Q2 is off, thereby turning Q1 off. Divider
R14-R15 attenuates the voltage on C7 to ensure sufficient
phase margin in the clamp loop. IC4 is an integrator that
averages the attenuated dc value over many samples. This
average sums with the input signal in IC1.
If the integration time is too small, the result could be
shading across the display. A long integration results in slow,
perceptible adjustments when switching between fields with
large differences in average brightness. The dc feedback path
for IC4 is through IC1 and IC2. If no video signal exists or if
the input signal has no sync, R11 holds Q2 on, thus holding
the video output of the circuit within the ADCs operating
range. With VR1 centered, the level halfway between the positive and negative peaks of the input signal clamps at
approximately 1.6V, or approximately halfway between the
high and low reference voltages (2.6 and 0.6V, respectively)
of the ADC1175. The circuit achieves an effective number of
bits of 7.5, corresponding to a signal-to-noise and distortion
of 47 dB. Figure 2 shows the offset at Point B in Figure 1, relative to the voltage at Point A. (DI #2184)
e
To Vote For This Design, Circle No. 368
FIGURE 1
FIGURE 2
PHASE A
3600, 10W
PHASE C
PHASE B
1800, 10W
1.5 F, 600V
NONPOLAR
ABC
CBA
NEON
LAMP
NE-2
NEON
LAMP
NE-2
f=60
C=1.5.10-6
V=0
R1=3600 R2=1800
1
x=
2..f.C
x=1.768.103
1 .(120.cos (2..f)V)
IA=
R1
1
IB=. 120.cos 2..f2. V90
3
R2
1
2..f.C
IA =0.033
IB =0.083
IC =0.033
EDN
DESIGN IDEAS
FIGURE 3
1
x=
2..f.C
x=1.768.103
f=60
C=1.5.10-6
V=0
R1=3600 R2=1800
IA= 1.(120.cos(2..f)V)
R1
1
IB= 120.cos 2..f4. V90
3
R2
1
2..f.C
IA=0.033
IB=0.083
IC=0.116
FIGURE 1
100
1/4W
120V AC
60 Hz
0.5 F
200V NONPOLAR
W04G
100
1/4W
MURATA
PKB5-3AL
120V AC
60 Hz
0.5 F
200V NONPOLAR
MURATA
PKB5-3AL
F336HD
0.5 F
200V NONPOLAR
F336HD
120V AC
60 Hz
W04G
IN4733
5.1V
100
1/4W
W04G
MURATA
PKB5-3AL
+ 1 F
10V
IN4733
5.1V
+ 1 F
10V
IN4733
5.1V
1 F
10V
(c)
(a)
(b)
A handful of inexpensive components configures a piezo alarm device as a buzzer (a), a beeper (b), or a chime (c).
+
35 F
10V
EDN
DESIGN IDEAS
core. Trace 1 shows only a few amps with use of the smartswitch circuit. This large difference in current demonstrates
the value of the smart switch in controlling transformer
magnetization. Switching on during a positive half cycle and
off during a negative half cycle or vice versa prevents most
core saturation.
Peak switching of the ac voltage during turn-on and -off
further reduces the susceptibility to core saturation, regardless of ac polarity. This reduction is an important consideration in the event of an uncontrolled power outage. Figure 3,
trace R, shows the primary current with peak and samepolarity switching. The vertical scale in Figures 2 and 3 is
10A per division, and Trace 2 is the relay control voltage. The
primary current in Figure 3 causes some core saturation
(note that the current is not bipolar), but the saturation is
much lower than that in Figure 2. Trace 1 shows the reduced
primary current with the use of peak and opposite-polarity
switching. Note that transformer designs vary widely; some
may favor particular phase angles.
FIGURE 1
120V AC
LINE
TRANSFORMER UNDER
TEST
SIGNAL 36-6
LOAD
20 SOFT-START
10W
RESISTOR
B2
B1
SOLID-STATE RELAY
CRYDOM D2425D-10
120/
240V
A2
4 TO
+
A1 15V DC
+
NEUTRAL
5V
20k
5V
0.1 F
20k
10k
8
1
6
HCPL3760
AC
ZR
7
IC2
12C508
SSR2
4
8
5V
SSR1
EIGHT-PIN MICROCONTROLLER
OPTOCOUPLER
TRANSFORMER +
ENABLE INPUT
0 TO 5V
1k
10k
STATUS
HLMP-1700
A mC-controlled smart switch prevents transformer-core saturation, thus averting system crashes and prolonging the life of
power-supply relays.
EDN
Inrush current from power-supply filter capacitors is also
an important design consideration. By using a resistor, an
inrush device, or an inductive input filter in the secondary
winding, you can reduce this inrush surge. Another solution
is to soft-start the transformer by using a resistor in the primary to limit inrush and saturation currents to an acceptable level. After a brief delay, a second solid-state relay shunts
the resistor. The Microchip 12C508 mC uses its internal 4MHz RC oscillator for all timing. The chip is simple, inexpensive, reliable, and well-suited for this application. For
wide temperature variations, you can obtain more accurate
DESIGN IDEAS
timing by using a 32-kHz crystal. You can download Listing
1, the source code for the mCs operation, from EDNs Web
site www.ednmag.com. At the registered-user area, go into
the Software Center to download the file from DI-SIG,
#2170.
You can use either zero-crossing or random relays, but the
random type works better for transformers. Set Pin 4 high for
zero-crossing relays and low for random-turn-on relays. The
HCPL-3760 optocoupler determines the polarity and phase
of the ac line. The coupler is configured as a near-zero detector. Its output is set to switch on at 50V ac and off at 25V ac.
EDN
DESIGN IDEAS
FIGURE 2
The smart-switch circuit in Figure 1 greatly reduces core saturation, resulting in well-behaved primary current. Trace R1
results from peak and same-polarity switching; trace 1 represents peak and opposite-polarity switching.
One internal diode in the optocoupler rectifies the ac signal
to indicate the positive half cycle. The mC has two solidstate-relay outputs: SSR1 and SSR2. When the Transformer
Enable input goes high, the mC waits 250 msec, detects the
next positive edge from the optocoupler, waits 12 msec, and
then turns off SSR1. SSR2 has a 250-msec delay from SSR1
and operates as a last-on, first-off output to shunt a soft-start
resistor. Pin 3 is an optional output for a power-supply bleeder switch or a status indicator. (DI #2170)
e
To Vote For This Design, Circle No. 371
EDN
DESIGN IDEAS
FIGURE 1
3
4
5
Figure 2 also illustrates the loss of resolution when converting the output A of A law to output A of m law. Depending on the law, either 8 bits (A law) or 4 bits (m law and higher quantization levels) represent the value, therefore, the
transitions occur faster around output A than around output
A. For the A to A translation, the slope of A law is twice the
slope of m law.
Although information loss occurs during the conversion of
value A, the same is not true for B. For B, the A law and m law
slope are the same, and the quantization level is the same.
Thus, the difference between B and B involves only a translation and a change of segment (B in S4, B in S3). A simple
comparison shows that the A value suffers a translation and
a loss of information but remains in the same segment after
conversion.
The design of the encoder must take into account the A law
signals segment and offset value, as does the following algorithm for which the A law input signal is PSD, and the m law
output signal is QRE, for which P,Q=polarity (1 bit), S,R=segment (3 bits) and D,E=value (4 bits):
If S=0, then Q=P, R=S, and E=D.
If S=1, then Q=P, R=S, and E=D/2.
IC7
74HC58
6
Z0
2
3
4
5
2A
2B
2C
2D
2Y
5V
1.2k
13
S0
S1
S2
1
2
3
14
15
IC1
74HC259
D
S0
S1
S2
G
CLR
Q0
Q1
Q2
Q3
Q4
Q5
4
5
6
7
9
10
Z5
Z4
Z3
Z2
5
3
14
12
D0
D1
D2
D3
6
2
15
11
7
5V
IC5
74HC157
IC2
74HC283
Z1
A1
A2
A3
A4
S1
S2
S3
S4
2
3
5
6
11
10
14
13
4
1
13
10
B1
B2
B3
B4
C0
C4
1
15
CO
S0
S1
S2
5
3
14
12
6
2
15
11
7
A1
A2
A3
A4
S1
S2
S3
4
1
13
S0
S1
S2
B1
B2
B3
B4
C0
1Y
2Y
3Y
4Y
4
7
9
12
E0
E1
E2
E3
A/B
G
IC4
74HC157
IC3
74HC283
1.2k
1A
1B
2A
2B
3A
3B
4A
4B
IC6B
74HC27
Y0
Y1
1
2
13
12
2
3
5
6
11
10
14
13
1
15
1A
1B
2A
2B
3A
3B
4A
4B
1Y
2Y
3Y
4
7
9
A/B
G
m law translator inputs values of S and D and outputs E and R according to a specific algorithm.
This A law-to-m
R0
R1
R2
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
B6
B5
B4
B3
B2
B1
B0
B3
B2
B1
B0
B2
B1
B0
SET BREAK
LSR
FIGURE 2
BREAK
B7
B6
B5
MARK
Tx DATA EMPTY
Tx MACHINE STATUS
SPACE
START
DATA (NULL)
STOP
IER
B7
B6
FIGURE 3
FIGURE 4
DATA 1
DATA N
BREAK
B4
B3
Rx DATA
INTERRUPT
IIR
B7
ADDRESS
B5
INTERRUPT ON
Rx ERROR CONDITION
The ability to recognize the break condition is key to the master-slave transfer protocol.
BREAK
B4
B6
B5
B4
B3
B2
B1
B0
INTERRUPT
PENDING
INTERRUPT TYPE
1 1 Rx ERROR CONDITION
1 0 Rx DATA AVAILABLE
0 1 Tx REGISTER EMPTY
0 0 MODEM INTERRUPT
EDN
mission line low until bit 6 receives a zero. To make the duration of the break equal to one character-transmission delay,
the routine transmits a null (00 hex) character. Bit 6 of the
line-control register (transmit machine status) indicates
when this delay is over; the break bit then resets. To enable
detection of the break, bit 2 of the interrupt enable register
(interrupt on receive error condition) sets during UART initialization. Bit 0, set to one, enables receive data interrupts.
In the ISR, bits 1 and 2 of the interrupt-identification register
indicate the interrupt type.
In this scheme, no CPU overhead is wasted examining each
character to detect addresses/packet boundaries. Also, a slave
must process only three interrupts per data packet transmit-
DESIGN IDEAS
ted on the bus, and blocks of data not addressed to the slave
do not disturb it. Because the break is not a legitimate data
character, it is data transparent; you can use it for binary-data
exchange. The packet-boundary detection is immune to data
errors. You can make it even more robust by including datalength and check-sum fields in the frame to enable error
detection. You can also use parity error detection. Note that
the method can support broadcast/multicast message transfer by designating some addresses for these purposes. You can
also implement any-node-to-any-node communication by
polling the master, as in the SDLC protocol. (DI #2193) e
To Vote For This Design, Circle No. 413
EDN
DESIGN IDEAS
FIGURE 1
MAX8911
IC2
VTH=2.63V
BATTERY
2.7 TO 5.5V
C1
0.1 F
VCC
MAX834
GND
IC1
IN
CLEAR
OUT
R2
390k
IN
OUT
IN
OUT
ON
GND
FAULT
SET
8
7
VOUT
+ C3
LOAD
TRANSIENT
CAPACITOR
6
5
R4
2.4k
Q1
MMBT3904LT1
470k
C2
0.1 F
470k
R1
330k
R3
100k
When the voltage reaches a minimum threshold established by R1 and R2, the high-side switch, IC2, turns off and disconnects
the battery from the load.
FIGURE 2
3
BATTERY
2.7 TO 5.5V
+
2
IN
VCC
GND
MAX834
IC1
1 CLEAR
BATTERY
2.7 TO 5.5V
OUT
1
+
1
100k
P1
3
2
1
3
2
1
J1
VCC
GND
IN
MAX834
IC1
CLEAR
OUT
100k
BATTERY-CHARGER
CONNECTOR
(a)
(b)
Other schemes for clearing IC1s output include an spst momentary pushbutton switch (a) and a connection through the battery-charger connector (b).
EDN
DESIGN IDEAS
DR OR DT
FIGURE 1
TFS
IC2
74HC166
LSB
VCC
VCC
GND
1
2
3
4
5
10
11
12
14
16
15
14
13
12
11
10
9
7
6
15
9
2 3 4 5 6 7 8 9
10k
IC1A
B1
RFS
FIGURE 2
1
2
3
4
5
6
7
8
B14
SCLK
VCC
MSB
SER
A
B
C
D
E
F
G
H
QH 13
CLK
INH
SH/LD
CLR
74HC02
2
1
1
2
3
4
5
10
11
12
14
IC3
74HC166
SER
A
B
C
D
E
F
G
QH 13
H
7
6
15
9
CLK
INH
SH/LD
CLR
MSB
VCC
16
15
14
13
12
11
10
9
1
2
3
4
5
6
7
8
SCLK
2 3 4 5 6 7 8 9
10k
1
VCC
RFS
DR
14
DT
11
10
VCC
12
13
IC1B
IC4
74HC595
SER
QA
QB
QC
QD
SRCLK
QE
SRCLR
QF
RCLK
QG
G
QH
74HC02
5
TFS
QH
LSB
470
1
2
3
4
5
6
7
8
9
15
1
2
3
4
5
6
7
9
IC5
74HC595
470
FROM
ADSP-21XX
SYNCHRONOUS
SERIAL PORT
14
SER
11
10
SRCLK
SRCLR
VCC
12
13
RCLK
G
QA
QB
QC
QD
QE
QF
QG
QH
QH
2
3
4
5
6
7
8
9
15
1
2
3
4
5
6
7
9
The DSP shifts data, MSB-first, in each direction. The data is valid on the falling edge of SCLK.
MSB
LSB
EDN
LEDs to the data bus using octal latches and decoded address
strobes. However, this connection can be a wiring nightmareor even impossible if the design does not generate the
required control strobes. Most DSP chips have a synchronous
serial port that provides high-speed (>10 Mbps) bidirectional
communication over five wires. The circuit in Figure 1 provides 16-bit switch and LED I/O using the on-chip serial port
of Analog Devices ADSP21xx family. Some ADSP devices,
such as the ADSP2105, have only a single serial port that the
target application can use. However, during debug, you can
use the pin-compatible ADSP2115, which has two serial
ports. You can bring the five signals from the second serial
port to a header that attaches to the circuit in Figure 1.
The DSP generates a continuous serial clock (SCLK) in Figure 2. Data shifts, MSB-first, in each direction and is valid on
the falling edge of SCLK. For transmission to the LEDs, the
DSP asserts the transmit-frame-sync (TFS) line while the 16
bits clock out on DT (data transmit). Cascaded 8-bit serial-toparallel shift registers, IC4 and IC5, capture the data, and the
LEDs receive an update on the rising edge of TFS. For switch
reception, the DSP generates a receive-frame-sync (RFS) pulse
one bit-time before reading the data. RFS latches the switch
DESIGN IDEAS
FIGURE 1
JP16
ATMEL AT29C010A
A16
TO mP
BUS
A1
D7
D6
D5
D4
D3
D2
D1
D0
A0
CE
OE
GND
JP1
TEST POINT
FOR SCOPE
PROBE
FIGURE 2
0.025-IN.-SQ PIN
SOLDER
JP0
24 AWG
STRANDED WIRE
TO FLASH DECODER
5V
PGM
VCC
10k
10 mF
INSTALL
HEAT-SHRINK
TUBING FOR
INSULATION
0.1 mF
A flash chip with all addresses but one filled with zeros dramatically improves DSO-triggering capabilities.
This test pin plugs into a 0.025-in. test point while providing
another 0.025-in. pin for other test equipment.
EDN
DESIGN IDEAS
FIGURE 1
100
1/4W
0.5 F
200V NONPOLAR
100
1/4W
0.5 F
200V NONPOLAR
100
1/4W
0.5 F
200V NONPOLAR
F336HD
120V AC
60 Hz
120V AC
60 Hz
W04G
MURATA
PKB5-3AL
F336HD
120V AC
60 Hz
W04G
+
1
MURATA
PKB5-3AL
+ 1 F
1 10V
W04G
MURATA
PKB5-3AL
+
1
+ 1 F
1 10V
+
1
IN4733
5.1V
IN4733
5.1V
1 F
10V
IN4733
5.1V
(c)
(a)
(b)
A handful of inexpensive components configures a piezo alarm device as a buzzer (a), a beeper (b), or a chime (c).
+
1
+ 35 F
1 10V
EDN
DESIGN IDEAS
Fax
E-mail
My e-mail address may be published Yes
No
Company
Address
Country
ZIP
EDN
DESIGN IDEAS
FIGURE 1
D3
HIGH-VOLTAGE TIP
25 kV
D4
200V Q2
200V
T2 (CAR'S IGNITION COIL)
TURNS RATIO=93
VC1
C1
TH1
10k
Q4
12V
Q5
470
1N4004
330
D2
560k
10k
330
10k
2.2k
2.2k
T1 100k
LP(T1)
IN4148
200
FUSE
10k
Q3
Q1
BD911
D1
2 mF/400V
PUSHBUTTON SWITCH
Q6
D5
D6
1k
150
1000 mF
330
D9
9.1V
4.7 nF
100 nF
D7
1k
15k
3
2
Q R TR
IC1
7
TL431
DIS IC2
6
5
THR
CV
470 nF
LM555
100 nF
4
3.9k
10k
R3
PGND 15V
3
Q
7
IC3 DIS
5
6
CV
THR
2.2 nF
Q7
R2
562k
10k
1k
TR
LM555
100 nF
1k
270
R1
562k
1k
100 nF
1k
R4
100 nF
75
(TO
DEVICE
UNDER
TEST)
Using a cars ignition coil produces a test voltage as high as 25 kV for insulation testing.
1k
1k
4.7 mF
Q8
EDN
and ICMAX(Q1) is the collector current of Q1 at the end of the
first cycle. For the component values in Figure 1, DEC'0.5
E C
2 E C
,
VC1 = VC0 1 +
1
2
V C
VC0 C 1
C0
1
E C =
L P( T1) I CMAX( Q 1) 2
2
R + R2
VHIGH = 2.5 1 + 1
,
1 +
R
N PRI( T 2 )
3
DESIGN IDEAS
ratio. Thus, DVC1 should be small to achieve good stabilization. On the other hand, a smaller value increases the time
between subsequent high-voltage pulses. In this case, the
accuracy estimate of the high-voltage pulse is better than
0.5% at 25 kV.
The free-running frequency of the converter depends on
the time it takes to lead Q1 out of saturation (first part of the
cycle) and the time when the current from the secondary
winding of T1 drops to a value near zero (second part of the
cycle). This circuit doesnt tightly control this frequency,
which isnt a critical design parameter; the values in Figure
1 set the frequency to approximately 6 kHz.
Q2, D3, and D4 prevent VC1 from exceeding about 400V,
which protects the generator from producing excessively
high voltages. Q3, Q4, Q5, and associated circuitry allow for
blocking the converter when the power supply to the circuit
is too low. A too-low power-supply level may lead to an output-pulse amplitude from IC2 that is too low to trigger the
thyristor, so VC1 may reach a very high value, limited only by
the breakdown voltage of the thyristor. This breakdown voltage is the second level of protection, but you can never take
too much care in circuits like these.
Two LEDs indicate the status of the power supply: D5 indicates that the level is OK, and D6, that the power supply is too
low. One-shot IC3, Q4, and associated components form the
source of an alarm, indicated by a flashing D7, when the isolation breaks down or a discontinuity occurs. A simple pushbutton switch turns on the generator.
For the component values in Figure 1, the circuit generates 25-kV pulses with a repetition rate of approximately 0.2
sec. This repetition rate depends on the occurrence or lack of
occurrence of the electric arc. Because the amount of energy
stored in C1 is relatively low, the energy of the high-voltage
pulse is also low, which is good for safety purposes. Note that
it is very important and absolutely necessary to connect the
part youre testing to the PGND point, because the risk of
electric shock exists. (DI #2199)
e
To Vote For This Design, Circle No. 414
date/time data. The access routines available from the manufacturer (example file DEMODS5T.SRC) are painfully slow:
a byte read takes 106 processor cycles, a byte write takes 112
cycles, and clock opening takes 1929 cycles. Therefore, access
to all real-time-clock registers (open/read or open/write
sequences) lasts more than 2800 cycles.
Listing 1 uses a different control scheme; the protocol
logic resets only during system start-up, which consumes 436
cycles. Also, the listing linearizes the short loops used in the
original procedures to open the clock and read/write the data
byte. The result is that a byte read takes 51 cycles, a byte write
takes 57 cycles, a whole real-time-clock read takes 926 cycles,
EDN
and a real-time-clock write takes 972 cycles. The potential
drawback of this option, with respect to the original
approach, is that interrupt-service routines executed during
real-time-clock access must not address external data memory, because any MOVX would interfere with the clock-access
protocol.
DESIGN IDEAS
You can download Listing 1 and other related listings from
EDNs Web site, www.ednmag.com. At the registered-user
area, go into the Software Center to download the file from
DI-SIG, #2187. (DI #2187)
e
To Vote For This Design, Circle No. 415
EDN
DESIGN IDEAS
R2 +
VREF
R1
R3 + R4
2n
V
255
= REF
R 2 + 1V.
R1
256
VL( MAX ) =
R4
N
VL = REF n R 2 +
VREF ,
R1
R3 + R4
2
R4
VREF .
R3 + R4
For the values of R3, R4, and VREF in this example, VL(MIN)=1V.
When all the digital inputs are set to logic high (n=8, and
N=255),
FIGURE 1
0.1
15V
MSB
R2
4k
LSB
115V
IREF
+VS
IC1
REF01
VO
5 6 7 8 9 10 11 12
D7 D6 D5 D4 D3 D2 D1 D0
14
VREF(+)
6 10V
R1
5k
2 1 4
4 IOUT
IC2
DAC08
GND
4
15
5k
VREF(1)
VS
13
0.1
VREF (10V)
0.1
IOUT
0.1
15V
3 +
IOUT
1VS
3
COMP
16
VL
10k
IC3
OPA111
2 IOUT
VLC
1
0.1
0.1
D1
Q1
15V
115V 0.01
R6 1N914
10k
R3
18k
R4
2k
VIN
R5
10k
6
5
10k
1
IC4B
+
7
VOUT
5k
115V
D2
Q2
4
10k
2 1
3
5k
0.1
1
+
8
IC4A
OP271
0.1
1N914
1VL
10k
0.1
NOTE: ALL CAPACITORS ARE IN MICROFARADS.
15V
The maximum output of this amplitude limiter is digitally programmable over 2 to 10V in 2n steps, where n is the number
of bits of the DAC.
EDN
DESIGN IDEAS
Red 1
Red 2
Green 1
Green 2
Color
0(1)
1(0)
Red 50%
Red 100%
0(1)
1(0)
Green 50%
Green 100%
0(1)
1(0)
0(1)
1(0)
Orange 50%
Orange 100%
Blank
FIGURE 1
IC1
CS0
P/C
SYSTEM
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
IC2
OC
11
2
3
4
5
6
7
8
9
1D
2D
3D
4D
5D
6D
7D
8D
1Q
2Q
3Q
4Q
5Q
6Q
7Q
8Q
SN74HC574
19
18
17
16
15
14
13
12
1
2
3
4
5
6
7
8
LED1
COM
1P
2P
3P
4P
5P
6P
7P
8P
1Q
2Q
3Q
4Q
5Q
6Q
7Q
8Q
18
17
16
15
14
13
12
11
COM0
COM1
COM2
COM3
COM4
COM5
COM6
COM7
ULN2803
GREEN
RED
R0 R1 R2 R3 R4 R5 R6 R7
19
18
17
16
15
14
13 12
19
18
17
16
15
G6 G7
14
13 12
OC
1Q 2Q 3Q 4Q 5Q 6Q 7Q 8Q
IC3
CS1
G0 G1 G2 G3 G4
11
IC3
SN74HC574
1D 2D 3D
2
1Q 2Q 3Q 4Q 5Q 6Q 7Q 8Q
OC
4D 5D 6D 7D 8D
5
C
11
SN74HC574
1D 2D 3D
2
4D 5D 6D 7D 8D
5
CS2
DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7
A few TTL circuits and some MCS-51 code allow you to obtain more than three colors from a tricolor dot-matrix LED.
EDN
four green), you can obtain the color
shades listed in Table 2. Note that only
the number of ones in the color planes
controls color appearance. Therefore,
the permutations do not change the
color, as long as the numbers of ones in
Table 2 remain constant. For example,
the values 0110, 1001, 1100, and 0011
for R1 through R4 all produce the same
color: orange 50%. You can download
Listing 1as well as the MCS-51 code
that produces 13 colors from an 838 tricolor LEDfrom EDNs Web site,
www.ednmag.com. At the registereduser area, go to the Software Center to
download the file from DI-SIG #2195.
Note that, in practice, bytewide output ports control the LED. To assign a
color to a dot, the routine must extract
a bit from a byte and then assign the bit
value of the selected color plane by
plane. (DI #2195)
e
DESIGN IDEAS
Color
Red 25%
Red 50%
Red 75%
Red 100%
Green 25%
Green 50%
Green 75%
Green 100%
Orange 25%
Orange 50%
Orange 75%
Orange 100%
Blank
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
Fax
E-mail
My e-mail address may be published Yes
No
Company
Address
Country
ZIP
EDN
DESIGN IDEAS
such as the MAX400 and OP-07, whose input commonmode-rejection and output-range specifications are 2 to 3V
within the supply rails. Thus, the rails are good enough if
the 5V output is less than 3V and the 10V output is more
than 8V. Accordingly, the component choices in Figure 1 ,
such as the lossy RC output filters and silicon signal diodes
in place of Schottky diodes, provide for minimal cost and
ripple rather than maximum regulation. The 4.7-mF capacitors, C 4 and C 7, can be high-ESR, commodity, multilayerceramic types with 16V ratings, a 1206 case, and a Y5V
dielectric, such as the 1206YG475ZAT2A from AVX Corp
(www.avxcorp.com).
The output ripple varies with the supply voltage and output load. Operating with an input voltage of 1.8V, the circuit produces ripple amplitudes over the load of 2 to 10 mV
p-p for the 10V rail and 15 to 30 mV p-p for the 5V rail. By
increasing C5 and C 8 to 2.2 mF, you can reduce these ripple
levels to 1 and 5 mV, respectively.
With no load on the auxiliary rails, the 5V outputs maximum available load current rises with input supply voltage
(Figure 2a ). You can increase this available output power by
replacing D 1 with a lower loss Schottky diode. At an input
of 1.8V, the output power available for the three rails
(loaded with 10 mA at 5V, 5 mA at 10V, and 5 mA at 5V) is
somewhat less than 125 mA; with a 5-mA load, the 10V and
5V outputs are approximately 9.75 and 3.7V, respectively
(Figure 2b ). A 2.7V input based on three flat cells yields
FIGURE 1
Adding external charge pumps to this 5V boost converter produces auxiliary analog rails of 10 and 5V.
www.ednmag.com
113
EDN
DESIGN IDEAS
FIGURE 2
With auxiliary rails unloaded, the 5V outputs maximum available load current
rises with input supply voltage (a). The auxiliary-output voltage levels depend on
the load current (b).
AND
EDN
up/down counters register as a scale factor, when you need
to measure the absolute illumination.
Figure 2 shows the waveforms in the system. A 1016 PLD
generates the signals to control the system and the CCD.
Listing 1 gives the Abel program for the 1016. You can
download the file from EDNs Web site www.ednmag.com.
FIGURE 1
FIGURE 2
The shutter signal keeps the sensor empty after asserting the
readout gate. The exposure begins just in time to keep the
CCDs output at a level that uses the ADCs entire dynamic
range.
116 EDN JULY 2, 1998
DESIGN IDEAS
At the registered-user area, go into the Software Center to
download the files from DI-SIG, #2213. You can better
understand the CCDs operation by referring to Sonys 1992
application note, Linear Sensor Application Note. (DI
#2213)
e
EDN
DESIGN IDEAS
DE
VALENCIA, SPAIN
Certain low-power applications require a simple, low-cost, galvanically isolated power supFIGURE 2
ply. Figure 1 shows a circuit that meets these
requirements. The dc/dc converter provides a
12V, 150-mW output using only a few components and a small transformer. The input can
come from any power source that supplies 14
to 18V. The CD4049 forms an oscillator that
operates at approximately 200 kHz (Figure 2 ).
The asymmetry of the oscillators waveform
depends on the value of R. The voltage VS in
Figure 1 is proportional to the waveforms
asymmetry.
You could also use the circuit as a dc/dc converter with unity transfer ratio by removing
the regulator stage at the output. You can easily change the transfer ratio by varying the
oscillators duty cycle (by adjusting R). If you
need to increase the output power, remember
that in this configuration, the load current
flowing through the transformer must be The symmetry of the waveforms of VD and VP in Figure 1 determines the
much lower than the magnetizing current. (DI value of VS.
#2214)
e
FIGURE 1
A simple CMOS oscillator, an inexpensive transformer, and a few components form a low-cost, galvanically isolated dc/dc
converter
118 EDN JULY 2, 1998
EDN
DESIGN IDEAS
FIGURE 1
Avoid motor burnout, using this circuit that provides undervoltage warning signals and disconnects the line from the load
for severe under- and overvoltage conditions.
120 EDN JULY 2, 1998
EDN
the dual retriggerable monostable multivibrator, IC2. The
output of the first ,IC2A, is narrow and serves to define a time
window that prevents sudden transient disturbances from
triggering IC2B. Consequently, if the ac-line voltage quickly
returns to its nominal condition, the circuit does not disconnect the load. The output pulse width of the other
monostable, which you can adjust via the 50-kV potentiometer, defines the time the load remains disconnected
after the return of the nominal ac-line voltage.
An RC delay line ensures that when the second monostable triggers, the first one has already activated its Clear
input. The fourth comparator of the LM339 produces a
high-frequency square wave that continuously retriggers
the monostable while the fault condition is present. To save
DESIGN IDEAS
power from the regulated 5V supply and to allow use of this
circuit to protect high-current equipment, you should use
an output relay whose coil control comes from the powersupply rail. A TIC206D triac, gated by the monostable,
switches the relay coil. A green LED indicates that the acline level is normal and the relays contact is closed. IC1, a
Harris HV-2405E offline regulator, supplies the regulated 5V.
Because this circuit connects to the ac line, you should use
an insulated enclosure, and take care in testing the circuit.
(DI #2215)
e
To Vote For This Design, Circle No. 517
FIGURE 1
This short-circuit detector uses little power, and provides low currents and voltages to avoid damage to the device under
122 EDN JULY 2, 1998
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
FIGURE 1
This power-saving circuit takes advantage of the large turn-on/turn-off hysteresis in electromechanical relays and solenoids.
CIRCLE NO. 9
EDN
DESIGN IDEAS
FIGURE 2
mode boost converter (IC1) that contains a comparator normally used to detect low battery voltage. In this case, the comparator controls an external pnp transistor that operates as a
linear regulator. IC1 steps up VIN (2V
minimum) to the level of VX, as determined by the jumper block, J1.
A 2-3 jumper selects the internal
d i v i d e r, producing V X= 1 2 V. A 2-1
jumper selects feedback resistors R1 and
R2, producing VX = 1.5V(R1+R2)/R2. You
should set VX to 1 to 2V above the
desired output voltage. The Q1 linear
regulator steps VX down to an output
level determined by R3 and R4: VOUT=
1.5V(R3+R4)/R4, where VX>VOUT. When
VIN>VX, the switching regulator turns
off, and the linear regulator alone controls VOUT. C6 reduces output ripple. The
circuit accommodates a wide range of
input and output voltages and supplies
output currents as high as 500 mA (Fig ure 2 ). (DI #2218)
e
To Vote For This Design, Circle No. 418
Delivering more than 100 mA over its 2 to 16V useful input-voltage range, the regulator in Figure 1 provides 500 mA over an 8 to 13V range.
FIGURE 1
Toggling between switching and linear operation, this regulator operates with input voltages above and below the desired
output voltage.
www.ednmag.com
b 99
EDN
DESIGN IDEAS
FIGURE 1
The negative-output lead and positive-input lead of the PT3102 dc/dc converter connect to effectively stack the converters
12V output on top of the 48V input, providing 60V total across a 75W load.
100 b EDN JULY 16, 1998
EDN
DESIGN IDEAS
tions, to accomplish the boost function. Higher power applications, of course, require appropriately sized converters. If
regulation of the overall output voltage is necessary, you can
consider using an adjustable converter. (DI #2223)
e
To Vote For This Design, Circle No. 419
phase relationship between the power-factor and PWM sections and for determining duty cycles.
The circuit in Figure 1 uses a PLL to adjust the oscillatorramp charge current, providing a wide synchronization range
without changing oscillator voltage levels. Q1 to Q3 form a
comparator that supplies a square wave (at the oscillator frequency) to IC2. IC2s phase comparator II output adjusts the
oscillator-ramp charge current until the oscillator frequency
equals the input frequency. The method provides synchronization and preserves the oscillator waveform and the ICs
function. With the values shown, the frequency-lock range is
90 to 150 kHz. The circuit requires less than 1 mA from a 12V
supply. (DI #2233)
e
To Vote For This Design, Circle No. 420
FIGURE 1
EDN
DESIGN IDEAS
PLAS =
( ILAS 1
where
PLAS=laser-diode output optical power,
ILAS=forward laser-diode current,
ITH=laser-diode threshold current,
IMON=monitor-photodetector current (proportional to laserdiode power),
dP
LAS
dI
LAS
TH
LAS
S MON =
PLAS
I
MON
FIGURE 1
A simple Spice model can prevent destruction of laser diodes by providing a forewarning of dynamic instability.
104 b EDN JULY 16, 1998
EDN
value. Under normal operating conditions, the monitor photodetector is reverse-biased; for the purpose of ac analysis, the
Spice routine models the photodetector as capacitance CMON.
This component is the only one affecting the dynamic behavior in this model, because the laser diode itself is much faster
than any component in the driver circuit (1- to 3-GHz or
higher cutoff frequency). You can download Listing 1 from
EDNs Web site, www.ednmag.com. At the registered-user
area, go into the Software Center to download the file from
DI-SIG, #2227. (DI #2227)
e
DESIGN IDEAS
LISTING 1SPICE NETLIST
FOR LASER/MONITOR DIODE PAIR
References
1. Fiber Optics Handbook, Hewlett-Packard, 1989.
2. Kressel, H, Semiconductor Devices for Optical Communication, Springer-Verlag, 1980.
To Vote For This Design, Circle No. 421
FIGURE 2
FIGURE 1
This current-feedback amplifier retains high bandwidth and Saturation reduces the gain of Q1 and Q2, but the transistors
a wide input-voltage swing, even with its input-stage transis- still retain enough gain to provide adequate bandwidth in the
tors saturated.
amplifier.
106 b EDN JULY 16, 1998
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
Only the voltage ratings of the FET and input capacitor limit
the circuits compliance.
With a current-command voltage of 0V, the load current is
approximately 1A. As the current command increases, the
load current decreases. At approximately 2.42V, the load current drops to zero. By changing the values of R1, R3, and R5,
you can alter the scale factor. R2, C1, and C2 provide loop compensation. R4 and C4 compensate for a slight drop in gain
between approximately 80 and 200 kHz. These values are
likely to depend on layout and may need adjusting in another implementation. When a high-compliance voltage is necessary, C3 connects from the FETs drain to ground. The FETs
drain-to-source capacitance decreases substantially at high
stand-off voltages. C3 swamps the FET capacitance, ensuring
stability under all conditions.
Obviously, Q1 needs a substantial heat sink if high voltage
and even moderate currents are simultaneously present. If
the power dissipation level becomes unmanageable, you can
achieve a manageable level by making as many identical
stages parallel as necessary to reduce each stages current. (DI
#2234)
e
To Vote For This Design, Circle No. 423
FIGURE 1
A high-speed linear regulator (IC1) can provide accurate current control with a wide bandwidth and a voltage compliance of
as many as several hundred volts.
110 b EDN JULY 16, 1998
EDN
DESIGN IDEAS
Fax
E-mail
My e-mail address may be published Yes
No
Company
Address
CIRCLE NO. 9
Country
ZIP
EDN
DESIGN IDEAS
FIGURE 1
b 115
EDN
most significant bit with the reference signal that enters the
controller via the analog comparator. A count-and-dump
function integrates the XOR output over 255 DDS cycles.
Upon every 256th DDS cycle, the phase value routes to the
DAC at Port D of the controller. Every loop lasts exactly 12
clock cycles. Thus, the DDS cycle frequency is one-twelfth of
the controllers clock frequency. The program performs a
DESIGN IDEAS
phase comparison between the DDS and the reference. The
DAC voltage controls the VCXO. By using other increments
for the DDS, you can easily adapt the program for other clock
or reference frequencies. You can also use the circuit for
demodulating phase-modulated signals. (DI #2229)
e
To Vote For This Design, Circle No. 301
FIGURE 2
The frequency-lock circuit in Figure 1 uses DDS techniques to provide a precise submultiple of the reference frequency.
FIGURE 1
EDN
DESIGN IDEAS
FIGURE 2
The circuit in Figure 1 generates the dead time to prevent cross-conduction in this
synchronous-rectifier circuit.
FIGURE 3
EDN
DESIGN IDEAS
the transmitter output acts as the negative supply rail, the circuit can receive data only when TxD remains inactive. This
limitation obviously precludes full-duplex transmission.
Note also that transmitted data directly echoes at the RxD
input. However, if half-duplex operation is satisfactory and
you can tolerate local echo, this circuit may be the one of
choice. In both circuits, external diodes (for example,
1N4148) protect the LEDs against reverse voltages. The values of R1 and R2 depend on the optocoupler type and loop
current. You can use CNY75B optocouplers with 5.1 and
220V for R1 and R2, respectively. (DI #2230) e
To Vote For This Design, Circle No. 303
FIGURE 1
An optocoupler and two resistors configure a TTY-to-RS-232C translator. Use the circuit in (a) when a negative supply is available; otherwise, use the circuit in (b).
FIGURE 1
Timer1
Mode/control word
Register name
FF56H
FF5EH
Timer2
FF66H
Max count B
FF54H
FF5CH
Not present
Max count A
FF52H
FF5AH
FF62H
Count register
FF50H
FF58H
FF60H
EDN
DESIGN IDEAS
x K G
11 ( x G)
a straight line to the curve and measure the maximum deviation of the output curve from this line. Another way is to
perform a quadratic fit and monitor the second-order coefficient as a measure of straightness. Although both of these
methods work, extracting the data from Spice output files
FIGURE 2
y
(V(3))
(a)
10
10
TIME (SEC)
a
(V(6))
(b)
4
TIME (SEC)
FIGURE 1
dy
dt
(V(8))
(c)
10
TIME (SEC)
dy
dt
(V(8))
(d)
10
TIME (SEC)
Spice makes it easy to view the output (a), the value of a (b),
and the derivative of the output for two horizontal scales (c
and d). The optimum value of a is the point at which the derivative is flattest, which occurs approximately 3 to 4 sec into
the simulation, or when a ' 18 mV.
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
Fax
Company
Address
Country
ZIP
Date
CIRCLE NO. 10
EDN
DESIGN IDEAS
The simple circuit in Figure 1 improves the wake-up-response time of the LDO from
1 msec (upper trace) to 30 msec (lower trace).
www.ednmag.com
b 89
EDN
DESIGN IDEAS
EDN
circuit in Figure 1 to the Sync input of
the circuit in Figure 3, you can omit R2,
R5, and C 2. The following formulas
apply to Figure 1:
VR 4 = VREF
R2
10k
R3
390
IC2
MAX941
fPWM=260 Hz
10 nF
C1
10 nF
R6
100k
BS170
R5
R1
10k
47k
R4
.
R2 + R3 + R4
VPWM( MIN) = VR 4
PWMOUT
+
_
IC
1k
C2
R 5 + R6 .
R6
IC
VPWM
Q1
R3 + R4
.
= VREF
R2 + R3 + R4
VR4 = VREF
VIN
IC1
OP07
FIGURE 3
VCC
VPWM
+
_
R4
RIN
160
VCC
VR4
VR4 .
R1
CURRENT-LOOP INPUT
VREF
R 5 + R6
.
R6
VPWM( MIN) = VR 4
VC-
SYNC IN
R4
.
R2 + R3 + R4
IC =
DESIGN IDEAS
e
V
IC = R4 .
R1
R 5 + R6
.
R6
FIGURE 1
2310 nF
IPL10530KAL
1
2
1
IC2
+
47 mF
10 nF
47 mF
10 nF
1/2
AD822
7905
18V
7805
8V
RE
51
8
+
IC1B
6 1
Q1
BCX51
CASE
1/2
AD822
MODULATION
INPUT
RIN
10k
3 +
IC1A
2
1
4
RC
10k
CC
220 pF
EDN
DESIGN IDEAS
(1)
and
N
IOB = IREF nB ,
2
(2)
EDN
DESIGN IDEAS
The DAC-08 has complementary current outputs. Therefore, you can express the complements of IOA and IOB as
I OA = I FS - I OA ,
(3)
and
I OB = I FS - I OB ,
(4)
Substituting IOA and IOB from Equations 3 and 4 into Equation 8 and assuming that R4=R5 result in
2 -1
2n
(5)
I REF .
(8)
= (IOB - IOA R 4 .
(9)
= (IOA - IOB ) R 5
N
N
= IREF nA - IREF nB R 5
2
2
I
R
= REF n 5 ( N A - NB ).
2
(6)
Substituting IOA and IOB from Equations 1 and 2 into Equation 6 yields
N
N
VOUT( A + B) = I REF nA R 5 + I REF nB R 5
2
2
(7)
I
R
= REF n 5 ( N A + N B ).
2
(DI #2226)
e
To Vote For This Design, Circle No. 358
20 pF
FIGURE 1
WORD A INPUT
MSB
2.5k
5
6
7
8
9 10 11 12
D 7 D6 D5 D 4 D 3 D2 D1 D 0
IREFA
14
R1
R4
LSB
IOUT
VREF(+)
5k
IC2
DAC-08
15
0.1
IOUT
15V
COMP
+VS
16
VLC
13
IC1
6
REF01 VO
VOUT(A1B)
0.1
115V
R3
2.5k
15V
115V
10V
0.1
0.01
0.1
0.1
IOA
5k
+VS
IC4A
OPA2111
VREF(1)
1VS
15V
IOA
DGND
0.1
AGND
20 pF
0.1
0.01
5k
R5
3
16
1VS
13
COMP
+VS
IOB
VLC
4
15
IREFB
R2
14
IOUT
VREF(1)
5
2
VREF(+)
D7
1
IC4B
IC3
DAC-08
7
VOUT(A+B)
IOUT
5k
5
2.5k
D6
6
D5
7
D4
8
D3
9
D2
10
D1
11
D0
IOB
12
LSB
MSB
WORD B INPUT
AGND
DGND
Two DACs and two op amps simultaneously carry out both addition and subtraction on two 8-bit binary words.
96 b EDN SEPTEMBER 1, 1998
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
and the chip-select line triggers the mC, much the same as
other standard 8-bit hardware. You can arrange multiple mCs
on a bus and communicate with a higher level motion-control computer or mC. For example, you can use the parallel
port of a PC to control all the degrees of freedom on a robot
arm. By using PWM signals to modulate the speed at each
joint, coordinated motion is possible.
The RA3 and RB1-to-RB7 data-bus lines are digital inputs
that connect to an output-controlled data bus. The PIC16C84
ignores these inputs until there is a high-to-low transition on
Pin 6 (RB0/INT). On this transition, the mC places the state of
RA3 on the output RA0 (direction bit) and places the state of
RB1 on RA1. The state of the remaining lines, RB2 to RB7, set
5V
FIGURE 1
VCC
GND
CLK
8-MHz OSCILLATOR
MD0
LMD18200T
MCLR
ENABLE
MD1
MD2
MD3
MD4
MD5
MD6
MD7
6
RB0/INT
7
RB1
8
RB2
9
RB3
10
RB4
11
RB5
12
RB6
13
RB7
3
4
5
RA3 2
RA 1
2
RA1
RA0
OSC1
18
17
DIR
BRAKE
PWM
OUTPUT1
OUTPUT2
2
10
TO MOTOR
12V
THERM FLAG
1 mF
16
6
7
POWER
GND
10k
+
5V
PIC16C84
220 mF
5V
1k
10k
12V_GND
0.1 mF
BRK,DIR
D7
D6
D5
D4
D3
D2
D1
D0
HEX
Description
--
$FD
$C8
$7C
$60
www.ednmag.com
b 123
EDN
the pulse width of the PWM output, RA2. Note that these outputs are subject to special conditions.
The RB0/INT digital input latches the word on the 8-bit
data bus. A 74HC138 1-of-8 device selector drives this activelow input. The high-to-low transition generates an interrupt
to update the state of the register. At all other times, the circuit ignores the state of the 8-bit data bus.
RA0 drives the motor-drive chip and determines the polarity of the current going through the motor in the output stage
of the driver. RA1 also drives the motor-drive chip. When RA1
is high and RA2 is high, active braking of the motor occurs.
When RA1 is high and RA2 is low, the motor coasts to a stop.
The RA2 PWM output has a duty cycle that depends on the
binary word on the inputs during a high-to-low transition on
RB0/INT. The duty cycle of this signal increases from 1.56 to
100% in increments of 1.56%. In other words, the duty cycle
goes from 1/64 to 64/64 in increments of 1/64, depending on the
binary word on RB2 to RB7. The duty cycle repeats at a rate of
approximately 300 Hz.
Figure 2 shows the output lines from the motor-control
register when you load the values from Table 1 into the register. During the power-up configuration, the direction,
brake, and PWM lines are high. Then, loading the value ($FD)
turns off the brake and sets the PWM line at 100% duty cycle
(maximum speed). Loading $C8 switches the direction of the
motor and reduces the duty cycle to 80%. The next two values ($7C) and ($60) maintain the direction of the motor but
reduce its duty cycles to 50% and 20, respectively.
There is a lag between the time the enable line goes active
DESIGN IDEAS
FIGURE 2
$FD
$C8
$7C
$60
DIRECTION
BRAKE
PWM
TIME
The output lines of the motor-control register change according to the values of the direction, brake, and PWM signals.
low and the time the mC code can read the value on the data
bus. When the enable line triggers an interrupt signal, the mC
must save the program counter and the state of its internal
registers before the mC can process the interrupt. This delay
causes a problem if the value on the data bus changes by the
time the PIC mC samples it. You can solve this problem by
using a latch to store the value on the data bus long enough
for the PIC mC to see it.
You can download the corresponding assembly code from
EDNs Web site, www.ednmag.com. (At the registered-user
area, go into the Software Center to download the file from
DI-SIG, #2239.) (DI #2239)
e
To Vote For This Design, Circle No. 376
R2
1 R + R4
across RSENSE, which sits on the ground side of the supply. R1,
VOUT = (ILOADR SENSE ) VLOAD
=
PGAGAIN 6
10 R 5
R
+
R
1
2
R2, and IC3D generate a scaled version of the load voltage
PGA GAIN
equal to VLOAD/20. The output of IC1 and VLOAD/20 are the
ILOADVLOAD
.
10
inputs to IC2s precision analog multiplier. IC2 has a built-in
scale factor of 1/10. R4, R5, and R6 provide additional gain. A
The circuit works equally well for positive and negative
EDN
DESIGN IDEAS
+V
FIGURE 1
+V
+IN
13
1IN
4
VIN
VLOAD
1OUT
PGA204
IC1
ILOAD
A0
GND
15
A1
14
V1
8
10
D1
D2
D4
6
7
D5
12
X2
OUT
MPY634
IC2
11
Y1
Z2
Y
Z 10
2
1 mF
R4
340k
GND
R5
10k
R3
100
R8
200k
S1
R6
100k
X1
D3
+V
S0
9 LED
1V
100k
11
VOS2
16
+V
R1
10M
VOS1
VOUT
1k
12
V+
RSENSE
0.5
+OUT
14
1V
100k
10k
12 +
IC3D
13
1
R2
523k
VLOAD/20
14
+V
REF200
IC4A
100 mA
1 mV
1k
NOTES:
8<+V<18.
1k
118<1V<18.
ALL RESISTORS, EXCEPT RSENSE, ARE 1%, 1/4W.
RSENSE SHOULD BE RATED TO HANDLE
MAXIMUM LOAD CURRENT.
IC
D1 THROUGH D5 ARE GENERAL-PURPOSE DIODES. 4B
USE DECOUPLING CAPACITORS ON IC1 THROUGH IC3.
2 1
R7
30k
1
IC3A
3 +
OPA4234
6
1
IC3B
5
+
R9
30k
9 1
IC3C
10
+
R10
30k
11 mV
100 mA
1V
A programmable-gain amplifier, an analog multiplier, and a handful of other active and passive components implement a
benchtop, multirange power meter.
126 b EDN SEPTEMBER 11, 1998
EDN
DESIGN IDEAS
cuts off the load, the battery voltage rises again; this higher
voltage may exceed IC1s turn-on threshold. To prevent this
problem, the circuit in Figure 1b uses a flip-flop to provide a
clean cutoff. Pushing S1 turns on the switch. When the load
has a large capacitance, R1 and C1 provide a delayed response
to prevent the turn-on in-rush current from triggering the circuit. The power consumption of this circuit is in the same
range as that of the circuit pictured in Figure 1a.
All the parts for this idea are available from Digi-Key
(www.digi-key.com). For a lower switch resistance, you can
use the IRLZ44, which has an on-resistance of 0.022V.
(DI #2253)
e
To Vote For This Design, Circle No. 378
FIGURE 1
MN1381-Q
GND
VDD
OUT
IC1
MN1381-Q
GND
VDD
74HC132
OUT
R1
2M
1N4148
9
10 IC2C
12
13
11
4 5
+
FOUR-NiCd
BATTERY
5V
1
(a)
Q1
IRLZ14
FOUR-NiCd
BATTERY
5V
C1
0.33 mF
(b)
IC2A
74HC132
3
2M
S1
Q1
IRLZ14
These low-battery-detect circuits cut off when the voltage is lower than 4V and consume approximately 1.2 mA.
R 2 I TRIP
.
100
EDN
DESIGN IDEAS
MAX4172
IC1
RS+
RS2
V+
VIN=12 TO 26V
GND
FIGURE 1
Q1
FDS6680
OUT
6
R2
0.1
RLOAD
6
VIN=12 TO 26V
SRC
GATE
R3
2
8
OFF
3
MAX1614
IC2
4
VIN
R3
26V 3k
24V 2.7k
20V 2k
15V 1.2k
12V 750
0.01 mF
6.8k
LBI
VCC OUT
D1
1N5997B
(7.5V)
CLEAR
MAX835
IC3
68k
R1
1.2k
1%
GND
RESET
BATT
ON
LBO
3
Q2
2N3904
100k
IN
GND
2
VGATE
(10V/DIV)
VSRC
(10V/DIV)
VGATE
(10V/DIV)
VSRC
(10V/DIV)
VOFF
(5V/DIV)
VOFF
(5V/DIV)
(a)
TIME (5 mSEC/DIV)
(b)
With Figure 1s load-current trip threshold set at 1A, the load voltage, VSRC (middle waveform), turns off (a) and on (b) in
approximately 7 and 400 msec, respectively, under the control of the signal at IC2s VOFF pin.
130 b EDN SEPTEMBER 11, 1998
EDN
DESIGN IDEAS
The circuit generates a signal in accordance with alternatingmark-inversion (AMI) code. In this type of coding, pulses
with alternating polarities represent ones; signals with zero
amplitude represent zeros. Figure 2 shows some examples.
EDN
DESIGN IDEAS
other clock rates, you must recalculate only C1s value. (DI
#2247)
e
To Vote For This Design, Circle No. 381
FIGURE 2
(a)
0V
f(R1
C1)
(b)
0V
(c)
0V
(d)
(e)
74AC00
IC1A
4
5 IC1B
C1
8.448-MHz
CLOCK SOURCE
13
12 IC1D
10
11
9 IC1C
330 pF
S1A
C2
68 pF
R2
330
R1B
750
R3
330
12
IC3
OPA678
COAX
OUTPUT
CHA
B
OUT
A
+IN B 16
15
1IN B
1IN A
IN A
5V
IC5
6
LV
2
7
CAP+
OSC
4
CAP1
8
V+
5
VOUT
GND
3
ICL7660CPA
C7
10 mF
2
1
15V
+
C6
10 mF
330
CL
Q
1 74AC74
5V
IC4A
74AC04
3
R8
330
IC2A
5
CLK
S1B
R1A
750
D PR
IC4B
74AC04
R4 4
510
R5
510
0V
1-0-1-0-1
0V
1-1-1-1-1
EDN
DESIGN IDEAS
FIGURE 2
IOUT
R4
10k
FIGURE 1
1 mA
2N5087
6V
IOUT
IOUT
R2
2.4k
Q2 800
mA
2 mA
IOUT
10 mA
Q1
MPS1A42
200
mA
10.2 mA
798
mA
+
VIN
9V
6V
200
mA
R5
10k
Q3
2 mA
3V
2N5088
R6
10k
(a)
(b)
1
mA
10
mA
202 mA
R3
2.4k
R1
600
(c)
erence voltage for the A/D conversion is the mCs power supply VDD. The converted 8-bit data determines the duration of
output high and output low. Assume, for example, the digitized outputs from AN0 and AN1 are 43 and 87, respectively.
Timer 0 loads the 43 after the mC sets output GP2 to logic one.
Timer 0 receives its timing from the internal clock.
b 175
EDN
DESIGN IDEAS
FIGURE 1
5V
VC1/VC2
D2/D1/D0
000
001
010
011
100
101
110
111
0V
899
474
243
123
62.3
31.2
15.6
7.9
0.2V
928
490
252
127
64.4
32.3
16.2
8.1
0.4V
963
509
263
133
67.2
33.8
16.9
8.4
0.6V
:
1.0V
:
1000
531
274
140
70.1
35.2
17.6
8.8
1090
579
300
153
77.3
38.7
19.5
9.7
1
D2
D1
D0
451
232
118
59.5
29.7
14.9
VC1
VC2
4.4V
4410
2980
1810
1010
537
268
141
71.1
4.6V
5320
3880
2420
1410
768
402
206
104
4.8V
6720
5550
4130
2730
1470
807
474
243
5.0V
8220
7970
7490
6710
5550
4130
2720
1620
AN0
GP4
AN1
GP3
GP2
7
6
5
VC1
VC1
VC2
OUTPUT
R1
1k
VC2
R1
1k
R2
1k
ADJUSTABLE
DUTY CYCLE
GP5
5V
858
VSS
5V
VDD
PIC12C671
1560
2.4V
EDN
DESIGN IDEAS
FIGURE 1
1.5M
5V
10k
VDD
IRQ
OSC1
4.7M
XTAL
MC68HC705P9
B7
OSC2
A0
A1
A2
A3
A4
A5
A6
A7
100k
SW
8210k
VSS
8
7
6
5
4
3
2
1
510
"FAIL"
RED LED
"PASS"
B6 GREEN LED
RESET
0.1 mF
B5
C0
C1
C2
C3
C4
C5
C6
C7
SEVEN-CONDUCTOR
CABLE UNDER TEST
8
7
6
5
4
3
2
1
cable you want to test. For the current application, two types
of cables were under test, one with three conductors and
another with seven. So, the Motorola
68HC705P9 mC was suitable. The program first determines which type of
cable is under test by checking the
cable-switch position (Listing 1). Then,
the program checks each conductor
line from A0/C0 to A7/C7 by putting a
0.1 mF
high-level voltage from output port A
on one end of the wire and measuring
the response on the other end, which is
CABLE SWITCH
connected to the input port C. If all of
the checks show conductivity, the green
8210k
pass LED turns on. In the opposite
case, the red fail LED turns on. The
test checks not only for conductivity
but also for the presence of a cross connection.
If you want to test a variety of cables,
you can use more switches. If a cable has
more than eight conductors, you can
use a different type of mC or multiplex
the inputs.
Listing 1 and an assembly-language
program are available for downloading
from EDNs Web site, www.ednmag.
com. At the registered-user area, go into
the Software Center to download the
file from DI-SIG, #2225.(DI #2225)
e
This simple cable tester verifies that the signal from port A appears at port C of the
mC.
EDN
DESIGN IDEAS
5V
FIGURE 1
R1
100k
5V
The addition of stray capacitance to Figure 1s circuit significantly increases the sensors sensitivity.
180 b EDN SEPTEMBER 24, 1998
5 6
IC1
7
3 LM311
1
1
4
C2
R2
100k
IC2A
OUTPUT
1/6 74HC14
R4
100k
1
.
R
2R 4C1 ln1 + 2
R3
R5
100
R3
200k
C1
If you cant beat em, join em. This circuit exploits stray capacitance to
increase its own sensitivity in making capacitance measurements.
1800
FIGURE 2
R3=200k
R5=100V
1600
1400
C2=130 pF
1200
C2=82 pF
f (kHz)
1000
C2=40 pF
800
600
400
C2=0
200
0
20
40
60
80
100
120 140 160 180 200 220 240 260 280 300
C1 (pF)
EDN
example occurs with a significant stray capacitance
(100 pF, for example). If the real sensor has lower
initial capacitance (50 pF, for example) the simple
addition of a 50-pF capacitor in parallel with the
sensor increases the sensitivity. The sensor likes
the stray capacitance as it produces frequencydependent hysteresis that, in turn, provides higher sensitivity. You could also use the added capacitor for temperature compensation.
If you use an extremely fast op amp or comparator in this design, there is a certain value of C2
for which the output frequency jumps up a few
kHz with a hysteresis of 5 to 7 pF (Figure 4). This
quirk is particularly useful in the design of supersensitive capacitive switches. You can adjust the
switching point with R3 and/or a capacitor in parallel with C2. You can adjust the hysteresis by using
a small resistance connected in series with C2. On
the other hand, the use of a slower comparator linearizes the frequency-versus-capacitance characteristic. For example, test results show that with an
LM319 comparator, R3=200 kV, R5=200V, and
C1=200 pF, the output frequency follows the
empirical equation f=140+3.327(C2100) kHz with
3% nonlinearity within the range C2=100 to 400
pF. (DI #2258).
e
DESIGN IDEAS
FIGURE 3
1400
C1=200 pF
1200
R3=300k
R5=100V
1000
R3=200k
R5=100V
f (kHz) 800
600
R3=200k
R5=10k
400
200
FIGURE 4
1400
0
40
60
80
100
120
140
160
180
200
220
240
C2 (pF)
C1=200 pF
R3=200k
R5=100V
1300
1200
1100
1000
900
800
f (kHz) 700
600
500
400
300
200
100
0
0
20 40 60
An idiosyncrasy inherent in fast op amps or comparators produces an abrupt jump in frequency for a
small change in capacitance.
EDN
DESIGN IDEAS
www.ednmag.com
LM1972
FIGURE 1
P1.0
P1.1
36
10
35
P1.2 34
LOAD/SHIFT
CLK
11 DATA-IN
The rising edge of the clock signal validates data loading into
the Data-In and Load/Shift pins of the potentiometer.
EDN OCTOBER 8, 1998
91
EDN
CC3 in the mC) to the compare mode by writing
88H into the CCEN register. The contents of the
register decrease after each interrupt. In this way,
eight consecutive interrupts occur, each to send 1
bit of data. The interrupt subroutine at address
006BH manages the transmission of the data bits
via P1.2.
The CC1 unit generates the Clk signal on pin
P1.1 when the contents of the Timer 2 count register (composed of TH2 and TL2 8-bit registers) equal
the values set in registers CCL1 and CCH1. This
value depends on the length of the interrupt subroutine. After transmission of the last bit, the routine stops Timer 2 by setting the value 0ECH in register T2CON. During data transmission, the main
program spends its time waiting in the loop, as
long as the bit FLAGS.0 is at logic 1. This bit clears
in the last pass of the subroutine and sets just before
Timer 2 starts. Transmission of the second byte of
data occurs in exactly the same way after the routine reprograms the related registers. The Channel
and Volume registers hold the 2 bytes to send.
Figures 2 and 3 show the timing relationships
of the interface. In Figure 2, the 2 bytes Channel
and Volume are 05AH and 081H, respectively. Data
is valid on the rising edge of the Clk signal. Figure
3 shows the time dependence in the interrupt-routine calls and the Clk rising edges. In this design, it
takes approximately 740 msec to program 2 bytes
into the potentiometer with an 8-MHz clock frequency (a 1.5-msec machine-cycle time). (DI
#2256).
e
To Vote For This Design, Circle No. 400
DESIGN IDEAS
FIGURE 2
The rising edge of the clock signal appears approximately 32 msec after
the CC3 compare/capture unit in the mC generates an interrupt.
FIGURE 3
EDN
DESIGN IDEAS
FIGURE 1
TIMER1_OUT
TIMER0_IN
80186
INTR1
UART
PC
(TERMINAL)
sponds with the natural resonant frequency of the transducer), and allows you to calculate the damping coefficient
(which you can not directly extract from an FFT). Figure 1
uses an electromagnetic transducer, stimulated by a step-current function, with sequential integration of its terminal voltage in a free transient mode. The general equation (assuming
zero initial phase) is:
v(t) = VO exp(-w 0bt) SIN(w 0 (1 - b2 )0.5 t),
EDN
DESIGN IDEAS
J1 = v(t)dt,
0
J2 =
v(t) dt,
0
J3 = ( v(t))2 dt.
0
Omitting the intermediate math, you can write the computational formulas for b and v0 as
b = (1 + p2 (ln(( J2 + J1 ) /( J2 - J1 )))-2 )-0.5 ,
w 0 = 4b J3 / J12 .
For a practical implementation in DSP form, you must substitute the indefinite integrals J1 through J3 with corresponding finite sums S1 through S3. The ADC must digitize the terminal voltage during a period of time long enough to allow
the free transient to settle. Then, the DSP must calculate the
three finite sums using the following equations:
S1 =
(vi ), S2 =
v i , and S3 =
( v i )2 .
FIGURE 1
TO mC
5V
10831 ADC
RS
TRANSDUCER
D1
RC
LC
15V
AV+
DV+
CS
VREF OUT 15
16
(+)
CLK
14
(1)
SARS
13
NC
DO
12
PD
VREF1
11
DGND
VREF+
10
V1
AGND
D2
A time-domain DSP algorithm measures natural frequency and damping in electromechanical systems.
96 EDN OCTOBER 8, 1998
EDN
DESIGN IDEAS
Video signals from a VCR lose sharpness, resulting in a flatlooking image. The effect is especially noticeable when copying from one tape to another, as you do in a video-editing system. High-quality recorders minimize this effect, but they are
expensive.
The circuit in Figure 1 sharpens picture images without
introducing the shadows, ringing, and noise often observed
with commercial video equalizers. The key to this improvement is the coaxial delay line, which replaces the typical LC
network in other equalizers.
The circuit applies the video signal to a MAX466 quad
video amplifier. The first amplifier drives a sample of the original video into a resistive summing network and a second
amplifier through a 3.58-MHz trap. The trap deletes the
chrominance-color signal from the original video. The second amplifier applies the remaining luminance-brightness
video signal to the shorted coaxial delay line. This amplifier
also applies a sample of the luminance signal to the resistive
summing network. The total round-trip delay of the delay
line is 65 nsec, about half the typical rise time of a VCR output for typical VHS or 8-mm VCRs.
The output of this delay line drives a third video amplifier, which recovers the edges of picture images. The enhancededge output of this third amplifier combines some of the original video signal from the first amplifier, some of the
FIGURE 1
1N4001
7805
12.6 VAC CT
450 mA
431N4001
IN
+ 470
mF
3.3k
470
mF
5V
OUT
GND
3.3k 7905
IN
100
mF
230.1 mF
100
mF
GND
OUT
PWR
LED
0.1
mF
620
1N4001
15V
270
270
VIDEO IN
22k
5V
MAX466
1k
(3.58-MHz TRAP)
16,18,
20
10
B
2 A
7, 9,
21, 23
75
15V
8 TO
40 pF
12 B
4 A
220
51
17
14
B
6
A
1N914
SYNC
LED
23 FT
RG158U (50V)
68 pF
8
0.1 mF
2
IN
6 SET
0.1 mF
LM1881
25
47
8.2k
680 pF
SELECT
5V
5V
1, 2
14
200
pF
BYPASS
100k
(10.3V CLIP)
8
3, 4
5, 6
11, 12
6.8k
75
0.1 mF
330
VERT 3
BRST 5
1
COMP
4
910
2N3904
15k
VIDEO OUT
22
1k
(65 nSEC)
5V
680k
5V
1, 3, 5,
11, 13, 19,
24, 26, 27
680
22
mH
8
28 B
A AO
15 1k
74HCT30
7
BOOST
Using a delay line in place of the typical LC equalizer network allows this circuit to sharpen VCR images without introducing
the artifacts commonly produced by commercial equalizers.
98 EDN OCTOBER 8, 1998
EDN
DESIGN IDEAS
FIGURE 1
5V
0.1 mF
T1
30V 6
10 mF 10 mF
C1D
C1B
IN4934
10 mF
10 mF
C1C
FRD C1A
2
1
CAPACITOR
CHARGER
80V
VC
5V
+
8
1 nF
33k
7
CHARGE
5V
+
_
CHARGED
1M
R3
10k
VC
10k
33k
10k
IN
PWM
5 kHz
0.75V/%
VC/15
LP=10 mH
5V
IC2C
LM339
14
140k
1:4
IN5817
SCHOTTKY
D1
IN4152
5V
12V
10 mF
IN4152
0.1mF
IC2B
LM339
10k
1
Q1
IRF520
15k
IC1
555
TON=10 mSEC
D=0.4
2V
4
R
100
OUT
10k
12V
0.1
1/2W
0.1 mF
FM
5
VC
12V
8
7
DIS
THR
TRG
Q2
2N3904
12V
IC2D
10k LM339
R
13
68k
R1
_ 10
+ 11
1
12V
5V
5
1.6k
0.29V
+
_
IC2A
LM339
10k
12
0.1 mF
100
The duty cycle of a CMOS pulse train determines the target charged voltage for a bank of high-energy capacitors.
100 EDN OCTOBER 8, 1998
220k
R2
1 nF
C2
EDN
DESIGN IDEAS
parallel data output. IC7 converts the 4-bit hex data into 16
data bits to control 16 application circuits. IC3 and IC6 are a
matching encoder/decoder pair that eliminates any unwanted interference frequencies. IC4 and IC5 are a matching RF
data-transmitter/receiver pair with a 315-MHz carrier frequency. You can download the assembler code for the mC system from EDNs Web site, www.ednmag.com. At the registered-user area, go into the Software Center to download the
files from DI-SIG, #2261. (DI #2261).
e
To Vote For This Design, Circle No. 405
FIGURE 1
LINX_T315
434 KEYPAD
1
7
E
8
O
9
F
IC4
18
PA0
17
16
15
8
7
6
5
PA4
PA1
PA5
PA2
PA6
14
13
12
11
IC1
PA7
M68HC4
PB0 705J1A PB4
PA3
11
DOUT
D0
ANT 5
D1
IC3
HT680
D3 IC2
HCT573
LE
0SC2
19
18
2
D12
3 D13
4
D14
6
TE
Q0
PB2
Q1
PB3
Q2 17
16
Q3
(a)
2 DIN
D2
PB1
PB5
D11
R4
390k
0SC1
LINX_R315
IC5
1
DOUT
DIN
ANT
IC6
HT694
1
D11
2
D12
3
D14
4
D15
VT
OSC2
OSC1
2
3
A
B
21 C
22
D
1 LE
7
8
5
MOTOR
6
AC
4
PR D 2
3
CLK
Y0
11
R2
390k
2
1A1
1
1G
19 VCC
2G
IC8
74HCT241
VCC
EXAMPLE
APPLICATION CIRCUIT
IC7
MC14514B
1Y1
18
2
3
Q CL
IC9A 1
74HCT08
IC11A 1 74HCT74
R1
R150
VCC
(b)
34 keypad gives you wireless control of 16 lines, using an inexpensive mC, a few logic blocks, and a
A simple 43
transmitter/receiver module pair.
102 EDN OCTOBER 8, 1998
EDN
DESIGN IDEAS
FIGURE 1
IN
+
9V
ON/OFF
1 mF
5V
OUT
LM2936
MICROPOWER
LOW-DROPOUT
REGULATOR
R4
74HC14
1M
R5
IC4
0.1 mF
D1
PULSE ENGINEERING
PE65726
OR EQUIVALENT
0.1 mF
GND
10 mF
LED
470
IC5
0.1 mF
200 MMBD2836
C2
OR EQUIVALENT
LOW LEAKAGE
RX
R3
26C32
100
1-TO-1
INPUT
0.1 mF
MODULAR
JACK
RJ45
NORMAL
RD+
1
RD1
2
TD+
3
6
TD1
1
2
3
TD+
TD1
RD+
RD1
TX
BATTERY TEST
6.2V
EUT MONITOR
LED
R2
OUTPUT
FRESH BATTERY
470
5.1V
470
4.7V
470
4.3V
470
0.1 mF
LED
390
IC3
74HC04 OR
74HC14
MIDDLE-AGED
BATTERY
LED
OVER-THE-HILL
BATTERY
OR SPARE
74HC132
1-TO-1
PULSE DRIVER
RJ45
CROSSOVER
0.1 mF
LED
TIME TO REPLACE
BATTERY
PULSE GENERATOR
1k
IC2A 74HC132
R1
1k
2M
1M
100 pF
IC2C
IC2B
C1
100-nSEC
DELAY
680k
0.1 mF
+
LPC661
IC1
100 nSEC
20 mSEC
0.01 mF
1.2M
50-Hz OSCILLATOR
A useful test jig, which includes an equipment-under-test (EUT) monitor and pulse-driver circuit, evaluates RF emissions from
Ethernet unshielded-twisted-pair LAN-interface devices without contaminating the measured results with its own RF-emissions.
www.ednmag.com
97
EDN
DESIGN IDEAS
EDN
DESIGN IDEAS
R2
100k
FIGURE 1
VO=VIN (1+
5V
5V
R1
100
R10
10k *
*
R3
7
2
R3=(RS2 R1|| R2 )
3 SC
4
1
1
8
IC1
R9
10k *
VH
R4
10k
5
VW
6
VL
10k
R2
)
R1
R5
24k
2
1
7
U/D
NC
CS
P1
5V
C1
0.001 mF
+
4
5
15V
5V
15V
VIN
SA
RS
13
14
INPUT SOURCE
NADJ
R6
11 56k
R7
16
56k 15
2
10
6
1
5V
0
+DC
+ C3
22 mF
5V
5V
12
SB
C2
0.01 mF
D1
1N4148
R8
10k
>
CLOCK
1 kHz (OPTIONAL)
ANULL
5V
0
>50 mSEC
POWER ON
AUTONULL
(OPTIONAL)
Have your cake (high speed) and eat it (low dc errors) too, with this autonulling circuit, using a digitally controlled potentiometer.
100 EDN OCTOBER 22, 1998
EDN
DESIGN IDEAS
FIGURE 1
LOG 0
START
LOG 1
1.25 mSEC
1.75 mSEC
0.75 mSEC
0.75 mSEC
Pulse-width ratios provide a convenient way to transmit serial data between mCs lacking communications amenities.
FIGURE 2
5V
LISTING 1TRANSMITTER-PROGRAM
WORD OF DATA
FRAGMENT
MSB
START
PA7
DATA
OUT
mC TRANSMITTER
1k
10k
LSB
DATA
IN
RED
LED
IRQ
PA0
PA7
PA1
PA2
PA3
mC RECEIVER
With the help of some mC software, a simple one-wire connection provides serial communications between low-cost
mCs.
output data register. This pulse sequence goes, LSB-first, to the
data-in input of the receiving mC. In the mC transmitter, you
can use any output pin as data out. In the mC receiver, you
can use any one of the four lower PortA pins (PA0 through
PA3) as data in.
You should program the input pins as positive-edge, external-interrupt inputs. Because pins PA0 to PA3 combine in a
logic-OR operation in the mC, you should connect the
unused pins to ground to avoid false interruption. You should
disable the IRQ pin by connecting it to 5V. The external-interrupt subroutine (Listing 2) restores the data word, which can
generate the proper response according to your design objectives. Listing 3 shows a fragment of the receiver routine. The
programs watchdog utility lights a red LED to indicate that
the communication link between the mCs is broken or that it
received the wrong sequence. The method also applies to
EDN
DESIGN IDEAS
LISTING 2EXTERNAL-INTERRUPT
SUBROUTINE
EDN
2
COUT V OUT
2VIN I PK h
DESIGN IDEAS
FIGURE 1
VIN=3 TO 10V
T1
CIN
22 mF
VOUT=300V
R1
499k
COUT +
300 mF
D1
D2
R2
499k
5
4
IN
ENABLE
SW
7
R3
4.12k
MIC3172
2
C1
1 mF
COMP
GND PGND
1
PGND FB
3
VOUT=1.24(1+(R1+R2/R3)
R4
1k
Generate 300V from a low-voltage source, using this simple, low-parts-count circuit.
D3
FIGURE 2
VIN
VOUT
2N4401
10k
R1A
VIN
EN
R2A
MIC3172
LM4041
R3A
GND
Avoid the exploding-capacitor syndrome by using this overvoltage-protection circuit with the circuit of Figure 1.
Be sure that the resistor divider for the overvoltage circuit is
separate from the voltage-regulation divider. Set the overvoltage level 15% higher than the output-voltage setting, and
make sure it does not exceed the capacitors voltage rating.
(DI #2266).
e
To Vote For This Design, Circle No. 350
EDN
DESIGN IDEAS
FIGURE 1
PIC16C54B
mC
VOUT
C
for example, you can store the values for the duty cycle in a
look-up table. The values in the look-up table depend on the
values and tolerances of the resistor and capacitor and on the
desired resolution of the sine wave. You can download the
listing from EDNs Web site www.ednmag.com. At the registered-user area, go into the Software Center to download the
files from DI-SIG, #2268. (DI #2268).
e
EDN
DESIGN IDEAS
Fax
E-mail
My e-mail address may be published Yes
No
Company
Address
CIRCLE NO. 9
Country
ZIP
design
Edited by Bill Travis and Anne Watson Swager
ideas
www.ednmag.com
design
ideas
ceed the rated value because a violation results in premature failure of the transistor.
For most small signal transisFigure 3
tors, VEBO(BR) is typically 4 to
5V. Therefore, you should take care when
down-shifting from 12 to 5V, such as between CMOS analog circuits and 5V logic.
The switching transistor can be
MPS2369A to MPS3646 for high-speed
switching. You can use the 2N3904 or
BC547 for low-power applications. A
2N5458 can replace the pullup resistor at
the collector if active pullup is necessary.
The best 1-to-5V shifting driver in the laboratory produces a typical symmetric delay of 6 nsec using three-fourths of an
MPQ2369 when driving a 74AC541 buffer
(Figure 3). (DI #2290)
1V
1k
1k
5V
3/4MPQ2369
The dc voltage at Point X stabilizes the drive current in the feedback mode against any variations in the IV characteristics of the laser diode and the
power-supply voltage.
330k
11
MODULATION
INPUT
12V DC
10
IC1D
330k
R6
12
330k
R1
150k
Figure 1
V
R2
330k
R7
150k
LM3900
IC1A
14
2
C2
0.1 mF
2
R4
100 mF
82/1W
330k
5
Q1
2N2218
LASER DIODE
TOLD-9211
100 pF
LM385-2.5
REF 1
0.1 mF
1.5M
13
1N4001
9
470
C1
C3
Q2
2N2218
SOFT START
33k
100k
10k
1M
1k
1M
IC1C
REF 2
100k
1N4001
4
100k
1.5M
1M
IC1B
2
1.5M
R5
1.5M
1M
100k
V
NOTES:
ALL RESISTORS HAVE 100-ppm STABILITY UNLESS OTHERWISE SPECIFIED.
C1 IS SILVER-MICA TYPE.
www.ednmag.com
design
ideas
fast as 120 sec. It consists of two ZIF sockets, control logic, and some passive components. The output signal from the
Master chip traverses R1, R2, C1, and C2 to
the Target inputs. R3 and C3 couple the
Targets preamplifier and amplifier. R4 and
C4 provide an AGC delay to the Target
(Consult the ISD data sheet for details.)
Strapping of the control pins ensures that
the Master can only play back and the
Target can only record; however, to avoid
hazardous transient states, you should
lock the voice chips in their sockets before
switching on the power.
The controller is configured as an asynchronous state machine that uses just two
7474 flip-flops. Its simplicity results from
the highly autonomous operation of the
voice chips. This design uses the M4 function mode (A4, A8, and A9 pulled high),
which provides sequential addressing of
the messages without controller intervention. Closing the Copy switch starts
Master playback simultaneously with
Target record (CE set low, LED1 on).
When the Master issues End of Message
(EOM), recording stops (CE set high,
LED1 off) and the EOM marker automatically goes into the Targets memory. The
cycle repeats whenever you close the Copy
switch, so you can copy messages one by
one.
After you copy the entire Master contents, the overflow (OVF) line goes low,
signaling an overflow condition. This signal turns LED2 on. Closing the Reset
switch clears the flip-flop and resets the
internal address counters of the voice
chips. The capacitor across the Reset
switch generates a power-on reset pulse.
The circuit uses internal clocking for the
voice chips; therefore, actual message
www.ednmag.com
design
ideas
You can avoid the expense of a gang programmer by using this simple scheme to copy voice-chip messages.
C1
0.1 mF
Figure 1
TARGET
MASTER
1
VCC
R1
1k
14
SP+
SP2 15
A0
A1
3
A2
4
A3
5
A4
IC1
6
A5 ZIF20
7
A6
8
A7
9
A8
10
A9
23
CE
24
PD
27
P/R
26
XCLK
XIN
AIN
AOUT
MIC
REF
AGC
OVF
EOM
C2
0.1 mF
11
20
R2
100k
21
17
VCC
18
19
20
14
SP+
15
SP2
A0
2
A1
3
A2
XIN
4
A3
AIN
5
A4
IC2
6
A5 ZIF20
AOUT
7
A6
8
MIC
A7
9
REF
A8
10
A9
AGC
23
CE
24 PD
27 P/R
26
XCLK
25
ISD25XXX
C3
0.1 mF
11
20
R3
21
5.1k
17
COPY
S1
R7
18
OVF
EOM
25
PR
170k
20
22k
R4
19
C4
4.7 mF
VCC
IC3A
74HC74
CLK
5
R5
1k
CL
ISD25XXX
LED1
BUSY
R8
LED2
R6
VCC
VCC
22k
D1
VCC
1k
D2
OVER
RESET
S2
R9
VCC
22k
10
IC1
IC2
C5
1 mF
VCC
+
C6
22 mF
C7
0.1 mF
C8
22 mF
C9
0.1 mF
12
11
PR
9
IC3B Q
74HC74
8
CLK
Q
CL
13
design
ideas
SYSTEM GROUND
positive terminal of the battery to system
THREE NiCd,
ground and using a flyback topology with
NiIMH, OR
+
+ ONE LITHIUM-ION CELL
ALKALINE
a single low-cost inductor to generate
2.5 TO 4.3V DC
L1
CELLS
3.3V, with respect to system ground. IC1, a
33 mH
COUT
IC
1
+
UCC3954, is a fixed-frequency, 200- kHz
330 mF
UCC3954
6.3V
voltage-mode PWM converter that
R1
C2
470k 10 pF
includes an internal 0.15V MOSFET
VOUT
1 COMP
8
+
switch. Gate drive for the FET comes from
bootstrapping off the 3.3V output. The
2 VFB
BAT+ 7
3.3V
converter works efficiently over a load of 0
C1
D1
0 TO 65 mA
470 pF
to 650 mA. Note that the input
3 BAT1 SWITCH 6
CIN
and output filter capacitors
Figure 1
100 mF
S1
+
should be low-ESR tantalums
6.3V
4 SD
LOWBAT 5
or OSCONs. Output ripple is lower than
OPEN=SHUTDOWN
1% at maximum load. The inductor value
D2
LOW BATTERY
is not critical; 33 mH is a good comproNOTES: D1=MOTOROLA MBRS130LT3.
mise between size and efficiency.
L1=COILCRAFT DO3316P-333.
CIN=AVX TPSE337M006R0100.
The compensation components (R1, C1,
COUT=AVX TPSD107M010R0065.
and C2) ensure stability and provide good
transient response over a wide load. For
applications in which no sudden changes
This 3.3V dc/dc converter takes full advantage of the benefits of an Li-ion battery and works
in load current occur, you can use a simover the batterys full range of 4.2 to 2.5V.
pler, dominant-pole compensation
method. In this case, you can omit R1 and
C1 and increase C2 to 0.039 mF. The down input up to output ground. When based rechargeables or three alkaline cells
UCC3954 includes a low-battery-warning this input is left open, it pulls down to the in series. As with any high-frequency conoutput and a shutdown input. The low- battery () potential, and IC1s quiescent verter, layout and grounding critical to
battery warning is a current-limited, current reduces to less than 1 mA. To pre- proper operation. Keep all connections as
open-drain output that turns on when the vent overdischarging the Li-ion battery, short as possible, and use a ground plane.
battery voltage approaches the shutdown IC1 automatically turns off when the (DI #2263).
threshold of the IC. You can use it to turn input voltage drops to less than 2.5V, and
on an LED or to drive an input to a mP to the quiescent current reduces to 30 mA.
To Vote For This Design,
provide an alert that power will soon be Although IC1 is designed for use with sinCircle No. 503
gle-cell Li-ion batteries, you could also
lost.
To enable IC1, you should pull the shut- power the converter using three nickel+
design
ideas
Acknowled gment
The author thanks Mental Automation Inc,
whose ECAD tools he used to implement and
test the circuit. The company provided the
author the company time to submit this
idea. The author also thanks Seattle Silicon
(5V/DIV)
26.2 mSEC
52.5 mSEC
78.7 mSEC
105.0 mSEC
131.2 mSEC
157.5 mSEC
V2
10V
+
1
R1
150k
Q4
MPS2907A
100k
100k
Q5
IC1
V3
PULSE
6
+
THR
TRIG
Q3
MPS2907A
C1
0.3 mF
MPS2907A
4
3
4
CLR
7
DIS
3
OUT
VC
1k
2
Q1
VN0300
Q2
VN0300
R3
10k
R2
10k
C2
0.15 mF
Figure 1
LM555
0.0084 mF
TO V1
2
+
2 _
100k
6
OP183
10k
10k
This pulsed and variable current source acts as a charge pump to efficiently drive various capacitive loads.
www.ednmag.com
design
ideas
12V
FREQUENCY
(kHz)
FREQUENCY (kHz)
design
ideas
Design Idea Entry Blank
Entry blank must accompany all entries. $100 Cash Award for all published Design Ideas. An additional $100 Cash Award for
the winning design of each issue, determined by vote of readers. Additional $1500 Cash Award for annual Grand Prize Design,
selected among biweekly winners by vote of editors.
To: Design Ideas Editor, EDN Magazine
275 Washington St, Newton, MA 02158
I hereby submit my Design Ideas entry.
Name
Title
Phone
E-mail
Fax
Company
Address
Country
Design Idea Title
ZIP
Circle No. 10
www.ednmag.com
design
ideas
V11Vi Vi1VO Vi
=
+
.
R2
R1
R5
+VS
IC1
OPA547
V1
VC
R3
165k
2
Vi
SIGNAL OUT
1
4
3
165k
R2
165k
(2)
RZ
7
IC2
OPA340
6
VO
4
R4A
13.7k
R4B
49.9
VZ=5.1V
R5
15k
1VS
www.ednmag.com
You can use a difference amplifier with wide common-mode range to control a power amplifiers
current limit.
November 19, 1998 | edn 129
design
ideas
(3)
R1 R 3
=
.
R5 R 4
(4)
www.ednmag.com
design
ideas
R2
100k
C1
0.1 mF
VCC=5V
R1
10k
D1
1N914
C2
0.01 mF
VOUT
LMC660
+
R4
1k
5V
R5
1k
R3
10k
D2
1N914
C3
0.01 mF
R2
100k
C1
0.1 mF
VCC=5V
R1
10k
VTH
1
LMC660
+
R3
10k
VOUT
LMC660
+
5V
R4
1k
R5
91
C2
0.01 mF
R6
910
DVTH
The passive, diode-based approach to pulse demodulation (a) provides a lower sensitivity than the
active approach (b).
A logic-level rising edge at the clock input (Pin 3) of the 4013 clocks the flip-flop.
Because the circuit holds the data input
(Pin 5) high, the Q output (Pin 1) goes
www.ednmag.com
design
ideas
5V
high, which turns on the
LED. Once the LED is on,
the circuit ignores any furC2
5V
ther changes at the input.
0.1 mF
6
14
R1 and C1 are the powerS
up reset for the flip-flop. At
1k
5
1
power-up, C1 discharges,
D
Q
which holds the reset input
(Pin 4) of the 4013 high,
4013
clears the Q output of the
LED
3
CLK
4013, and turns off the
INPUT
LED. C1 charges up to the
supply voltage through R1,
5V
R
taking the R input (Pin 4)
4
7
C
1
low to deassert the 4013 re0.1 mF
set time. D1 discharges C1
quickly on powerR1
D1
Figure 1
100k
down. S1 is an optional reset switch. C2 is a
power-supply bypass caS1
pacitor. Dont forget to
NOTES:
ground all unused inputs
LED=HIGH-EFFICIENCY RED LED.
on the 4013. To reset the
D1=IN4001 OR ANY OTHER SMALL-SIGNAL DIODE.
S1=OPTIONAL MOMENTARY PUSHBUTTON SWITCH.
circuit, either momentarily
TIE UNUSED INPUTS TO GROUND.
close S1 or temporarily disA 4013 CMOS flip-flop and a handful of passive components monitor the
connect power.
You can solder all the activity of an embedded systems watchdog reset.
available bit-map program, such as Microsoft Paint. After opening this program,
select the Attribute menu. At the prompt,
you enter the LCD size you are using and
then choose the monochrome-bit-map option. You can now close the Attribute window and start drawing, typing, or pasting
the images you want. After saving the pictures, you need to attach the bit maps to the
end of your assembled or compiled program in order of their intended use. You
can attach them using the COPY/B command in DOS, which differs from the regular COPY command by copying directly
as a binary format without adding a byte of
data at the end.
design
ideas
Padded zeros
per row
2
4
3
0
2
0
0
2
0
0
0
Totals divisible
by four
12
30
16
16
32
60
16
32
32
80
40
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
of analog signals,
its hard to beat the venerable precision
multiturn potentiometers simplicity, resolution, and power-off nonvolatility. When
digital control of an analog parameter is the
design objective, a universe of DACs is
available to the designer. The circuit in Figure 1, however, has manual-pushbutton
and CMOS/TTL-compatible digital interfaces to a 10-bit, nonvolatile, two- or fourquadrant multiplying DAC. The heart of
the circuit is the Xicor (Milpitas, CA)
X9511 PushPot series of digitally controlled
potentiometers. These devices implement
a convenient up/down response to either
ground-referenced contact closures (with
built-in debounce and pullup provisions)
or open-collector/drain digital pulses.
Other useful features of these digital
potentiometers include a 5V analog-signal range and automatic storage and
retrieval of settings with power-on/off
OR MANUAL CONTROL
is VOUT/VIN=(25.53P2+P131)/761. Thus,
two-quadrant gain runs from 0.04 to
1.04 in steps of 0.0013, as P1 and P2 settings vary from (0,0) to (31,31).
Optionally, you can obtain four-quadrant multiplication by adding one resistor
to the circuit, with the value R3=R2=20 kV.
Gain
then
becomes
VOUT/VIN=
(25.53P2+P1410)/380 and ranges from
1.08 to 1.08 in steps of 0.0026, as P1 and
P2 vary from 0 to 31. The loading of P1 by
R1 is light enough to produce a negligible
effect on linearity. Connecting Pin 7
(automatic store enable) of P1 and Pin 7
of P2 to ground enables automatic storage
of potentiometer settings to internal EEPROM upon power-down. The circuit then
automatically retrieves the settings on
power-up. (DI #2269).
To Vote For This Design,
Circle No. 412
Use a pushbutton or provide a digital signal to choose a nonvolatile analog output with nearly 10-bit resolution.
BIPOLAR (VIN)
ANALOG
REF INPUT
65V MAXIMUM
VL
P1
10k
VH 3
5 R 1*
255k
VW
VOUT=VIN
5V
R3*
Figure 1
5V
VH
8
1
P2
P1
UP
10k
7
ASE
2
DOWN
4
REMOTE OPENCOLLECTOR
DIGITAL INPUTS
VL
VW
5
20k
IC1
3
4
25V
5V
8
1
2
UP
P2
7
ASE
DOWN
4
UP
NOTES:
*1%.
R3 IS OPTIONAL FOR FOUR-QUADRANT OPERATION
ONLY; OMIT FOR TWO-QUADRANT OPERATION.
P1, P2=XICOR X9511W.
IC1=mC7101.
DOWN
FINE
MANUAL
PUSHBUTTON
INPUTS
UP
DOWN
COARSE
www.ednmag.com
design
ideas
Design Idea Entry Blank
Entry blank must accompany all entries. $100 Cash Award for all published Design Ideas. An additional $100 Cash Award for
the winning design of each issue, determined by vote of readers. Additional $1500 Cash Award for annual Grand Prize Design,
selected among biweekly winners by vote of editors.
To: Design Ideas Editor, EDN Magazine
275 Washington St, Newton, MA 02158
I hereby submit my Design Ideas entry.
Name
Title
Phone
E-mail
Fax
Company
Address
Country
ZIP
Enter 8 at www.ednmag.com/InfoAccess
Enter 9 at www.ednmag.com/InfoAccess
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
design
ideas
D1
SS32
Figure 1
L1
C2
VCC
Dh 5
VOUT
12V
500 mA
ES2A
+
1, 2, 3
12.0k
R1
0.012, 0.5W
1.43k
J1
4
3
2
1
3.3
CS(+) 3
2
CS(1)
112V
500 mA
SS32
SI4420-S08
BST
D3
5, 6, 7, 8
SC1101
0.1 mF
D2
33 mH
J2
1
2
VIN
the 12V output is unused, the 12V output can deliver 1A, and you can eliminate
D1, D2, C1, and C2. To improve efficiency
under this condition, you can also use a
Schottky diode for D3. The controller provides separate grounds for power drive
reference (PGND) and analog-circuitry
common (GND). These two grounds
must connect at the controller.
With dual outputs, the circuits measured efficiency is 91% with VIN=5V and
93% with VIN=5.5V. In Figure 1s circuit,
L1 consists of a #T37-52 core (Micrometals Inc, www.micrometals. com) with
34 turns of 26-gauge wire. For applications that exceed ambient temperatures of
508C, you can use a slightly larger core,
such as a #T38-52, or a Kool MU core
material available from Magnetics Inc
(www.mag-inc.com). (DI #2279)
To Vote For This Design,
Circle No. 373
FB
GND
PGND
1k
100 pF
Tying a buck converters BST pin to VCC and the PGND pin to circuit ground configures the converter for boost operation.
www.ednmag.com
design
ideas
ground-referenced voltage.
+VS1
2.40V-AC-3f
INPUT
Figure 1
287k
ISOLATION BARRIER
D1 IN34As
IC1
A
R1
R2
10k
2VS1
47.5k
2
IC2
+
287k
B
R3
47.5k
R5
2
IC3
+
47.5k
2
D2
10
15
R12
10k
65%
R7
47.5k
2VS2
1
9
R6
R4
10k
VOUT
8
16
R10
47.5k
R9
47.5k
R11
C
NOTES:
+VS2
R8
2
IC4
+
D3
24k
65%
=FLOATING GROUND.
=SYSTEM GROUND. (DO NOT TIE THESE POINTS TOGETHER.)
ALL RESISTORS EXCEPT R11, R12=61% METAL FILM.
ALL OP AMPS=1/4LM324.
ISOLATION AMPLIFIER=BURR-BROWN ISO122P.
CAUTION: LETHAL VOLTAGES ARE PRESENT IN THE CIRCUIT.
USE EXTREME CARE.
A quad op amp combines the three half-wave-rectified phase voltages into one voltage for easy monitoring.
www.ednmag.com
design
ideas
5V
10k
Figure 1
0.047 mF
10k
4.7k
MSK INPUT
+
0.047 mF
14
3
22k
10k
100
0.047 mF
15V
4700 pF
7
12
SIG
REF
VCO0
PHASE 15
DETECTOR 3
CA
10k
TRIMMER
10k
PHASE 2
DETECTOR 1
4046
VCO1
CB
2 +
8
7
LM311
3
4
1
RZ OUTPUT
1
1M
9
0.01 mF
3300 pF
R2
82k
5
4.7k
16
VCC
LM311
3 1
4
1
0.047 mF
TP
R1
IH
11
10k
0.22 mF
GND
8
1M
0.047
mF
68k
15V
www.ednmag.com
design
ideas
ou can use A/D converters or exter- Web site: www.ednmag.com. At the regis- four output pins of the mC; three pins are
nal, controllable oscillators to gener- tered-user area, go into the Software for filter returns, and the fourth is the mP
ate sine waves from low-power, low- Center to download the file from DI-SIG, output. The filter constants are such that
cost mCs. However, these methods add #2278.)
the highest cutoff frequency corresponds
cost, reduce reliability, increase circuit and
The basic circuit in Figure 1 uses only to the highest generated frequency. The
software complexity, increase
power consumption, and inTABLE 1EXAMPLE FREQUENCIES AND CORRESPONDING NUMBER OF LOOPS
crease overall size. Alternatively,
Filter number and
Number for variable,
Actual output
Filter number
cutoff frequency (kHz)
"Frec'' (=number of loops)
frequency (kHz)
active (R#, C#)
and with just a few lines of code,
1: 10
14
9.5
1,2,3,4
most mCs can easily generate
2: 12
11
11.75
2,3,4
multiple discrete sine waves.
3: 15
8
15.35
3,4
The example in Figure 1 uses a
4: 18
7
17.1
4 (always on)
68HC705J1A to generate sine
waves of 9 to 20 kHz. The circuit
uses the mPs square-wave output and switches between multiple RC filters of varying
Figure 1
cutoff frequencies to
achieve outputs with
30 pF
reasonable spectral purity.
The necessary code consists
20
1
of a simple subroutine that
OSC
RESET
2 OSC1
1 mF
can adapt to different needs,
such as tone duration and
30 pF
multiple (sequential) tone
output (Listing 1). Moreover,
68HC705J1A
R3
R4
R2
R1
the generated frequency is
47
51
62
91
4
PA4
based on a variable, frec, that
C1
C2
C4
C3
a previous routine can pass to
3
OUTPUT
15 nF
PA5
24 nF
12 nF
0.1 mF
this subroutine. The duration
2
time is based on a timer, which
9 VDD
VDD
PA6
eliminates calculations of tone
1
10 VSS
duration based on the cycle
PA7
period. The code in Listing 1
is for illustrative purposes, but
you can use it as-is with proper headers. (You can download
Listing 1 and an example call- Based on a simple subroutine, a mC can easily generate multiple sine waves from 9 to 20 kHz by switching
ing subroutine from EDNs external RC filters on and off.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
Fax
E-mail
My e-mail address may be published Yes
No
Company
Address
Country
ZIP
www.ednmag.com