Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 16th December 2005, 12:32 PM   (permalink)
Experienced Member
 
jrz126 is on a distinguished road
Send a message via AIM to jrz126
Default DSpic compiler and programmer

Anyone know of a good programmer for the DSPic series?
Also, Is there a C compiler available? (I havent had any experience programming assembly as of yet.)
I'm looking to use the dsPIC30F3011.

Edit:
I found this link here: http://forum.microchip.com/tm.asp?m=109491
Looks like I'll have to use the 4011. I think I ordered one with my last batch of samples.
Also, with this bootloader I can just directly load my compiled programs to the DSPic via serial port?
Now...I still have the problem of finding a C compiler and getting the bootloader onto the DSPIC. I wish this stuff wasnt so confusing, is there like a standard programmer that Microchip uses (and updates)?
__________________
Jeff Zimmerman
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
jrz126 is offline   Reply With Quote
Old 16th December 2005, 05:04 PM   (permalink)
Super Moderator
 
Jay.slovak is just really niceJay.slovak is just really niceJay.slovak is just really nice
Default

My solution:
ICD2 + MPLAB 7.30 + C30 => Fine DsPIC setup.
MPLAB is free and there also is a free student version of C30. Check it out at www.microchip.com. 8)
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline   Reply With Quote
Old 16th December 2005, 09:16 PM   (permalink)
Experienced Member
 
jrz126 is on a distinguished road
Send a message via AIM to jrz126
Default

Hmmm...the software looks pretty good, but that ICD2 thingy is looking alittle expensive. Is there a cheaper alternative?
__________________
Jeff Zimmerman
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
jrz126 is offline   Reply With Quote
Old 16th December 2005, 09:24 PM   (permalink)
Super Moderator
 
Jay.slovak is just really niceJay.slovak is just really niceJay.slovak is just really nice
Default

Of course there is, build your own, cheap ICD2 (as I did, costed me ~10$).

See my Sig.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline   Reply With Quote
Old 16th December 2005, 09:56 PM   (permalink)
Experienced Member
 
jrz126 is on a distinguished road
Send a message via AIM to jrz126
Default

coolness. but I still dont have a way to program the original PIC used in that programmer.
I do have some 877A's that are loaded with a bootloader. Would one of those work? Also, The bootloader thats on there (from my microcontrollers class) was run at 10MHz. I dont know if its capable of running at 20Mhz.
__________________
Jeff Zimmerman
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
jrz126 is offline   Reply With Quote
Old 16th December 2005, 10:06 PM   (permalink)
Super Moderator
 
Jay.slovak is just really niceJay.slovak is just really niceJay.slovak is just really nice
Default

Any blank 16F876/876A/877/877A PIC will work. It has to be programmed with a special bootloader (MPLAB-ICD2 specific). This is not a big problem, you can use this very simple circuit to program the PIC with bootloader. (That programmer is a very cruel thingy, but it will be fine if you just need to program that PIC once or twice.... ). I think Stolz's site is pretty self explanatory.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline   Reply With Quote
Old 16th December 2005, 10:21 PM   (permalink)
Experienced Member
Mike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to all
Default

Hi Jeff,

Your bootloader installed 877A's won't work... You need to install the Microchip ICD2 bootloader with a conventional programmer... After that, MPLAB downloads the appropriate firmware into the 877A each time you change projects and target devices in MPLAB...

I would be happy to post you an 876A or 877A with ICD2 bootloader code installed if you think you'd like to try building one (my home brew serial ICD2 clone pictured below)...

Good luck... Happy Holidays... Regards, Mike
Attached Images
File Type: jpg icd2_clone__2_197.jpg (40.1 KB, 1310 views)
Mike, K8LH is online now   Reply With Quote
Old 17th December 2005, 08:03 PM   (permalink)
Experienced Member
 
jrz126 is on a distinguished road
Send a message via AIM to jrz126
Default

So where do I find this ICD2 specific bootloader?
I looked all over in those links and cant seem to find it.
__________________
Jeff Zimmerman
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
jrz126 is offline   Reply With Quote
Old 17th December 2005, 08:06 PM   (permalink)
Super Moderator
 
Jay.slovak is just really niceJay.slovak is just really niceJay.slovak is just really nice
Default

Just tell us which PIC are you gonna use, A or non-A version and we will upload it for you. (There are two bootloader versions).
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline   Reply With Quote
Old 17th December 2005, 08:18 PM   (permalink)
Experienced Member
 
jrz126 is on a distinguished road
Send a message via AIM to jrz126
Default

I've got a 16f877A.
__________________
Jeff Zimmerman
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
jrz126 is offline   Reply With Quote
Old 17th December 2005, 10:31 PM   (permalink)
Experienced Member
Mike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to all
Default

Hi Jeff,

Here's the 'A' version bootloader for 16F876A or 16F877A... Just rename the file using a '.hex' file name extension instead of the '.txt' file name extension (can't upload '.hex' file types)...

Regards, Mike
Attached Files
File Type: txt icd2_bootloader_a_138.txt (3.0 KB, 96 views)
Mike, K8LH is online now   Reply With Quote
Old 18th December 2005, 04:02 PM   (permalink)
Experienced Member
 
jrz126 is on a distinguished road
Send a message via AIM to jrz126
Default

sweet. Hopefully I can get all of this stuff taken care of today.
When I go to program that PIC with the bootloader using that cheepo programmer, do I need to have my oscillator connected to it?

Also, for my ICD2 clone, is it very important that I have an exact 13V source for VPP?
__________________
Jeff Zimmerman
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
jrz126 is offline   Reply With Quote
Old 18th December 2005, 04:08 PM   (permalink)
Super Moderator
 
Jay.slovak is just really niceJay.slovak is just really niceJay.slovak is just really nice
Default

Hi,

"Do I need to have my oscillator connected to it? "
No, program it without oscilator connected.

"Also, for my ICD2 clone, is it very important that I have an exact 13V source for VPP?"
Well, it's not that important. But try to be as close as possible.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline   Reply With Quote
Old 19th December 2005, 07:42 AM   (permalink)
Experienced Member
 
Alex_rcpilot is on a distinguished road
Send a message via ICQ to Alex_rcpilot Send a message via MSN to Alex_rcpilot Send a message via Yahoo to Alex_rcpilot
Default

I guess there're different types of ICD clones.Mine uses the MAX232's voltage booster to provide the system with Vpp,so there's no need to take care of Vpp any more.Which version of ICD2 did you choose,Jeff?
Alex_rcpilot is offline   Reply With Quote
Old 19th December 2005, 08:21 AM   (permalink)
Experienced Member
Mike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to allMike, K8LH is a name known to all
Default

Quote:
Originally Posted by Alex_rcpilot
I guess there're different types of ICD clones.Mine uses the MAX232's voltage booster to provide the system with Vpp,so there's no need to take care of Vpp any more.Which version of ICD2 did you choose,Jeff?
What VPP voltage did you end up with?

Regards, Mike
Mike, K8LH is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 05:46 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.