DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
496 of 571
NXP Semiconductors
UM10316
Chapter 28: LPC29xx Flash/EEPROM
Completion of these operations is checked via the interrupt status register (INT_STATUS).
This can be done either by polling the corresponding interrupt status or by enabling the
generation of an interrupt via the interrupt enable register (INT_SET_ENABLE).
The following interrupt sources are available:
•
END_OF_BURN; indicates the completion of burning a page.
•
END_OF_ERASE; indicates the completion of erasing one or more sectors.
•
END_OF_MISR; indicates the completion of a signature generation (MISR).
For each of these interrupt sources generation of an interrupt can be enabled
(INT_SET_ENABLE register) or disabled (INT_CLR_ENABLE register). The interrupt
status is always available even if the corresponding interrupt is disabled. INT_STATUS
indicates the raw, unmasked interrupt status.
Remark:
The interrupt status of an operation should be cleared via the
INT_CLR_STATUS register before starting the operation, otherwise the status might
indicate completion of a previous operation.
Remark:
Access to flash memory is blocked during asynchronous operations and results
in wait-states. Any interrupt service routine that needs to be serviced during this period
must be stored entirely outside flash memory (e.g. in internal RAM).
Remark:
To detect completion of an operation (e.g. erase or burn) it is also possible to
poll the interrupt status register. This register indicates the raw interrupt status; i.e. the
status is independent of whether an interrupt is enabled or not. In this case the interrupts
of the Flash Memory Controller must be disabled (default value after reset).
Polling is the easiest way to detect completion of an operation. This method is also used
in the previous examples.
3.8.1 FMC interrupt bit description
gives the interrupts for the FMC. The first column gives the bit number in
the interrupt registers. For a general explanation of the interrupt concept and a description
of the registers see
.
3.9 EEPROM command register
The EEPROM command register is used to select and start a read, write or
erase/program operation. Read and erase/program operations are started on the
EEPROM device as a side-effect of writing to this register. (Write operations are started as
a side-effect of writing to the write data register).
Table 426. FMC interrupt sources
Register
bit
Interrupt source
Description
31 to 3
unused
Unused
2
END_OF_MISR
BIST signature generation has finished
1
END_OF_BURN
Page burning has finished
0
END_OF_ERASE
Erasing of one or more sectors has finished