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 December 2006, 12:47 AM   (permalink)
Default BAD night.. 16F628A weak pullups.

I dropped an 8 position switch on a board (port B), figured no pull-ups as I saw weak pullups.

Weak pull-ups are for output only (as I now read). I have all the pins grounded on the other side of the switch.. Any quick fix other than soldering resistors to 8 pins.

Killed my ICD2 as well. Why the topic is bad night. I am back to the parallel port programmer now.
mramos1 is offline   Reply With Quote
Old 12th December 2006, 01:35 AM   (permalink)
Default

Quote:
Originally Posted by mramos1
I dropped an 8 position switch on a board (port B), figured no pull-ups as I saw weak pullups.

Weak pull-ups are for output only (as I now read). I have all the pins grounded on the other side of the switch.. Any quick fix other than soldering resistors to 8 pins.

Killed my ICD2 as well. Why the topic is bad night. I am back to the parallel port programmer now.
Pretty hard to kill the Inchworm, just drop in a new 16F877A.

The pullups on PORTB are for input only, the Firefly uses them for it's switches and they work fine. Sounds like you drove the wee PICs I/O to gnd.

http://ww1.microchip.com/downloads/e...Doc/31009a.pdf I/O ports

The ICD2 should be real hard to kill, assuming you're not using the mclr, PGC & PGD for anything except the ICD2.
Attached Images
File Type: gif pullups.gif (8.3 KB, 9 views)
__________________
Bill
Home of the
Firefly PIC Tutor
Inchworm ICD2

http://www.blueroomelectronics.com

Last edited by William At MyBlueRoom; 12th December 2006 at 01:43 AM.
William At MyBlueRoom is offline   Reply With Quote
Old 12th December 2006, 02:09 AM   (permalink)
Default

I don't see how shorting the pic's pins to either rail would kill the pic, they're internally current limited.

what kind of problem are you having exactly with the dip switch?
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline   Reply With Quote
Old 12th December 2006, 02:48 AM   (permalink)
Default

Thanks Bill and justDIY..

I just soldered in some 1/8th watt 10K pullups for now.

I wanted to use the weak pullups on port B (input wise). But the PIC never saw high when I flipped the switches to open. I pulled the PDF from microchip and it made it look like they were for output only.. I was in a rush and did not want to read, posted here.. And went to solder them in.

But I would like to use them on the pic chip in the future (for input). If they work for input. Will read it tomorrow as it is late.

Bill. I had a project where I received a USB2 ICD2 and an USB1 ICD2 (Olimex the USB1 is called). The USB2 was FAST as heck and very small so I was using it (was going to make it my laptop programmer). I used it tonight and it just stopped working. I gave my inchworm to my Grandfather this last weekend, he drove out to see me and the grandkids. And he is 5 hours away. He is a PCB guy and I want to get him into the PICS (he is retired and looking to have fun)..

I blew the USB2 ICD2 (somehow, Windows just stopped talking to it), or the driver seemed to get wacked out. So I dug in the closet for the USB1 unit. It did not work. Well it sort of worked but MPLABS said see ICD2 status TAB. I looked for that, could not find it.. Gave up.

So I pulled out a parallel P16PRO40 and finished (like the old days). It is like I am back at square one. But the project is done, blood presure is up..

After I finished I realize, the inchworm (though slower, it is serial) would have worked as it has no "&*!@%" USB interface. I will send a USB one to GrandDad and get the inchworm back. What a pain tonight was.

AND I have extra 877A's, the schematics to it and it is not USB.. What was I thinking... GrandDad wanted the firefly too, but the middle son would not part with it

Looks like speed kills and it almost got me tonight..
I hate USB..
mramos1 is offline   Reply With Quote
Old 12th December 2006, 03:11 AM   (permalink)
Default

Did you clear option_reg bit 7 to zero (that enables the pullups)
__________________
Bill
Home of the
Firefly PIC Tutor
Inchworm ICD2

http://www.blueroomelectronics.com
William At MyBlueRoom is offline   Reply With Quote
Old 12th December 2006, 04:04 PM   (permalink)
Default

If you need to use your ICD1, you will have to downgrade to MPLAB 5.7. That is the last version that supported the ICD1.
phalanx is offline   Reply With Quote
Old 12th December 2006, 04:57 PM   (permalink)
Default

Quote:
Originally Posted by phalanx
If you need to use your ICD1, you will have to downgrade to MPLAB 5.7. That is the last version that supported the ICD1.
My backup might work, I get Failed Selftest, I think it might require power on the target. Will check it tonight.. They are all ICD2 so should be OK on the firmware.
mramos1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Help with problem programming 16F628A ukatv Micro Controllers 8 25th September 2007 08:23 PM
PIC 16F84 to 16F628a question lompa Micro Controllers 14 6th September 2007 12:33 PM
16F628A A/D input question rshprd Micro Controllers 3 20th May 2006 08:12 PM
Yet another Night Rider LED project Mike, K8LH Micro Controllers 14 11th February 2006 07:11 AM
16f628a programming only got 16f628 support will it work? lompa Micro Controllers 6 18th December 2004 05:51 PM



All times are GMT. The time now is 09:06 AM.


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