Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Slide 15 Slide 16 Slide 17 Slide 18 Slide 19 Slide 20 Product List
Debug-Slide7

The advantages and drawbacks of using the Microchip simulator for debugging are listed here. On the plus side, it’s free and supports all Microchip microcontrollers and digital signal controllers. It needs only a PC to operate. Breakpoints can be set and code can be single-stepped, registers and memory can be monitored and changed. Simulated peripherals allow complex scenarios to be modeled. And timing tools such as a stopwatch and trace stamp can be used for performance measurement and analysis. The downside of a simulator is that probably won’t run as fast as modern high speed embedded controllers. Depending upon the complexity of the situation, the speed of the PC will determine the speed of the simulation. Simulation is designed to be very fast, but still hundreds, if not thousands, of operations must computed for each instruction and peripheral simulated. Ultimately, the simulation can be quite complex, with multiple inputs interrupts and waveforms interacting with the embedded controller while the contents of registers are being logged to files. Configuring an accurate model for a complex real world application may be challenging.

PTM Published on: 2011-11-03