How to call the internal logic analyzer in KEIL simulation, PWM output waveform

When we are doing development work, we always need to check the output of certain specific pins. At this time, the oscilloscope is particularly important. But a cheap oscilloscope can cost hundreds of dollars. This problem has also troubled me for a long time. Recently, I discovered that KEIL actually has its own logic analyzer, which can check the waveform.

1. Configure the debugging tool first.
Click the magic wand and
Insert picture description here
check the corresponding box.
Check " Limit Speed ​​to Real-Time ". During software simulation, there will be no time-accelerating comics of "click a mouse and the machine will run for a thousand years". Tick ​​it will go too fast! Unless your machine configuration is too low. It is recommended to check
Insert picture description here
2, after the configuration is complete, start debugging and call the logic analyzer.
Insert picture description here
Insert picture description here
What I want to observe here is that the output of PA8 and PB13 is a complementary output PWM signal.
Insert picture description here
Insert picture description here
Similarly, add a second waveform. Now
Insert picture description here
Insert picture description here
enter the Setup Logic Analyzer for fine-tuning.

Insert picture description here
Insert picture description here
Then return to the waveform window, use the mouse wheel to adjust the position of the waveform, and observe that it is indeed a complementary output waveform, but the dead time is not easy to observe, but this is enough
Insert picture description here

Welcome to leave a message

Guess you like

Origin blog.csdn.net/qq_45689790/article/details/114077879