AN2184 Freescale Semiconductor / Motorola, AN2184 Datasheet - Page 53

no-image

AN2184

Manufacturer Part Number
AN2184
Description
MCF5272 Interrupt Service Routine for the Physical Layer Interface Controller
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Port3GMRCheck:
Port3LCheck:
Port3RTxCheck:
Port3RCheck:
The following file is called CoreInit.s. It is the core of the program with the program counter starting at the
address defined by the user. Obviously, this program will require modifications depending on the
evaluation the user wants to perform. This example shows a very generic flow. Users are welcome to make
further modifications, which should not affect the core of the program itself.
Code_Start:
The file shown below is the initialization file configuring some registers in order to perform the right tests.
Before performing any tests, the user definitely needs to know the PLIC registers set to make sure the PLIC
configuration will match the test requirements. The following example tests Port1 in GCI Slave Mode.
Some monitor channel information is sent and the 2kHz rate works. The other ports are off.
;***********************************************************************
;* Different Subroutine used for init and checking GCI/IDL *
;***********************************************************************
GCIInit:
move.w
andi.l
cmp.l
bne
rts
move.w
andi.l
cmp.l
bne
rts
move.w
andi.l
cmp.l
bne
rts
move.b
andi.l
cmp.l
bne
rts
nop
move.l
move.l
move.l
move.l
jsr
jsr
jsr
jsr
jsr
jsr
jsr
jsr
jsr
jsr
rts
Freescale Semiconductor, Inc.
For More Information On This Product,
PASR(A5),D4
#$00002000,D4
#$0,D4
Port3GMRCheck
P3GMT(A5),D4
#$00000200,D4
#$0,D4
Port3LCheck
P3GMT(A5),D4
#$00000100,D4
#$0,D4
Port3RTxCheck
P3GCIT(A5),D4
#$00000010,D4
#$0,D4
Port3RCheck
#$40000000,A3
#$10000000,A6
#$10000000,A5
#$20001000,A7
IntInit
RegisterInit
GCIInit
GCIIntEnable
WaitLoop
CI2F
MonitorAbort
CICommand
ST1BchannelEn
ReadPort0MC
MCF5272 Interrupt Service Routine
Go to: www.freescale.com
; address allocation
; Interrupt Initialization
; Register Initialization
; if used, GCI mode on
; GCI Interrupt on
; loop to configure in GCI
;
; Monitor initialization
; to Initialization CI
; to Send Value to MC
; to make sure GMR=0
; to make sure L=0
; to make sure R=0
; to make sure R=0
Appendix A Software Configuration
53

Related parts for AN2184