文档介绍:Freescale Semiconductor Document Number: AN3743
Application Note Rev. 0, 10/2008
Emulated EEPROM Quick Start
Guide
by: Matthew Grant
16-Bit Applications
Freescale Semiconductor
1 Introduction Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Emulated EEPROM. . . . . . . . . . . . . . . . . . . . . . . . . 1
Emulated EEPROM Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 S12XE EEE in the S12X Memory Map . . . . . . . . . . . . . . 2
Some families of the S12X series of microcontrollers 3 Configurations of the Enhanced EEPROM Region . . . . . 3
Launching mands . . . . . . . . . . . . . . . . . . 4
(MCUs), such as the MC9S12XEP100, have an Checking for Errors . . . . . . . . . . . . . . . . . . . . . . . . . 6
enhanced region labeled as EEPROM in the memory 4 EEEPROM Quick Start Project Setup . . . . . . . . . . . . . . . 7
5 Accessing EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
map. This region does not contain conventional 6 EEE Quick Start Code Steps. . . . . . . . . . . . . . . . . . . . . 12
EEPROM, but has flash and ponents that can 7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
be managed by the enhanced flash module (FTM) in a
unique manner, allowing the emulation of EEPROM.
Because the FTM allows the partitioning of EEPROM
resources to suit an application, a significant degree of
memory flexibility es available to users.
Objective
The objective of this application note is to accelerate the
introduction of emulated EEPROM (EEE). In particular,
it is suited to individuals familiar with programming and
the use of a debugger but who have little or no experience
© Freescale Semiconductor, Inc., 2008. All rights reserved.
S12XE EEE in the S12X Memory Map
with EEE. This document seeks to teach users through a simple EEE example. Most low-level details are
put a