AN2690 Freescale Semiconductor / Motorola, AN2690 Datasheet - Page 22

no-image

AN2690

Manufacturer Part Number
AN2690
Description
Low Frequency EEPROM Emulation on the MC68HLC908QY4
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2690
Software Listing
;/******************************************************************************************
;
;
;File Name
;Engineer
;Location
;Date Created
;Description
;
;
;
;
; Rev
; ---
; 0.0
; 1.0
;
;
;************************************** export symbols *************************************
;**************************** include derivative specific macros ***************************
;*************************************** Equates
;Bit defs for ApplicationFlags
SYSTEM_TICK_FLAG
UPDATE_LED_FLAG
PROG_EEPROM_FLAG
DIRECTION_FLAG
SW_ENABLE_FLAG
DISABLE_LED_FLAG
;Bit masks for ApplicationFlags
mSYSTEM_TICK_FLAG
mUPDATE_LED_FLAG
mPROG_EEPROM_FLAG
mDIRECTION_FLAG
mSW_ENABLE_FLAG
mDISABLE_LED_FLAG
; Equates for ROM Subroutines and start of RAM
EraRnge
PgrRnge
CtrlByt
22
Issue Date
----------
08/01/2004
05/03/2004
XDEF Entry, main, Timer_isr
Include 'qy4_registers.inc'
:
:
:
:
:
EQU 0
EQU 1
EQU 2
EQU 3
EQU 4
EQU 5
EQU %00000001
EQU %00000010
EQU %00000100
EQU %00001000
EQU %00010000
EQU %00100000
EQU $2806
EQU $2809
EQU $88
Low Frequency EEPROM Emulation on the MC68HLC908QY4
main.asm
r29414 (Alan Devine 8/16bit systems)
EKB
05/03/2004
Example of Flash programing when application on 908QY4 is
running from 32768Hz watch crystal.
forces an illigal opcode reset using the STOP command,
programs the FLASH when bus is being driven by an internal
1MHz Osc and then switch back to external 32768Hz clock.
(c) Motorola Inc. 2004 all rights reserved.
Freescale Semiconductor, Inc.
Author
------
A.D.
A.D.
For More Information On This Product,
Go to: www.freescale.com
Change Description
------------------
Initial release to P.T
Version included in Application note.
Add function to disable Leds
Simplify Motorola disclaimer
; Loop timeout flag. Set in Timer_isr
; Indicates that LED's sequence to be updated
; Program Flash when set (set when S1 pushed)
; Direction that Leds move. Left=0, Right=1
; Switch enable. Clear = Enabled; Set = Disabled
; Switch is enabled after a transition 0 -->1 or
; POR occurs
; Indictes if LED's are to be disabled.
; enabled.
;FLASH erase routine in ROM
;FLASH programming routine in ROM
;control byte for ROM subroutines
******************************************
1 - Leds disabled
The application
0 - Leds
MOTOROLA

Related parts for AN2690