|
||
April 9, 1998Supervisory circuit monitors modem connectionJ Basílio Simões and Jorge Landeck, Instrumentation Center of the University of Coimbra, Coimbra, Portugal
The TxD and RxD inputs to the circuit (pins 2 and 3 on the D-type RS-232C connector) first drive line receiver IC1, whose outputs then drive the two inputs of IC2's dual retriggerable monostable multivibrator (one shot). When the system establishes a new connection, the first exchange of data triggers IC2, and positive pulses of duration TX=0.45×RX×CX appear at the 1Q and 2Q outputs. Each new transition on the data lines retriggers the associated one shot, which extends the output pulse for a new period, TX. In this application, RX=56kilohms, and CX=4700 µF corresponds to a period of about 2 minutes. If a problem arises with one of the systems and it stops transmitting data for a period longer than TX, the corresponding one shot's output pulse goes low, indicating that the system should hang up the connection. To allow for the self-restarting of the system, another one shot, IC3, shuts down the modem for a period TY, determined by the associated timing resistor and capacitor. The conditioning circuit for the output signal uses an optocoupler, IC4, to drive the shutdown input of the modem. If your modem has no shutdown input, you can solve the problem by powering the modem through a relay driven by IC4. (DI #2186) Circuit optimizes phototransistor bandwidthDavid Magliocco, CDPI, Scientrier, France
Phototransistors have less favorable dynamic behavior than do photodiodes because, in addition to the collecting and charging processes, phototransistors also experience a delay stemming from the amplification mechanism (Miller effect). For the rise and fall time of a phototransistor, the following relationship applies: where fT is the transition frequency, CCB is the collector-base capacitance, V is the gain, and b is a constant whose value lies between 4 and 5. For RLOAD=1 kilohm, 4<b<5, 100<V<1000, CCB~2.5 pF, and fT'~100 kHz, the result is 5 µsec<tr,f<8 µsec.
To get a faster response time, you can use an op amp, but without phase compensation the result is poor. In Figure 1b's circuit, the phototransistor's internal capacitance and the amplifier's gain bandwidth limit the overall speed. To cancel the side effect of the phototransistor's 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 phototransistor's internal capacitance with a transistor (Figure 1c). The 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 can't 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) Technique increases low-cost DAC's resolutionJeremy Dean, Thomson-Thorn Missile Electronics Ltd, Basingstoke, UKCost-sensitive µC applications often employ resistor chains to implement crude DACs. You can extend this method by exploiting the way in which many µCs allow individual output pins to be set to either low ("0''), high ("1''), or floating ("F") states. A converter can thus respond to ternary rather than binary codes.
Undersampling extends utility of digital scopesRobert J Inkol, Defence Research Establishment, Ottawa, ON, CanadaBy undersampling the input signal, you can use a digital oscilloscope to digitize and display or collect signal data of even RF and IF signals. To sample a signal without aliasing, you must use a sampling rate that satisfies the relationship 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 high-frequency 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 components of the signal do not fold over on themselves or become reversed, you must choose the sampling rate, fS, 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 that the
signal would hop to a carrier frequency of 71.9 MHz at frequent intervals. A bandpass
filter centered about 70 MHz with a bandwidth of 5.6 MHz attenuated and band-
Basic stamp computer eases prototyping hasslesMed Dyer, Jabra Corp, San Diego, CAMany of today's complex ICs use a common three-wire serial interface to provide programming access. These ICs typically end up in circuits that include a µC or a CPU, and the controller or CPU then has the burden of programming the serially controlled parts. During early prototyping of a project, however, the µC or CPU may be unavailable for use: The hardware may be absent, or the complex programming necessary to fully use the CPU may not be in place. For projects such as these--for which serial programmability is necessary but no resident host exists--you can use a simple and cost-effective prototyping tool: the Basic Stamp II (BSII). A battery-powered BSII is a unique tool for any engineer who regularly works on development projects and with many applications in the lab. With just a few pushbuttons and some minimal interface to the project at hand, powerful portable control is possible--with a minimal learning curve and modest expenditure. The BSII from Parallax Inc (Melville, NY) is a complete Basic-programmable computer, all contained on a 24-pin DIP module. When plugged into its optional carrier, the BSII offers a serial port for connection to a PC, a battery clip for 9V battery power, a reset button, and plenty of room for the minimal additional circuitry needed for most prototyping applications. The BSII includes a simple PC-based Basic compiler for developing BSII code, which you download to the BSII's EEPROM for execution. Although a quick read of the BSII manual brings to mind a host of useful applications for the typical R&D engineer, one application is particularly handy: using the BSII to program three-wire serial devices. One example of a three-wire serial device is the LM1973 three-channel audio attenuator from National Semiconductor (Santa Clara, CA). This part can serve as a three-channel audio pot, and a three-wire serial interface performs channel 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.
The meat of the code required for this application comprises two BSII instructions: Button and Shiftout. Button 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.
Listing 1 is available for downloading. Click here to download DI-SIG #2178. (DI #2178) 10-kHz VFC uses charge-pump variationStephen Woodward, University of North Carolina, Chapel Hill, NC
Temperature-dependent forward-voltage drop, junction and stray capacitance, and reverse leakage current all conspire to limit converter accuracy. The stray capacitance and leakage current are especially troublesome in low-power applications, in which the need to minimize pump-current consumption limits the size of the pump capacitors. Because the total amount of charge pumped in each converter cycle is minimal, the error sources are proportionally more significant and thus harder to control and compensate. The unique pump circuit in this converter comprises two distinct halves: D1, D2, C1, and C2 generate a frequency-proportional current that closes the VFC's feedback loop, and D3, D4, C3, and C4 generate an error-correcting compensation current. If you assume that C2=C2=C3=C4 and equality of diode forward drops (VD) and stray capacitance (CS), then the net feedback current from the pump is You not only obtain compensation for the bothersome VDs, but also eliminate the effects of stray capacitance in the bargain. Operation of the converter depends on integrator IC1's control of multivibrator IC3. The combination is such that fOUT=0 when IC1's output is 1.2V. If, for example, VIN>0V, IC1 ramps negative. As IC1 ramps through approximately 0.8V, Q1 begins to conduct, thereby turning on both Q2 and Q3. Q2 drives S1 to the "plus" polarity state, providing a status signal to the connected system (typically, a gated up/down counter). The status signal indicates the presence of a positive VIN. S1 sets up S2 and S3 to provide a negative feedback current to C5. Subsequently, Q3's collector current causes IC3's fOUT to increase until 1E7×fOUT=VIN/R1=4 kHz/V for the values shown, and the integrator is thus balanced. VIN<0V causes IC1 to ramp positive, turning off the Q1-Q2-Q3 transistor trio. This action causes S1 to generate a "minus" status and set up S2 and S3 to generate a positive feedback current. The loop adjusts fOUT until 1E7=VIN/R1, as in the case of VIN>0V. The converter's overall temperature coefficient depends on matching all pump capacitances, including the pc-board contribution to CS parasitics. A ±5% capacitance tolerance is good enough to reduce the charge-pump temperature coefficient to approximately 50 ppm/°C. The converter linearity is ±0.03%, and the current draw is an unexcelled 6.5 to 10 µA as fOUT goes from 0 to 10 kHz. IC1's approximately 300-µV input-offset spec determines the converter's zero offset. IC2's regulation of the 4.55V reference affords good power-supply rejection, yielding undiminished accuracy for supply voltages from 5 to 36V. (DI #2183) Single IC biases LCD and GaAsFET amplifierJohn Wettroth, Maxim Integrated Products, Apex, NC
For most systems, the approach is to use two ICs: a negative doubling inverter, such as the MAX865, which provides a negative LCD bias of approximately 6V, and a linear regulator to provide the 3V GaAsFET bias. However, even two ICs can pose a problem in tiny systems. Moreover, a simple linear regulator may generate too much noise, and noise in the GaAsFET bias can appear in the transmitted RF signal. IC1, which includes a charge-pump inverter and a low-noise linear regulator in an SO-8 package, generates a quiet GaAsFET bias by design. It operates from supplies as low as 2.5V and produces a negative bias voltage with only 1 mV p-p ripple. You can change the bias level by adjusting R1 and R2, according to instructions in the data sheet. Circuitry in the dashed line provides the 6V LCD bias. A square-wave signal from the charge pump (Pin 1) adds to the unregulated negative voltage at Pin 3 to form a negative, doubled version of the input voltage. The voltage loss (two diode drops) is minimal because of the LCD's low bias current and the use of low-drop Schottky diodes. The diodes drop approximately 0.2V; a Li-ion cell can thus produce an LCD bias greater than 6V. (DI #2179) |
||
| EDN Access | Feedback | Table of Contents | |
||
| Copyright © 1997 EDN Magazine, EDN Access. EDN is a registered trademark of Reed Properties Inc, used under license. EDN is published by Cahners Publishing Company, a unit of Reed Elsevier Inc. | ||