Beruflich Dokumente
Kultur Dokumente
D Is Inside
Based on a seven-LED set, you select three consecutive LEDs; the second-tier settings will define the three
LEDs intensities (Figure 1). The remaining displays are maintained at a
base-tier-intensity setting. Using four
pushbutton switches, the Microchip
(www.microchip.com) 16F505 rotates,
distributes, and provides PWM (pulsewidth-modulation) control of these
two power tiers across the seven LEDs.
Two of the buttons increase or decrease
intensity, or they group or ungroup the
tier-intensity settings; the other two
buttons rotate the resulting second-tier
display clockwise or counterclockwise.
The implementation uses just a few
parts, exploiting the controller to pro-
amplifier
testing
5V
1
10k
10k
200
10
200
9
D
11
PIC16F505
200
200
6
5
13
12
200
200
14
200
GREEN
LED
WHITE LEDs
LTW-2S3D7
470
MODE
OPTICALILLUMINATION
RING
mode. When you group the tiers together, their intensity-setting indexing is common, but their register limits
remain independent. You can download Listing 1, the assembly code for
the circuit, from the online version
of this Design Idea at www.edn.com/
090709dia.
The controller provides a PWM period of approximately 7.5 msec to all
the LEDs. It also controls each LEDs
duty cycle, according to the registered
No function
No function
No function
nominal in this circuit. These numbers are respectable, but you can improve them. First, incorporate a digitally controlled variable resistor, such
Jason Andrews, Maxim Integrated Products Inc, Dallas, TX
as a DS1859, into the regulator circuit
A variable resistor that inte- ther a preset 3.3V or any user-defined of Figure 1 by placing it in parallel
grates a programmable, tem- output within its operating range.
with R2 (Figure 2). A temperatureperature-indexed look-up table can
For most regulator circuits, the out- indexed look-up table in an internal
compensate for the temperature drift put voltage varies slightly with tem- nonvolatile memory controls the 50of a voltage regulator. In this case, the perature, from 97.6 to 101.5% of kV digital resistor, allowing you to
look-up table can change
program a different rethe resistance every 28C
sistance value for each
VCC
over a range of 240 to
28C window.
11028C, thereby nullYou can program the
ing any regulator-output
look-up table to prochanges that would othvide any resistance-verLOAD
OUT
IN
erwise occur because of
sus-temperature profile.
C2
temperature. A typical 10 F
In this example, the
GND
GND
R1
MAX604
regulator circuit comprislook-up table flattens
C
GND
GND
es a regulating element, a
the regulators normal
3
10 F
feedback-resistor divider,
curve over temperaSET
OFF
and capacitors to provide
ture. These look-up tafiltering and regulation
bles, therefore, provide
R2
against transients and
a positive resistance
LOAD
load-switching conditions
slope with respect to
(Figure 1). The ratio of
temperature. The resisthe two feedback-divider
tor has 256 programmaresistors sets the regulable resistance settings
Figure 1 A typical voltage regulator lets you set the regulated
tor-output voltage. The
of 0 to 255 decimal,
output level by adjusting the R1/R2 divider.
regulator can generate eiand each one accounts
designideas
VCC
VCC
4.7k
4.7k
DS1859
SDA
VCC
SCL
H1
OUT1
L1
IN1
H0
OUT2
L0
IN2
MON3
WPEN
MON2
GND
MON1
C1
0.1 F
C2
10 F
GND
LOAD
OUT
IN
MAX604
GND
GND
GND
OFF
SET
R1
C
3
10 F
R2
LOAD
Figure 2 Connecting one-half of a dual variable resistor in parallel with R2 to the circuit in Figure 1 lets you temperaturecompensate the regulated output voltage.
for approximately 192V. In this example, the look-up table was programmed with a setting of 143 decimal at 2408C. The settings were incremented by one for every 4 to 68C
change in temperature, resulting in a
value of 152 decimal for ambient and
158 decimal for 1858C.
As illustrated in Figure 3, the result of this regulated performance over
temperature is a drastic increase in
precision: The variation from 245 to
1858C is now only 62 mV. For comparison, note the response of the standard regulator circuit in Figure 1 (the
black curve). The digital-resistor IC
of Figure 2 includes three ADC inputs for monitoring external voltages.
An alternative, the DS1847 dual variable resistor, offers similar performance
without the ADC monitors and at
lower cost.EDN
3.4
3.38
UNCOMPENSATED
3.36
3.34
OUTPUT
3.32
VOLTAGE edn090514di44702 DIANE
(V)
(PLACED
IN THE 5-28 FOLDER)
3.3
3.28
3.26
3.24
45 35 25 15 5
15
25
35
45
55
65
75
85
Figure 3 These curves compare regulated outputs versus temperature for the
Figure 1 circuit (black) and the compensated Figure 2 circuit (pink).
TEMPERATURE (C)
necting system power when a temperature exceeds a safe limit. The circuit
in Figure 1 uses a hot-swap switch to
monitor overvoltage, undervoltage,
and overcurrent conditions. When the
ambient temperature exceeds a preset
threshold, a carefully placed temperature sensor, IC1, forces the hot-swap
controller, IC2, to disconnect system
power. You can use multiple tempera-
designideas
Q1
SI7850
5V DC
IN FROM
AC/DC
ADAPTER
CIN
10 F
4
C1
0.1 F
1
2
IC1
LM26
HYST
OS
R1
10k
1%
5
3
VTEMP 3
GND
R2
2.15k
1%
CN
0.1 F
1
2
V
HYST
ICN
LM26
OS
VIN
1
SENSE
CL
100 F
VPGOOD
10
GATE
9
OUT
UVLO
PGD
R3
2.87k
1%
4
RSENSE
0.01
1%
C2
0.1 F
OVLO
PROTECTED
5V
OUT TO
SYSTEM
IC2
LM25069
TO C POWERGOOD INPUT
PWR 7
RPWR
31.6k
1%
GND
VTEMP 3
RPG
100k
1%
6
TIMER
CT
0.47 F
GND
Figure 1 Carefully placed low-cost temperature sensors disconnect system power when an overtemperature thermal event
occurs.
outputs on each channel. If the amplifier drives separate speakers, you can
use an attenuator circuit (Figure 1). A
problem arises, however, with grounded headphones: Stereo headphones use
three-pole plugs with which the negative side of each speaker connects to a
common ground. Thus, you may think
that you cant directly connect head-
designideas
RIGHT
R3
R4
R1
R6
RIGHT
SPEAKER
R2
LEFT
R4
R5
RIGHT
HEADPHONES
LEFT
SPEAKER
R2
R3
LEFT
LEFT
R5
R1
R6
RIGHT
edn090611di45061 DIANE
(PLACED IN THE 6-11 FOLDER)
OUTL
OUTL
OUTR
OUTR
0.47 F
edn090611di45062 DIANE
0.47 F
(PLACED IN THE 6-11 FOLDER)
phones to a Class D amplifier without nels drivers. Resistors R3 and R2 conusing a transformer.
nect to the left output terminal. ReTo solve the problem, look at the sistors R4 and R1 connect to the right
output waveform of the MAX9704 output terminal. The inactive chanas it swings (Figure 2). Each channel
nels output
edn090611di45063
DIANE voltage must be the same
(PLACED
6-1 FOLDER)
output alternates between high
andIN THE
voltage,
which means that R4, R1, and
low. You can take advantage of the R6 connect to the same voltage when
fact that the channels arent on at the the left-channel output is active. R3,
same time by configuring your circuit R1, and R5 connect to the same voltlike the one in Figure 3.
age when the right-channel output is
Figure 4 shows the circuit details. active. The values of R1 and R2 affect
Because the MAX9704 alternates the how much crosstalk you get between
outputs of each channel, the R3/R6 channels. The values in Figure 4 procombination doesnt affect the chan- vide sufficient channel separation.EDN
10
9
16
INL OUTL
INL OUTL 31
INR OUTL
15
INR OUTL
IC1
0.47 F
MAX9704
0.47 F
OUTR
AGND
J1
32
OUTR
OUTR
OUTR
LEFT
SPEAKER
30
29
J2
28
27
RIGHT
SPEAKER
26
25
R1
100
R2 R3
100 470
R4 R5
470 470
R6
470
J3
T
R
S
Figure 4 With the resistors in place, you can connect headphones to the MAX9704 amplifier.
HEADPHONES
designideas
Circuit eases power-sequence testing
C3 is 33 mF and R3 is 11 kV for a
400-msec delay between powering the
two supplies. The timer triggers with a
negative pulse at Pin 2 of IC1. It produces a positive pulse at Pin 3 of IC1.
The output becomes inverted at IC2A
before passing to IC6s Pin 11. IC5 and
IC6 are the latched circuits. The set
pin, S, connects to the 5V supply, and
the reset pin, R, connects through resistors R2 and R10 and capacitors C4 and
C7 to ensure that the Q output is high
during the initial power-up stage. Regulators IC3 and IC4 are initially off.
When analog switch S2 is in the on
position, the sequence of the 1.5V
power supply starts first, and the 3.3V
supply follows. To start the power-sequence testing, press and release trigger switch S1 to momentarily produce
IC2B
74LSU4N
VIN
5V
1
R1
10k
IC2A
74LS04
2 TR
4
2
S1
DT6
4
C2
0.01 F
C1
0.01 F
Q 3
7
IC1
DIS
LM555N
5
6
CV
THR
R2
40k
2
1 GND
V+ 8
R3
10k
R10
10k
C4
0.01 F
3
2
11
C3
33 F
C IC
6
D 7474N 8
13
R
12
C7
0.01 F
C IC
5
D 7474N 6
1
R
10
VIN
13
12
11
16
14
15
S2
MABSA
VOUT1
1.5V
R4
10k
5
1
IC3
1
3
4
EN TPS75501 V
OUT
2
GND 3
1.5V
R5
C5
30k
47 F
VIN
5
1
IC4
4
EN TPS75501
V
GND 3 3.3V OUT
C6
47 F
R6
50k
2
R7
30k
D1
RED
R8
1k
VOUT2
3.3V
3
D2
GREEN
R9
Figure 1 A configurable sequencing circuit uses a 555 timer to delay one power supply.
edn090514di44861 DIANE
(PLACED IN THE 6-11 FOLDER)
designideas
a low pulse. This pulse triggers the
555 timer, IC1, which produces a positive pulse. This pulse in turn produces a delay before enabling IC4s power
3.3V supply. When you press and release S1, another signal goes to inverter IC2B before passing to the latch pin,
Pin 3 of IC5. There is no delay for the
1.5V regulator that connects to this
pin. It enables IC3s 1.5V power sup-
ply. Because IC3s enable pin immediately receives the enable signal, it
produces the 1.5V without delay. IC4s
enable pin, which receives a signal after the delay by the 555 timer, later
produces the 3.3V, thus achieving
the power sequence. The 1.5V power
supply comes first when you press S1,
and the 3.3V power supply comes on
only after the 555