Using MPLAB® Simulator

  Note : It is assumed that MPLAB® is previously installed.

  1. First of all, start mikroC PRO for PIC and open the desired project. In this example, UART project for EasyPIC6 board and PIC16F887 will be opened.
  2. Open Tools › Options › Output settings, and check the "Generate COFF file" option, and click the OK button.
  3. After that, compile the project by pressing Ctrl + F9.
  4. Next, open MPLAB®, and select the appropriate device by choosing Configure › Select Device... :
  5. Configure Device

  6. 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 :
  7. Import COFF file

  8. Then, select the MPLAB® SIM from the Debugger › Select Tool menu for software debugging :
  9. Select Debugger

  10. Now, you can start debugging the code by clicking Step Over button Step Over Button on the Debug toolbar, or by pressing F8 :
  11. Code Debugging

Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
Want more examples and libraries? 
Find them on LibStock - A place for the code