Attaching the Program

The application program is output by the C compiler as a file called BAR1.COF, which should be stored in the project directory BAR1. It contains the machine code plus some debugging information required by the simulator to display the program source code. Several other files are created by the compiler at the same time, and all these should be stored in the same project folder containing the ISIS design file BAR1.DSN.

On the schematic, right click, then left click on the PIC chip to display the component properties (Figure C.1). The folder browse button allows the COF file to be opened (attached) to the virtual processor, and the MCU clock frequency can be set at the same time. The 4 MHz is a useful default clock frequency, ...

Get Programming 8-bit PIC Microcontrollers in 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.