Timing and protocol are two key points in digital system debugging, and they are also where logic analyzers can play their most valuable role. How can we use a logic analyzer to quickly complete wiring configuration and collect data? This article uses the IIC protocol as an example to demonstrate the actual test.
The logic relationship of the digital system is the key in the communication R&D process, which directly affects whether the entire device system can work properly. Although the oscilloscope can also perform some digital signal analysis, it is limited by the number of channels (usually only 4 channels) and the storage depth (small). The logic analyzer can reach 34 channels, the recording depth can be up to 2G, and combined with the data compression algorithm, it greatly improves the efficiency of engineers' test timing analysis.
Taking IIC as an example, the following will share the logic analyzer test steps.
1. Preparation
The tests mainly include the object under test, logic analyzer, computer, and IIC protocol signal.
Use the standard power adapter to power the logic analyzer and press the power button. Connect the instrument to the PC with a USB cable, open the software, and check whether there is "Online" on the software interface. Connect the IIC protocol (amplitude 3.2V, frequency 50KHz), use the measurement line PODA A1 to SCL, A0 to SDA, and make sure the signal ground wire is connected.
2. IIC bus settings
1. Click the bus name to modify the bus name. It is recommended not to have duplication;
2. The bus name should be related to the channel meaning;
3. Do not add the same bus, the software will filter them out;
4. Do not add buses without channels;
5. Delete unused buses in time to make it look simpler.
The setting effect is shown in Figure 1:
Figure 1 IIC channel opening
3. IIC sampling parameter setting
1. Sampling mode: the difference between synchronous and asynchronous, and the advantages of synchronous sampling;
2. Sampling frequency: The sampling frequency is generally set to 4~5 times of the measured signal. When protocol decoding is required, it needs to be more than 20 times. If the sampling rate is not enough, decoding errors will occur. If the measured signal frequency is high, synchronous sampling should be used;
3. Storage depth: channel multiplexing, segmented storage, compressed storage, recording mode (real-time storage);
4. Threshold voltage: generally set to 1/2 (MAX + MI N);
5. Filter settings: Bus filtering, filter the burr signal of one sampling cycle. Channel filtering, filter 1~2 sampling cycles. Bus filtering and channel filtering are hardware filtering.
The setting effect is shown in Figure 2:
Figure 2 Parameter settings
4. IIC trigger and decoding settings
1. Set the name to custom;
2. The input bus corresponds to a good channel;
3. Set the address bit of the bus.
The setting effect is shown in Figure 3 and Figure 4:
Figure 3 Trigger settings
Figure 4 Property configuration
5. IIC decoding analysis results
Start collecting and storing a piece of data for analysis.
1. The data segment area reflects the waveform and results of specific data analysis;
2. The waveform observation method can be adjusted through the waveform display settings;
3. Through waveform zooming, the specific frame propagation content generated at different times can be observed;
4. The timetable display area will logically parse and convert the content of the entire data segment.
The test results are shown in Figure 5:
Figure 5 Decoding analysis
6. IIC decoding data search
1. Find the bus: IIC;
2. Start time: Ds, A, B;
3. End time: Dp, A, B;
4. Comparison frame type: You can choose it yourself;
5. Data: You can enter the corresponding frame type data in decimal, hexadecimal, or octal.
The setting effect is shown in Figure 6:
Figure 6 Frame search property settings
7. Decode data and accurately locate it
After completing the settings, you can display it by searching for a specific search type, as shown in Figure 7:
Figure 7 Search results display
There are 68 search results in this search. You can observe each search result by the following operation, as shown in Figure 8:
Figure 8 Search result data analysis
ZLG Zhiyuan Electronics logic analyzer has ultra-large storage capacity, intelligent filtering storage, high-fidelity uninterrupted real-time recording, efficient protocol analysis platform, diversified trigger search, flexible parameter measurement, and can locate specific waveform data when the system runs wrong. Developers and testers of digital circuits can use logic analyzers to perform precise state or timing analysis on circuits to detect and analyze errors in circuit design, thereby quickly locating and solving problems.
Previous article:A brief discussion on the sweep performance characteristics of the RSA5000 series real-time spectrum analyzer
Next article:Design of a Bluetooth CAN analyzer based on ARM and smart phone
- 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
- "Praise my country": Let's gather together and talk about the useful domestic microcontrollers
- Ling Embedded Talent Recruitment is in full swing! Don’t run~ It’s you~
- A correct schematic does not necessarily produce a correct PCB design
- "Operational Amplifier Parameter Analysis and LTspice Application Simulation" 5, Chapter 3, 4, 5 Sample Reading
- Detailed explanation of TMS320C5535 DSP hybrid programming
- I hit a wall when I used EasyEDA for the first time
- [Repost] Understand the control principle and classification of switching power supplies in one article
- Unboxing and testing the SparkRoad FPGA development board gives me a bad feeling
- Hardware Design for Analog Isolation
- Set-top box chip STI8036, low ripple, low noise