AN2184 Freescale Semiconductor / Motorola, AN2184 Datasheet - Page 47

no-image

AN2184

Manufacturer Part Number
AN2184
Description
MCF5272 Interrupt Service Routine for the Physical Layer Interface Controller
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
EndASR
;************************************************************
;*
;************************************************************
;*
;***********************************************************
Port0MonitorChanTx:
Port0MonitorChanRx:
FirstByte:
SecondByte:
;*****************************************************************
;*
;*****************************************************************
Port0CommandIndTx:
Port0CommandIndRx:
Port0DeacReq:
Port0DeacConf:
nop
move.l
move.l
move.l
move.b
move.b
move.b
move.l
rte
move.b
jsr
bra
move.w
jsr
move.w
andi.l
cmp.l
beq
move.w
andi.l
cmp.l
beq
bra
move.w
bra
move.w
bra
move.l
jsr
bra
move.l
move.b
andi.l
cmp.l
beq
cmp.l
beq
cmp.l
beq
cmp.l
beq
bra
move.b
move.b
jsr
bra
nop
Monitor Channel Subroutine
Port0 Subroutines
Command Indicate Subroutine
Freescale Semiconductor, Inc.
For More Information On This Product,
#$0,D1
#$0,D2
#$0,D3
#$0,D4
#$0,D5
#$0,D6
#$0,D7
PGMTS(A5),D3
Port0GMTCheck
EndASR
P0GMR(A5),D3
Port0GMRCheck
D3,D4
#$000000FF,D4
#$00000035,D4
FirstByte
D3,D4
#$000000FF,D4
#$000000CF,D4
SecondByte
EndASR
D3,D5
EndASR
D3,D6
EndASR
PGCITSR(A5),D3
Port0Rcheck
EndASR
#0,D3
P0GCIR(A5),D3
#$000000FF,D3
#$00000010,D3
Port0DeacReq
#$00000018,D3
Port0ActInd
#$0000001C,D3
EndASR
#$0000001F,D3
Port0DeacInd
EndASR
#$1F,D0
D0,P0GCIT(A5)
Port0Rcheck
EndASR
MCF5272 Interrupt Service Routine
Go to: www.freescale.com
; clear all registers
; End of ISR
; read PGMTS to clear the bit
; to make sure GMT=0
; ends the CI Tx
; read GMR
; to make sure R=0
; Save D3 into D4
; to access to NR5 (MC145574)
; if equal go to FirstByte
; otherwise continue
; $CF is NR5 Value of MC145574
; if equal go to SecondByte
; ends the ISR
; move D3 into D5 to check
; move D3 into D6 to check
; clear the bit
; to make sure R=0
; Move GCR0 into D3
; Deactivation Request
; Activation Indication Value
; Activation Confirmed
; nothing to do
; Deactivation Indication
; Send Deactivation Indication
; in response of dea Request
; to make sure R=0
; nothing else to do
Appendix A Software Configuration
*
*
*
47

Related parts for AN2184