The Design of Microprocessor Compensated Crystal Oscillator Based on stm32

Author
ZhuZhongKai
Advisor
HuangXianHe
School
University of Electronic Science and Technology
Major
Control Engineering
Classification
TN752 Oscillator
Degree
Master's thesis
Year
2013
Downloads
13
Citations
0

Request the full text

Abstract

Crystal oscillators are widely used in many fields of electronic technology, and thetrend is towards miniaturization, integration, high-precision, high stability, low powerconsumption, quick start, low-noise and high-frequency. The inherent characteristics ofquartz crystal, always leads to large frequency-temperature deviation. In the caseswhich require high frequency stability, it cannot work well. However, temperaturecompensation to crystals generally used to improve the frequency stability. Afteranalyzing the basic principles of the crystal oscillator, and comparing severaltemperature compensation methods, microprocessor temperature compensation arefinally used.The traditional MTCXOs usually use the51series or other8-bit microcontrollerswith other discrete components such as D/AC and A/DC, and temperature sensor. Theon-chip resources in these MCUs are usually rare, which results in difficulty toimplement complex control algorithm. In addition, in the phase of the experiment,multiple temperature compensation experiments are necessary, with constantlymodifying the parameters of the compensation algorithm and repeating programming toMCU. It takes quite a long time and what’s worse, variety of separation devices, alongwith cumbersome experimental steps, may introduce measurement error.In recent years, the embedded microprocessor shave been experiencing rapiddevelopment, especially since the ARM Cortex-M3,32-bit microcontroller, wasreleased, These MCUs provide excellent performance, rich on-chip resources, whichmake MTCXO can be more integrated and complex control algorithm possible. In thissubject STM32103RE are used, based on the Cortex-M3core, with12-bit A/D and D/Ainside. A real-time operating system is running within MCU, with an PC softwaredesigned in wxpython. The entire software system achieves the online real-time controlduring experiments. The output voltage of D/A can be controlled with the PC softwareimmediately. So, the temperature-compensated voltage for the VCXO can be adjustedonline. The temperature compensation algorithm implementation can be moved to thePC side during the experimental stage. PC is connected to MTCXO with USB cable. So software running on PC can get some necessary information of MTCXO, such currenttemperature, then it can calculate the required compensation voltage, send it to theMCU in MTCXO through USB, controlling the output of D/A. The entire process iscompleted online, without any programming to the MCU. Since entire process directlyuse the MTCXO to complete the compensation voltage acquisition, the error ofMTCXO can be greatly reduced.

Table of contents

Summary 5-6 ABSTRACT 6-10 first chapter 10-14 1.1 A brief history of quartz crystal oscillators 10 1.2 research status at home and abroad crystal oscillator main content and significance 10-11 1.3 of this study 11-12 1.4 organizational Structure nbsp papers ; 12-14 chapter crystal oscillator Overview 14-29 2.1 crystal oscillator basic principle 14-22 2.1.1 quartz physical properties of crystals 14-15 2.1.2 quartz resonator electrical characteristics 15-19 2.1.3 quartz resonator frequency temperature characteristics 19 -21 2.1.4 quartz crystal oscillator circuit 21-22 2.2 temperature Compensated Crystal Oscillator basic principles 22-28 2.2.1 temperature compensation 23-26 2.2.2 temperature compensated crystal oscillator of the main technical parameters 26-28 2.3 Summary 28-29 Chapter III compensation voltage measurement and analysis of algorithms 29-46 3.1 UK compensation voltage measurement method 29-30 3.1.1 traditional measurement methods 29-30 3.1 .2 improved measurement methods 30 3.2 offset voltage algorithm analysis 30-45 3.2.1 common polynomial approximation algorithm 31-39 3.2 .2 polynomial interpolation approximation properties of 39-42 3.2.3 least squares curve fitting 42-45 3.3 Summary 45-46 The fourth chapter microcomputer compensated crystal oscillator hardware design 46-61 4.1 MTCXO overall hardware design 46 4.2 oscillation circuit design 46-50 4.2.1 oscillation circuit analysis 47-50 4.2.2 crystal oscillator circuit 50 4.3 microcontroller temperature compensation module design 50 - 60 4.3.1 STM32 microcontroller Profile 50-53 4.3.2 power supply circuit 53 4.3.3 MCU core circuit 53 -55 4.3.4 SWD debug circuitry 55-56 4.3.5 serial communication circuit 56-57 4.3.6 temperature sensor circuit 57-58 4.3.7 RC low-pass filter circuit 58-60 4.4 Summary 60-61 Chapter microcomputer compensated crystal oscillator software Design 61-77 5.1 software program to select 61-64 5.1.1 RT-Thread Profile 62-63 5.1.2 framework of the overall system 63-64 5.2 MTCXO firmware design 64-73 5.2.1 18B20 driver 64-67 5.2.2 D / A drivers 67-69 5.2.3 temperature compensation program 69-70 5.2.4 serial communication program 70-71 5.2.5 Watchdog program 71-73 5.3 MATLAB algorithm programming 73-74 5.4 PC host computer programming 74-76 5.5 of this chapter Summary 76-77 Chapter Six samples were tested and the results of analysis 77-82 6.1 sample testing 77-80 6.2 analysis 80-81 6.3 Summary 81-82 Chapter VII Conclusion 82-83 Thanks 83-84 References 84-86 Appendix 86-89

Related dissertations

  1. High stability low phase noise oscillator and frequency multiplier
  2. The Research and Design of RF Front-end Circuits for UHF RFID Reader Receiver
    GuJiang ·Tianjin University ·2012 ·Master's thesis
  3. The Research and Implement of Disciplined Crystal Oscillator Technology Based on Satellite Timing
  4. The Research on Crystal Oscillator of Low Phase Noise and High Stability
  5. Research on Micro Astrogeodetic Timer
  6. The Research of S-band Low Phase Noise Reference Source Technology
  7. The Design and Implementation Of120MHz Low Phase Noise Crystal Oscillator
  8. Design of Microcomputer Compensated Crystal Oscillator Automatic Measurement System
    ZhongLiang ·Hunan University ·2012 ·Master's thesis
  9. The Modeling and Compensating of Crystals Aging Drift
  10. Design of Clock Generation Circuit in MCU
    WangRuiYu ·Liaoning University ·2012 ·Master's thesis
  11. Theoretical Analysis and Optimization Technology Research on Phase Noise in Feedback Oscillator
    WangYan ·University of Electronic Science and Technology ·2013 ·Doctoral dissertation
  12. Implementation of ADS simulation and optimization of crystal oscillator
  13. Design of a 27M CMOS Frequency Synthesizer with Phase-locked Loop Technology
    ZhuGeJian ·Hunan University ·2011 ·Master's thesis
  14. Key Technology Research Based on the Phase-Locked Loop Frequency Synthesizer
  15. A Modified Phase Method Based on First Harmonic of Fourier Series for Measuring Nanosecond Fluorescence Lifetime
    ZhuShiYang ·Beijing Jiaotong University ·2007 ·Master's thesis
  16. A new type of small- size microcomputer compensated crystal oscillator
  17. An airborne electronic equipment vibration analysis and vibration control
  18. Crystal real-time measurement system design
  19. The Design of the Industry Produce Automatic Test System of Microcomputer Compensated Crystal Oscillator
    ZhouJuan ·Northwestern University ·2007 ·Master's thesis
  20. Pure digital audio amplifier , clock control and power drive module design and verification