Author Topic: 89V51RD2  (Read 70292 times)

nishant

  • Guest
Re: 89V51RD2
« Reply #30 on: November 19, 2004, 06:07:46 am »
I am also facing same problem in isp, and i have tried a lot resetting chip too much some time it shows erasing block 0 and after 2 t othree minute it shows programming...... and than give error message of communication of receiving/transmitting error. Please tell me how to sort out this problem.and which one is the latest version i have downloaded ur softwre just one month b4.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: 89V51RD2
« Reply #31 on: November 19, 2004, 06:23:05 am »
Please read the application note on the Flash Magic web page titled "what to do when ISP does not work" and complete the "last resort" steps, so I can see what is going on.

Embedded Systems Academy, Inc.
support at esacademy dot com

Peter Kay

  • Guest
Re: 89V51RD2
« Reply #32 on: November 23, 2004, 08:27:46 pm »
We use 89C51RD2BA's in our product and want to make the 89V51RD2 a second source.
I am trying to support 89V51RD2 programming into our test program so I monitored your serial transmissions to determine the programming sequence.
Why to you read security bit (020000057000F2 command) twice before any function and once after function?

Other comments on Flash Magic on 89V51RD2 chips.
Using "Display Flash Memory",
1. Program appeas to hang for about 30 seconds and then starts dump. Why?
2. Why do you dump the whole memory? Other ISP chips (89C51RD2BA) do it in 2000 hex segments which seems more logical. Alternatively let user select range.

Peter Kay

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: 89V51RD2
« Reply #33 on: November 24, 2004, 06:25:39 am »
Regarding reading the security bits. It is partly to do with the way the software is constructed and partly for historical reasons regarding some of the older devices.

I don't know why it hangs for 30 seconds. Are you using a slow baud rate? The 30 seconds is probably when it is reading in the data. See the response below.

Flash Magic is designed to read in the memory one flash block at a time. That method never envisioned a Philips device with a single flash block. We will add your suggestion of a user selected range to our to-do list. Thanks!

Embedded Systems Academy, Inc.
support at esacademy dot com

ravikiran

  • Guest
Re: 89V51RD2
« Reply #34 on: November 24, 2004, 07:53:26 pm »
sir,
 i am using p89v51rd2bn dip microcontroller. i am not having a parallel programmer. i am communication using isp with rs-232, with a clock frequency of 11.0592Mhz.
  the problem i am unbale to communicate with the microcontroller. flash magic software is displaying"UNABLE TO COMMUNICATE.RESET THE HARDWARE INTO ISP MODE, TRY REDUCING THE BAUD RATE"

 just i am using rs-232 null modem connections with Tx,Rx, Gnd pins. i had left the remaining pins of rs-232 left open.

is any pins of microcontroller need to be checked?

what should be the status of the PSEN and ALE and EA pins . i am not using any external memory.?
what should be the status of psen pin during normal operation mode and during isp mode?


ravikiran

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: 89V51RD2
« Reply #35 on: November 29, 2004, 06:18:09 am »
Is a window popping up saying "reset the device now" with a cancel button? If not then you have the wrong device selected.

I believe the /EA pin should be pulled high. PSEN is not used to switch between ISP mode and regular mode. All the details are in the datasheet.

Embedded Systems Academy, Inc.
support at esacademy dot com

Karst

  • Guest
Re: 89V51RD2
« Reply #36 on: December 07, 2004, 12:44:48 pm »
Hi there,

I've had the problem with the 89v51rd2 too. I spent a week trying, and now i know what's wrong. I tried to program the (new) bootloader software in the processor, but that didn't do any good. The solution was to just set the program offset at 10000h, couse that is where the bootblock starts. et voila!.. it works!

Nishant

  • Guest
Re: 89V51RD2
« Reply #37 on: December 08, 2004, 06:32:59 am »
Dear Karst,
    Are u facing problem in ISP,if it is than dont mix up 89v51rd2 with previous 89c51rd2 series. 89v51rd2 is more simpler than "C" series.Just u need to on flash magic select 89v51rd2 select any command like read signature byre from ISP menu and than software will ask for RESET the chip in ISP mode just put on ur target board but please dont pull down PSEN(29 pin in dip ) it will detect and now u will be able to read signature byte and can do rest of other works.

avinash moore

  • Guest
Re: 89V51RD2
« Reply #38 on: February 01, 2005, 01:55:26 am »
i face a problem with 89v51rd2 in isp mode. when i select a device , load a hex  file , and selecting a baud rate of 9600 ,
   when i start to programmed a ic it shows a message that reset the device in ISP node now.

   for that time i reset the system with the help of reset ckt (RC) and RSTEST signal connected to RST pin. but every time it shows again the
same message . after that i cut the power supply and again do the same thing . but no result..

     Kindly \give me the solution of this problem as earliy as possible. Nishant wrote:

> Dear Karst,
>     Are u facing problem in ISP,if it is than dont mix up
> 89v51rd2 with previous 89c51rd2 series. 89v51rd2 is more
> simpler than "C" series.Just u need to on flash magic select
> 89v51rd2 select any command like read signature byre from ISP
> menu and than software will ask for RESET the chip in ISP mode
> just put on ur target board but please dont pull down PSEN(29
> pin in dip ) it will detect and now u will be able to read
> signature byte and can do rest of other works.

Ajit

  • Guest
Re: 89V51RD2
« Reply #39 on: March 11, 2005, 10:58:59 pm »
i am face a problem with 89v51rd2 setting 6 clock mode to the 12 clock.
i want to device in 12 clock mode.
how to swet it.

erikm

  • Guest
Re: 89V51RD2
« Reply #40 on: March 13, 2005, 07:27:01 am »
did you consider looking at the datsheet?
I do believe that that might help
but of course, that would require a small effort from you

sorrt

Erik

Zeesha

  • Guest
Re: 89V51RD2
« Reply #41 on: March 19, 2005, 08:32:20 pm »
Hi,

Is there any particular crystal frequency i need to select to operate ISP in P89V51RD2 ? or will it work with any crystal frequency?

thx

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: 89V51RD2
« Reply #42 on: March 20, 2005, 10:30:18 pm »
The proper operation of the autobaud routine in P89V51RD2 depends on the _combination_ of crystal frequency _and_ chosen baudrate.
You can always chose a lower baudrate to enable the autobaud routine "catch up" with a particular crystal.  
See and try http://www.efton.sk/t0t1/autobaud_error.htm

Jan Waclawek

Zeesha

  • Guest
Re: 89V51RD2
« Reply #43 on: March 23, 2005, 05:09:24 am »
What if i am using a  16Mhz crystal. Will it suffice for the autobaud of ISP or will it cause problems. should i change to a standard 11.0592Mhz. Will a 16M give me problems. Because it cannot be divided as a whole no for baud rate.

Hoping for an early reply.
Thanks.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: 89V51RD2
« Reply #44 on: March 23, 2005, 06:05:45 am »
Generally the faster the better. Anything above 6MHz should work ok, so pick the appropriate frequency for your application.

Note that dividing nicely from the crystal frequency to a baud rate doesn't apply for autobauding, because the baud rate is measured not calculated. The performance of the autobauding depends on how the autobauding code has been written, so generally you just have to try it and see.

Embedded Systems Academy, Inc.
support at esacademy dot com