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.60
A)
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.
Bookmarks