A Quick Introduction to MPLAB SIM - Microchip Technology

[Pages:71]A Quick Introduction to MPLAB SIM

Welcome to this web seminar, "A Quick Introduction to MPLAB SIM." My name is Darrel Johansen and I'm a manager in the Development Tools group at Microchip.

Page 1

What Is MPLAB SIM?

O A free component of MPLAB IDE

An Introduction to Microchip Development Tools

2

The centerpiece of our tool set is the software MPLAB Integrated Development Environment, or "IDE."

MPLAB IDE has enjoyed many years of use and evolution, tracking Microchip's expanding catalog of microcontrollers and digital signal controllers.

One of the most popular elements of MPLAB is the software simulator, MPLAB SIM.

This component, like the MPLAB IDE is free.

Page 2

What Is MPLAB SIM?

O A free component of MPLAB IDE O A software simulator that runs on

your PC

An Introduction to Microchip Development Tools

3

The simulator runs on your PC to simulate the actions of the various PIC and dsPIC microcontrollers.

Page 3

What Is MPLAB SIM?

O A free component of MPLAB IDE O A software simulator that runs on

your PC O A verifier for your software

An Introduction to Microchip Development Tools

4

You can verify your software routines execute as designed...

Page 4

What Is MPLAB SIM?

O A free component of MPLAB IDE O A software simulator that runs on

your PC O A verifier for your software O A debugger to test your code

An Introduction to Microchip Development Tools

5

...and debug, test and inspect your code.

Page 5

What Is MPLAB SIM?

O A free component of MPLAB IDE O A software simulator that runs on

your PC O A verifier for your software O A debugger to test your code O An optimizer to improve your

application

An Introduction to Microchip Development Tools

6

MPLAB SIM helps you optimize your application with ?timing tools, ?trace tools, and ?various graphical analyzers.

Page 6

Topics Covered in This Web Seminar

O Starting MPLAB SIM O Running to a breakpoint O Single stepping O Setting watchpoints O Running and halting O Using a stimulus O Using the __DEBUG variable O Using fprintf statements to debug O Measuring routine execution time with the

stopwatch O Tracing code as it executes

An Introduction to Microchip Development Tools

7

We'll cover the basic elements of the simulator in this web seminar, including:

?How to configure MPLAB IDE to use MPLAB SIM as the current debugger

?How to run your code in MPLAB SIM halting at a breakpoint

?How to single step through your code

?How to set watchpoints on data variables in your code

?How to run and halt your code

?How to use a stimulus to simulate external inputs to your hardware

?How to use the __DEBUG variable to make conditional code execution while debugging

?How to insert fprintf statements in your code to monitor the executing routines

?How to measure the execution time of your code, and

?How to record code as it executes, capturing its history in a buffer to be reviewed.

Page 7

Topics Covered in This Web Seminar

O Starting MPLAB SIM O Running to a breakpoint O Single stepping O Setting watchpoints O Running and halting O Using a stimulus O Using the __DEBUG variable O Using fprintf statements to debug O Measuring routine execution time with the

stopwatch O Tracing code as it executes

An Introduction to Microchip Development Tools

8

Page 8

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download