Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

What can reset PORTx ?

Status
Not open for further replies.
I have one 16F877A circuit already built, I could reprogram the PIC and link it to my PC via the RS232. I will get back to you later today.

hi,
Programmed a 16F877 [dont have a A ver] with your program.
I have set the RS232 PC to 19200 baud and assumed a 4MHz xtal.

Linked via MAX232 to my PC, using a RS232 utility prog I can send single bytes to the PIC and see the LED's ON or OFF, as set by the byte value.

The LED's are steady without any flashing.

I will look again later...:)
 
What value is them 14 resistors
14 x20ma = 280
I've made led cubes that would run fine for a day and after that the chip would shut down
it would be hot to touch let it cool and on it would go agin.
 
Last edited:
What value is them 14 resistors
14 x20ma = 280
I've made led cubes that would run fine for a day and after that the chip would shut down
it would be hot to touch let it cool and on it would go agin.

Interesting theory Burt, but there are only 7 LED's per PIC, so for 10mA/LED thats only 70mA or 140mA tops.

Look at the video the flashing rate is far faster than the heat/cool cycle.:)
 
Is it possible to someone build the same circuit, to check if I am wrong. Its really simple.

One need :
2 -16f877
14 - LED and 14 resistors for LED (For PORTA and PORTB)
2 - chrystal
4 - 27 pF capacitors
Supply stable 5 V.

Just put LED and resistors on PORT/A/B. Connect what must one for PICs, set the program, connect two PICs . And that's it.
That came from his post and not mine
And you think a pic can sink or source 20 to 25ma That is wrong what the data sheet tells you that's the max for one pin

Not a port of pins

In real life it's more like 50ma for the whole port

If you read the data sheet it tells you that the chip can have a combined
usage of 200ma for all ports Pop that by 5 and see what you get or 4 to make you fell better
 
Originally Posted by PIC2PIC View Post
Is it possible to someone build the same circuit, to check if I am wrong. Its really simple.

One need :
2 -16f877
14 - LED and 14 resistors for LED (For PORTA and PORTB)
2 - chrystal
4 - 27 pF capacitors
Supply stable 5 V.

Just put LED and resistors on PORT/A/B. Connect what must one for PICs, set the program, connect two PICs . And that's it.

Yes but that is two make two sets - one for each side, so 7 LED's per PIC
 
Hi

No, supply is not the problem. Because I have :

PIC1 - uses only PORTA - 6 LEDs and all resistors are 1 Kohm, and no other LED

PIC2 - uses only PORTB - 8 LEDs and all resistors are 1 Kohm, and no other LED
 
Hi

No, supply is not the problem. Because I have :

PIC1 - uses only PORTA - 6 LEDs and all resistors are 1 Kohm, and no other LED

PIC2 - uses only PORTB - 8 LEDs and all resistors are 1 Kohm, and no other LED

Thanks for letting us know what size resistor is pulling mclr to vdd to low value
can cause reset.
 
People thank you all. You are very kind.
I am working on this for weeks ... It comes to me broke all this electronics sh.t and to f..k all PIC and take a hammer and smash all hardware and stop all sh..ing on programing and put all this crap to garbage and make all electronics kiss my ass and all transistors and capacitors and and ...
 
I ran the code you posted and mike formatted it blinks the leds on portb
 
People thank you all. You are very kind.
I am working on this for weeks ... It comes to me broke all this electronics sh.t and to f..k all PIC and take a hammer and smash all hardware and stop all sh..ing on programing and put all this crap to garbage and make all electronics kiss my ass and all transistors and capacitors and and ...

It will come with time! Patience my friend!
 
It will come with time! Patience my friend!

I remember the first hard code I did It was the sony remote code Nigel did I wanted to use it on a 12f675 it took a month to get it to work right. I could do the same thing now in a hour LOL
 
That came from his post and not mine
And you think a pic can sink or source 20 to 25ma That is wrong what the data sheet tells you that's the max for one pin

Not a port of pins

In real life it's more like 50ma for the whole port

If you read the data sheet it tells you that the chip can have a combined
usage of 200ma for all ports Pop that by 5 and see what you get or 4 to make you fell better

hi,
We seem to be getting our wires crossed.:)
Where does it say on the OP's posts he is running each of the 7 leds at 20mA.??

This blinking problem as I understand also occurs when not all 7 are in use.

I am aware of what the datasheet says regarding the current sink/source.
Refer image.

I am puzzled why you seem to be taking this as personal attack rather than a technical discussion.:confused:
 

Attachments

  • 16F877A_char1.gif
    16F877A_char1.gif
    56.2 KB · Views: 127
Last edited:
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top