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 12th February 2008, 04:13 PM   (permalink)
Default Pic18f4550 ISCP problem.

Hi, can anyone think of any reason why my olimex icd2 works when i connect to the 40pin dip version of the 18f4550, but not the smt 44-tqfp version?

I have a professionally manufactured 18f test board with a 44 pin smt pic on it, but the icd2 wont connect. MPLAB allways says that wrong target ID is connected.

I have tested and retested the ICSP connections, all are fine.

Any ideas?

Many thanks.
Chris.
HerbertMunch is offline  
Reply With Quote
Old 12th February 2008, 05:23 PM   (permalink)
Default

Do you have a schematic or part # of the target board?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 12th February 2008, 06:41 PM   (permalink)
Default

Hi bill,

Ive got a schem of my board, but not the of the other one.

This is my first go at smt pics, its not going well!

Ive basically just soldered on the pic and a ICSP header, and soldered on the (bottom pcb side) blue jumper wires.

This is allways the first thing i do when i make a new board. If the ICSP doesnt work, then somethings not right.

MPLAB doesnt recognise my board, or the other pro. one. If i connect up a previous project (uses a 4550 40pin pdip) and i can get the stupid olimex programmer to work, then MPlab connects without problems.

Please tell me im doing something foolish, i just cant work out why it doesnt work.

Ive trashed three 4550's on several copies of my board, i kept thinking that i had ruined the chips through ESD.
Lucky ive got my trusty (if not slightly vulgar) AOYUE rework station.

Anyway ive now come to the conclusion that the chips are ok.

everything in the schem s unconnected, just the pic and the icsp are soldered to the board.


Cheers bill.
Attached Images
File Type: png schem1.png (40.0 KB, 17 views)
File Type: png board1.png (30.3 KB, 9 views)

Last edited by HerbertMunch; 12th February 2008 at 06:44 PM.
HerbertMunch is offline  
Reply With Quote
Old 12th February 2008, 06:46 PM   (permalink)
Default

I think the 44pin device have dedicated ICD pins, take a look at the datasheet and search for ICD.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 12th February 2008, 06:53 PM   (permalink)
Default

yeah i noticed that,
I cont checked the pro board and found that it was wired up to the multiplexed pins though.

Ill whip up another basic board, that simply has 2 headers and a 4550. Ill connect one header up to the dedicated and the other, the multiplexed pins.

I hope this works.
thanks mate.
HerbertMunch is offline  
Reply With Quote
Old 12th February 2008, 07:04 PM   (permalink)
Default

How did you fix your ICD2?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 12th February 2008, 10:49 PM   (permalink)
Default

i didnt, it still wont enter debug mode, and it sometimes wont program succesfully.

Still waiting on my student loan, to buy parts.

icd2 will work with every board i have tried, apart from these smt ones.
HerbertMunch is offline  
Reply With Quote
Old 13th February 2008, 03:52 AM   (permalink)
Default

Hi Herbert
Did you notice the schematic and Layout, at pins 28 and 29. I fear, Vdd is shown connected to Gnd and Vss to 5V as per the schematic? It should be otherwise I feel. Same is the case with pins 6 & 7. please check .
This will sort it out.
__________________
Regards,
Sarma.

Last edited by mvs sarma; 13th February 2008 at 06:24 AM.
mvs sarma is online now  
Reply With Quote
Old 13th February 2008, 06:51 AM   (permalink)
Default

Hi Chris,
Plz check whether u hav connected the Vcc of ur target board & the pin No. 2 of RJ11 from ICD2 r shorted.
Regards,
Renjith..!
renjithmr79 is offline  
Reply With Quote
Old 13th February 2008, 07:11 AM   (permalink)
Default

Well spotted Sarma.

Mike.
Pommie is offline  
Reply With Quote
Old 13th February 2008, 11:43 AM   (permalink)
Default

Sarma your a genious!

I was just about to give up hope.

Reputation++.

thanks very much.
HerbertMunch is offline  
Reply With Quote
Old 13th February 2008, 12:04 PM   (permalink)
Default

Just tried it, it works!

Once again, nice one sarma
HerbertMunch is offline  
Reply With Quote
Old 13th February 2008, 12:07 PM   (permalink)
Default

This doesnt explain why the Professional board doesnt work, but i really dont care as long as my boards work.

Does anyone know if the dedicated ICSP port has to be turned on before use (i.e config bits)?
If it does, it strikes me as slightly foolish, having to config the pic using legacy ports first.
HerbertMunch is offline  
Reply With Quote
Old 13th February 2008, 12:15 PM   (permalink)
Default

Quote:
Originally Posted by HerbertMunch
Just tried it, it works!

Once again, nice one sarma
Happy that the Chip is ALIVE with all the trouble it had with reverse polarity. Thanks for the compliment-- there is nothing about it. i looked at it with open mind and with no prior bias in my mind while looking at the problem.
You are lucky that the chip is working.
Thanks again
__________________
Regards,
Sarma.

Last edited by mvs sarma; 13th February 2008 at 12:18 PM.
mvs sarma is online now  
Reply With Quote
Old 13th February 2008, 12:19 PM   (permalink)
Default

Quote:
Originally Posted by mvs sarma
Happy that the Chip is ALIVE with all the trouble it had with reverse polarity. Thanks for the compliment-- there is nothing about it. i looked at it with open mind and with no prior bias in my mind while looking at the problem.
You are lucky to to save the chip.
Thanks again
thats the good thing about these forums. I tend to have a fairly closed mind when it comes to problems with my own boards.

I have probably ruined about 4 chips in total, whilst removing them from the board. Not to worry though, it works now.

cheers mate
HerbertMunch is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Keil C problem sarang1_in Micro Controllers 3 27th February 2005 05:05 AM
Problem; Random pic performance timothyjackson Micro Controllers 7 19th February 2005 06:19 PM
Big problem!! zezito Electronic Projects Design/Ideas/Reviews 4 29th October 2004 02:05 AM
12F675 Problem brodin Micro Controllers 10 29th December 2003 09:40 PM
strange color camera problem schrodingerscat Electronic Projects Design/Ideas/Reviews 5 4th October 2003 07:25 PM



All times are GMT. The time now is 08:01 PM.


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