Part Number Hot Search : 
WM8253 MAX5391 ADP5501 MBR60 AD922 AFS4000 A1500W AFS4000
Product Description
Full Text Search
 

To Download AN1783 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 .c Motorola Semiconductor Application Note aS t ee h 4U t
om
Order this document by AN1783/D
AN1783
w wDetermining MCU Oscillator Start-up Parameters
By Stuart Robb & David Brook, East Kilbride, Scotland Andreas Rusznyak, Geneva, Switzerland
a D . w
Rev 1.0, December 1998
Introduction
Many microcontrollers (MCUs) incorporate an inverting amplifier for use with an external crystal or ceramic resonator in a Pierce oscillator configuration. This paper describes how to calculate the minimum gain (transconductance) of the amplifier required to ensure oscillation with specific external components, and also how to measure the amplifier transconductance to establish whether the minimum gain requirement is met.
Oscillator Circuit
w
w
.D w
t a
S a
e h
t e
U 4
.c
m o
STOP Internal to MCU OSC1 External Components R0 Q C1 C2 OSC2
(c) Motorola, Inc., 1999
4U Figure 1 Standard Pierce Oscillator for > 1MHz Operation et he Figure 1 shows the standard Pierce oscillator configuration typically used on MCUs for frequencies in the range 1MHz to 20MHz. The aS and oscillator pins are labelled OSC1, OSC2 on the MC68HC05 at .D w w w
AN1783 Rev. 1.0
om .c
Oscillator Circuit
MC68HC08 families of MCUs and EXTAL, XTAL, respectively, on the MC68HC11 and MC68HC12 families. On some MCUs (e.g. the MC68HC05B and MC68HC05X families), the resistor R0 is integrated on-chip, in which case the external resistor is not required. This circuit is not applicable to some members of the MC68HC12 family of MCUs which employ a low power oscillator, e.g. MC68HC12D60.
Internal Circuit
The circuit internal to the MCU is shown in simplified form as a NAND gate followed by an inverter. The NAND gate has two inputs; one is connected to the MCU pin called OSC1 and the other input is connected to the inverted internal STOP signal. There are two conditions under which the oscillator is required to start oscillating; one is when power is applied to the MCU (called power-on reset) and the other is when the STOP signal is de-asserted. Following a power-on reset, the oscillation will start as soon as the MCU supply voltage, VDD, has reached a level where the oscillator loop gain is greater than unity. For reliable operation, the oscillator must be oscillating by the time VDD has reached the minimum specified operating value. Most MCUs have a low power STOP mode. STOP mode is entered when the software executes the STOP command and as a result the STOP signal is asserted to stop the oscillator. The MCU is no longer clocked and the only current consumed by the MCU is due to `leakage'. An external interrupt or a reset can release the STOP signal and allow the oscillator to re-start. The remainder of this paper will ignore the STOP input and treat the NAND gate as a simple inverter. The output signal at the pin OSC2 is typically a distorted sine wave whose amplitude may even exceed the supply rail voltages. The following inverter provides additional voltage gain to produce an approximately square wave signal which in turn drives the internal clock generation circuitry.
External Circuit
In current designs the p-channel and the n-channel transistors in the inverter contribute approximately equally to the total gain provided that Vin Vout VDD/2. Resistor R0 ensures that this optimal condition is met at oscillation start-up. For the circuit to oscillate, there must be positive feedback and the closed loop gain must be greater than unity. Resistor R0 results in negative feedback which increases the open loop gain requirement of the amplifier. R0 is usually made as large as possible to minimise the feedback whilst still overcoming leakage currents at start-up. For operation between 1MHz and 20MHz a value in the range of 1M - 10M is typically used. In humid or dirty environments it is good practice to lacquer the oscillator components and tracks after they have been cleaned to prevent leakage
AN1783 Rev. 1.0 MOTOROLA 2
Application Note
currents due to condensation or dirt accumulating on the printed circuit board (PCB). Care should be taken when laying out the components on the PCB. The components should be positioned as close as possible to the MCU and the traces should be kept as short as possible. All other traces should be kept as far away as possible to avoid coupling. It is often worthwhile surrounding the components with a shield trace connected to ground (be careful not to create any loops) or a ground plane. The IC designer should ensure that the input pin OSC1 and preferably also the output pin OSC2 are placed between `quiet' pins carrying DC signals. If a ceramic resonator is used with capacitors C1, C2 integrated into a common package, the manufacturer may recommend an optimal value of R0. The resonator Q, and capacitors C1 and C2 form the resonant circuit. C1 and C2 represent the external capacitors and any stray capacitance in parallel. The stray capacitance should be measured or estimated and included in the values used for C1 and C2 in Equations 1 to 7.
Q R L C
C0
Figure 2 Crystal Equivalent Circuit A crystal or ceramic resonator has the small signal equivalent circuit shown in Figure 2. R is called the `series resistance', L and C are called the motional or series inductance and capacitance, respectively. C0 is the shunt capacitance, it represents the sum of the low-frequency parallel plate capacitance of the resonator and the stray capacitance of the crystal holder. In Equations 1 to 7 any additional stray capacitance between the OSC1 and OSC2 pins should be included into this value. Values for R, L, C and C0 for a particular crystal are specified on a data sheet usually available from the crystal manufacturer. In order to measure these values, the manufacturer must apply a signal to the crystal, i.e. the values are obtained at a particular level of power dissipation in the crystal. However, at the start-up of the oscillator, the only signal across the crystal is due to thermal (Johnson) noise so the power dissipation in the crystal is extremely low. It is known that the effective value of R may increase as the power dissipated in the crystal decreases to low levels. The maximum value of R is therefore estimated by the crystal manufacturer. It is this estimated maximum value which should be used in equations 1 to 7.
AN1783 Rev. 1.0 3 MOTOROLA
Calculating the Minimum Required Transconductance
Calculating the Minimum Required Transconductance
R0 R L C V1 V1.gm gds C0
C2
C1
Figure 3 Simplified Oscillator Equivalent Circuit Figure 3 shows a simplified small signal equivalent circuit to the oscillator. The inverter is modelled as a current source with an output current equal to V1.gm where V1 is the input voltage and gm is the transconductance of the inverter. gds is the total output conductance i.e. the sum of the output conductances of the p-channel and the n-channel transistors in the inverter at start-up. The components of the resonant circuit have been described above. As developed in [1] the impedance at resonance of the circuit comprising of the resonator Q and capacitors C1, C2 is given by:
1 R PQ = --------------------2 ( C t ) R
(Eqn 1)
where =2, being the frequency of resonance. Ct represents the total capacitance in parallel with series components R, L and C of the resonator:
C1 C2 C t = C 0 + -----------------C1 + C2
(Eqn 2)
The frequency of oscillation is given to a good approximation by
1 11 1 -- = ----- -- --- + ---2 L C C t
(Eqn 3)
For quartz resonators the term Ct can be neglected. The minimum transconductance required of the inverter to sustain oscillation in this circuit is given approximately by:
( C1 + C2 ) C1 1 1 gm min -------------------------- --------- + ----- + gds -----------------C1 C2 C1 + C2 R PQ R 0
AN1783 Rev. 1.0 MOTOROLA 4
2 2
(Eqn 4)
Application Note
If gm >> gds, this can be simplified to:
( C1 + C2 ) 1 1 gm min -------------------------- --------- + ----C1 C2 R PQ R 0
2
(Eqn 5)
The validity of this simplification can be checked by measuring gds, as described later in this paper. If R0 >> RPQ, equation 5 can further be reduced to:
( C1 + C2 ) 1 gm min -------------------------- --------R PQ C1 C2
2
(Eqn 6)
2
or, if C1 = C2, to
C1 4 2 gm min --------- = 4R C 0 + ----R PQ 2
(Eqn 7)
Measuring Amplifier Characteristics
The recommended circuit for measuring the transconductance of the amplifier is shown in Figure 4 [2]. The circuit is simple to implement and should be powered up with the MCU reset pin held at 0V to ensure the amplifier stays active and the MCU does not execute any code. All unused inputs should be connected to 0V or VDD and not left floating. Note that the diagram correctly indicates that OSC1 and OSC2 are connected together. The transconductance does not vary significantly at frequencies below the oscillator's maximum design frequency. However, it is not recommended to measure the transconductance at the intended operating frequency, as the effects of stray capacitances will make the measurements inaccurate. A frequency in the range of 10kHz to 100kHz is recommended. A signal of around 500mVpp or less should be used with a 50 terminating resistor and a 1F coupling capacitor to ensure that the amplifier input and output remain in their linear region. It is essential that a high impedance measuring instrument, such as an oscilloscope with a low capacitance, high input resistance probe (<1pF, >10M) is used to measure Vin and Vg with respect to ground. The value for the resistance Rm should be 100 to 1k.
OSC1
OSC2
Rm
1
50 ohm signal generator 500mVpp
Vin
Vg
50
Figure 4 Measuring Amplifier Transconductance
AN1783 Rev. 1.0 5 MOTOROLA
Measuring Amplifier Characteristics
The transconductance of the amplifier depends on the process parameters and varies with supply voltage and temperature. Measurements should be taken on worst process parameter devices (if available) over the expected range of supply voltage and temperature. The worst case (lowest) figure can be expected at the combination of the minimum expected supply voltage and the highest expected operational temperature. Based on the measurement results, the sum of the transconductance and of the output conductance is:
Vg - Vin gm + gds = -----------------------Rm x Vin
(Eqn 8)
At this stage gds is unknown and a separate measurement must be made to determine it. If gds << gm then gds may be neglected. It may be noticed that this method of determining the available gm takes into account the reduction due to the additional n-channel transistor which exists in series with the inverter in the real NAND gate implementation. The recommended circuit for measuring the output conductance gds is shown in Figure 5. As with the measurement of transconductance, the MCU should be powered up but held in the reset state. A frequency in the range of 10kHz to 100kHz is recommended and again a high impedance measuring instrument is required.
OSC1
OSC2 1M
1 Rm=1k
50 ohm signal generator 500mVpp
100n
Vin
Vg
50
Figure 5 Measuring Amplifier Output Conductance To determine the available gain in the worst case the output conductance gds should be measured under the same conditions under which the minimum value of gm+gds has been determined. In the circuit of Figure 5 the AC signal at the input of the inverter is practically zero, which enables the output conductance to be measured:
Vg - Vin gds = -----------------------Rm x Vin
(Eqn 9)
Now that gds is known, gm can be calculated by subtracting gds (eqn 9) from gm+gds (eqn 8). In addition, the validity of the simplification for Equation 4 can be checked.
AN1783 Rev. 1.0 MOTOROLA 6
Application Note
The lowest value of gm found within the expected range of supply voltage and temperature is called the worst case value gmwcs. The oscillation `gain margin' can now be evaluated by calculating the ratio of worst case transconductance to the minimum required transconductance calculated from one of Equations 3 to 7.
gm wcs gain margin = --------------gm min
(Eqn 10)
The gain margin must be greater than unity for the oscillator to oscillate at all and as a general rule of thumb, a gain margin greater than 5 would be considered reasonable to ensure reliable start-up and operation. If insufficient gain margin is found, the main options are: 1. Reduce the size of capacitors C1 and C2 (shouldn't be less than 10pF), 2. Use a different resonator with a lower series resistance. In summary, four steps are required to check for reliable oscillator start-up: 1. Measure the worst case output conductance, 2. Measure the worst case transconductance, 3. Calculate the minimum required transconductance, 4. Calculate the gain margin.
Example
The following measurements were made on a MCU with VDD = 4.5V and T = 23C. Using the circuit of Figure 5, Vg = 0.496 Vpp, Vin = 0.478 Vpp From Equation 9
-6 -1 0.496 - 0.478 gds = -------------------------------- = 38 x 10 AV 0.478 x 1000
Using the circuit of Figure 4, Vg = 0.488 Vpp, Vin = 0.448 Vpp From Equation 8
-6 -3 -1 0.488 - 0.448 gm wcs = -------------------------------- - 38 x 10 = 0.855 x 10 AV 0.448 x 100
AN1783 Rev. 1.0 7 MOTOROLA
The following data was obtained for a crystal: f = 8MHz C0 = 2.0pF C = 7.0fF R < 80 2pF stray capacitance in parallel to the resonator will be assumed as well as a parallel resistance R0 of 1M (on this MCU the parallel resistance is integrated on-chip). C1 = C2 = 15pF represent 12pF capacitors combined with 3pF stray capacitance for on-chip ESD structures, package capacitances and PCB traces. With these values the minimum transconductance calculated with Equation 4 is:
6 - 12 - 12 2 -6 -6 gm min = 4 x 80 x [ 2 x 8 x 10 x ( 4 x 10 + 7.5 x 10 ) ] + 1 x 10 + 38 x 10 4 = 0.149 x 10 AV
-3 -1
-3 gm wcs 0.855 x 10 gain margin = --------------- = ------------------------------ = 5.7 -3 gm min 0.149 x 10
This result indicates sufficient gain margin at 23C, but it would be advisable to measure the transconductance at the highest expected operating temperature and verify the gain margin.
References
1. A.Rusznyak: Start-Up Time of CMOS Oscillators (IEEE Trans. On Circuits and Systems, Vol 34, No 3, March 1987, pp 259...268). 2. P.Renard: Problem of MCU Oscillator Start-Up (Motorola Internal Report, System Eng. Group Geneva, Oct. 24, 1996).
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters which may be provided in Motorola data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including "Typicals" must be validated for each customer application by customer's technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.
How to reach us: USA/EUROPE/Locations Not Listed: Motorola Literature Distribution, P.O. Box 5405, Denver, Colorado 80217, 1-800-441-2447 or 1-303-675-2140. Customer Focus Center, 1-800-521-6274 JAPAN: Motorola Japan Ltd.: SPD, Strategic Planning Office, 141, 4-32-1 Nishi-Gotanda, Shinagawa-ku, Tokyo, Japan. 03-5487-8488 ASIA/PACIFIC: Motorola Semiconductors H.K. Ltd., 8B Tai Ping Industrial Park, 51 Ting Kok Road, Tai Po, N.T., Hong Kong. 852-26629298 MfaxTM, Motorola Fax Back System: RMFAX0@email.sps.mot.com; http://sps.motorola.com/mfax/; TOUCHTONE, 1-602-244-6609; US and Canada ONLY, 1-800-774-1848 HOME PAGE: http://motorola.com/sps/ Mfax is a trademark of Motorola, Inc. (c) Motorola, Inc., 1999
AN1783/D


▲Up To Search▲   

 
Price & Availability of AN1783

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X