16.03.2015 Views

P89V51RB2/RC2/RD2 8-bit 80C51 5 V low power 16/32 ... - NetMedia

P89V51RB2/RC2/RD2 8-bit 80C51 5 V low power 16/32 ... - NetMedia

P89V51RB2/RC2/RD2 8-bit 80C51 5 V low power 16/32 ... - NetMedia

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NXP Semiconductors<br />

<strong>P89V51RB2</strong>/<strong>RC2</strong>/<strong>RD2</strong><br />

8-<strong>bit</strong> microcontrollers with <strong>80C51</strong> core<br />

Table 13. IAP function calls<br />

IAP function<br />

Read ID<br />

Erase block 0<br />

Program User Code<br />

Read User Code<br />

IAP call parameters<br />

Input parameters:<br />

R1 = 00H<br />

DPH = 00H<br />

DPL = 00H = mfgr id<br />

DPL = 01H = device id 1<br />

DPL = 02H = boot code version number<br />

Return parameter(s):<br />

ACC = requested parameter<br />

Input parameters:<br />

R1 = 01H<br />

Return parameter(s):<br />

ACC = 00 = pass<br />

ACC=!00=fail<br />

Input parameters:<br />

R1 = 02H<br />

DPH = memory address MSB<br />

DPL = memory address LSB<br />

ACC = byte to program<br />

Return parameter(s):<br />

ACC = 00 = pass<br />

ACC=!00=fail<br />

Input parameters:<br />

R1 = 03H<br />

DPH = memory address MSB<br />

DPL = memory address LSB<br />

Return parameter(s):<br />

ACC = device data<br />

<strong>P89V51RB2</strong>_<strong>RC2</strong>_<strong>RD2</strong>_4<br />

© NXP B.V. 2007. All rights reserved.<br />

Product data sheet Rev. 04 — 1 May 2007 26 of 80

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!