AN2690 Freescale Semiconductor / Motorola, AN2690 Datasheet - Page 21

no-image

AN2690

Manufacturer Part Number
AN2690
Description
Low Frequency EEPROM Emulation on the MC68HLC908QY4
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
TimerISR Flow
Diagram
MOTOROLA
Low Frequency EEPROM Emulation on the MC68HLC908QY4
This routine is the interrupt service routine (ISR) for the timer overflow. The
SYSTEM_TICK_FLAG is set on every entry of the ISR to indicate a 10 ms
timeout. The ISR also sets the UPDATE_LED_TICK every second to time the
update rate for the LEDs. Finally, the interrupt is serviced by clearing the TOF
flag, before exiting the ISR.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
Figure 13. Timer Interrupt Service Routine
N
LedTimeOutCount = 0?
Dec LedTimeOutCount
SYSTEM_TICK_FLAG
UPDATE_LED_FLAG
LedTimeOutCounter
save H onto stack
Clear TOF Flag
Timer_isr
Reset
RTI
Set
Set
Y
Appendix A: Sample Application
AN2690
21

Related parts for AN2690