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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.