AN1827 Freescale Semiconductor / Motorola, AN1827 Datasheet - Page 52

no-image

AN1827

Manufacturer Part Number
AN1827
Description
Programming and Erasing FLASH Memory on the MC68HC908AS60
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
}
/**********************************************************************************/
/*****
/**********************************************************************************/
#include
/**********************************************************************************/
/**********************************************************************************/
/*
/*
/*
/**********************************************************************************/
/* File Name: as60_flash_frk.c
/*
/* Current Revision: 1.0
/* Current Release Level: RP
/* Current Revision Release Date: 10/02/99
/*
/* Current Release Written By:
/*
/*
/*
/* Compiled Under: HiCross HC08 (HiWare)
/*
/* Project Folder Name: FLASH_2TS
/*
/* Part Family Software Routine Works With: HC08
/* Part Module(s) Software Routine Works With: fls32k_a01
/*
/* Framework Description:
/*
/*
/**********************************************************************************/
52
FLASH_addr = (unsigned char *)0x8000;
for (count = 8; count != 0; count--)
pgmsuccess=Prog8Bytes();
if (pgmsuccess!=0)
else while (1);
This framework was generated using the MC68HC908AT60 General
Release Specification as a reference.
while (1);
<prog_er_srt.c>
data[count-1]=count;
Freescale Semiconductor, Inc.
For More Information On This Product,
HC908AS60 FLASH Framework
Subroutine Body Includes Section
Adeela Gill
Go to: www.freescale.com
Motorola Systems Engineering
Austin, Texas
Copyright (c) Motorola 1999
Ver.: 5.0.5
/*Load FLASH_addr with address of
/* where the 8 bytes should start
/*
/*
/* Fill the RAM array, data, with
/*
/*
/* Program the 8 data bytes
/* Check if a programming error
/*
/* -- Programming failed --
/*
/* -- Programming successful --
/*
/* Prog8Bytes, WriteFLCR and Delay
/* Subroutines
being programmed. Must be XXX0
or XXX8
values to program into FLASH.
(ie. 01,02,03,04,05,06,07,08)
Take appropriate action
End of program
occurred
MOTOROLA
AN1827
*****/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/

Related parts for AN1827