AN2504 Freescale Semiconductor / Motorola, AN2504 Datasheet - Page 22

no-image

AN2504

Manufacturer Part Number
AN2504
Description
On-Chip FLASH Programming API for CodeWarrior Software
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2504/D
22
On-Chip FLASH Programming API for CodeWarrior Software
/********************************************************************
/********************************************************************
Byte VerifyRange(Word *_ini, Byte
/********************************************************************
void ErasePage(Word *_page);
* ProgramRangeX: Programs a range of FLASH after verifying
*
*
*
* Parameters:
*
*
*
* Entry Conditions: DATA contains the data to be programmed
*
* Exit Conditions:
*
* Return:
*
* Remarks:
*/
Byte ProgramRangeX(Word *_ini, Byte
* VerifyRange: Verifies a range of FLASH against the data
*
*
*
* Parameters:
*
*
*
* Entry Conditions: DATA contains the data to be verified.
*
* Exit Conditions:
*
*
* Return:
*
* Remarks:
*/
* ErasePage: It erases a PAGE of FLASH
*
* Parameters:
* *
* Entry Conditions: None.
*
* Exit Conditions:
*
* Return:
*
* Remarks:
*
*/
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
contained in DATA. It can also be used to
read a range of FLASH into RAM.
the range is blank. If it isn't blank it
doesn't programs and returns FAIL.
_*ini: pointer to the starting address
_num: length of the range.
None.
SUCCESS or FAIL.
_num must be less to or equal to 64
_*ini: pointer to the starting address
_num: length of the range.
DATA is overwritten with contents of FLASH.
The checksum is stored in _ini;
The byte received.
_num must be less to or equal to 64
*_page: pointer to any address within
Interrupts are disabled.
None.
All bytes within that PAGE will be driven
to 0xFF
of the range.
of the range.
the PAGE to be erased.
_num);
_num);
MOTOROLA

Related parts for AN2504