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.

P89V51RD2 problem during reset

Status
Not open for further replies.

SBB

Newbie level 3
Joined
Sep 26, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Pune
Activity points
1,302
P89V51RD2 problem

I am using P89V51RD2. For ISP there is no problem. When i do ISP my code runs properly, but after RESET (by pressing RESET switch or Power on RESET ) code does not run. Please tell me the solution to come in user code after RESET.
 

Somphorn

Member level 1
Joined
Sep 4, 2009
Messages
35
Helped
1
Reputation
2
Reaction score
0
Trophy points
6
Location
Johore, Malaysia
Activity points
0
Re: P89V51RD2 problem

If not already done...

1) connect pull-up resistor 4K7 from ALE to VDD.

2) connect resistor 8K2 from RST to VSS. and connect 10uF electrolytic from RST to VDD.

As far as code is concerned, a reset will always cause the instruction pointer to start execution from location 0000H. If your code runs the first time, then I think it shouldn't be a problem after a reset.

But don't take my word for it. I'm not an expert in this.
 

pratyathedon

Junior Member level 2
Joined
Oct 25, 2009
Messages
20
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Pune
Activity points
1,422
Do this values of resistor and capacitor matters.
i mean that if i use a 10k resistor instead of 8k2 and 10uf/35v instead of 10uf/16v does it will have any problem
 

welove8051

Full Member level 6
Joined
Jul 16, 2009
Messages
357
Helped
51
Reputation
102
Reaction score
41
Trophy points
1,308
Location
india
Activity points
3,277
hello
pratyathedon:
the value you choose is of no problem.


what is the code you are running. are you using serial communication. i had some problems when iam using serial communication program in rd2. if thats the case try to give some delay before serial communication in your program.

regards
kj
www.free8051projects.blogspot.com
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top