Quote Originally Posted by Darrel Taylor View Post
Proteus assumes that anything with a .BAS extension is a PROTON program.
So use .PBP instead for PicBasic Pro programs.

Then you need to tell proteus how to compile a PicBasic Pro program... (Note: this assumes you have PBP 2.60A)

In ISIS, go to the Source > Define Code Generation Tools... menu and click the New button.
Point it to the c:\pbp\PBPMPLAB.BAT file. It will create a PBPMPLAB "tool".
Enter the following fields.

Source Extn: PBP
Obj. Extn: COF
Command Line: %1 -ampasmwin -oq -k#
List File Extn: LST
Then click OK

Attachment 4957

After drawing your circuit with a PIC chip in it ... Save it to a new folder first.
Then go to Source > Add/Remove Source files...
Under "Code Generation Tool", drop-down the box and select PBPMPLAB
Click the New button and either select the .PBP file, or give it a new name and it will create a new file.
AFTER giving it a Source Code Filename ... enter the PIC's part number in the Flags field -p12F683.
Then press OK.

Attachment 4958

To edit the source code, go to Source menu and select the file you specified previously at the bottom.
When you try to start the simulation, it will automatically compile the program if you have changed it.
Or you can select "Source > Build All" and it will compile it even if you haven't changed it.

If the compile succeeds, it will begin running the simulation.
If you selected "Build All" it will show the results of the compile process.
Darrel, I am trying to start using Proteus ISIS with simulator. Followed these instructions of yours and when I do a Build ALL I get the following error:
Processing ..\..\..\PBP26\Ellis_Codes\Temperature\0DisplayLM3 4temp.pbp...
PBPMPLAB ..\..\..\PBP26\Ellis_Codes\Temperature\0DisplayLM3 4temp.pbp -ampasmwin -oq -k# %1 -ampasmwin -oq -k#
\Microchip\MPASM was unexpected at this time.
ERROR: PBPMPLAB.BAT reported error code (255L).
Build FAILED with 1 error(s).

Looked at PBPMPLAB.BAT statements and can't figure out what error 255L is telling me. Can you advise??