beautypg.com

2 application-programming-interface, Preliminary, 2 application-programming-interface – Rainbow Electronics T89C51CC02 User Manual

Page 41

background image

Rev.A - May 17, 2001

41

Preliminary

T89C51CC02

10.4. 2 Application-Programming-Interface

Several Application Program Interface (API) calls are available for use by an application program to permit selective
erasing and programming of FLASH pages. All calls are made by functions.

All these APIs will be described in an application note.

API CALL

Description

PROGRAM DATA BYTE

Write a byte in flash memory

PROGRAM DATA PAGE

Write a page (128 bytes) in flash memory

PROGRAM EEPROM BYTE

Write a byte in Eeprom memory

ERASE BLOCK

Erase all flash memory

ERASE BOOT VECTOR (SBV)

Erase the boot vector

PROGRAM BOOT VECTOR (SBV)

Write the boot vector

PROGRAM EXTRA BYTE (EB)

Write the extra byte

READ DATA BYTE

READ EEPROM BYTE

READ FAMILY CODE

READ MANUFACTURER CODE

READ PRODUCT NAME

READ REVISION NUMBER

READ STATUS BIT (BSB)

Read the status bit

READ BOOT VECTOR (SBV)

Read the boot vector

READ EXTRA BYTE (EB)

Read the extra byte

PROGRAM X2

Write the hardware flag for X2 mode

READ X2

Read the hardware flag for X2 mode

PROGRAM BLJB

Write the hardware flag BLJB

READ BLJB

Read the hardware flag BLJB