AN2184 Freescale Semiconductor / Motorola, AN2184 Datasheet - Page 34

no-image

AN2184

Manufacturer Part Number
AN2184
Description
MCF5272 Interrupt Service Routine for the Physical Layer Interface Controller
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
int2_handler:
int3_handler:
int4_handler:
i_tim1_handler:
i_tim2_handler:
i_tim3_handler:
i_tim4_handler:
i_uart1_handler:
i_uart2_handler:
i_usb0_handler:
i_usb1_handler:
i_usb2_handler:
i_usb3_handler:
i_usb4_handler:
i_usb5_handler:
i_usb6_handler:
i_usb7_handler:
i_dma_handler:
i_ether_rx_handler:
i_ether_tx_handler:
i_ether_ntc_handler:
i_qspi_handler:
int5_handler:
int6_handler:
User_Ram:
Stack:
Init_SSP
The file below deals with the general periodic interrupt service routine including all of the bit handling.
Not all of the overrun and underrun bits are implemented in this file. Nevertheless, those bits have been
verified. Further more, this file has been written as dynamic as possible.
;***********************************************************************
; The program below has been written in the dynamic way. That means
; every time an Interrupt has been handled, the program counter exits
; In case that other bits are set, the program counter will enter the
; ISR again.
;***********************************************************************
; D0 is used for Data
; D1 is used for recovering the PnPSR
; D2 is used for checking the T/RIE bits by reading PnICR
; D3 is used for checking bits
; D4 is used for B2 Data in case of crossing the B1/B2 data
; D5 is used LED if necessary
; D6 is used for D channel
; D7 for comparing values
i_PLIC_Periodic:
Port0Test:move.w P0ICR(A5),D1; Interrupt Config Register
Appendix A Software Configuration
34
andi.l
cmp.l
bne
move.w
move.l
nop
stop
org
ds.b
ds.b
Freescale Semiconductor, Inc.
For More Information On This Product,
#$00008000,D1
#$00008000,D1
Port1Test
P0PSR(A5),D1
D1,D7
#$2700
UserProgram
10
10
MCF5272 Interrupt Service Routine
Go to: www.freescale.com
;Leave 1K for user variables
;Supervisor Stack 1Kbytes
;Initial SSP
; Mask the IE bit
; compare
; Go to Port1
; Port0 is the cause
; Save D1 into D7

Related parts for AN2184