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 13th January 2005, 11:30 AM   (permalink)
SnM
Default PIC power on problems....

I am using a 12f629, and sometimes when i connect power to my circuit, it locks up.

After I burn the chip, or let it sit with now power for a while, and then apply power, it runs fine, and lights up an LED I have connected to GPIO,0.
I also have an LED on GPIO,1 and 4. GPIO,2 and 3 are inputs, and the pins are NOT floating. GPIO, 2 has a pull down resistor to ground, GPIO,3 has a pull up resistor (2.2K I believe). And reset is setup for internal only. GPIO,5 is pulled up high with a resistor.

If I remove power, and wait about 2 seconds after the LED fades away, sometimes it will not work correctly. I either get:

1. No LED's light up.
2. LED's connected to GPIO,0 and 4 light up.
3. All LED"s try to light up
4. Or it works normal.

What would cause a PIC to not start up okay? Could it be my power supply???? I am using a .1uF cap across the PIC's power and ground. I attached an image of my power supply.... I am not able to double check it now, since I am no where near it, but I believe that is what it is.

Thinking a bit more about it, the errors occur when I have GPIO,3 low (switch activated).......I don't remember the errors happening when GPIO, 3 starts off high. I have the RESET set for internal, but could that still cause a problem?

Thanks!
Steve
Attached Images
File Type: jpg pic-supply.jpg (12.3 KB, 433 views)
SnM is offline   Reply With Quote
Old 13th January 2005, 09:06 PM   (permalink)
Exo
Default

Did you enable the Brown Out fuse ?
Exo is offline   Reply With Quote
Old 13th January 2005, 10:21 PM   (permalink)
SnM
Default

no
SnM is offline   Reply With Quote
Old 14th January 2005, 01:07 AM   (permalink)
Exo
Default

well, try enabling it
Exo is offline   Reply With Quote
Old 19th January 2005, 01:08 PM   (permalink)
SnM
Default

thanks, that helped a lot!!!
SnM is offline   Reply With Quote
Old 17th November 2007, 10:39 PM   (permalink)
Smile 12f629 lock out problem

Hi,

I had the same problem of 12f629 lock out. I found this post about brown out fuse here. It solved the problem. I am writing this just in case any one who needs this info can get it.

Scene: 12f629 with GP0 and 1 as unputs, 2 as output. When I power up, sometimes GP2 starts as high, which i dont want to. Bcz I use GP2 to trigger a switch when GP0 and 1 as comparators give a high out. Again, some times when i Power up, the chip locks out, and no response.

Solution: I was having NOBROWNOUT fuse set. I changed it to BROWNOUT. Every thing is fine now. Thanks a lot, to "EXO"
avarachan is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




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


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