Chapter 11

Fault Finding, Using the Simulator, and the In-Circuit Debugger

The simulator and in-circuit debugger (ICD) software are loaded automatically with MPLAB.

We will first of all consider the simulator and then the in-circuit debugger.

The Simulator Using MPLAB

The simulator is a software tool that enables the user to fault find on the program before blowing it into the chip. The simulator can set break points in the code and the program when run will halt at the break point. The Special Function Registers and User Registers can then be viewed by observing them in the Watch Window.

The simulator is excellent for:

ent Ensuring that timing cycles ...

Get PIC Projects and Applications using C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.