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 7th May 2008, 03:35 PM   (permalink)
Default

so your saying that it might not work at all
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline   Reply With Quote
Old 8th May 2008, 09:42 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
A loopback test will only check the connections, the timing or latency is not checked. USB to RS232 is only an emulation and as such may not be 100%
In my experience only one USB to RS232 adapter works perfectly and that's the expensive Digi (I/O networks) ones.
Well all that are sugested works so i geuss i dont have a USB-to-serial-adaptor that will work with the ICD2 (I do have a old desktop PC with Serial but I dont know wheter it still works) HMMMM what to do.
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline   Reply With Quote
Old 8th May 2008, 10:43 AM   (permalink)
3v0
Default

Quote:
Originally Posted by Kryten
Well all that are sugested works so i geuss i dont have a USB-to-serial-adaptor that will work with the ICD2 (I do have a old desktop PC with Serial but I dont know wheter it still works) HMMMM what to do.
If you want to finish the project see if you can get the desktop fired up. Last time I checked MPLAB still worked with win98. Might be handy to have around as a control box anyway.

Or buy the USB based PICkit2 or Junebug that will work with your laptop.
3v0 is offline   Reply With Quote
Old 8th May 2008, 11:13 AM   (permalink)
Default

Well its part of my final project so Im going to have to get it working.
I allready hav a PICKit2 to run from my laptop (school bought it for me ).

And as far as i know i can program tha 18f4550 from the PICKit2 som im actually ok there. Just need to get the ICD2 Clone working so I can write about it...
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline   Reply With Quote
Old 8th May 2008, 11:32 AM   (permalink)
3v0
Default

Quote:
Originally Posted by Kryten
Well its part of my final project so Im going to have to get it working.
I allready hav a PICKit2 to run from my laptop (school bought it for me ).

And as far as i know i can program tha 18f4550 from the PICKit2 som im actually ok there. Just need to get the ICD2 Clone working so I can write about it...
There must be a working windows box with serial at school. They should have piles of them that are too slow for everyday use. MPLAB 7.X runs fine on 600 and even 400 MHz boxes if you do not have anything else running. I think I have 8.01 running on my 600MHz laptop. Can not check, it is out on loan.

When you find the box you still have to debug the ICD2. We have been over this many times in the days prior to PICkit2. As said earlier, do the loopback test without a processor first. Do it at the RX TX processor pins to check the wiring all the way to the processor. That with a working processor/crystal should allow the ICD2 connect even if other things are not quite right.

In general ICD2s are not too difficult to get working. I have an assortment of them including several powered by a single 1 amp voltage regulator set to 13V, I did not have to generate VPP from RS232.

Bill got me started with his Junebug and the ICD2s are mostly paperweights.

Last edited by 3v0; 8th May 2008 at 11:35 AM.
3v0 is offline   Reply With Quote
Old 8th May 2008, 11:37 AM   (permalink)
Default

The loopback test without the PIC (read loop in the socket for PIC) works but im not able to connect to ICD2 (Im using bills Bootlader and have a external power on the ICD2)

But at my school they sell out the old computers that they er changing to teachers only ( i have tried to get one without any luck)

edit:
But thinking of it it might be the crystal that are not working properly. Is there any way to check it? or it might be an ide to actually connect it !?!?!?!
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?

Last edited by Kryten; 8th May 2008 at 12:00 PM.
Kryten is offline   Reply With Quote
Old 8th May 2008, 12:07 PM   (permalink)
Default

The crystals a good guess, try using 18pf thru 22pf. Does your school have an oscillioscope?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 8th May 2008, 12:11 PM   (permalink)
Default

No I dont have a ocillioscope but making the connection between the PIC and Crystal seems to have made it work (Im so stupid at times)

After checking everyother connection but the crystals i couldnt see any faults but it works now so: Im happy (as Droopy says)
Eidt:
But school has and they ar currently rebuilding the electronics deparment so no luck there
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?

Last edited by Kryten; 8th May 2008 at 04:02 PM.
Kryten is offline   Reply With Quote
Old 8th May 2008, 12:24 PM   (permalink)
3v0
Default

from: http://stolz.de.be/


Pin 4 on the RS232 is connected to MCLR/RESET on the PIC. If your USB->RS232 does not handle this line correctly the PIC will never come out of reset or never be reset.

The loopback has to work but with a broken RESET it the ICD2 will not function.

Last edited by 3v0; 8th May 2008 at 12:49 PM.
3v0 is offline   Reply With Quote
Old 8th May 2008, 03:35 PM   (permalink)
Default

Well it works fine now. I just need a 47k (or 50k) Pot to set the pic that are beeing programmeds MCLR everything else works fine just now
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline   Reply With Quote
Old 8th May 2008, 06:53 PM   (permalink)
3v0
Default

Quote:
Originally Posted by Kryten
Well it works fine now. I just need a 47k (or 50k) Pot to set the pic that are beeing programmeds MCLR everything else works fine just now
I am glad it is working but I do not understand what you are using a pot for.
3v0 is offline   Reply With Quote
Old 8th May 2008, 10:21 PM   (permalink)
Default

The pots a bit of mystery for me too.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 8th May 2008, 10:34 PM   (permalink)
Default Email

Blueroom Bill,

Did you get the email I sent you the other day about a JuneBug board?
__________________
August Treubig
AG5AT
August Treubig is offline   Reply With Quote
Old 9th May 2008, 08:18 AM   (permalink)
Default

The Pot is for using a OPAmp for targets MCLR instead ot transistors (had to improvise as the school is beeing rebuildt/upgraded and I got the wrong transistors). Its a option on stoltz schematics, but i was planning on using the orginal with transistors..
Attached Images
File Type: jpg opamp copy.jpg (75.6 KB, 7 views)
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?

Last edited by Kryten; 9th May 2008 at 08:37 AM.
Kryten is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Help with ICD2 clone!!!!!!!!!!!! juanbbv Micro Controllers 17 5th April 2008 05:07 AM
Debugging 877A with MPLAB williB Micro Controllers 10 7th May 2007 03:53 PM
Need help badly on Inchworm and MPLAB thushy Micro Controllers 14 11th March 2007 06:05 PM
Some Question About Inchworm Ayne Micro Controllers 29 7th March 2007 03:07 AM
Inchworm project started williB Micro Controllers 69 5th March 2007 06:55 PM



All times are GMT. The time now is 02:20 AM.


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