AN2153 Freescale Semiconductor / Motorola, AN2153 Datasheet - Page 12
AN2153
Manufacturer Part Number
AN2153
Description
A Serial Bootloader for Reprogramming the MC9S12DP256 FLASH Memory
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN2153.pdf
(60 pages)
- Current page: 12 of 60
- Download datasheet (415Kb)
Application Note
FLASH Erasure
12
As previously discussed, each 64-K block is organized in 1024 rows of
32 words. An erase sector contains 8 rows or 512 bytes. Erase
operations may be performed on a sector as small as 512 bytes or on
the entire 65,536 byte block. An erased word reads $FFFF and a
programmed word reads $0000. Program and erase operations are very
similar, differing only in the command written to the FCMD register and
the data written to the FLASH memory array. The FLASH state machine
erase and verify command operation is depicted in the flowchart of
Figure
Before beginning either an erase or program operation, it is necessary
to write a value to the FCLKDIV register. The value written to the
FCLKDIV register programs a down counter used to divide the oscillator
clock, producing a 150-kHz to 200-kHz clock source used to drive the
FLASH memory’s state machine. The most significant bit of the
FCLKDIV register, when set, indicates that the register has been
Freescale Semiconductor, Inc.
TO FCMD REGISTER
WRITE BKSEL[1:0]
WRITE COMMAND
WRITE ALIGNED
For More Information On This Product,
WRITE PPAGE
DATA WORD
REGISTER
7.
CBEIF
FLAG
BITS
SET
?
YES
Go to: www.freescale.com
Figure 7. Erase and Verify Flowchart
NO
NO
DELAY 5 BUS CYCLES
CLEAR CBEIF FLAG
FLAG SET
OR PVIOL
ACCERR
FLAG
CCIF
SET
?
?
NO
YES
PROTECTED OR
BAD COMMAND
FLASH ARRAY
COMPLETED
COMMAND
MOTOROLA
AN2153
Related parts for AN2153
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola