AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 83
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: 83 of 84
- Download datasheet (509Kb)
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* Full Functional Description Of Subroutine:
*
*
*
***************************************************************************
***************************************************************************
*****
***************************************************************************
AutoRoutine:
Clear_EEPGM1:
Clear_EEPGM2:
AutoRoutine_End:
AN2156
MOTOROLA
Entry Label:
Entry Conditions:
Number of Exit Points:
Exit Label:
Exit Conditions:
AutoEEPROM.srt contains one primary subroutine called AutoRoutine.*
This demonstrates EEPROM erasing and programming in the AUTO mode.*
The routine also calls another subroutine WriteEECR.
sei
jsr
lda
ldhx
sta
lda
jsr
lda
and
bne
lda
and
bne
lda
jsr
lda
sta
sta
cli
rts
WriteEECR
data
EEPROM_addr
,X
#eepgm.
WriteEECR
EE1CR
#$01
Clear_EEPGM1
EE2CR
#$01
Clear_EEPGM2
#eelat.
WriteEECR
#$00
EE1CR
EE2CR
EEPROM AUTO Program and Erase Subroutine
Freescale Semiconductor, Inc.
For More Information On This Product,
;Disable interrupts
;Step 1 - Set up EERAS0, EERAS1 for a
; desired operation, and set EELAT and
; AUTO
;Step 2 - For programming, copy one byte
; data from the RAM buffer to the
; appropriate EEPROM location
;Step 3 - Set EEPGM bit
;Step 4 - Wait until EEPGM bit is cleared
; Checks included for both EEPGM registers
; since the programmed byte could be in
; either array
;Step 5 - Clear EELAT bit
;Clear all bits in the EExCR
;Enable interrupts
AutoRoutine, WriteEECR
AutoRoutine
WriteEECR
AutoRoutine
WriteEECR
AutoRoutine
WriteEECR
Go to: www.freescale.com
2
2 bytes address defined at *
1 programming byte located *
2 bytes address defined at *
EECR (EEPROM Control
EEPROM_addr
at variable data (the
erasing operation is not
required)
EEPROM_addr
Register) bit definition
passed in accumulator
AutoRoutine_End
WriteEECR_End
None
None
EEPROM AUTO Mode Assembly Source Code
*****
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Application Note
83
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