Keil5 software simulation waveform and solution to unknown signal

Publisher:幸福的人生Latest update time:2018-12-14 Source: eefocusKeywords:keil5 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

When I was writing a report a few days ago, I accidentally needed to use the software simulation in Keil5 to see the output PWM waveform. After several attempts, I finally figured it out. The problem of unknown signal also appeared.


1. Setting steps for software simulation with Keil5


First, as shown in the figure below, you need to set it to software simulation (it is not possible to set it to hardware simulation here), and then the following parameters also need to be changed. The second red circle checked -pSTM32F103ZE is based on your own chip

Settings. Here I choose the STM32F103ZET6 chip.



2. Basic simulation settings


First enter the simulation settings, then click the waveform viewing icon.



Set the simulation parameters by clicking Setup...



Set up and add the hardware IO ports that need to be viewed. Enter the pins that need to be observed, such as PORTX.i, in setup.



If unknown signl appears at this time, it is a problem with the debug settings.


At this time, you need to return to the simulation settings in the first step to check whether it is set according to your own development board.


After adding the IO ports that need to be viewed, click RUN to run.


If you don’t see the waveform appear in the box at this time, check whether your settings are reasonable.


Right click on the left side of the logic analyzer to set the data of each wave to bit and Hexadecimal values



If the waveform does not change dynamically at this time, you need to check whether the following settings are available



If you need to adjust the waveform to facilitate viewing, click in out all to adjust the waveform.


It is particularly important to note that my IO is set to open-drain output, but the simulation cannot output the waveform. This problem has been bothering me for a long time.


Keywords:keil5 Reference address:Keil5 software simulation waveform and solution to unknown signal

Previous article:Solution to the problem that peripherals are not displayed during Stm32f1 Keil5 debugging
Next article:STM32 system clock hardware simulation view

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号