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
 
Tools
Old 26th February 2008, 05:15 PM   #1
Default Unable 2 PROG dspic30f3011 with ICD2

I have this peculiar problem with this dspic30f3011 .Im used a ICD2 to program dspicf3011 but i get this .
Invalid target device in Mplab

this is schematic

Unable 2 PROG dspic30f3011 with ICD2-test.gif

should i connect any capacitors to it or anything to be added
any suggestions are worth it
barryforever is offline  
Old 26th February 2008, 08:32 PM   #2
Default

Quote:
Originally Posted by barryforever
I have this peculiar problem with this dspic30f3011 .Im used a ICD2 to program dspicf3011 but i get this .
Invalid target device in Mplab

this is schematic

Attachment 17623

should i connect any capacitors to it or anything to be added
any suggestions are worth it
Yes, a few decoupling caps, ~0.1uF, from each supply pin to ground, and a ~10.0k ohm pull-up on !MCLR, Just as the ICD2 Manual states...

This will probably cure the problem.
BeeBop is offline  
Old 27th February 2008, 01:33 AM   #3
Default

can you draw a schematic diagram or something ..
it will be easy for me
barryforever is offline  
Old 27th February 2008, 01:34 AM   #4
Default

Why would anyone START out with dsPICs? They are very powerful but very different beasts. What are you doing that requires such a powerful CPU?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is online now  
Old 27th February 2008, 01:37 AM   #5
Default

my application involves developing complex models in scientific tools such as MATLAB and the code is then imported to the chip using some techniques..
if i use c programming then it will take me 2-3 years to develop such complex programs
barryforever is offline  
Old 27th February 2008, 01:40 AM   #6
Default

Well you have to connect AVDD to VDD & AVSS to VSS, also all digital ICs like 0.1uf caps placed close to their power pins.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is online now  
Old 27th February 2008, 01:47 AM   #7
Default

can you give me a schematic diagram or something ...
barryforever is offline  
Old 27th February 2008, 01:49 AM   #8
Default

Check the Inchworm schematic on my site, it uses 0.1uf caps on the 16F877, do the same thing.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is online now  
Old 27th February 2008, 01:54 AM   #9
Default

how do i connect the 10k resistor ?where
barryforever is offline  
Old 27th February 2008, 04:38 AM   #10
Default

10K between MCLR and VDD.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is online now  
Old 28th February 2008, 02:38 PM   #11
Default

hey man i used a 10k Ohm resistor btw vdd and mclr
i did connect a 10 Micro Farad capacitor btw Vdd and ground ..
I get this MCLR Vpp when running self test , it fails one time after some time i get passed self test ..so which means its toggling should i reduce the value of capacitor like 1 Micro farad something
barryforever is offline  
Old 28th February 2008, 05:13 PM   #12
Default

Quote:
Originally Posted by barryforever
hey man i used a 10k Ohm resistor btw vdd and mclr
i did connect a 10 Micro Farad capacitor btw Vdd and ground ..
I get this MCLR Vpp when running self test , it fails one time after some time i get passed self test ..so which means its toggling should i reduce the value of capacitor like 1 Micro farad something
10uF is too large to likely be a low ESR capacitor that can supply the high frequencies needed. Reduce it. To about 0.1uF. But the more important thing you seem to be missing is...

You must supply the analog supply and digital supply for the dsPIC to work even if you aren't using any ADCs or comparators on the IC. (AVdd/AVss and Vdd/Vss). Vdd/Vss are connected internally to each other so you might get away with only using one pair if the current draw and speeds aren't too high. But there is only one pair of analog power pins and they must be connected.

And yeah, you also need that MCLR pull-up resistor so the ICD2 can actually reset the dsPIC and put it into programming mode.

Last edited by dknguyen; 28th February 2008 at 05:21 PM.
dknguyen is offline  
Old 28th February 2008, 05:18 PM   #13
Default

You might want to check out how the dsPIC demo boards from Microchip are wired up. They usually have a schematic in the back of the manual.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is online now  
Old 2nd March 2008, 12:32 PM   #14
Default

k
i did the same exactly as you guys instructed me
this is what i get

Code:
Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.)
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device dsPIC30F3011 found, revision = mm2 a0
...Reading ICD Product ID
Running ICD Self Test
... Failed Self Test.  See ICD2 Settings (status tab) for details.
MPLAB ICD 2 Ready
My MCLR vpp seems to be high

i got 100kohm btw vdd and vpp and 0.1 micro farad btw vdd and vss
what should i do then
barryforever is offline  
Old 2nd March 2008, 05:40 PM   #15
Default

Quote:
My MCLR vpp seems to be high
Is that what your status panel is telling you? Or is that what you are thinking?

Quote:
and 0.1 micro farad btw vdd and vss
Do you have one of these on, or very near to EACH Vdd or AVdd pin on your chip? Or one cap 'somewhere on the board' between Vdd and Vss?

Last edited by BeeBop; 2nd March 2008 at 05:45 PM.
BeeBop is offline  
Reply

Tags
dspic, icd2, prog, unable

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
problem with IC PROG sarathcet Robotics Chat 1 19th February 2008 06:56 AM
Olimex ICD2 Broken! HerbertMunch Micro Controllers 43 5th February 2008 03:39 AM
A great ICD2 problem airtonsena Micro Controllers 1 3rd February 2008 03:20 PM



All times are GMT. The time now is 02:44 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker