1803 views|10 replies

442

Posts

2

Resources
The OP
 

When using the simulator, is the program running the program in the simulator or the program in the microcontroller on the circuit board? [Copy link]

When using the simulator, is the program running the program in the simulator or the program in the microcontroller on the circuit board?
This post is from MCU

Latest reply

Special price double-sided board size: 10*10cm Ordinary process proofing 30 yuan free shipping Single and double sided boards: 12 hours or 24 hours expedited Four-layer boards: 24 hours or 48 hours expedited Six-layer boards: 24 hours or 48 hours expedited Half hole, thick copper, impedance, HDI, FPC, countersunk hole, controlled depth groove, double-sided aluminum substrate, gold finger, metallized edge, etc.! We can do what others can't do! Business contact: Ms. Zhu Mobile: 13530732802Tel : 0755-3300 7055 QQ number: 3007998923 Email: 3007998923@qq.com Order link: please go to www.jdbpcb.com/d   Details Published on 2020-7-23 09:51
 

2w

Posts

341

Resources
2
 

It should be said that the successfully simulated program can be directly downloaded to the circuit board and run

This post is from MCU
 
 

442

Posts

2

Resources
3
 
qwqwqw2088 posted on 2020-1-15 07:55 It should be said that the successfully simulated program can be directly downloaded to the circuit board for running

Thank you very much. Do you mean that the successfully simulated program is downloaded to the MCU on the circuit board and run? What is the difference between that and directly running the program in the MCU?

This post is from MCU
 
 
 

2w

Posts

341

Resources
4
 
EEW2018 posted on 2020-1-15 08:12 Thank you very much. Do you mean that the successfully simulated program is downloaded to the microcontroller on the circuit board and run? What is the difference between running the program in the microcontroller directly...

It can run normally in the simulation software and there is no difference when it is downloaded to the microcontroller.

However, sometimes, due to the unreasonable design of peripheral hardware,

For example, the I/O driving capability of the general emulator is greater than that of the real CPU. The emulation software or emulator runs normally, but after the official programming, the CPU fails to reliably drive the hardware. This is a hardware problem, but the procedure is the same.

This post is from MCU
 
 
 

1w

Posts

25

Resources
5
 

There are online simulation and software simulation. Online simulation requires the simulator to be downloaded to the chip to run, while software simulation does not require hardware.

This post is from MCU
 
 
 

1w

Posts

142

Resources
6
 

The emulator runs the program loaded into the emulation system. The existence of the program in the emulation target is irrelevant, unless the emulation target itself is the emulator.

This post is from MCU
 
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 

442

Posts

2

Resources
7
 
dcexpert posted on 2020-1-15 09:28 There are online simulation and software simulation. Online simulation requires the simulator to be downloaded to the chip to run, while software simulation does not require hardware.

Thank you very much. It seems I was confused. According to what you said, there are two types of emulators.

One is to directly simulate the simulation running on the microcontroller in KEIL UVISION on the computer

The other is to download the program to the MCU of the circuit board for simulation of running and debugging.

Is it right?

However, for the former, how to simulate the various peripheral inputs and outputs of the microcontroller?

For the latter, how can the debugging software on the computer obtain information such as peripheral inputs in the microcontroller?

This post is from MCU
 
 
 

1w

Posts

25

Resources
8
 
EEW2018 posted on 2020-1-15 13:50 Thank you very much. It seems that I was confused. According to what you said, there are two types of emulators. One is the KEIL UVISION on the computer ...

Software simulation can only simulate some peripheral functions, such as timer, UART, etc. The simulation effect of ADC, I2C, etc. is not good.

During simulation, you can set breakpoints in the IDE and view variables and registers.

This post is from MCU
 
 
 

442

Posts

2

Resources
9
 
dcexpert posted on 2020-1-15 09:28 There are online simulation and software simulation. Online simulation requires the simulator to be downloaded to the chip to run, while software simulation does not require hardware.

Thank you very much. I have another question. What does it mean to download simulation software to a microcontroller? Isn't the program downloaded to the microcontroller the program we wrote?

This post is from MCU
 
 
 

15

Posts

0

Resources
10
 
A simulated machine is a copy of another machine, such as a single-chip microcomputer; in this case, there is no need for a real machine. It is the same as using a stand-in in a movie.
This post is from MCU
 
 
 

1

Posts

0

Resources
11
 

Special price double-sided board size: 10*10cm Ordinary process proofing 30 yuan free shipping

Single and double sided boards: 12 hours or 24 hours expedited Four-layer boards: 24 hours or 48 hours expedited Six-layer boards: 24 hours or 48 hours expedited


Half hole, thick copper, impedance, HDI, FPC, countersunk hole, controlled depth groove, double-sided aluminum substrate, gold finger, metallized edge, etc.! We can do what others can't do!

Business contact: Ms. Zhu
Mobile: 13530732802Tel
: 0755-3300 7055
QQ number: 3007998923
Email: 3007998923@qq.com

Order link: please go to www.jdbpcb.com/d

This post is from MCU
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list