Electronic – How to run/simulate sample code after building code with MPLAB on proteus

microcontrollerpicproteus

How do i simulate the PIC controller after compiling code in MPLAB?
COde is :-

#include "16F877A.h"

void main()

      {

           output_D(255);

                      }

When i add this file to PIC in proteus i got this as an error:

  • "EXTERNAL MODEL DLL "PIC16DLL" NOT FOUND
  • SIMULATION FAILED DUE TO FATAL SIMULATOR ERRORS

enter image description here

Best Answer

you don't have the files that are used to simulate the various mcu's installed correctly. either the files aren't included with your installation, they are in a seperate file, or just pay attention to install options and reinstall.