View previous topic :: View next topic |
Author |
Message |
mchall
Joined: 27 Apr 2010 Posts: 3
|
Programs using C and ICD1 |
Posted: Tue Apr 27, 2010 11:25 am |
|
|
Hello all!
I'm a beginner at uC's, and I'm a little lost! I used a CCS compiler and I'm trying to program a 16F877 using my .hex file (generated by the CCS compiler) and my ICD1 board. The problem is that I seem not be able to interface them.
Any suggestions?
Thank you! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Apr 27, 2010 1:14 pm |
|
|
The current version of MPLAB (8.46) doesn't support the Microchip ICD1.
It only supports ICD2 and ICD3 (of the ICD-style programmers).
For ICD1, you need to use an older version of MPLAB, which you can
get here:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023073
I know that vs. 5.70.40 has support for the ICD1. It's possible that
some versions of vs. 6.xx support it, but I don't know for sure.
Also, some versions of MPLAB 6.xx were buggy. I don't remember
which ones. |
|
|
mchall
Joined: 27 Apr 2010 Posts: 3
|
|
Posted: Tue Apr 27, 2010 2:00 pm |
|
|
Thank you for your answer, but what I'm looking for is a software to use to send the .hex files I made using the CCS compiler, but using the ICD1 board , not the ICD2.
MPLAB 5.70 apparently let me program or debug programs made using MPLAB no just to send them to the uC. If there is a way to program or debug using MPLAB only to send the .hex files, please, could tell me how? Or tell me another program to do so?
Thank you! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Apr 27, 2010 2:17 pm |
|
|
Go to this menu in MPLAB 5.70.40:
Quote: | Help / MPLAB ICD Help |
It explains how to install the ICD in MPLAB.
Make sure you go to the Options / Development Mode menu first, and
select the 16F877.
To program a HEX file, use the Files / Import Menu to import the HEX file.
Then you should be able to program it.
Here is the ICD User's Guide. Read the ICD Setup section, on page 49
in the Acrobat reader:
http://ww1.microchip.com/downloads/en/DeviceDoc/51184d.pdf
Here's a tutorial for using CCS with the older versions of MPLAB:
http://www.swarthmore.edu/NatSci/echeeve1/Ref/MPLab/MPLab_Intro.html
But you don't need that tutorial to import and program a HEX file.
Just follow the instructions I gave about Importing the Hex file. |
|
|
mchall
Joined: 27 Apr 2010 Posts: 3
|
|
Posted: Wed Apr 28, 2010 6:57 am |
|
|
Hi! Everything worked out just fine! Thanks a lot for your help!! It really saved me here. |
|
|
|