AN2184 Freescale Semiconductor / Motorola, AN2184 Datasheet - Page 35

no-image

AN2184

Manufacturer Part Number
AN2184
Description
MCF5272 Interrupt Service Routine for the Physical Layer Interface Controller
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Port0Int:
EndPort0RxB1:
EndPort0TxB1:
EndPort0RxB2:
Port0D: move.w
EndPort0Rx:
Port1Test:
andi.l
cmp.l
beq
move.w
andi.l
cmp.l
bne
move.l
andi.l
cmp.l
beq
move.w
andi.l
cmp.l
bne
move.l
andi.l
cmp.l
beq
move.w
andi.l
cmp.l
bne
move.l
andi.l
cmp.l
beq
move.w
andi.l
cmp.l
bne
move.l
andi.l
cmp.l
beq
andi.l
cmp.l
bne
move.l
andi.l
cmp.l
beq
move.w
andi.l
cmp.l
bne
move.l
andi.l
cmp.l
beq
move.w
Freescale Semiconductor, Inc.
For More Information On This Product,
#$0000003F,D7
#$0,D7
Port1Test
P0ICR(A5),D2
#$00000001,D2
#$00000001,D2
EndPort0RxB1
D1,D7
#$00000001,D7
#$00000001,D7
Port0ReadB1
P0ICR(A5),D2
#$00000008,D2
#$00000008,D2
EndPort0TxB1
D1,D7
#$00000008,D7
#$00000008,D7
Port0TransmitB1
P0ICR(A5),D2
#$00000002,D2
#$00000002,D2
EndPort0RxB2
D1,D7
#$00000002,D7
#$00000002,D7
Port0ReadB2
P0ICR(A5),D2
#$00000010,D2
#$00000010,D2
Port0D
D1,D7
#$00000010,D7
#$00000010,D7
Port0TransmitB2
P0ICR(A5),D2
#$00000004,D2
#$00000004,D2
EndPort0Rx
D1,D7
#$00000004,D7
#$00000004,D7
Port0RxD
P0ICR(A5),D2
#$00000020,D2
#$00000020,D2
Port1Test
D1,D7
#$00000020,D7
#$00000020,D7
Port0TxD
P1ICR(A5),D1
MCF5272 Interrupt Service Routine
Go to: www.freescale.com
; mask with all Port0 bits
; compare to 0
; go to Port1 if not equal
; Read ICR0
; to make sure B1RIE is set
; if not, go to next interrupt
; P0PSR check
; D1 has the PLPSP0 value
; Go to read B1 if bit set
; Read ICR0 to make sure B1TIE
; is set
; B1TDE Test
; go to Transmit B1 if bit set
; Read ICR0 to make sure B2RIE
; is set
; R2RDF Test
; Go to read B2 if bit set
; B2TDE Test
; go to Transmit B2 if bit set
; Read ICR0 to make sure DRIE
; is set
; if not, go to next source
; DRIE is set, needs to
; receive the D data
; Go to Read D if bit set
; Read ICR0(DTIE) to make
; sure the bit is set
; go to next port
; DTDE Test
; IE Test on Port1
Appendix A Software Configuration
35

Related parts for AN2184