The software logic analyzer in Keil MDK has powerful functions. It can analyze digital signals, analog signals, CPU buses (UART, IIC and other output pins), and provide a debugging function mechanism for generating custom signals such as Sin, triangle waves, acoustic signals, etc., which can all be defined.
Take the STM32 CPU in Keil as an example, track and observe the PWM waveform, open the STM32 Dome in the C:KeilARMBoardsKeilMCBSTM32PWM_2 directory, the first step: perform simulation configuration, as shown in the figure:
The Abstract.txt file in the open project contains the description of the project. PWM is output from PB0.8 and PB0.9. It will be added to the software logic analyzer later.
The 'PWM' project is a simple program for the STM32F103RBT6
using Keil 'MCBSTM32' Evaluation Board and demonstrating
the use of PWM (Pulse Width Modulation) with Timer TIM4 .
Example functionality:
- Clock Settings:
- XTAL = 8.00 MHz
- SYSCLK = 72.00 MHz
- HCLK = SYSCLK = 72.00 MHz
- PCLK1 = HCLK/2 = 36.00 MHz
- PCLK2 = HCLK = 72.00 MHz
- ADCLK = PCLK2/6 = 12.00 MHz
- SYSTICK = HCLK/8 = 9.00 MHz
- TIM4 is running at 100Hz.
LEDs PB8, PB9 are dimmed using the PWM function of TIM4 channel3, channel4
The Timer program is available in different targets:
Simulator: - configured for software Simulator
MCBSTM32: - runs from Internal Flash located on chip
(used for production or target debugging)
Second, choose software simulation
Third, compile the program. If the program is correct, the following wireframe compilation information will appear. Then enter the debug mode and click the red "D" button, as shown in the figure below.
Step 4. Open the software logic analyzer and drag the waveform signal to be observed into the logic analyzer. If there is no "sysbols" label in the debugging state, click the "View" menu to pop up, and drag the signal to be observed from the "Peripheral Register" (the PWM signal output by GPIOB_IDR will be reflected from this register) into the logic analyzer.
Step 5: Mask out the unused bits and display them in bit form. The configuration is shown in the figure.
Step 6. Click the "GO" button to enter full-speed operation. OK, the PWM waveform appears. Use IN and OUT to adjust the scan time, as shown below.
Previous article:The basic principle of vector network analyzer
Next article:Ground resistance tester usage and precautions
- Popular Resources
- Popular amplifiers
- Modern manufacturing strategies drive continuous improvement in ICT online testing
- Methods for Correlation of Contact and Non-Contact Measurements
- 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
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- Europe's three largest chip giants re-examine their supply chains
- Breaking through the intelligent competition, Changan Automobile opens the "God's perspective"
- The world's first fully digital chassis, looking forward to the debut of the U7 PHEV and EV versions
- Design of automotive LIN communication simulator based on Renesas MCU
- When will solid-state batteries become popular?
- Adding solid-state batteries, CATL wants to continue to be the "King of Ning"
- The agency predicts that my country's public electric vehicle charging piles will reach 3.6 million this year, accounting for nearly 70% of the world
- U.S. senators urge NHTSA to issue new vehicle safety rules
- Giants step up investment, accelerating the application of solid-state batteries
- Guangzhou Auto Show: End-to-end competition accelerates, autonomous driving fully impacts luxury...
- You can do anything you want! DLP Pico chipset can also be used in this way
- MM32F031 Development Board Review 8: Simulating SPI to Drive 2.2-inch SPI Screen
- LIS2DW12 three-axis accelerometer package and code
- Wince6.0 startup failure reason
- [RVB2601 Creative Application Development] PC Health Status Detector
- Why are the exposed soldering areas on the PCB white? Aren't these areas copper? Why are they white?
- Current detection circuit
- The accelerometer is placed horizontally and the data is not read correctly.
- UWB enables secure ranging and accuracy – an introduction to the technology and how it works
- Actual op amp parameters