Escolar Documentos
Profissional Documentos
Cultura Documentos
ideas
www.ednmag.com
design
ideas
5V
VCC
4
VCC
SWITCHBUS
PR
2
74F74 D
FF0
3
6
CLK
Q
CL
5 Q
10k
RESET
PLAYER 1
RESET
CIRCUIT
10
PR
9
Q
74F74
FF1
11
8
CLK
CL Q
13
12
10k
PLAYER N
2
RESET
10k
PLAYER 1
9
R1
1N914
5V
VCC
470
RESET
CIRCUIT
LED1
S
13
Q
4013
FF1
11
12
CLK
Q
R
1N914
5V
VCC
LED2
PLAYER 2
5
D1
R1
1N914
1k
S
1
Q
4013
FF2
3
2
CLK
CLK
Q
R
4
LED1
9V
VCC
D2
5V
VCC
R2
1k
1N914
9V
VCC
LED2
10k
PLAYER N
DN
5
RN
10k
10k
Figure 2
D2
470
CAPTUREINHIBIT
10
5V
VCC
470
9V
VCC
10k
D1
R2
S
5
4013 D
FF0
3
CLK
R
4
5V
VCC
1N914
LEDN
5V
VCC
0.1 mF
PR
5
74F74 Q
FFN
3
6
CLK
CL Q
1
CAPTUREINHIBIT
10k
10k
1
SWITCHBUS
PR
5
Q
74F74
FF2
3
6
CLK
CL Q
1
9V
VCC
PLAYER 2
2
Figure 1
9V
VCC
5V
VCC
1
10k
0.1 mF
S
1
4013 Q
FFN
3
2
CLK
Q
R
4
DN
RN
1k
1N914
9V
VCC
LEDN
design
ideas
(SwitchBus) to logic 0. Because SwitchBus is now at logic 0, and applying a logic 0 to the Set input of a 4013 has no effect, any further switch closures by player
m or any other player now have no effect.
www.ednmag.com
design
ideas
photosensitivity at or near
5V
peak wavelength is low, and,
VCC
as a result, the creation of
Tx
hole-electron pairs is low.
5V
R7
GaAs-based emitters with
IC2
R8
270k
emission wavelengths of 940
C3 +
C2
R3
C1
100k
nm have relatively good sen0.1 mF
10 mF
3.3M
10 pF
R9
sitivity at or near their peak
Tx/Rx
R1
(GENERALD1
470
emission wavelength, thanks
Q1
8
PURPOSE
1N4148
3
5
+
1k
+
+
I/O PIN)
to high bulk absorption. FigR10
1
7
IC1A V
Rx
IC1B
ure 1 shows the relative reR2
1k
6
2
100
2 2
2
sponsivity and emis4
Figure 3
sion spectra for an
GND
R4
R6
LED
Infineon (www.infineon.
10k
10k
R5
com) SFH409 LED. This in470
frared GaAs LED has peak
emission at 940 nm with a
half-peak bandwidth of 50
nm. In detection mode, it One dual op amp and a handful of components turn a LED into a dual-purpose device.
peaks at 920 nm with a halfpeak bandwidth of 55 nm. As Figure 1 acting as a shunt current-to-voltage con- blocks any transition occurring on the Rx
shows, the wavelength of peak respon- verter and a high-speed, noninverting line from activating the UARTs receiver.
sivity is shorter than the peak-emission voltage amplifier (IC1A). Resistor R3 pro- When switching between transmitting
wavelength, and a fair amount of overlap vides a slight bias of a few millivolts to and receiving modes, the software should
exists between the two curves. Thanks to R4 to keep IC1A in its linear region. The include a time delay to allow for preamthis overlap, the LED is useful as a trans- op amp in this design is the high-speed plifier recovery. The preamplifier-recovducer. Figure 2 shows a half-duplex ap- dual OPA2350 from Texas Instruments ery delay is typically less than 10 to 20
Burr-Brown division (www.ti.com). The msec. Note that for 8051-class microconplication that exploits the LED.
Here, the LED links two embedded device has rail-to-rail inputs and outputs trollers with depletion-mode pullup resystems via a fiber-optic cable or a short- and a gain-bandwidth product of 38 sistors on their I/O pins, you should redistance, line-of-sight coupling path. Fig- MHz, and it can operate from a single 2.7 place D1 with a pnp transistor and an
ure 3 shows the transceiver circuit used to 5V supply. The transconductance gain associated base resistor.
in Figure 2s application. The circuit can of the preamplifier is a function of the
send half-duplex data between two em- values of R4, R5, and R6. In the circuit of References
1. The Radiometry of Light Emitting
bedded systems at rates as high as 250 Figure 3, the resistor values produce a
kbps. The circuit comprises the LED transconductance gain of approximate- Diodes, Technical Guide, Labsphere Inc,
driver, the preamplifier, and the output ly 220,000. The output comparator, IC1B, North Sutton, NH.
2. GE/RCA Optoelectronic Devices,
comparator. The LED driver drives the converts the preamplifiers output signals
LED during data transmission and un- to logic-level voltages. You set the input GE/RCA Corp, 1987.
3. Gage, S, D Evans, M Hodapp, and H
hooks the Tx pin from the LED during threshold of the comparator by adjusting
data reception. The Tx pin connects to resistor R8. By properly adjusting the Sorensen, Optoelectronics Applications
transistor Q1 via base resistor R1. When threshold, you can obtain good pulse Manual, McGraw-Hill, 1977.
the Tx pin is in the idle state (logic 1), the symmetry for a variety of input-power
4. Sze, S, Semiconductor Devices
quiescent current of the LED driver is conditions. The combination of R9 and Physics and Technology, Wiley, 1985.
zero, because Q1 is off. Activating the Tx C1 provides ac hysteresis and additional
pin (logic 0) causes Q1 to turn on. Resis- overdrive for improved comparator
tor R2 sets the LEDs output-power level. switching. Moreover, R9 limits the
You should set the power level to com- switching current on input Pin 5 of IC1B
pensate for transmission losses through for logic one-to-zero transitions.
During data transmission, the transthe communication medium and to
minimize pulse-distortion phenomena mitter circuitry drives the preamplifier
in the communication link. R2 should be and comparator. To prevent locally trans50 to 220V when the circuit operates mitted data from causing UART overrun
from a 5V supply.
errors, the Tx/Rx line should be at a log- Is this the best Design Idea in this
The preamplifier consists of resistor R4 ic-1 level. The combination of R10 and D1 issue? Vote at www.ednmag.com.
www.ednmag.com
design
ideas
www.ednmag.com
design
ideas
13
Figure 1
VIN
+
1
+
V2
events. Figure 2 shows how you can derive the new device with adjustable hysteresis.
Listing 1 is the complete PSpice netlist
for the switch. The inputs V(plus) and
V(minus) route the switch-control signal
to the Bctrl behavioral element. (A b element in IsSpice4 becomes a value E
source in PSpice.) When the switch is
open (Bctrl delivers logic 0), the reference
node (node ref) becomes armed at the
highest toggling point (7V in Figure 2s
VT THRESHOLD=5
VH HYSTERESIS=2
2
S1
+
VOUT
VCC
10
3
VOUT
VOUT (V)
R1
10k
VIN
23
1
(b)
(a)
VIN (V)
This switch circuit (a) toggles at 7V and resets at 3V, yielding 4V hysteresis (b).
Bctrl
Voltage
V(plus)-V(minus)>V(ref) ? 1:0
Rconv1
10Meg
plus
+
Rconv3
10Meg
NodePlus
Figure 3
Rt
100k
8 +
Vc
S1
Figure 2
minus
Bref
Voltage
2
+
3
Rconv2
10Meg
NodeMinus
Ct
100 pF
R1
1k
VOUT
X1
SWHYSTE
Vt45V
Vh42V
1
+ Vcc
15
ref
Rconv4
10Meg
+
_
design
ideas
example). When the input voltage increases, it crosses the ref level, and Bctrl
switches high. Switch S1 closes and authorizes the current to flow in its terminals through RON. At this time, the Bref
source has detected that S1 is closed and
now modifies its reference node to the
second level (3V in the example). When
the input voltage drops, it crosses the 7V
level, but no action takes place, because
ref has changed to 3V. When the input
voltage finally crosses 3V, S1 opens and
applies ROFF between its terminals. Figure
3 shows the PSpice simulation results,
confirming the 4V hysteresis. Figure 4
shows how to build a simple RC test oscillator, using the PSpice-derived hysteresis. You can download the PSpice
netlist from the Web version of this article at www.ednmag.com.
TIME (mSEC)
Figure 4
www.ednmag.com