I'm working with this two software, but I would like to known is there is a manner to simulated the program made into CCS, following the c code into PROTEUS.
What debutpic said is partially true. You cannot debug your high-level source code or display variables directly within CCS.
However, provided that you have Proteus version 6.3 and you have downloaded the new VSM MPLAB driver plugin from Labcaneter page, you can use MPLAB 6.4 like a valuable Development system and have full access to source code, high-level step-by-step, internal registers view and many others facilities.
MPLAB 6.4 is downloadable for free from Microchip page ( https://www.microchip.com ) and CCS compiler maybe integrated with.
Go to CCS page to see how. ( https://www.ccsinfo.com/picc.shtml )
Here is the solution for your problem this is small program which can used to work with ccs using proteus may this way you can work with proteus using ccs
In fact, there is a simple solution to view C source code while debugging on proteus. The only thing you should do is, loading *.cof file instead of *.hex file into the pic controller on proteus. Than you can activate and observe source code and desired parametres on debug menu.
Your solution is great and work well, but i have a question what kind of format file are or what information contain *.cof. And another question are why i can't follow the if statament, but this problem I noticed with all maner suggested in this foro to link ccs with proteus. Maybe I'm doing something wrong.