At present, digital storage oscilloscopes have gradually replaced traditional analog oscilloscopes with their unique advantages of small size, easy portability and high accuracy, and are developing towards smaller, low-cost and portable applications. In recent years, many researchers have made full use of the advantages of rich resources, flexible use and low development cost on FPGA chips to propose some virtual instrument solutions [1-2] and embedded solutions [3-8] for digital oscilloscopes. These designs use FPGA on-chip resources to implement digital oscilloscope data storage (RAM), trigger control, digital signal calculation and processing, display terminal drive and other functions, which can greatly reduce the cost and complexity of the oscilloscope. However, these designs often use microprocessors [3-7] (8051/ARM/NoisⅡ) as the core of system scheduling and data processing or use VGA displays as graphic output terminals [1,2,8], which cannot meet the requirements of low-cost handheld and portable use.
LCD12864 liquid crystal display module has the advantages of low voltage, micro power consumption, long life, ultra-thin, etc. It is more suitable for low-cost, portable electronic information products to display characters and graphics. Therefore, this paper uses LCD12864 liquid crystal module as a low-cost graphic display terminal for digital oscilloscopes; based on FPGA application technology, a low-cost handheld digital oscilloscope with arbitrary analog signal level, rising edge or falling edge trigger, vertical sensitivity and scanning speed adjustment, and direct readout of waveform parameters is designed.
1 System Design of Handheld Oscilloscope
The block diagram of the handheld oscilloscope system based on FPGA is shown in Figure 1. The system mainly includes an off-chip AD chip, a configuration chip EPCS16, an on-chip PLL module, a sampling clock configuration module, a key scanning module, a trigger control module, a dual-port RAM storage module [9-10], a sampling data graphics and transposition module, an LCD12864 display driver module, etc. The working process of the oscilloscope is roughly as follows: the 12 bit digital signal collected by the off-chip ADC128S022 is converted into a dot matrix data displayed on a column LCD screen after passing through the on-chip graphics module; in order to adapt to the LCD screen's row-by-row reading mode, the channel data transposition module is required to transpose the dot matrix data sampled in columns into data arranged in rows; the trigger module mainly controls the RAM's write data start or stop instructions according to the trigger level and mode set by the user (keyboard input), and generates the corresponding write data address at the same time; the numerical control sampling clock module can generate a variety of different sampling clocks to meet the measurement and display of signals of different frequencies; the LCD driver module mainly generates the RAM's read data address and LCD mode control instructions based on the LCD's working timing.
The key to the design of the handheld oscilloscope shown in Figure 1 is to organize the read/write of the dual-port RAM and the data acquisition of the off-chip A/D according to the working sequence of the LCD12864 display module; this ensures that the measured analog signal waveform is displayed correctly. The following is a more specific design description of the three key modules of the off-chip A/D module, the read/write control of the dual-port RAM, and the LCD display driver.
2 A/D conversion module
The system uses the 12-bit CMOS analog/digital conversion chip (ADC128S022) of Texas Instruments (TI) to implement data sampling of analog signals. The AD can realize 8-channel analog-to-digital conversion through channel selection signals and is powered by a single power supply. The power consumption is extremely low. Within the power supply range of 2.7~5.25 V, the power consumption is only 1.2~7.5 mW; the conversion rate can reach 50~200 KSPS, and data is exchanged with external devices through the serial peripheral interface (SPI). The chip uses a 16-pin ultra-small TSSOP package. These features are very suitable for use in small portable electronic products. The internal structure of ADC128S022 is shown in Figure 2.
3 Read and write control of dual-port RAM
Each bit of the dual-port RAM in the handheld oscilloscope design shown in Figure 1 corresponds to a pixel on the LCD 12864 screen, requiring a storage capacity of 8192 bits (1024×8 bits). The memory management needs to meet the requirements of real-time writing of collected data (64 bits) by column and reading data by row (8 bits) from the LCD module. [page]
To this end, first of all, the 64-bit graphic data needs to be divided into 8 segments and stored in 8 128×8-bit RAM units, so as to ensure that the read/write data bit width of each RAM storage unit is consistent. Secondly, the collected waveform data needs to pass through the row-column data transposition module to write the RAM data row by row. The row-column data transposition module adopts a pipeline structure, and under the joint action of the trigger start signal and the clock, the collected column dot matrix data is transposed into a row data format suitable for LCD screen display.
Figure 3 shows the read and write sequence of the dual-port RAM storage unit; after transposition, the row data is written in the horizontal "S" shape sequence shown in the figure, and when the data is read out, it is necessary to read the data in the vertical "S" shape sequence row by row. This is the control timing requirement of the LCD12864 module. The column-by-column word-by-word writing memory organization method can improve the RAM cache data refresh frequency, but it also creates a high design difficulty for the memory read and write address generation circuit.
4 LCD display driver module
To drive the LCD module to display the correct graphics, it is necessary to design a correct finite state machine (FSM) according to the control timing of the LCD screen and the user instruction set to complete the LCD module initialization, control commands and data writing operations; and generate the RAM read data address. Figure 4 shows the state migration of the LCD display driver module.
In the state transition diagram of the LCD module, after the system is powered on, it first performs an automatic reset for about 0.05 s (needs to be adjusted according to the clock frequency), and then enters the initialization process of the LCD module. Therefore, three conditional conversion paths are set in the state machine to realize the working mode switching of the LCD screen: initialization, display data and start line address writing. At the same time, a delay with configurable parameters is also set on the key path - while facilitating the debugging of the LCD module, the LCD module is always working in the screen writing mode, driving the LCD module to display dynamically in real time and generate the read data address of the dual-port RAM.
5 Design Verification
The hardware test and verification platform of the handheld oscilloscope is composed of the DE0_Nano development board (Altera FPGA Cyclone IVEP4CE22F17C6N), LCD module (KB12864KZK) and 4×4 keyboard; the running effect diagram of the oscilloscope design project after compilation and chip download configuration of the Quartus Ⅱ 10.1 FPGA development platform is shown in Figure 5, in which (a) is the screen of the handheld oscilloscope when it is turned on; (b) is the measurement effect of the triangle wave; (c) is the measurement effect of the sine wave; (d) is the effect of hiding the drop-down menu. The oscilloscope parameter setting adopts the 5-key input drop-down menu mode; when setting, the parameter adjustment menu is displayed at the bottom of the screen, and the menu is automatically hidden after the setting is completed and confirmed.
The experimental results show that the LCD12864 liquid crystal module can be used as the display terminal of the handheld oscilloscope, although the display resolution is low, the pixels of the graphics can be clearly seen; at the same time, this is also the unique advantage of using the LCD12864 screen - it can directly read the measured signal period according to the number of pixels of a period waveform and the sampling signal frequency. If a sampling rate of 100 kHz (period 10 μs) is used; the number of waveform points in a complete period on the display screen is measured to be 50, then the period of the measured signal is 500 μs.
6 Conclusion
The low-cost handheld oscilloscope designed in this paper uses LCD12864 module as the graphic display. The verification results on DE0_Nano FPGA development board show that the measurement of analog signals is fully realized; vertical sensitivity and scanning speed adjustment, and waveform parameter direct readout functions; this not only makes the oscilloscope cheap and portable, but also has the advantage of direct readout of the measured signal period.
Previous article:Design of digital storage oscilloscope card based on DSP
Next article:How to use an oscilloscope to measure whether a crystal oscillator is oscillating
Recommended ReadingLatest update time:2024-11-16 13:23
- Popular Resources
- Popular amplifiers
- Analysis and Implementation of MAC Protocol for Wireless Sensor Networks (by Yang Zhijun, Xie Xianjie, and Ding Hongwei)
- MATLAB and FPGA implementation of wireless communication
- Intelligent computing systems (Chen Yunji, Li Ling, Li Wei, Guo Qi, Du Zidong)
- Summary of non-synthesizable statements in FPGA
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- 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
- It’s the Little New Year! It’s not the Little New Year yet? When does your family celebrate the Little New Year?
- How to use GPIO to simulate I2C to operate EEPROM
- In high-speed PCB design, these issues must be paid attention to
- Participate in the Tektronix Probe Revealing Action and Share the 2019 New Year Red Packet
- Looking for the official SDK of HiSilicon's HI3518EV300
- Temperature Measurement Record--Comparative Measurement
- TMS570x/RM4x LaunchPad: Basic setup of MIBSPI loopback mode based on examples
- [ATmega4809 Curiosity Nano Review] Serial port application preliminary: printing sine string through serial port
- MSP430 power saving mode wake-up method
- The magnetic field on the surface of a cylindrical magnet is 4000Gs. Ten of the same type of magnets stacked in the same direction have a magnetic field of only 5400GS.