Keil Logo Arm Logo

P89V51RD2 code not working.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Sandeep Suthar
Posted
3-Dec-2011 07:50 GMT
Toolset
C51
New! P89V51RD2 code not working.

I am using P89V51RD2BN(40 Pin) IC and KEIL Compiler to generate .hex file.
I have compiled a simple code to generate a square wave on pin no. 5 of P3 port(P3^5).

I m using Advantech Lab Tool-48UXP External programmer to program P89V51RD2.

When I Burn the code in Atmel 89C51 square wave is generated on pin no. 5 of P3 port(P3^5), but the same code when burn for P89V51RD2BN, it does not work.

We have included P89V51RD2.h as a header file to main source code provided on KEIL website.

P89V51RD2 processor specific STARTUP.A51 is created using KEIL µVision3 software and .hex file is created using the same software.

Please tell why such a simple code is not working in P89V51RD2??

Am I missing any steps while generating .hex file.

Read-Only
Author
Andrew Neil
Posted
3-Dec-2011 11:52 GMT
Toolset
C51
New! RE: Am I missing any steps

Have you carefully checked all the details of the "Atmel 89C51" Datasheet against all the details of the "P89V51RD2BN" Datasheet?

If it "works" on one but not the other, then you must be relying on something that happens to hold for one but not the other

"We have included P89V51RD2.h ... P89V51RD2 processor specific STARTUP.A51"

Those are indeed necessary - but not sufficient.

Read-Only
Author
Erik Malund
Posted
3-Dec-2011 13:41 GMT
Toolset
C51
New! not necessarily the datasheet

but I totally agree with Andy.

since the P89V's are fairly recent I'd ask

does your programmer have a selection for this chip and are you using it.

there has been threads in this forum before where the above question was answered with "no, but I thought I could use"

Erik

Read-Only
Author
Sandeep Suthar
Posted
6-Dec-2011 05:12 GMT
Toolset
C51
New! RE: Am I missing any steps

Dear Sir,

Thank u for ur response.

We have already verified both Datasheet. of P89V51RD2 and Atmels 89C51.

There is no such difference between that.. still we are trying for the same. Still if u get any solution please let us know...

Thanks for reply....

Read-Only
Author
Sandeep Suthar
Posted
1-Feb-2012 10:35 GMT
Toolset
C51
New! RE:Solution for P89V51RD2

Hello....

We have found solution for the problem which we had posted......

Earlier, We have used Universal Programmer Toolkit for programming P89V51RD2 IC.

But due to some reason we don't able to find expected result.

Now instead of using that TOOLKIT we are using Flash Magic Software for programming P89V51RD2.

Flash Magic-- In System Programming(ISP) using COM port.

Now it is working fine.....

Thanks

Sandeep Suthar

Read-Only
Author
erik malund
Posted
1-Feb-2012 14:56 GMT
Toolset
C51
New! if you had responded you would have been done dec 6

I asked "does your programmer have a selection for this chip and are you using it."

you never responded (well some babble about datasheets)

the programming algorithm is (fortunately) not in the datasheets any more.

if you tried to program a chip in a parallel programmer that did not have a setting for the exact chip it would not work

Erik

Read-Only
Author
Sandeep Suthar
Posted
8-Feb-2012 05:35 GMT
Toolset
C51
New! RE: if you had responded you would have been done dec 6

Hello Erik,

Thank u very much......

In Programmer we have option for selecting particular Chip.

But due to sm reason it was not working.

Thanks

Sandeep

Read-Only
Author
erik malund
Posted
8-Feb-2012 14:26 GMT
Toolset
C51
New! what is 'sm' ?

But due to sm reason it was not working.

what is 'sm'

Erik

Read-Only
Author
Reluctant Consultant
Posted
8-Feb-2012 14:29 GMT
Toolset
C51
New! RE: what is 'sm' ?

Erik,

He's probably just borrowed the dodgy keyboard you frequently appear to use ;)

Read-Only
Author
Sandeep Suthar
Posted
14-Feb-2012 09:41 GMT
Toolset
C51
New! RE: what is 'sm' ?

Hey Erik,

sm means some...... we have not found any reason yet but there might be problems
with Universal Programmer.

Using ISP Flash Magic Tool it is working...

Thanks...

Read-Only
Author
Andrew Neil
Posted
14-Feb-2012 11:00 GMT
Toolset
None
New! RE: sm means some

Does it?

IS it really so hard for you to type "some", so that your message will be clear and unambiguous and immediately understandable to everyone - without having to guess whether it's a typo, or some "cute" abbreviation, or whatever...?

You can make it easy for people to help you, or...

http://www.catb.org/~esr/faqs/smart-questions.html#writewell

Read-Only
Author
Per Westermark
Posted
14-Feb-2012 11:51 GMT
Toolset
None
New! RE: sm means some

To steal an old quote that is circling the net.

> When people say plz instead of please to me to save characters, I see no wrong is writing "no" instead of "yes" to save a character.

Read-Only
Author
erik malund
Posted
14-Feb-2012 14:54 GMT
Toolset
None
New! I love that quote

When people say plz instead of please to me to save characters, I see no wrong is writing "no" instead of "yes" to save a character.

Read-Only
Author
erik malund
Posted
14-Feb-2012 17:11 GMT
Toolset
None
New! also

On a cellphone SMS the sender saves 11 seconds by garbling the message, the receiver lose 11 seconds trying to decipher.
In a public forum the poster saves 11 seconds by garbling the message and hundereds of people each lose 11 seconds trying to decipher.

Erik

Read-Only
Author
samuel emerson
Posted
14-Feb-2012 17:26 GMT
Toolset
None
New! RE: also

u ppl nvr uz sms? dino meet.

Read-Only
Author
Rajesh S
Posted
19-Feb-2012 07:07 GMT
Toolset
C51
New! RE:Solution for P89V51RD2

Hi,
I think you successfully able to program the microcontroller. I am also trying to program the P89C61X2BN microcontroller using FlashMagic. But could not connect it, as it is showing error related to autobaud and also some error related to could not connect,reset into ISP mode.
I need some help to resolve this. Could you please help me in this regard?

Regards
Rajesh

Read-Only
Author
erik malund
Posted
20-Feb-2012 17:23 GMT
Toolset
C51
New! well, why

using FlashMagic
why do you ask at the Keil forum instead of the FlashMagic forum?

Erik

Read-Only
Author
Jack Sprat
Posted
21-Feb-2012 00:31 GMT
Toolset
C51
New! RE: well, why

why do you ask at the Keil forum instead of the FlashMagic forum?

<sigh>

He doesn't have a problem with Flashmagic. Why would he need to post on their forum?

Read-Only
Author
erik malund
Posted
21-Feb-2012 14:42 GMT
Toolset
C51
New! OH

He doesn't have a problem with Flashmagic.

OH
"I am also trying to program the P89C61X2BN microcontroller using FlashMagic. But could not connect it,"

I wondered why you stayed in the can for some long, thought you had changed your pseudonym to "Ashley Madison"

Erik

Read-Only
Author
Jack Sprat
Posted
22-Feb-2012 00:33 GMT
Toolset
C51
New! RE: OH

OH
"I am also trying to program the P89C61X2BN microcontroller using FlashMagic. But could not connect it,"

I saw that the OP had written Using ISP Flash Magic Tool it is working... without noticing that someone else had jumped in.

I haven't been around here for a while but I had a look in and was a bit disappointed to see that your behaviour has regressed somewhat in my absence. Don't you worry, though, we'll soon sort that out.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.