AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 61

no-image

AN2156

Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* Full Functional Description Of Subroutine:
*
*
*
*
*
*
*
*
*
*
*
***************************************************************************
AN2156
MOTOROLA
Submodule(s) Called:
Calling Sequence:
Entry Label:
Entry Conditions:
Number of Exit Points:
Exit Label:
Exit Conditions:
SSTflash.srt consists of two primary subroutines called
FlashErase and ProgRow. These demonstrate SST FLASH erasing and
programming algorithms, respectively. The routines also call
other subroutines WriteFLCR and ms_delay. Since delay times must
be met precisely for successful FLASH programming and erasing,
additional software was added to measure the delay times. This
code is included as comments throughout the file. It is
recommended that the user verify all delay times before using
this software for production.
Note: Each delay time related to SST FLASH program and erase
operations was calculated with a bus speed of 2.4576MHz.
Freescale Semiconductor, Inc.
For More Information On This Product,
ProgROW
WriteFLCR
ms_delay
EraseRoutine
Prog8Bytes
WriteFLCR
ms_delay
JSR FlashErase, JSR ProgRow
JSR WriteFLCR, JSR ms_delay
FlashErase, ProgRow, WriteFLCR, ms_delay *
FlashErase
ProgRow
WriteFLCR
ms_delay
FlashErase
ProgRow
WriteFLCR
ms_delay
FlashErase
ProgRow
WriteFLCR
ms_delay
Go to: www.freescale.com
4
2 bytes address defined at *
Mass bit definition passed *
2 bytes address defined at *
2 bytes address defined at *
Maximum 64 programming
1 byte defined at SIZE
2 bytes address defined at *
FLCR (FLASH Control
Delay valiable passed in
FLASH_addr, Buffer_addr
data, size
FLASH_addr
None
WriteFLCR, ms_delay
WriteFLCR
None
None
FLASH_addr
in accumulator
FLASH_addr
Buffer_addr
bytes located at
variables data
FLASH_addr
Register) bit definition
passed in accumulator
times
FlashErase_End
ProgRow_End
WriteFLCR_End
ms_delay_End
None
None
None
None
FLASH Assembly Source Code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Application Note
61

Related parts for AN2156