The hardware structure of the entire digital voltmeter is shown in Figure 1.
The measuring range of this voltmeter is 0~5V, with three-digit digital tube display.
The three major modules of the digital voltmeter are all implemented using VHDL language programming.
2.1 Control Module
The state machine is used to generate the chip select signal and read/write control signal of ADC0804, and the state signal INTR is used to determine whether the conversion is completed; after the conversion is completed, the conversion data is latched and output. The state transition diagram is shown in Figure 2.
ADC0804 is an 8-bit analog-to-digital
After reading the conversion data of ADC0804, first use the table lookup instruction to calculate the high and low 4-bit voltage values, and express them in 12-bit BCD codes respectively; then design the 12-bit BCD code addition, if the result of each 4-bit addition exceeds 9, add 6 to adjust it. In this way, the BCD code of the analog voltage is obtained.
The functional simulation results of this module are shown in Figure 3; when the conversion data is 00010101, by looking up the table, the upper 4 bits 0001 are 0.32V, and the lower 4 bits 0101 are 0.1V. The final voltage output result is 0.32V+0.1V=0.42V. Its BCD code is 000001000010, and the simulation result is correct.
2.3 Scanning and display module
As shown in Figure 4, CLK is the scanning clock with a frequency of 1kHz, which is obtained by dividing the given 40MHz clock; DATAIN is the BCD code of the voltage value output by the data processing module; SEL is the chip select signal of the digital tube; POINT is the decimal point drive of the digital tube; the BCD code DATAOUT of the 3-digit voltage value is output by scanning, and the BCD code is translated into the corresponding 7-segment digital drive value through DISP and sent to the digital tube for display.
The VHDL language program designed in this paper has been compiled, simulated and debugged on the MAXPLUSⅡ tool software, and downloaded to the EP1K100QC208-3 chip through the programmer. After experimental verification, this design is correct, and its voltage display value error does not exceed the upper limit of the quantization step (0.02V). The design ideas given in this paper are also applicable to other system designs based on PLD chips.
Previous article:Research on automatic range conversion method based on PGA
Next article:Getting Started with FPGA Basics
- Popular Resources
- Popular amplifiers
- 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
- 【ESP32-Korvo Review】 01 Unboxing Experience
- PCB circuit board heat dissipation tips
- Exposed! Another unfinished semiconductor project: defrauding state-owned land and refusing to return it! Using the name of chips to engage in real estate?
- Basic concepts of amplifier circuits and three basic connections
- Does the material of the transformer determine the operating frequency of the transformer?
- CV2880 simple datasheet
- Washing machine problems
- Problem with STM32F767 serial port 7
- Characteristics of DC Power Supply
- How to choose between JTAG protocol and SWD protocol for MCU programming and debugging?