AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 77
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: 77 of 84
- Download datasheet (509Kb)
EEPROM AUTO Mode Source Code Flowcharts
AN2156
MOTOROLA
The main routine AutoEEPROM.mrt initializes the device for erasing
and programming operations. It sets up the clock source and timebase
divider for the EEPROM memory and specifies the value and the
location to be programmed. The routine then performs the EEPROM
erase and program operations by calling AUTOroutine twice.
The AUTOroutine subroutine follow the flowcharts shown in
and
subroutine which is used to set or clear various bits in the EExCR
registers.
The flowcharts for AutoEEPROM.mrt, AUTOroutine.mrt, and
WriteEECR are
Freescale Semiconductor, Inc.
Note:
If proper values have been programmed to EExDIVHNVR
and EExDIVLNVR, this step is not necessary.
Figure 14
For More Information On This Product,
AND TIMEBASE DIVIDER: CONFIG2,
STORE ONE BYTE DATA TO RAM
ADDRESS INTO EEPROM_addr
SET EEPROM CLOCK SOURCE
EExDIVH, EExDIVL (See Note)
LOAD SELECTED EEPROM
AutoEEPROM.mrt
Figure 25. EEPROM AUTO Mode Main Routine
DISABLE COP
DATA BUFFER
ENABLE LVI
Go to: www.freescale.com
closely. Flowcharts are also included for the WriteEECR
Figure
25,
Figure
EEPROM AUTO Mode Source Code Flowcharts
26, and
LOAD byteerase, blockerase, OR bulkerase
Figure
LOAD byteprogram TO ACCUMULATOR
TO PROGRAM EEPROM
CALL AUTOroutine TO
TO ACCUMULATOR
CALL AUTOroutine
ERASE EEPROM
27, respectively.
END
Application Note
Figure 13
77
Related parts for AN2156
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