3.2 Negative Resistance Test and Safety Factor

The negative resistance test finds the margin between the crystal amplifier load used in your application and the maximum load. At max load, the amplifier will choke, and the oscillations will stop. This point is called the oscillator allowance (OA). Find the oscillator allowance by temporarily adding a variable series resistor between the amplifier output (XTAL2/TOSC2) lead and the crystal, as shown in Figure 3-6. Increase the series resistor until the crystal stops oscillating. The oscillator allowance will then be the sum of this series resistance, RMAX, and the ESR. Using a potentiometer with a range of at least ESR < RPOT < 5 ESR is recommended.

Finding a correct RMAX value can be a bit tricky because no exact oscillator allowance point exists. Before the oscillator stops, you may observe a gradual frequency reduction, and there may also be a start-stop hysteresis. After the oscillator stops, you will need to reduce the RMAX value by 10-50 kΩ before oscillations resume. A power cycling must be performed each time after the variable resistor is increased. RMAX will then be the resistor value where the oscillator does not start after a power cycling. Note that the start-up times will be quite long at the oscillator allowance point, so be patient.

Equation 3-1. Oscillator Allowance
OA=RMAX+ESR
Figure 3-6. Measuring Oscillator Allowance/RMAX

Using a high-quality potentiometer with low parasitic capacitance is recommended (e.g., an SMD potentiometer suitable for RF) to yield the most accurate results. However, if you can achieve good oscillator allowance/RMAX with a cheap potentiometer, you will be safe.

When finding the maximum series resistance, you can find the safety factor from Equation 3-2. Various MCU and crystal vendors operate with different safety factor recommendations. The safety factor adds a margin for any negative effects of the different variables such as oscillator amplifier gain, change due to the power supply and temperature variations, process variations, and load capacitance. The 32.768 kHz oscillator amplifier on AVR microcontrollers is temperature and power compensated. So by having these variables more or less constant, we can reduce the requirements for the safety factor compared to other MCU/IC manufacturers. The safety factor recommendations are listed in Table 3-1.

Equation 3-2. Safety Factor
SF=OAESR=RMAX+ESRESR
Figure 3-7. Series Potentiometer Between the XTAL2/TOSC2 Pin and Crystal
Figure 3-8. Allowance Test in Socket
Table 3-1. Safety Factor Recommendations
Safety FactorRecommendation
>5Excellent
4Very good
3Good
<3Not recommended