89V51RD2

Started by jackyC, May 26, 2004, 02:40:15 PM

Previous topic - Next topic

ANSH

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

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

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

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