Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with installing ccs source code to a PIC

Status
Not open for further replies.

Cleong

Member level 2
Joined
Feb 17, 2006
Messages
53
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,789
help..

i got a source code ccs which is for my project ...
i never learn ccs before,
so i would like to ask how to install the program to the microcontroller PIC??

is it the same for both .asm file between the mplab and ccs
[/code]
 

Re: help..

Hi,
Yes, the hex file which is produced by CCS is the same as MPLab. I don't know which programmer you are using, but if it is compatable with MPLab, then just import your hex file into MPLab. (Under File Menu)
Even better, CCS makes a plugin to use their compilers with MPLab. This way you can create a project in MPLab, and point to the CCS compiler in the project settings. You can then compile your work with CCS directly in MPLab.
Hope this is what you were looking for, but if you have questions, just ask.
Best wishes,
Robert
 

    Cleong

    Points: 2
    Helpful Answer Positive Rating
Re: help..

thanks for ur reply...
erm..
something i stil dun understand..
the program language of ccs and mplab is totally different,,
then how to import the ccs hex file into mplab??
like tat the mplab s/w wil understand??


the mainproblem i facing now is how to use a ccs hex file to program a pic without using ccs compiler but use mplab .......
sry im quite blur,hope u be patient on me..
tqtq
 

Re: help..

Hi Cleong,
No worries, I was where you are not so long ago.

MPLab is an assembler, and it assembles your source to a hex file which the PIC can read.
CCS is a C compiler. It compiles your source, also to a hex file which the PIC can read.

Although the inputs to both are different, the outputs are the same.
Even though you won't be able to do anything further with your file, MPLab will understand the hex format, and will treat the file the same as if it had produced it.

If you look under the File Menu in MPLab, you will see Import... and Export... about half way down. Choose Import...

When the dialog box comes up, select the .hex file you want to use to program your PIC.

Then just send the hex file the way you normally would to program the PIC.

I hope this makes it clear, just give it a try, then come back here if you need to.

Sometimes doing this MPLab has given me an error, can't recognize file format. I had to repair my installation. I just let you know, so if you run into this problem, come back and I'll tell you how to fix that.

Best wishes,
Robert
 

    Cleong

    Points: 2
    Helpful Answer Positive Rating
help..

My advice to u is to produce the hex with CCS and dl it into the PIC with other softwares like Winpic800, IcProg........they r all good.
 

    Cleong

    Points: 2
    Helpful Answer Positive Rating
Re: help..

Hi all,
Agreed, also once you import the file, if you open the program memory window in VIEW, you can see the disassembly listing in asm of the imported hex file. Other windows for eeprom, configuration settings can also be seen.
MMussing.....
Hope they had a way to export the disassembly asm file from MPLAB, could save lot of typing work.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top