You are on page 1of 2

design

ideas
(quadrature-phase-shift-keying) modu- put sample from a 65-element look-up eration instructions to make the loop-
lation to the output. Figure 1 shows the table, which contains one quadrant of a repetition rate a convenient submultiple
emulation scheme, and Listing 1 controls sine wave. To create the other three quad- of the crystal frequency. For example, a
the operation of the microcontroller. The rants, bit 6 determines whether to read 31-instruction loop and a 20-MHz crys-
16C54’s firmware emulates a 24-bit nu- the table forward or backward, and bit 7 tal yield a scale factor close to 104
merically controlled oscillator. A fixed- specifies the output sign. An exclusive- steps/Hz.
length loop continuously adds the con- OR operation on bit 7 with a port bit gen- The code takes advantage of a quirk in
tents of one set of registers (the frequency erates BPSK operation. An exclusive-OR the 16C54’s operation: If two addresses
control) to another set (the phase accu- operation on both bits 6 and 7 with port exist on the return stack, the first copies
mulator). The phase accumulator incre- bits generates QPSK modulation. The re- endlessly into the second every time the
ments at a rate proportional to the de- sult goes to the DAC via the PIC’s 8-bit routine pops the second. The initializa-
sired output frequency and wraps around output port. A 50-kHz lowpass filter then tion code puts two copies of the loop-
once per output cycle. converts the DAC’s output into a smooth start address into the return stack, caus-
With a 24-bit accumulator, the output sine wave. ing all subsequent RETLW instructions
frequency is f3N/[67108864(L12)], You can preset the output frequency or to jump to the start of the loop. Index-
where f is the clock frequency, N is the load it serially via two pins of the PIC’s 4- ing into the look-up table with a calcu-
tuning control number, and L is the num- bit port. You obtain FSK by using an in- lated GOTO instruction both supplies an
ber of instructions in the loop. (The loop put bit to select which of two frequency- output sample and executes a jump to
period is two instruction times longer control registers to use. If the two restart the loop. This procedure is much
than the instruction count, L.) For ex- frequencies have a large common multi- faster than executing a CALL, a GOTO, a
ample, if the PIC’s clock crystal’s fre- ple, as in minimum-shift keying, the ac- RETLW, and a further GOTO. You can
quency is 16.777 MHz, and the loop has cumulator can be shorter, leading to a download Listing 1 from the Web version
30 instructions, you can set any frequen- higher output frequency for a given clock of this article at www.ednmag.com.
cy to approximately 40 kHz in steps of input. Without modulation, the firmware
1/128 Hz. Once per loop, the highest byte loop can be as short as 26 instruction Is this the best Design Idea in this
of the phase accumulator selects an out- times (Listing 1). You can insert nonop- issue? Select at www.ednmag.com.

Method simplifies testing high-Q devices


Alan Victor, IBM Microelectronics, Research Triangle Park, NC
he design of low-phase-noise oscil- RG

T lators requires careful at-


tention to resonator un-
loaded Q. In the construction of a
Figure 1
50

C1
13 pF
TABLE 1—NOTCH DEPTH
VERSUS SERIES RESISTANCE

0.1
V)
RS (V Notch depth (dB)
247.993
low-phase-noise, high-frequency oscilla- L RF
VIN RL
450 nH 50 VOLTMETER 0.2 242.007
tor, the goal is to achieve an unloaded-Q 0.3 2-38.52
figure greater than 400 in a reasonable 0.4 236.055
RS
package. Also, you need to monitor the 0.5 234.151
effect of the package and pc-board 0.6 232.602
arrangement. Shielding, inappropriate A simple test set allows you to determine the 0.7 231.297
grounding, and some construction tech- unloaded Q of an inductor. 0.8 230.171
niques can degrade unloaded Q. Q me- 0.9 229.181
ters; various bridges, such as Maxwell and the voltage-divider relation with the de- 1 228.299
Hayes; and both vector and scalar im- vice under test embedded as a series trap pedance of the inductor-capacitor com-
pedance analyzers are useful but incon- network (Figure 1). You can measure the bination goes to zero, so the effective load
venient-to-use test instruments. You inductor’s value, or calculate it from is the series resistance RS in parallel with
must carefully set up test fixturing and known equations based on the inductor’s the 50V termination resistance.
calibration that duplicates the final en- form factor, such as solenoid, toroid, hel- You use an RF generator and voltmeter
vironment to obtain reasonable agree- ical, or flat spiral. You use the inductor’s to read the depth of the notch the trap
ment with the final measured results. A value to select C1, a variable, air-dielectric creates. This attenuation depth is a func-
simple test set uses nothing more than high-Q capacitor. At resonance, the im- tion of the remaining finite-series resist-
94 edn | February 21, 2002 www.ednmag.com
design
ideas
ance of the resonator. Table 1 225 ductor shall resonate in a series-
shows the notch attenuation for RS 227.5
tuned (trap) configuration, driv-
ranging from 0.1 to en from a 50V generator and ter-
1V. These values as- Figure 2 230
minated in a 50V shunt. An RF
sume 50V source and termination 232.5 voltmeter placed across the shunt
impedance and the component 235 reads notch depth in decibels.
values shown in Figure 1. Un- From Figure 2, you can deter-
NOTCH 237.5
loaded Q equates to XL/RS, where DEPTH mine the unloaded Q from the
XL is the reactance of the inductor, (dB) 240 expression Q5XL/RS. For exam-
and RS is the equivalent series re- 242.5 ple, a solenoid inductor measur-
sistance. Figure 2 shows the notch 245
ing 0.75 in. in diameter and
attenuation as a function of the wound with five turns of six-
247.5
equivalent series resistance. In ad- gauge wire has a measured in-
dition, a crosscheck is available: 250 ductance of 460 nH at 65 MHz.
0.1 1
You can the 3-dB bandwidth of EQUIVALENT SERIES RESISTANCE (RS) The inductor series-resonates at
the notch and calculate unloaded 65 MHz with a 13-pF capacitor.
Q from f0 divided by the band- The notch depth of the circuit in Figure 1 at resonance is You set the signal generator at 65
width. Finally, as a “sanity check,” inversely related to the equivalent series resistance of the MHz and use a variable, air-di-
you can readily reduce the un- inductor. electric capacitor to fine-tune the
loaded Q to a known value by in- notch at 65 MHz. The measured
serting a series resistance in the trap cir- Delron rod with careful construction lets notch depth is 36 dB. RS is 0.4V, and the
cuit. The reduction in unloaded Q you achieve unloaded Q near 500 at 70 unloaded Q is 469. You can readily notice
should correlate with added resistance MHz. The measurement technique un- changes in the depth of the notch with
value. Any variations you notice in these veils issues with shielding, namely the re- fine variations in coil position relative to
simple experiments are usually the result duction in Q from the effect of the shield conducting surfaces.
of subtle factors. One factor in particular on the solenoid coil. The details of the
is a component operating near its self- measurement are as follows:
resonant frequency. In the test case of Assume an inductor with known L and Is this the best Design Idea in this
Figure 1, six-gauge wire on a 0.75-in. XL at a frequency of interest f0. The in- issue? Select at www.ednmag.com.

96 edn | February 21, 2002 www.ednmag.com

You might also like