Technical indicators of this design:
Frequency measurement range: 1Hz~200MHz, resolution is 0.1Hz, relative error of frequency measurement is one millionth.
Period measurement: signal measurement range and accuracy requirements are the same as those of frequency measurement function.
Duty cycle measurement: accuracy is 99%.
Counting range: 0~1000000000, can be manually paused and reset.
Power consumption: 5V×250mA=1.25W.
Principle of equal-precision frequency measurement
Common direct frequency measurement methods mainly include frequency measurement method and period measurement method. The frequency measurement method is to record the number of change cycles (or pulses) Nx of the measured signal within a certain gate time Tw, then the frequency of the measured signal is: fx=Nx/Tw. The period measurement method requires the frequency fs of the standard signal. Within a period Tx of the measured signal, the number of periods Ns of the standard frequency is recorded, then the frequency of the measured signal is: fx=fs/Ns. The count values of these two methods will produce ±1 word error, and the test accuracy is related to the value Nx or Ns recorded in the counter. In order to ensure the test accuracy, the period measurement method is generally used for low-frequency signals, and the frequency measurement method is used for high-frequency signals. However, due to the inconvenience of testing, the equal-precision frequency measurement method is proposed. The equal-precision frequency measurement method is developed on the basis of the direct frequency measurement method. Its gate time is not a fixed value, but an integer multiple of the period of the measured signal, that is, it is synchronized with the measured signal. The control timing diagram of the equal-precision frequency measurement system is shown in Figure 1.
Figure 1 Control timing diagram of equal-precision frequency measurement system
During the measurement process, two counters count the standard signal and the measured signal simultaneously. First, the gate opening signal (preset gate rising edge) is given. At this time, the counter does not start counting, but waits until the rising edge of the measured signal arrives before the counter actually starts counting. Then, when the preset gate closing signal (falling edge) arrives, the counter does not stop counting immediately, but waits until the rising edge of the measured signal arrives before ending the counting and completing a measurement process. It can be seen that the actual gate time r is not strictly equal to the preset gate time r1, but the difference does not exceed one cycle of the measured signal. Assume that in an actual gate time r, the counter counts the measured signal as Nx, the counts the standard signal as Ns, and the frequency of the standard signal is fs. The frequency of the measured signal is as shown in formula (1).
(1)
Figure 2 is a logic block diagram of equal-precision frequency measurement. CNT1 and CNT2 are two controllable counters. The standard frequency signal fs is input from the clock input terminal CLK of CNT1, and the shaped measured signal fx is input from the clock input terminal CLK of CNT2. The CEN input terminal in each counter is the clock enable terminal, which controls the clock input. When the preset gate signal is high (the preset time starts), the rising edge of the measured signal passes through the output terminal of the D flip-flop, and the two counters start counting at the same time; similarly, when the preset gate signal is low (the preset time ends), the rising edge of the measured signal passes through the output terminal of the D flip-flop, and the counter counts are turned off at the same time.
Figure 2 Logic block diagram of equal-precision frequency measurement
System hardware design
The frequency meter is designed using ST's 32-bit processor STM32F103C8 as the main control chip and the high-reliability programmable logic device EPM240T100C5.
The functional features of STM32F103C8 are as follows: (1) The maximum frequency can reach 72MHz, with 128/64KB FLASH, 1.25DMIPS/MHz, and can access the memory with 0 wait cycles. (2) The power supply voltage range is 2.0~3.6V, with an embedded 8MHz high-speed crystal oscillator, and can also be supplied by an external clock. This system uses CPLD clock division supply. (3) The download mode can use the serial wire debug (SWD) interface and JTAG interface. This system uses the JTAG download interface.
The functional features of EPM240T100C5 are as follows: (1) Supports internal clock frequency of 300MHz. This system uses an active crystal oscillator with a frequency of 50MHz. (2) The on-chip voltage regulator supports 3.3V, 2.5V or 1.8V power input. This system uses a 3.3V voltage supply. (3) The download mode uses a 10-pin JTAG interface.
1 System hardware structure block diagram
The system controls the internal logic unit by controlling the STM32F103C8 microcontroller and sending data and commands to the CPLD chip EPM240T100 via the SPI bus. EPM240T100 uses an external active crystal oscillator 50MHz supply, and 12.5MHz is divided by 4 as the input clock of the CPU. The hardware structure of the system is shown in Figure 3. It includes the main control chip module, JTAG download module, reset circuit module, host computer display module, and measured input module.
Figure 3 System block diagram
2 Digital circuit design of the system
The principle of the microcontroller is shown in Figure 4. The processor of this system uses STM2F103C8, and the clock is divided by CPLD to supply the CPU. The data and commands are transmitted to CPLD via SPI, and then sent to the host computer for display via serial port RS232.
Figure 4 Schematic diagram of microcontroller
Previous article:Research on Direct Sequence Spread Spectrum and Its Implementation on FPGA
Next article:Research on Dynamic Elastic Modulus Measurement Based on Mallat Algorithm
Recommended ReadingLatest update time:2024-11-16 20:47
- Popular Resources
- Popular amplifiers
- usb_host_device_code
- Learn CPLD and Verilog HDL programming technology from scratch_Let beginners easily learn CPLD system design technology through practical methods
- Transplantation of real-time operating system RT-ThreadSmart on STM32MP1
- Design of switching power supply with adjustable output voltage based on STM32
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- What are the six axes in a six-axis robot?
- Three-phase sensorless sine wave BLDC drive (MS39549 and MS39545)
- October 21 Live Review: ADI Inertial MEMS Applications (including video, presentation documents, Q&A)
- Altium selects the schematic device and automatically highlights the corresponding PCB device. How to set it?
- Pre-registration for the prize live broadcast | TI uses DLP micro-projection technology to design augmented reality smart glasses
- Please recommend some technical public accounts and recent thoughts
- Come here to apply for the DFRobot Xingkong board~
- Which one has a 50 ohm impedance matching circuit? Please refer to it.
- (C-Wireless Charging Electric Car) Shaanxi Province First Prize_Topic C_Xi'an University of Electronic Science and Technology
- About bus conflicts (Part 1)