Using MPLAB® Simulator

- First of all, start mikroPascal PRO for PIC and open the desired project.
- Open Tools › Options › Output settings, and check the "Generate COFF file" option, and click the OK button.
- After that, compile the project by pressing Ctrl + F9.
- Next, open MPLAB®, and select the appropriate device by choosing Configure › Select Device... For example, 16F887 MCU will be selected :
- After device selection, click on the File › Import. Open file dialog box should appear. Then, go to the project folder and open the generated COFF file,
UART.cof
: - Then, select the MPLAB® SIM from the Debugger › Select Tool menu for software debugging :
- Now, you can start debugging the code by clicking Step Over button
on the Debug toolbar, or by pressing F8 :
Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
What do you think about this topic ? Send us feedback!