aliraza786
Full Member level 4
- Joined
- Nov 10, 2009
- Messages
- 210
- Helped
- 14
- Reputation
- 28
- Reaction score
- 14
- Trophy points
- 1,298
- Location
- Lahore, Pakistan, Pakistan
- Activity points
- 2,914
That's by design of x51 processor and can't be avoided. All port pins, that have an internal pull-up, e.g. P1 will go to high state during power-up and reset. Your external circuit must be designed to deal with this behaviour. In some cases, you may need to invert a signal. Basically, there's no problem if all signals are defined active low.i apply power after that for a very short interval of time all the pins of 8051 goes high and after that it start following the code written inside
actually i want some better solution. the problem is brown out . as in pakistan the failure of electricity is as common as you are taking breath but most important to note is that the brown-out is double the time of failure of electricity. and even no one can beleive that the 220 volt ac from main power line also have powerful surges becoz the transformer are old enough to scrap. so one thing is to have big caps in power supply so that the brown out can be ignored . second is that there should be some kind of better network to dischage the capacitor more quickly. as i have told that i have no back ground of science and electronics so may be my question is foolish but i am just asking it for knowledgeIt is power on reset..Actually what happens is When power is turned on the(capacitor and resistor) circuit holds the rst pin high for an amount of time that depends on the capacitor value and the rate at which it charges..
(aa.bmp)Thats the schematic for reset circuit it will work fine but it is incomplete .. if u want to reset your microcontroller of your own add a tack switch as shown below :-
View attachment 60196
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?