AN2184 Freescale Semiconductor / Motorola, AN2184 Datasheet - Page 45

no-image

AN2184

Manufacturer Part Number
AN2184
Description
MCF5272 Interrupt Service Routine for the Physical Layer Interface Controller
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Port3B2TDEReset:nop
Port3DTDEReset:nop
The following file describes all the aperiodic interrupts that only occur in GCI mode of operation. Given
that the ports are supposed to work in conjunction with periodic process, this example below does not
show IE tests. The file is as follows:
; PLIC Aperiodic Interrupt Subroutine
; Can handle up to 4 GCI Ports in a dynamic way
; As soon as the action has been taken, the program counter quits
; the interrupt. In case of many interrupts at the same time, the
; program counter will re-enter the Aperiodic Interrupt.
; All the comments will be written for the Port0. For the other Ports, the
; same comments apply.
; Use of register
; D1: PASR Value
; D2: No use
; D3: Monitor Channel Receive or Transmit register
; D4: Monitor Channel Receive or Transmit Buffer of D3
; D5: First Byte of the Received Monitor Channel Register
; D6: Second Byte of the Received Monitor Channel Register
; D7: Buffer of D1
i_PLIC_Aperiodic:
AperPort0:
move.w
andi.l
cmp.l
bne
rts
move.w
andi.l
cmp.l
bne
rts
move.w
move.w
andi.l
cmp.l
bne
move.w
andi.l
cmp.l
bne
move.w
andi.l
cmp.l
bne
move.w
andi.l
cmp.l
bne
bra
move.w
andi.l
cmp.l
beq
move.w
andi.l
Freescale Semiconductor, Inc.
For More Information On This Product,
P3PSR(A5),D3
#$00000010,D3
#$00000000,D3
Port3B2TDEReset
P3PSR(A5),D3
#$00000020,D3
#$00000000,D3
Port3DTDEReset
PASR(A5),D1
D1,D7
#$0000000F,D7
#$0,D7
AperPort0
D1,D7
#$000000F0,D7
#$0,D7
AperPort1
D1,D7
#$00000F00,D7
#$0,D7
AperPort2
D1,D7
#$0000F000,D7
#$0,D7
AperPort3
EndASR
D1,D7
#$0000008,D7
#$00000008,D7
Port0CommandIndRx
D1,D7
#$00000004,D7
MCF5272 Interrupt Service Routine
Go to: www.freescale.com
; Store PASR into D1
; Buffering D1 into D7
; mask D7
; compare with 0
; go to AperPort0 otherwise
; Store PASR into D7
; mask D7
; compare with 0
; go to AperPoprt1 otherwise
; Store PASR into D7
; mask D7
; compare with 0
; go to AperPort2 otherwise
; Store PASR into D7
; mask D7
; compare with 0
; go to AperPort3 otherwise
; exit w/o taking action
; Store PASR into D7
; mask D7
; compare with $8
; if equal, go to CI Receive
; Store PASR into D7
; mask D7
Appendix A Software Configuration
45

Related parts for AN2184