AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 62
![no-image](/images/no-image-200.jpg)
AN2156
Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN2156.pdf
(84 pages)
- Current page: 62 of 84
- Download datasheet (509Kb)
Application Note
***************************************************************************
*****
***************************************************************************
FlashErase:
PAGE_Erase:
62
;-----------------------------------------------------------------;
; Delay Time Evaluation
;
;
;
;-----------------------------------------------------------------;
;-----------------------------------------------------------------;
; Delay Time tNVS Evaluation
;
;-----------------------------------------------------------------;
; Delay Evaluation: Point S1
;
; Delay Evaluation: Point E1
;
;-----------------------------------------------------------------;
; Delay Time tERASE Evaluation
;
;-----------------------------------------------------------------;
; Delay Evaluation: Point S2
;
; Delay Evaluation: Point E2
Initialize Port D bit 3 as output high
bset
bset
sei
ldhx
sta
ora
jsr
lda
lda
sta
Measure low level period on Port D bit 3 pin using a scope
bclr
lda
dbnza *
bset
lda
jsr
brset MASS,temp,MASS_Erase
Measure low level period on Port D bit 3 pin using a scope
bclr
lda
sta
jsr
3,PTD
3,DDRD
FLASH_addr
temp
#erase.
WriteFLCR
fl1bpr
fl2bpr
,X
3,PTD
#$8
3,PTD
#hven.
WriteFLCR
3,PTD
#!1
times
ms_delay
SST FLASH Erase Subroutine
Freescale Semiconductor, Inc.
For More Information On This Product,
;Set Port D bit 3
;Select output for Port D bit 3
;Disable interrupts
;Load the starting address of the area
; to be erased in the HX registers
;Store a value in accumulator to temp
;Step 1 - Set the ERASE bit
; If MASS bit is set, the MASS erase will
; be performed
; If MASS bit is clear, the PAGE erase
; will be performed
;Step 2 - Read from block protect
; registers
;Step 3 - Write to any FLASH address
; within the area address range to be
; erased with any data value
;Clear Port D bit 3
;Step 4 - Wait for time tNVS
; 2 + (3 x 8) cycles = 26 cycles (10.6us)
;Set Port D bit 3
;Step 5 - Set the HVEN bit
;If MASS erase, jump to MASS_Erase
;PAGE Erase
;Clear Port D bit 3
;Step 6 - Wait for time tERASE (1.0ms)
(Time between points S1 and E1)
Go to: www.freescale.com
(Time between points S2 and E2)
*****
;
;
;
;
;
;
;
;
MOTOROLA
AN2156
Related parts for AN2156
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AN177](/images/no-image3.png)
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
![AN1268](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
![AN1315](/images/no-image3.png)
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
![AN1998](/images/no-image3.png)
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
![AN2124](/images/no-image3.png)
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
![AN2428](/images/no-image3.png)
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
![AN2708](/images/no-image3.png)
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
![AN2783](/images/no-image3.png)
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
![MC33394DH](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
![MC33394DWB](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
![MSC7110](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
![MSC7116](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
![MSC7119](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
![MSC7118](/images/no-image3.png)
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
![MSC8101](/images/no-image3.png)
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola