AN2690 Freescale Semiconductor / Motorola, AN2690 Datasheet - Page 26

no-image

AN2690

Manufacturer Part Number
AN2690
Description
Low Frequency EEPROM Emulation on the MC68HLC908QY4
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2690
MainLoop:
DisableLEDs:
ChkSw1:
ChkSwEn:
RstDebounce:
ChkLedUpdate:
SkipLedDriver:
EndMainLoop:
ProgEeprom:
26
brclr
brset
brclr
brclr
mov
bclr
bra
brset
lda
sta
and
sta
bset
brclr
bclr
bra
brset
dec
bne
bset
bset
mov
brclr
brset
bsr
bclr
bclr
bra
SYSTEM_TICK_FLAG,ApplicationFlags, MainLoop
PROG_EEPROM_FLAG, ApplicationFlags, ProgEeprom
PTB1, PORTB, DisableLEDs
DISABLE_LED_FLAG,ApplicationFlags, ChkSw1
CopyLedPattern, PORTB
DISABLE_LED_FLAG, ApplicationFlags
ChkSw1
DISABLE_LED_FLAG, ApplicationFlags, ChkSw1
PORTB
CopyLedPattern
#%10000111
PORTB
DISABLE_LED_FLAG, ApplicationFlags
PTB0, PORTB, ChkSwEn
SW_ENABLE_FLAG, ApplicationFlags;Enable switch
RstDebounce
SW_ENABLE_FLAG, ApplicationFlags,ChkLedUpdate
DebounceCounter
ChkLedUpdate
PROG_EEPROM_FLAG, ApplicationFlags ;Timeout
SW_ENABLE_FLAG, ApplicationFlags;Disable switch
#DEBOUNCE_TIME, DebounceCounter
UPDATE_LED_FLAG, ApplicationFlags, EndMainLoop
DISABLE_LED_FLAG, ApplicationFlags, SkipLedDriver
LedDriver
UPDATE_LED_FLAG, ApplicationFlags
SYSTEM_TICK_FLAG,ApplicationFlags
MainLoop
Low Frequency EEPROM Emulation on the MC68HLC908QY4
Freescale Semiconductor, Inc.
For More Information On This Product,
;Are Leds already disabled. Disabled if DISABLE_LED_FLAG =1
Go to: www.freescale.com
;Are Leds to be restored. Restore if DISABLE_LED_FLAG =1
;Wait for interrupt
;Are Leds to be disabled. Disable if PTB1 = 0
;Restore Led pattern
;Clear disable LED flags
;Store Current LED pattern
;Clear bits 6,5,4,3
;Indicate Leds are diabled
;Switch pressed - PTB0 = 0
;Look to see if switch is enabled
;Check for Timeout?
;Reset debounce counter for next itereation
;Are leds disabled?
;Reset LED update flag for next iteration
;Reset for next iteration
MOTOROLA

Related parts for AN2690