Fast Ethernet Controller (FEC)
16-6
Freescale Semiconductor
MCF51CN128 Reference Manual, Rev. 6
shows the FEC register memory map.
16.4.1
Ethernet Interrupt Event Register (EIR)
When an event occurs that sets a bit in EIR, an interrupt occurs if the corresponding bit in the interrupt
mask register (EIMR) is also set. Writing a 1 to an EIR bit clears it; writing 0 has no effect. This register
is cleared upon hardware reset.
These interrupts can be divided into operational interrupts, transceiver/network error interrupts, and
internal error interrupts. Interrupts which may occur in normal operation are GRA, TXF, TXB, RXF, RXB,
and MII. Interrupts resulting from errors/problems detected in the network or transceiver are HBERR,
BABR, BABT, LC, and RL. Interrupts resulting from internal errors are HBERR and UN.
Table 16-2. FEC Register Memory Map
Offset
Register
Width
(bits)
Access
Reset Value
Section/Page
0x004
Interrupt Event Register (EIR)
32
R/W
0x0000_0000
0x008
Interrupt Mask Register (EIMR)
32
R/W
0x0000_0000
0x010
Receive Descriptor Active Register (RDAR)
32
R/W
0x0000_0000
0x014
Transmit Descriptor Active Register (TDAR)
32
R/W
0x0000_0000
0x024
Ethernet Control Register (ECR)
32
R/W
0xF000_0000
0x040
MII Management Frame Register (MMFR)
32
R/W
Undefined
0x044
MII Speed Control Register (MSCR)
32
R/W
0x0000_0000
0x084
Receive Control Register (RCR)
32
R/W
0x05EE_0001
0x0C4
Transmit Control Register (TCR)
32
R/W
0x0000_0000
0x0E4
Physical Address Low Register (PALR)
32
R/W
Undefined
0x0E8
Physical Address High Register (PAUR)
32
R/W
See Section
0x0EC
Opcode/Pause Duration (OPD)
32
R/W
See Section
0x118
Descriptor Individual Upper Address Register (IAUR)
32
R/W
Undefined
0x11C
Descriptor Individual Lower Address Register (IALR)
32
R/W
Undefined
0x120
Descriptor Group Upper Address Register (GAUR)
32
R/W
Undefined
0x124
Descriptor Group Lower Address Register (GALR)
32
R/W
Undefined
0x144
Transmit FIFO Watermark (TFWR)
32
R/W
0x0100_0001
0x14C
FIFO Receive Bound Register (FRBR)
32
R
0x0000_0600
0x150
FIFO Receive FIFO Start Register (FRSR)
32
R
0x0000_0500
0x180
Pointer to Receive Descriptor Ring (ERDSR)
32
R/W
Undefined
0x184
Pointer to Transmit Descriptor Ring (ETDSR)
32
R/W
Undefined
0x188
Maximum Receive Buffer Size (EMRBR)
32
R/W
Undefined