Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] 16f877a power on problem

Status
Not open for further replies.

cheetha

Full Member level 2
Joined
Sep 17, 2011
Messages
146
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
2,310
Assalam-o-alekum

i am using PIC 16f877a, mostly when i turn power on the controller doesnot works giving unknown output at i/o pins. the power needed to be connected and disconnected 3 to 4 times randomly then co0ntroller starts working correctly. plz explain why it is happining and hoe to avoid this situation.
 

Hi there,

Please verify your hardware section fully and power supply section.How much current are you feeding to controller?

Best regards,
 

Reset Problem?? Check the reset circuit.
 

Reset Problem?? Check the reset circuit.

i have just connected MCLR pin to VDD through 10k resistor therefore no reset circuit.

Loose connection. It external crystal is used mention capacitor value used in oscillator circuit.
i have used 4 MHZ crystal with 15pf capacitors
 

What are you utilizing to power the device?

A poorly regulated power supply combined with the Brown-Out Reset (BOR) active can cause the device to repeatedly reset, essentially suspending device operation.

I would recommend utilizing a 100nF decoupling capacitor as close as possible between the Vdd and Vss pins, use a well regulated power supply and disable the BOR in the configuration register settings.


BigDog
 

What are you utilizing to power the device?

i have use 7805 for 5V supply

I would recommend utilizing a 100nF decoupling capacitor as close as possible between the Vdd and Vss pins, use a well regulated power supply and disable the BOR in the configuration register settings.
i have tried it with capacitor but it didnt worked and BOR is disabled already
 

i have use 7805 for 5V supply


i have tried it with capacitor but it didnt worked and BOR is disabled already


What voltage you supply to 7805 voltage regulator and from what source battery, SMPS,... ?

Did you use required capacitors for voltage regulator before and after ? Waht values ?

Did you use 100nF close as possible between pins Vdd/Gnd ?



Best regards,
Peter

:wink:
 

If you having any LCD that functions like that means it is the problem of delay, can you tell other elements you having in the circuit..
 

If you having any LCD that functions like that means it is the problem of delay, can you tell other elements you having in the circuit..

i dont have LCD but 3 digit 7 segment, push buttons and opamps


What voltage you supply to 7805 voltage regulator and from what source battery, SMPS,... ?

Did you use required capacitors for voltage regulator before and after ? Waht values ?

Did you use 100nF close as possible between pins Vdd/Gnd ?


the input to 7805 is from transformer and bridge rectifier
i had used 100nf capacitor at controller power pins
 

the input to 7805 is from transformer and bridge rectifier
i had used 100nf capacitor at controller power pins

Measure voltage on 7805 input pin with digital voltmeter and post result. Read and write all digits from voltmeter display. :)
 


i had the same problem before, and i can confirm it's due to the reset circuit.The solution is simple,you must use a pull up resistor and a push button on the reset pin.Every time to start the circuit,just hit the reset button and everything will work as expected.
 

pscircuit.JPG

attach is the power supply circuit


i had the same problem before, and i can confirm it's due to the reset circuit.The solution is simple,you must use a pull up resistor and a push button on the reset pin.Every time to start the circuit,just hit the reset button and everything will work as expected.

i tried by connecting the pin to ground via hard wire the controller resets but remain hanged untill power is disconnected and then connected again
 

View attachment 93723

attach is the power supply circuit

i tried by connecting the pin to ground via hard wire the controller resets but remain hanged untill power is disconnected and then connected again




What you trying to do with this circuit? :shock:


Use circuit from post #15.




Best regards,
Peter
 

View attachment 93723

attach is the power supply circuit




i tried by connecting the pin to ground via hard wire the controller resets but remain hanged untill power is disconnected and then connected again


Hi
you are varying the output voltage.. surely it will be more than 5V is that you want?.. for 5v the center pin of regulator has to be grounded and like #15, try to measure your circuit output voltage..
 

Hi
you are varying the output voltage.. surely it will be more than 5V is that you want?.. for 5v the center pin of regulator has to be grounded and like #15, try to measure your circuit output voltage..

yes i am varying output voltage as output of most 7805 is not exactly 5V so to adjust it to 5V i have used this circuit ...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top