Author Topic: 89V51RD2  (Read 71161 times)

ANSH

  • Guest
Re: 89V51RD2
« Reply #90 on: July 27, 2005, 08:11:54 am »
hey Jan,
           hello once again !!

The iap for p89v51rd2fa iap is functional I really thank u for all the support u have offered.
Actually i have another related  issue   :
If we write some data on flash at some location and then try to rewrite once again at the same location it does not permit us to do the same.
even  power cycling the target does not help.
hence, i tried erasing and actually the erase function erases the whole 0 block i.e., the whole flash however my application code via which i activate the iap and perform the read write operations is also erased.
Is there any means via which i can erase the flash byte by byte or let say
is there any means via which i can  make my application code resident and erase the remaining flash?

Ansh

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: 89V51RD2
« Reply #91 on: July 27, 2005, 11:56:30 pm »
The FLASH can be erased in 128-byte chunks.
See IAP description in datasheet:
Erase sector Input parameters:
R1 = 08h
DPH = sector address high byte
DPL = sector address low byte
Return parameter(s):
ACC = 00 = pass
ACC = !00 = fail

Good luck!

Jan Waclawek

ANSH

  • Guest
Re: 89V51RD2
« Reply #92 on: July 28, 2005, 02:43:03 am »
hello ,jan

           Could you help me locate the same in the datasheet actually i could not find something like that in the iap functions at 1ff0h location that have been mentioned in the datasheets that i posses (I have downloaded them from philips site ).

 Anyways  it  does work .
Thank you once again
I am really obliged by all your cooperation .

Ansh

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: 89V51RD2
« Reply #93 on: July 28, 2005, 07:16:11 am »
I am confused: do you see a different Philips-website than me?

http://www.semiconductors.philips.com/pip/P89V51RD2.html -> http://www.semiconductors.philips.com/acrobat/datasheets/P89V51RB2_RC2_RD2-03.pdf -> page 27

Oh yes, it is missing from the first issue of the datasheet, but that was superseded twice since then... You should always start the debugging by downloading the newest datasheets (plus the erratas, if any).

Jan Waclawek