Digtal Frequency Meter Design Based on Cpld and Programming in VHDL
- Author
- ZhangYongYan
- Advisor
- LiShuHua
- School
- Inner Mongolia University
- Major
- Signal and Information Processing
- Classification
- TN79 Digital circuits
- Degree
- Master's thesis
- Year
- 2004
- Downloads
- 1,627
- Citations
- 8
Abstract
In the electronic design fields, along with the development of computer technique , large scale integrate circuit technique and EDA technique and the abroad application of programmable logic device .traditional design methodology of digital circuit adopting bottom-up , tools , devices has already dropped behind the development of the popular technique. Design technique adopting top-down are taking on more tasks of digital system design . The digital frequency meter design in this paper which adopts top-down design methodology uses the AT89C51 single chip computer as the main controlling parts . The AT89C51 realizes test signal control , keyboard scan and output display of LED. A CPLD chip EPM7128SLC84<sub>1</sub>5 fulfills timing logic control and count function .Under the flat of MAX+PLUS II , CPLD software designing , compiling, debugging , simulation and download are been carried out in VHDL language . When opening the strobe, magnified signal and the 50MHz standard signal supplied by system are sent to the two input pins of counters in CPLD at the same time under the controlling of AT89C51.Whenclosing the strobe, two sets of 32 bits counters in CPLD stop counting . Single chip computer reads the counting data in four times to process , then sends the result to display .Via selecting 8 buttons , the system can measure pulse width and occupy-empty ratio of high-level to low-level ,and also including measure frequency of input signals .All the controlling program can be downloaded to 4K byte flash memory in single chip computer .The system combines the controlling flexibility of AT89C51 with programmable performance of CPLD , so it not only can shorten develop cycle , but also has advantage of tightening architecture ,little volume , high reliability , wide scope and high precision .This paper describes the top-down design method , hardware circuit buildup in detail and gives program for CPLD and single chip computer.
Table of contents
Introduction 7-8
first part of the hardware circuit design 8-19
1.1 system components 8
1.2 keyboard interface circuit 8 - 9
1.3 display circuit 9-10
1.4 power supply module 10
1.5 frequency measurement module works and design 10-16 <br / 1.5.1 the CPLD 's structure and function introduction 10-12
1.5.2 the CPLD pin distribution 12
1.5.3 measurement principle 12-13 < br / > 1.5.4 the CPLD module logic design 13-14
1.5.5 function module circuit design 14-16
1.6 the single-chip master module 16 -19
1.6.1 AT89C51 microcontroller performance 16-17
1.6.2 MCU control circuit 17-19
1.7 other circuits 19
the second part of the software design 19-35
MAX plus Ⅱ Overview 19-20
2 MAX plus Ⅱ VHDL realization of the whole process of system functions 20-24
2.1 electronic systems design 20-21
2.2 \> 2.3 the VHDL language Introduction 22
2.4 the system of top-level module 22-24
3 CPLD block simulation 24-26
download validation 26-27
microcontroller assembly language programming 27-31
5.1 single-chip main program 27-31
5.2 keyboard scanning subroutine
5.3 time the value of the input subroutine 31 31
5.4 calculation and numerical conversion routines 31
measured frequency accuracy of analysis and experimental testing 31 -34
7 Summary 34-35
References 35-37
thank 37
Related dissertations
- The Design of Displacement Detection System Based on CPLD Grating Subdividing Technology
- Design and Simulation of Turntable Servo Control System Based on DSP
- Multifunctional Position Detection and Integration Method Research of Permanent Magnet AC Servo System
- Design and implementation of the short range active defense system in the central controller based on DSP
- Design of Magnetic Compass Sensor Based on CPLD
- Industrial Intelligent Camera Design Based on DSP
- The Research and Design of Field Tester of1553B Bus
- Design and Implementation of the Motion Control System Based on USB Interface
- Research and Implementation of Model Machine Based on Combinational Logic Controller
- Research and Implementation of Method for Clock Synchronization Control in Wireless Communication Testing Systems
- CPLD experimental board the development and teaching application based on
- Design and implementation of intelligent control system of the pellet formula of traditional Chinese medicine pharmacy
- The Design of the Control System for the Long Pulsed Magnetic Facility Supplied by Batteries
- The10kV5Mvar Cascade STATCOM Device Research and Development
- Research for Optimization Algorithm of the Power Factor Compensation and Intelligent Controller
- Study on Parallerable High Frequency Switch Model Power Supply
- Research on Wound-Field Doubly Salient Motor Drive System
- Coordinated Control of the Steering Machine Fatigue Test
- Research of Superalloy Turbine Disk by Phased Array Testing System
- The Research of Optical Fiber Array Icing Detection System