beautypg.com

status of the flash memory, selecting fm1/fm1, Preliminary – Rainbow Electronics T89C51CC02 User Manual

Page 21

background image

Rev.A - May 17, 2001

21

Preliminary

T89C51CC02

The FLASH memory enters a busy state as soon as programming is launched. In this state, the memory is no
more available for fetching code. Thus to avoid any erratic execution during programming, the CPU enters Idle
mode. Exit is automatically performed at the end of programming.

Caution:
Interrupts that may occur during programming time must be disable to avoid any spurious exit of the idle mode.

7.3.3. Status of the flash memory

The bit FBUSY in FCON register is used to indicate the status of programming.

FBUSY is set when programming is in progress.

7.3.4. Selecting FM1/FM1

The bit ENBOOT in AUXR1 register is used to choose between FM0 and FM1 mapped up to F800h.