Datasheet
Table Of Contents
- List of Sections
- Table of Contents
- General Description
- Central Processing Unit (CPU)
- Pinout and Signal Description
- System Configuration
- Registers
- Operating Modes
- Resource Mapping
- Bus Control and Input/Output
- Resets and Interrupts
- Voltage Regulator (VREG)
- Flash EEPROM 256K
- EEPROM 4K
- Port Integration Module
- Clocks and Reset Generator (CRG)
- Pulse Width Modulator (PWM)
- Enhanced Capture Timer (ECT)
- Serial Communications Interface (SCI)
- Serial Peripheral Interface (SPI)
- Inter-IC Bus (IIC)
- MSCAN
- Analog to Digital Converter
- Byte Data Link Controller Module
- Contents
- Overview
- Features
- Block Diagram
- Register Map
- Functional Description
- Register Descriptions
- External Pin Descriptions
- Reset Initialization/Basic Operation
- Transmitting A Message
- Receiving A Message
- Transmitting An In-Frame Response (IFR)
- Receiving An In-Frame Response (IFR)
- Special BDLC Operations
- Modes of Operation
- Interrupt Operation
- Low Power Options
- Background Debug Module (BDM)
- Breakpoint (BKP) Module
- Revision History
- Glossary
- Literature Updates

Flash EEPROM 256K
Functional Description
MC9S12DP256 — Revision 1.1
Flash EEPROM 256K
2. Write to the (core) PPAGE register ($x030) to select one of the
16K page to be programmed if programming in the $8000–$BFFF
address range. There is no need to set PPAGE when
programming in the $4000–$7FFF or $C000–$FFFF address
ranges.
After this initialization step the CBEIF flag should be tested to ensure
that the address, data and command buffers are empty. If so, the
command sequence can be started. The 3-step command sequence
must be strictly adhered to and no intermediate writes to Flash registers
are permitted between the 3 steps. The command sequence is as
follows:
1. Write an aligned data word (16-bits) to be programmed to the flash
address space between $4000 and $FFFF. The address and data
will be stored in internal buffers. For program, all address bits are
valid. For erase, the value of the data bytes is don’t care. For mass
erase the address can be anywhere in the available address
space of the 64K byte block to be erased. For sector erase the
address bits 8:0 are don’t cared.
2. Write the program or erase command to the command buffer.
3. Reset CBEIF flag by writing a “1”. This will launch the command.
The ACCERR and PVIOL flags should be tested to ensure the
command sequence was valid. Five cycles after the CBEIF flag is
cleared the CCIF flag will be cleared by hardware indicating that
the command was successfully launched. The CBEIF flag will be
set again indicating the address, data and command buffers are
ready for a new command sequence to begin.
The completion of the command is indicated by the CCIF flag setting
(Command Complete Interrupt Flag)
The Command State Machine will flag errors in program or erase
sequences by means of the ACCERR (access error) and PVIOL
(protection violation) flags in the FSTAT register. An erroneous
command sequence will immediately abort and set the appropriate flag.
The user has then to clear the ACCERR or PVIOL flags before being
able to commence another command sequence.
The ACCERR flag will be set during the command sequence if any of the
following illegal operations are performed. Such operations will cause
the command sequence to immediately abort:
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...