4080 views|1 replies

1w

Posts

25

Resources
The OP
 

[ATmega4809 Curiosity Nano Review] Software Simulation [Copy link]

Software simulation is a common method in program development. It can reduce the loss of the internal flash of the microcontroller without frequent downloading of programs to the microcontroller. It can also be used without hardware to speed up development.

In MPLAB X IDE, the software simulation is set by selecting simulator in Hardware Tool in the following properties.

During software simulation, the computer's CPU is used to simulate the operation of the microcontroller, so the simulation speed depends on the speed of the computer. In addition, some functions that depend on hardware cannot be implemented through software simulation.



This content is originally created by dcexpert , a user of EEWORLD forum. If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

This post is from MCU
 

1w

Posts

25

Resources
2
 

Another benefit of software simulation is that you can view the running time, which is not available on most low-cost hardware emulators. To use this function, first set the running speed in the project properties:

Then enter simulation mode and select StopWatch from the Windows menu in MPLAB X IDE.

Set breakpoints in the source program, run the program, and then you can observe the running time.

This post is from MCU
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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