AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 75
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: 75 of 84
- Download datasheet (509Kb)
EEPROMroutine_End:
***************************************************************************
*****
***************************************************************************
* This routine determines whether EE1CR or EE2CR should be written to and *
* which bit(s) in the EExCR is set or clear based on the accumulator
* value and the EEPROM address specified by EEPROM_addr.
* Initializations required:
*
*
*
* Values returned:
*
***************************************************************************
WriteEECR:
EEPROM2:
EEPROM1:
WriteEECR_End:
AN2156
MOTOROLA
; Delay Evaluation: Point E1
;
;-----------------------------------------------------------------;
; Delay Time tEEFPV Evaluation
;
;-----------------------------------------------------------------;
; Delay Evaluation: Point S2
;
; Delay Evaluation: Point E2
;
- Set bit(s) in accumulator for making bit(s) in the EExCR set or
- Load EEPROM_addr to HX registers
- None
clear
sta
jsr
bset
lda
jsr
Measure low level period on Port D bit 3 pin using a scope
bclr
lda
dbnza *
bset
lda
jsr
lda
sta
sta
cli
rts
cphx
bhs
cphx
bhs
eor
sta
bra
eor
sta
rts
times
ms_delay
3,PTD
#eepgm.
WriteEECR
3,PTD
#$52
3,PTD
#eelat.
WriteEECR
#$00
EE1CR
EE2CR
#EE2DIVHNVR
EEPROM2
#eeprom-1
EEPROM1
EE2CR
EE2CR
WriteEECR_End
EE1CR
EE1CR
Write to EEPROM Control Register
Freescale Semiconductor, Inc.
For More Information On This Product,
; tEEBYTE/tEEBULK/tEEBLOCK/tEEPGM
; (all are 10 ms)
;Set Port D bit 3
;Step 5 - Clear EEPGM bit
;Clear Port D bit 3
;Step 6 - Wait for time tEEFPV (101us)
; 2 + (3 x 82) cycles = 248 cycles
;Set Port D bit 3
;Step 7 - Clear EELAT bit
;Clear all bits in the EExCR
;Enable interrupts
;If address >= $FF70, branch to EEPROM2
;If address >= $0800, write to EEPROM1
;Write to EE2CR register
;Write to EE1CR register
Go to: www.freescale.com
(Time between points S2 and E2)
Standard EEPROM Assembly Source Code
;
;
*****
*
*
*
*
*
*
*
*
Application Note
75
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