AN2504 Freescale Semiconductor / Motorola, AN2504 Datasheet - Page 30

no-image

AN2504

Manufacturer Part Number
AN2504
Description
On-Chip FLASH Programming API for CodeWarrior Software
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2504/D
30
On-Chip FLASH Programming API for CodeWarrior Software
/********************************************************************
void EraseFlash(void) {
}
* EraseFlash: It erases the entire FLASH.
*
* Parameters:
*
* Entry Conditions: None.
*
* Exit Conditions:
*
* Return:
*
* Remarks:
*
*
*/
Freescale Semiconductor, Inc.
FLBPR = 0xFF;
CPUSPD = OSC;
CTRLBYT |= 0x40;
ERARNGE();
For More Information On This Product,
Go to: www.freescale.com
None.
None.
None.
All bytes will be driven to 0xFF.
No code in FLASH will be executed after
this function has been called.
// Enables erase/write protection.
// Set Clock Bus Operation speed.
// Set bit 6 to flash erase mode.
// Call ROM-resident routine.
MOTOROLA

Related parts for AN2504