AN1827 Freescale Semiconductor / Motorola, AN1827 Datasheet - Page 49

no-image

AN1827

Manufacturer Part Number
AN1827
Description
Programming and Erasing FLASH Memory on the MC68HC908AS60
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
/* incidental damages. "Typical" parameters can and do vary in different
/* applications. All operating parameters, including "Typicals" must be
/* validated for each customer application by customer’s technical
/* experts. Motorola does not convey any license under its patent rights
/* nor the rights of others. Motorola products are not designed,
/* intended, or authorized for use as components in systems intended for
/* surgical implant into the body, or other applications intended to
/* support or sustain life, or for any other application in which the
/* failure of the Motorola product could create a situation where
/* personal injury or death may occur. Should Buyer purchase or use
/* Motorola products for any such intended or unauthorized application,
/* Buyer shall indemnify and hold Motorola and its officers, employees,
/* subsidiaries, affiliates, and distributors harmless against all
/* claims, costs, damages, and expenses, and reasonable attorney fees
/* arising out of, directly or indirectly, any claim of personal injury
/* or death associated with such unintended or unauthorized use, even if
/* such claim alleges that Motorola was negligent regarding the design or
/* manufacture of the part. Motorola and the Motorola symbol are
/* registered trademarks of Motorola, Inc.
/**********************************************************************************/
/**********************************************************************************/
/*****
/**********************************************************************************/
#include <as60_flash_frk.c>
#include <prog_er_var.c>
/**********************************************************************************/
/*****
/**********************************************************************************/
#define
#define
#define
#define
/**********************************************************************************/
/*****
/**********************************************************************************/
extern void
extern void
/**********************************************************************************/
/*****
/**********************************************************************************/
/* This routine initializes the 908AS60 before calling the erasing
/* routine, EraseRoutine. If a user plans to incorporate EraseRoutine
/* into his/her program, make sure the FLASH control registers and the
/* variable FLASH_addr are initialized before calling EraseRoutine.
/* After the initialization, EraseRoutine is called to erase a data
AN1827
MOTOROLA
eraseallrows
erasehalfrows 0x10
erase8rows
erase1row
EraseRoutine
writeFLCR
Freescale Semiconductor, Inc.
0x00
0x20
0x30
For More Information On This Product,
Program-Specific Defines
(void);
(unsigned char);
Function Definitions
Go to: www.freescale.com
Erase Main Routine
Include Files
/* Equates for the registers and bits */
/* of the HC908AS60 that are used
/* RAM variable definitions
/* full array erase: 32 Kbytes
/*
/* one-half array erase: 16 Kbytes
/*
/* eight row erase:
/*
/* single row erase: 64 Bytes
/*
cared addresses A15-A14
cared addresses A15-A9
cared addresses A15-A6
cared addresses A15
512 Bytes
Application Note
C Source Code
*****/
*****/
*****/
*****/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
49

Related parts for AN1827