![]() |
M480 BSP V3.05.005
The Board Support Package for M480 Series
|
#include <emac_reg.h>
Data Fields | |
__IO uint32_t | CAMCTL |
__IO uint32_t | CAMEN |
__IO uint32_t | CAM0M |
__IO uint32_t | CAM0L |
__IO uint32_t | CAM1M |
__IO uint32_t | CAM1L |
__IO uint32_t | CAM2M |
__IO uint32_t | CAM2L |
__IO uint32_t | CAM3M |
__IO uint32_t | CAM3L |
__IO uint32_t | CAM4M |
__IO uint32_t | CAM4L |
__IO uint32_t | CAM5M |
__IO uint32_t | CAM5L |
__IO uint32_t | CAM6M |
__IO uint32_t | CAM6L |
__IO uint32_t | CAM7M |
__IO uint32_t | CAM7L |
__IO uint32_t | CAM8M |
__IO uint32_t | CAM8L |
__IO uint32_t | CAM9M |
__IO uint32_t | CAM9L |
__IO uint32_t | CAM10M |
__IO uint32_t | CAM10L |
__IO uint32_t | CAM11M |
__IO uint32_t | CAM11L |
__IO uint32_t | CAM12M |
__IO uint32_t | CAM12L |
__IO uint32_t | CAM13M |
__IO uint32_t | CAM13L |
__IO uint32_t | CAM14M |
__IO uint32_t | CAM14L |
__IO uint32_t | CAM15MSB |
__IO uint32_t | CAM15LSB |
__IO uint32_t | TXDSA |
__IO uint32_t | RXDSA |
__IO uint32_t | CTL |
__IO uint32_t | MIIMDAT |
__IO uint32_t | MIIMCTL |
__IO uint32_t | FIFOCTL |
__O uint32_t | TXST |
__O uint32_t | RXST |
__IO uint32_t | MRFL |
__IO uint32_t | INTEN |
__IO uint32_t | INTSTS |
__IO uint32_t | GENSTS |
__IO uint32_t | MPCNT |
__I uint32_t | RPCNT |
__IO uint32_t | FRSTS |
__I uint32_t | CTXDSA |
__I uint32_t | CTXBSA |
__I uint32_t | CRXDSA |
__I uint32_t | CRXBSA |
__IO uint32_t | TSCTL |
__I uint32_t | TSSEC |
__I uint32_t | TSSUBSEC |
__IO uint32_t | TSINC |
__IO uint32_t | TSADDEND |
__IO uint32_t | UPDSEC |
__IO uint32_t | UPDSUBSEC |
__IO uint32_t | ALMSEC |
__IO uint32_t | ALMSUBSEC |
@addtogroup EMAC Ethernet MAC Controller(EMAC) Memory Mapped Structure for EMAC Controller
Definition at line 26 of file emac_reg.h.
EMAC_T::ALMSEC |
[0x0128] Time Stamp Alarm Second Register
Bits | Field | Descriptions |
[31:0] | SEC | Time Stamp Counter Second Alarm
Time stamp counter second part alarm value. This value is only useful when ALMEN (EMAC_TSCTL[5]) high If ALMEN (EMAC_TSCTL[5]) is high, EMAC_TSSEC equals to EMAC_ALMSEC and EMAC_TSSUBSEC equals to EMAC_ALMSUBSEC, Ethernet MAC controller set TSALMIF (EMAC_INTSTS[28]) high. |
Definition at line 3142 of file emac_reg.h.
EMAC_T::ALMSUBSEC |
[0x012c] Time Stamp Alarm Sub Second Register
Bits | Field | Descriptions |
[31:0] | SUBSEC | Time Stamp Counter Sub-second Alarm
Time stamp counter sub-second part alarm value. This value is only useful when ALMEN (EMAC_TSCTL[5]) high If ALMEN (EMAC_TSCTL[5]) is high, EMAC_TSSEC equals to EMAC_ALMSEC and EMAC_TSSUBSEC equals to EMAC_ALMSUBSEC, Ethernet MAC controller set TSALMIF (EMAC_INTSTS[28]) high. |
Definition at line 3143 of file emac_reg.h.
EMAC_T::CAM0L |
[0x000c] CAM0 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3076 of file emac_reg.h.
EMAC_T::CAM0M |
[0x0008] CAM0 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3075 of file emac_reg.h.
EMAC_T::CAM10L |
[0x005c] CAM10 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3096 of file emac_reg.h.
EMAC_T::CAM10M |
[0x0058] CAM10 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3095 of file emac_reg.h.
EMAC_T::CAM11L |
[0x0064] CAM11 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3098 of file emac_reg.h.
EMAC_T::CAM11M |
[0x0060] CAM11 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3097 of file emac_reg.h.
EMAC_T::CAM12L |
[0x006c] CAM12 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3100 of file emac_reg.h.
EMAC_T::CAM12M |
[0x0068] CAM12 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3099 of file emac_reg.h.
EMAC_T::CAM13L |
[0x0074] CAM13 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3102 of file emac_reg.h.
EMAC_T::CAM13M |
[0x0070] CAM13 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3101 of file emac_reg.h.
EMAC_T::CAM14L |
[0x007c] CAM14 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3104 of file emac_reg.h.
EMAC_T::CAM14M |
[0x0078] CAM14 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3103 of file emac_reg.h.
EMAC_T::CAM15LSB |
[0x0084] CAM15 Least Significant Word Register
Bits | Field | Descriptions |
[31:24] | OPERAND | Pause Parameter
In the PAUSE control frame, an OPERAND field defined and controls how much time the destination Ethernet MAC Controller paused The unit of the OPERAND is a slot time, the 512-bit time. |
Definition at line 3106 of file emac_reg.h.
EMAC_T::CAM15MSB |
[0x0080] CAM15 Most Significant Word Register
Bits | Field | Descriptions |
[15:0] | OPCODE | OP Code Field of PAUSE Control Frame
In the PAUSE control frame, an op code field defined and is 0x0001. |
[31:16] | LENGTH | LENGTH Field of PAUSE Control Frame
In the PAUSE control frame, a LENGTH field defined and is 0x8808. |
Definition at line 3105 of file emac_reg.h.
EMAC_T::CAM1L |
[0x0014] CAM1 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3078 of file emac_reg.h.
EMAC_T::CAM1M |
[0x0010] CAM1 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3077 of file emac_reg.h.
EMAC_T::CAM2L |
[0x001c] CAM2 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3080 of file emac_reg.h.
EMAC_T::CAM2M |
[0x0018] CAM2 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3079 of file emac_reg.h.
EMAC_T::CAM3L |
[0x0024] CAM3 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3082 of file emac_reg.h.
EMAC_T::CAM3M |
[0x0020] CAM3 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3081 of file emac_reg.h.
EMAC_T::CAM4L |
[0x002c] CAM4 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3084 of file emac_reg.h.
EMAC_T::CAM4M |
[0x0028] CAM4 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3083 of file emac_reg.h.
EMAC_T::CAM5L |
[0x0034] CAM5 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3086 of file emac_reg.h.
EMAC_T::CAM5M |
[0x0030] CAM5 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3085 of file emac_reg.h.
EMAC_T::CAM6L |
[0x003c] CAM6 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3088 of file emac_reg.h.
EMAC_T::CAM6M |
[0x0038] CAM6 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3087 of file emac_reg.h.
EMAC_T::CAM7L |
[0x0044] CAM7 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3090 of file emac_reg.h.
EMAC_T::CAM7M |
[0x0040] CAM7 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3089 of file emac_reg.h.
EMAC_T::CAM8L |
[0x004c] CAM8 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3092 of file emac_reg.h.
EMAC_T::CAM8M |
[0x0048] CAM8 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3091 of file emac_reg.h.
EMAC_T::CAM9L |
[0x0054] CAM9 Least Significant Word Register
Bits | Field | Descriptions |
[23:16] | MACADDR0 | MAC Address Byte 0
|
[31:24] | MACADDR1 | MAC Address Byte 1
The CAMxL keeps the bit 15~0 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3094 of file emac_reg.h.
EMAC_T::CAM9M |
[0x0050] CAM9 Most Significant Word Register
Bits | Field | Descriptions |
[7:0] | MACADDR2 | MAC Address Byte 2
|
[15:8] | MACADDR3 | MAC Address Byte 3
|
[23:16] | MACADDR4 | MAC Address Byte 4
|
[31:24] | MACADDR5 | MAC Address Byte 5
The CAMxM keeps the bit 47~16 of MAC address The x can be the 0~14 The register pair {EMAC_CAMxM, EMAC_CAMxL} represents a CAM entry and keeps a MAC address. For example, if the MAC address 00-50-BA-33-BA-44 kept in CAM entry 1, the register EMAC_CAM1M is 0x0050_BA33 and EMAC_CAM1L is 0xBA44_0000. |
Definition at line 3093 of file emac_reg.h.
EMAC_T::CAMCTL |
[0x0000] CAM Comparison Control Register
Bits | Field | Descriptions |
[0] | AUP | Accept Unicast Packet
The AUP controls the unicast packet reception If AUP is enabled, EMAC receives all incoming packet its destination MAC address is a unicast address. 0 = EMAC receives packet depends on the CAM comparison result. 1 = EMAC receives all unicast packets. |
[1] | AMP | Accept Multicast Packet
The AMP controls the multicast packet reception If AMP is enabled, EMAC receives all incoming packet its destination MAC address is a multicast address. 0 = EMAC receives packet depends on the CAM comparison result. 1 = EMAC receives all multicast packets. |
[2] | ABP | Accept Broadcast Packet
The ABP controls the broadcast packet reception If ABP is enabled, EMAC receives all incoming packet its destination MAC address is a broadcast address. 0 = EMAC receives packet depends on the CAM comparison result. 1 = EMAC receives all broadcast packets. |
[3] | COMPEN | Complement CAM Comparison Enable Bit
The COMPEN controls the complement of the CAM comparison result If the CMPEN and COMPEN are both enabled, the incoming packet with specific destination MAC address configured in CAM entry will be dropped And the incoming packet with destination MAC address does not configured in any CAM entry will be received. 0 = Complement CAM comparison result Disabled. 1 = Complement CAM comparison result Enabled. |
[4] | CMPEN | CAM Compare Enable Bit
The CMPEN controls the enable of CAM comparison function for destination MAC address recognition If software wants to receive a packet with specific destination MAC address, configures the MAC address into CAM 12~0, then enables that CAM entry and set CMPEN to 1. 0 = CAM comparison function for destination MAC address recognition Disabled. 1 = CAM comparison function for destination MAC address recognition Enabled. |
Definition at line 3073 of file emac_reg.h.
EMAC_T::CAMEN |
[0x0004] CAM Enable Register
Bits | Field | Descriptions |
[0] | CAMxEN | CAM Entry X Enable Bit
The CAMxEN controls the validation of CAM entry x. The CAM entry 13, 14 and 15 are for PAUSE control frame transmission If software wants to transmit a PAUSE control frame out to network, the enable bits of these three CAM entries all must be enabled first. 0 = CAM entry x Disabled. 1 = CAM entry x Enabled. |
Definition at line 3074 of file emac_reg.h.
EMAC_T::CRXBSA |
[0x00d8] Current Receive Buffer Start Address Register
Bits | Field | Descriptions |
[31:0] | CRXBSA | Current Receive Buffer Start Address
The CRXBSA keeps the start address of RX frame buffer that is used by RXDMA currently The CRXBSA is read only and write to this register has no effect. |
Definition at line 3128 of file emac_reg.h.
EMAC_T::CRXDSA |
[0x00d4] Current Receive Descriptor Start Address Register
Bits | Field | Descriptions |
[31:0] | CRXDSA | Current Receive Descriptor Start Address
The CRXDSA keeps the start address of RX descriptor that is used by RXDMA currently The CRXDSA is read only and write to this register has no effect. |
Definition at line 3127 of file emac_reg.h.
EMAC_T::CTL |
[0x0090] MAC Control Register
Bits | Field | Descriptions |
[0] | RXON | Frame Reception ON
The RXON controls the normal packet reception of EMAC If the RXON is set to high, the EMAC starts the packet reception process, including the RX descriptor fetching, packet reception and RX descriptor modification. It is necessary to finish EMAC initial sequence before enable RXON Otherwise, the EMAC operation is undefined. If the RXON is disabled during EMAC is receiving an incoming packet, the EMAC stops the packet reception process after the current packet reception finished. 0 = Packet reception process stopped. 1 = Packet reception process started. |
[1] | ALP | Accept Long Packet
The ALP controls the long packet, which packet length is greater than 1518 bytes, reception If the ALP is set to high, the EMAC will accept the long packet. Otherwise, the long packet will be dropped. 0 = Ethernet MAC controller dropped the long packet. 1 = Ethernet MAC controller received the long packet. |
[2] | ARP | Accept Runt Packet
The ARP controls the runt packet, which length is less than 64 bytes, reception If the ARP is set to high, the EMAC will accept the runt packet. Otherwise, the runt packet will be dropped. 0 = Ethernet MAC controller dropped the runt packet. 1 = Ethernet MAC controller received the runt packet. |
[3] | ACP | Accept Control Packet
The ACP controls the control frame reception If the ACP is set to high, the EMAC will accept the control frame Otherwise, the control frame will be dropped It is recommended that S/W only enable ACP while EMAC is operating on full duplex mode. 0 = Ethernet MAC controller dropped the control frame. 1 = Ethernet MAC controller received the control frame. |
[4] | AEP | Accept CRC Error Packet
The AEP controls the EMAC accepts or drops the CRC error packet If the AEP is set to high, the incoming packet with CRC error will be received by EMAC as a good packet. 0 = Ethernet MAC controller dropped the CRC error packet. 1 = Ethernet MAC controller received the CRC error packet. |
[5] | STRIPCRC | Strip CRC Checksum
The STRIPCRC controls if the length of incoming packet is calculated with 4 bytes CRC checksum If the STRIPCRC is set to high, 4 bytes CRC checksum is excluded from length calculation of incoming packet. 0 = The 4 bytes CRC checksum is included in packet length calculation. 1 = The 4 bytes CRC checksum is excluded in packet length calculation. |
[6] | WOLEN | Wake on LAN Enable Bit
The WOLEN high enables the functionality that Ethernet MAC controller checked if the incoming packet is Magic Packet and wakeup system from Power-down mode. If incoming packet was a Magic Packet and the system was in Power-down, the Ethernet MAC controller would generate a wakeup event to wake system up from Power-down mode. 0 = Wake-up by Magic Packet function Disabled. 1 = Wake-up by Magic Packet function Enabled. |
[8] | TXON | Frame Transmission ON
The TXON controls the normal packet transmission of EMAC If the TXON is set to high, the EMAC starts the packet transmission process, including the TX descriptor fetching, packet transmission and TX descriptor modification. It is must to finish EMAC initial sequence before enable TXON Otherwise, the EMAC operation is undefined. If the TXON is disabled during EMAC is transmitting a packet out, the EMAC stops the packet transmission process after the current packet transmission finished. 0 = Packet transmission process stopped. 1 = Packet transmission process started. |
[9] | NODEF | No Deferral
The NODEF controls the enable of deferral exceed counter If NODEF is set to high, the deferral exceed counter is disabled The NODEF is only useful while EMAC is operating on half duplex mode. 0 = The deferral exceed counter Enabled. 1 = The deferral exceed counter Disabled. |
[16] | SDPZ | Send PAUSE Frame
The SDPZ controls the PAUSE control frame transmission. If S/W wants to send a PAUSE control frame out, the CAM entry 13, 14 and 15 must be configured first and the corresponding CAM enable bit of CAMEN register also must be set. Then, set SDPZ to 1 enables the PAUSE control frame transmission. The SDPZ is a self-clear bit This means after the PAUSE control frame transmission has completed, the SDPZ will be cleared automatically. It is recommended that only enabling SNDPAUSE while EMAC is operating in Full Duplex mode. 0 = PAUSE control frame transmission completed. 1 = PAUSE control frame transmission Enabled. |
[17] | SQECHKEN | SQE Checking Enable Bit
The SQECHKEN controls the enable of SQE checking The SQE checking is only available while EMAC is operating on 10M bps and half duplex mode In other words, the SQECHKEN cannot affect EMAC operation, if the EMAC is operating on 100Mbps or full duplex mode. 0 = SQE checking Disabled while EMAC is operating in 10Mbps and Half Duplex mode. 1 = SQE checking Enabled while EMAC is operating in 10Mbps and Half Duplex mode. |
[18] | FUDUP | Full Duplex Mode Selection
The FUDUP controls that if EMAC is operating on full or half duplex mode. 0 = EMAC operates in half duplex mode. 1 = EMAC operates in full duplex mode. |
[19] | RMIIRXCTL | RMII RX Control
The RMIIRXCTL control the receive data sample in RMII mode It's necessary to set this bit high when RMIIEN (EMAC_CTL[ [22]) is high. 0 = RMII RX control disabled. 1 = RMII RX control enabled. |
[20] | OPMODE | Operation Mode Selection
The OPMODE defines that if the EMAC is operating on 10M or 100M bps mode The RST (EMAC_CTL[24]) would not affect OPMODE value. 0 = EMAC operates in 10Mbps mode. 1 = EMAC operates in 100Mbps mode. |
[22] | RMIIEN | RMII Mode Enable Bit
This bit controls if Ethernet MAC controller connected with off-chip Ethernet PHY by MII interface or RMII interface The RST (EMAC_CTL[24]) would not affect RMIIEN value. 0 = Ethernet MAC controller RMII mode Disabled. 1 = Ethernet MAC controller RMII mode Enabled. NOTE: This field must keep 1. |
[24] | RST | Software Reset
The RST implements a reset function to make the EMAC return default state The RST is a self-clear bit This means after the software reset finished, the RST will be cleared automatically Enable RST can also reset all control and status registers, exclusive of the control bits RMIIEN (EMAC_CTL[22]), and OPMODE (EMAC_CTL[20]). The EMAC re-initial is necessary after the software reset completed. 0 = Software reset completed. 1 = Software reset Enabled. |
Definition at line 3109 of file emac_reg.h.
EMAC_T::CTXBSA |
[0x00d0] Current Transmit Buffer Start Address Register
Bits | Field | Descriptions |
[31:0] | CTXBSA | Current Transmit Buffer Start Address
The CTXDSA keeps the start address of TX frame buffer that is used by TXDMA currently The CTXBSA is read only and write to this register has no effect. |
Definition at line 3126 of file emac_reg.h.
EMAC_T::CTXDSA |
[0x00cc] Current Transmit Descriptor Start Address Register
Bits | Field | Descriptions |
[31:0] | CTXDSA | Current Transmit Descriptor Start Address
The CTXDSA keeps the start address of TX descriptor that is used by TXDMA currently The CTXDSA is read only and write to this register has no effect. |
Definition at line 3125 of file emac_reg.h.
EMAC_T::FIFOCTL |
[0x009c] FIFO Threshold Control Register
Bits | Field | Descriptions |
[1:0] | RXFIFOTH | RXFIFO Low Threshold
The RXFIFOTH controls when RXDMA requests internal arbiter for data transfer between RXFIFO and system memory The RXFIFOTH defines not only the high threshold of RXFIFO, but also the low threshold The low threshold is the half of high threshold always During the packet reception, if the RXFIFO reaches the high threshold, the RXDMA starts to transfer frame data from RXFIFO to system memory If the frame data in RXFIFO is less than low threshold, RXDMA stops to transfer the frame data to system memory. 00 = Depend on the burst length setting If the burst length is 8 words, high threshold is 8 words, too. 01 = RXFIFO high threshold is 64B and low threshold is 32B. 10 = RXFIFO high threshold is 128B and low threshold is 64B. 11 = RXFIFO high threshold is 192B and low threshold is 96B. |
[9:8] | TXFIFOTH | TXFIFO Low Threshold
The TXFIFOTH controls when TXDMA requests internal arbiter for data transfer between system memory and TXFIFO The TXFIFOTH defines not only the low threshold of TXFIFO, but also the high threshold The high threshold is the twice of low threshold always During the packet transmission, if the TXFIFO reaches the high threshold, the TXDMA stops generate request to transfer frame data from system memory to TXFIFO If the frame data in TXFIFO is less than low threshold, TXDMA starts to transfer frame data from system memory to TXFIFO. The TXFIFOTH also defines when the TXMAC starts to transmit frame out to network The TXMAC starts to transmit the frame out while the TXFIFO first time reaches the high threshold during the transmission of the frame If the frame data length is less than TXFIFO high threshold, the TXMAC starts to transmit the frame out after the frame data are all inside the TXFIFO. 00 = Undefined. 01 = TXFIFO low threshold is 64B and high threshold is 128B. 10 = TXFIFO low threshold is 80B and high threshold is 160B. 11 = TXFIFO low threshold is 96B and high threshold is 192B. |
[21:20] | BURSTLEN | DMA Burst Length
This defines the burst length of AHB bus cycle while EMAC accesses system memory. 00 = 4 words. 01 = 8 words. 10 = 16 words. 11 = 16 words. |
Definition at line 3112 of file emac_reg.h.
EMAC_T::FRSTS |
[0x00c8] DMA Receive Frame Status Register
Bits | Field | Descriptions |
[15:0] | RXFLT | Receive Frame LENGTH
The RXFLT keeps the LENGTH field of each incoming Ethernet packet If the bit DENIEN (EMAC_INTEN[9]) is enabled and the LENGTH field of incoming packet has received, the bit DENIF (EMAC_INTSTS[9]) will be set and trigger interrupt. And, the content of LENGTH field will be stored in RXFLT. |
Definition at line 3124 of file emac_reg.h.
EMAC_T::GENSTS |
[0x00b4] MAC General Status Register
Bits | Field | Descriptions |
[0] | CFR | Control Frame Received
The CFRIF high indicates EMAC receives a flow control frame The CFRIF only available while EMAC is operating on full duplex mode. 0 = The EMAC does not receive the flow control frame. 1 = The EMAC receives a flow control frame. |
[1] | RXHALT | Receive Halted
The RXHALT high indicates the next normal packet reception process will be halted because the bit RXON of MCMDR is disabled be S/W. 0 = Next normal packet reception process will go on. 1 = Next normal packet reception process will be halted. |
[2] | RXFFULL | RXFIFO Full
The RXFFULL indicates the RXFIFO is full due to four 64-byte packets are kept in RXFIFO and the following incoming packet will be dropped. 0 = The RXFIFO is not full. 1 = The RXFIFO is full and the following incoming packet will be dropped. |
[7:4] | COLCNT | Collision Count
The COLCNT indicates that how many collisions occurred consecutively during a packet transmission If the packet incurred 16 consecutive collisions during transmission, the COLCNT will be 0 and bit TXABTIF will be set to 1. |
[8] | DEF | Deferred Transmission
The DEF high indicates the packet transmission has deferred once The DEF is only available while EMAC is operating on half-duplex mode. 0 = Packet transmission does not defer. 1 = Packet transmission has deferred once. |
[9] | TXPAUSED | Transmission Paused
The TXPAUSED high indicates the next normal packet transmission process will be paused temporally because EMAC received a PAUSE control frame. 0 = Next normal packet transmission process will go on. 1 = Next normal packet transmission process will be paused. |
[10] | SQE | Signal Quality Error
The SQE high indicates the SQE error found at end of packet transmission on 10Mbps half-duplex mode The SQE error check will only be done while both bit SQECHKEN (EMAC_CTL[17]) is enabled and EMAC is operating on 10Mbps half-duplex mode. 0 = No SQE error found at end of packet transmission. 1 = SQE error found at end of packet transmission. |
[11] | TXHALT | Transmission Halted
The TXHALT high indicates the next normal packet transmission process will be halted because the bit TXON (EMAC_CTL[8]) is disabled be S/W. 0 = Next normal packet transmission process will go on. 1 = Next normal packet transmission process will be halted. |
[12] | RPSTS | Remote Pause Status
The RPSTS indicates that remote pause counter down counting actives. After Ethernet MAC controller sent PAUSE frame out successfully, it starts the remote pause counter down counting When this bit high, it's predictable that remote Ethernet MAC controller wouldn't start the packet transmission until the down counting done. 0 = Remote pause counter down counting done. 1 = Remote pause counter down counting actives. |
Definition at line 3118 of file emac_reg.h.
EMAC_T::INTEN |
[0x00ac] MAC Interrupt Enable Register
Bits | Field | Descriptions |
[0] | RXIEN | Receive Interrupt Enable Bit
The RXIEN controls the RX interrupt generation. If RXIEN is enabled and RXIF (EMAC_INTSTS[0]) is high, EMAC generates the RX interrupt to CPU If RXIEN is disabled, no RX interrupt is generated to CPU even any status bit EMAC_INTSTS[15:1] is set and the corresponding bit of EMAC_INTEN is enabled In other words, if S/W wants to receive RX interrupt from EMAC, this bit must be enabled And, if S/W doesn't want to receive any RX interrupt from EMAC, disables this bit. 0 = RXIF (EMAC_INTSTS[0]) is masked and RX interrupt generation Disabled. 1 = RXIF (EMAC_INTSTS[0]) is not masked and RX interrupt generation Enabled. |
[1] | CRCEIEN | CRC Error Interrupt Enable Bit
The CRCEIEN controls the CRCEIF (EMAC_INTSTS[1]) interrupt generation If CRCEIF (EMAC_INTSTS[1]) is set, and both CRCEIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If CRCEIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the CRCEIF (EMAC_INTSTS[1]) is set. 0 = CRCEIF (EMAC_INTSTS[1]) trigger RX interrupt Disabled. 1 = CRCEIF (EMAC_INTSTS[1]) trigger RX interrupt Enabled. |
[2] | RXOVIEN | Receive FIFO Overflow Interrupt Enable Bit
The RXOVIEN controls the RXOVIF (EMAC_INTSTS[2]) interrupt generation If RXOVIF (EMAC_INTSTS[2]) is set, and both RXOVIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If RXOVIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the RXOVIF (EMAC_INTSTS[2]) is set. 0 = RXOVIF (EMAC_INTSTS[2]) trigger RX interrupt Disabled. 1 = RXOVIF (EMAC_INTSTS[2]) trigger RX interrupt Enabled. |
[3] | LPIEN | Long Packet Interrupt Enable Bit
The LPIEN controls the LPIF (EMAC_INTSTS[3]) interrupt generation If LPIF (EMAC_INTSTS[3]) is set, and both LPIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If LPIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the LPIF (EMAC_INTSTS[3]) is set. 0 = LPIF (EMAC_INTSTS[3]) trigger RX interrupt Disabled. 1 = LPIF (EMAC_INTSTS[3]) trigger RX interrupt Enabled. |
[4] | RXGDIEN | Receive Good Interrupt Enable Bit
The RXGDIEN controls the RXGDIF (EMAC_INTSTS[4]) interrupt generation If RXGDIF (EMAC_INTSTS[4]) is set, and both RXGDIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If RXGDIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the RXGDIF (EMAC_INTSTS[4]) is set. 0 = RXGDIF (EMAC_INTSTS[4]) trigger RX interrupt Disabled. 1 = RXGDIF (EMAC_INTSTS[4]) trigger RX interrupt Enabled. |
[5] | ALIEIEN | Alignment Error Interrupt Enable Bit
The ALIEIEN controls the ALIEIF (EMAC_INTSTS[5]) interrupt generation If ALIEIF (EMAC_INTSTS[5]) is set, and both ALIEIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If ALIEIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the ALIEIF (EMAC_INTSTS[5]) is set. 0 = ALIEIF (EMAC_INTSTS[5]) trigger RX interrupt Disabled. 1 = ALIEIF (EMAC_INTSTS[5]) trigger RX interrupt Enabled. |
[6] | RPIEN | Runt Packet Interrupt Enable Bit
The RPIEN controls the RPIF (EMAC_INTSTS[6]) interrupt generation If RPIF (EMAC_INTSTS[6]) is set, and both RPIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If RPIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the RPIF (EMAC_INTSTS[6]) is set. 0 = RPIF (EMAC_INTSTS[6]) trigger RX interrupt Disabled. 1 = RPIF (EMAC_INTSTS[6]) trigger RX interrupt Enabled. |
[7] | MPCOVIEN | Miss Packet Counter Overrun Interrupt Enable Bit
The MPCOVIEN controls the MPCOVIF (EMAC_INTSTS[7]) interrupt generation If MPCOVIF (EMAC_INTSTS[7]) is set, and both MPCOVIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If MPCOVIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the MPCOVIF (EMAC_INTSTS[7]) is set. 0 = MPCOVIF (EMAC_INTSTS[7]) trigger RX interrupt Disabled. 1 = MPCOVIF (EMAC_INTSTS[7]) trigger RX interrupt Enabled. |
[8] | MFLEIEN | Maximum Frame Length Exceed Interrupt Enable Bit
The MFLEIEN controls the MFLEIF (EMAC_INTSTS[8]) interrupt generation If MFLEIF (EMAC_INTSTS[8]) is set, and both MFLEIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If MFLEIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the MFLEIF (EMAC_INTSTS[8]) is set. 0 = MFLEIF (EMAC_INTSTS[8]) trigger RX interrupt Disabled. 1 = MFLEIF (EMAC_INTSTS[8]) trigger RX interrupt Enabled. |
[9] | DENIEN | DMA Early Notification Interrupt Enable Bit
The DENIEN controls the DENIF (EMAC_INTSTS[9]) interrupt generation If DENIF (EMAC_INTSTS[9]) is set, and both DENIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If DENIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the DENIF (EMAC_INTSTS[9]) is set. 0 = TDENIF (EMAC_INTSTS[9]) trigger RX interrupt Disabled. 1 = TDENIF (EMAC_INTSTS[9]) trigger RX interrupt Enabled. |
[10] | RDUIEN | Receive Descriptor Unavailable Interrupt Enable Bit
The RDUIEN controls the RDUIF (EMAC_INTSTS[10]) interrupt generation If RDUIF (EMAC_INTSTS[10]) is set, and both RDUIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If RDUIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the RDUIF (EMAC_MIOSTA[10]) register is set. 0 = RDUIF (EMAC_INTSTS[10]) trigger RX interrupt Disabled. 1 = RDUIF (EMAC_INTSTS[10]) trigger RX interrupt Enabled. |
[11] | RXBEIEN | Receive Bus Error Interrupt Enable Bit
The RXBEIEN controls the RXBEIF (EMAC_INTSTS[11]) interrupt generation If RXBEIF (EMAC_INTSTS[11]) is set, and both RXBEIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If RXBEIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the RXBEIF (EMAC_INTSTS[11]) is set. 0 = RXBEIF (EMAC_INTSTS[11]) trigger RX interrupt Disabled. 1 = RXBEIF (EMAC_INTSTS[11]) trigger RX interrupt Enabled. |
[14] | CFRIEN | Control Frame Receive Interrupt Enable Bit
The CFRIEN controls the CFRIF (EMAC_INTSTS[14]) interrupt generation If CFRIF (EMAC_INTSTS[14]) is set, and both CFRIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If CFRIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the CFRIF (EMAC_INTSTS[14]) register is set. 0 = CFRIF (EMAC_INTSTS[14]) trigger RX interrupt Disabled. 1 = CFRIF (EMAC_INTSTS[14]) trigger RX interrupt Enabled. |
[15] | WOLIEN | Wake on LAN Interrupt Enable Bit
The WOLIEN controls the WOLIF (EMAC_INTSTS[15]) interrupt generation If WOLIF (EMAC_INTSTS[15]) is set, and both WOLIEN and RXIEN (EMAC_INTEN[0]) are enabled, the EMAC generates the RX interrupt to CPU If WOLIEN or RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated to CPU even the WOLIF (EMAC_INTSTS[15]) is set. 0 = WOLIF (EMAC_INTSTS[15]) trigger RX interrupt Disabled. 1 = WOLIF (EMAC_INTSTS[15]) trigger RX interrupt Enabled. |
[16] | TXIEN | Transmit Interrupt Enable Bit
The TXIEN controls the TX interrupt generation. If TXIEN is enabled and TXIF (EMAC_INTSTS[16]) is high, EMAC generates the TX interrupt to CPU If TXIEN is disabled, no TX interrupt is generated to CPU even any status bit of EMAC_INTSTS[24:17] set and the corresponding bit of EMAC_INTEN is enabled In other words, if S/W wants to receive TX interrupt from EMAC, this bit must be enabled And, if S/W doesn't want to receive any TX interrupt from EMAC, disables this bit. 0 = TXIF (EMAC_INTSTS[16]) is masked and TX interrupt generation Disabled. 1 = TXIF (EMAC_INTSTS[16]) is not masked and TX interrupt generation Enabled. |
[17] | TXUDIEN | Transmit FIFO Underflow Interrupt Enable Bit
The TXUDIEN controls the TXUDIF (EMAC_INTSTS[17]) interrupt generation If TXUDIF (EMAC_INTSTS[17]) is set, and both TXUDIEN and TXIEN (EMAC_INTEN[16]) are enabled, the EMAC generates the TX interrupt to CPU If TXUDIEN or TXIEN (EMAC_INTEN[16]) is disabled, no TX interrupt is generated to CPU even the TXUDIF (EMAC_INTSTS[17]) is set. 0 = TXUDIF (EMAC_INTSTS[17]) TX interrupt Disabled. 1 = TXUDIF (EMAC_INTSTS[17]) TX interrupt Enabled. |
[18] | TXCPIEN | Transmit Completion Interrupt Enable Bit
The TXCPIEN controls the TXCPIF (EMAC_INTSTS[18]) interrupt generation If TXCPIF (EMAC_INTSTS[18]) is set, and both TXCPIEN and TXIEN (EMAC_INTEN[16]) are enabled, the EMAC generates the TX interrupt to CPU If TXCPIEN or TXIEN (EMAC_INTEN[16]) is disabled, no TX interrupt is generated to CPU even the TXCPIF (EMAC_INTSTS[18]) is set. 0 = TXCPIF (EMAC_INTSTS[18]) trigger TX interrupt Disabled. 1 = TXCPIF (EMAC_INTSTS[18]) trigger TX interrupt Enabled. |
[19] | EXDEFIEN | Defer Exceed Interrupt Enable Bit
The EXDEFIEN controls the EXDEFIF (EMAC_INTSTS[19]) interrupt generation If EXDEFIF (EMAC_INTSTS[19]) is set, and both EXDEFIEN and TXIEN (EMAC_INTEN[16]) are enabled, the EMAC generates the TX interrupt to CPU If EXDEFIEN or TXIEN (EMAC_INTEN[16]) is disabled, no TX interrupt is generated to CPU even the EXDEFIF (EMAC_INTSTS[19]) is set. 0 = EXDEFIF (EMAC_INTSTS[19]) trigger TX interrupt Disabled. 1 = EXDEFIF (EMAC_INTSTS[19]) trigger TX interrupt Enabled. |
[20] | NCSIEN | No Carrier Sense Interrupt Enable Bit
The NCSIEN controls the NCSIF (EMAC_INTSTS[20]) interrupt generation If NCSIF (EMAC_INTSTS[20]) is set, and both NCSIEN and TXIEN (EMAC_INTEN[16]) are enabled, the EMAC generates the TX interrupt to CPU If NCSIEN or TXIEN (EMAC_INTEN[16]) is disabled, no TX interrupt is generated to CPU even the NCSIF (EMAC_INTSTS[20]) is set. 0 = NCSIF (EMAC_INTSTS[20]) trigger TX interrupt Disabled. 1 = NCSIF (EMAC_INTSTS[20]) trigger TX interrupt Enabled. |
[21] | TXABTIEN | Transmit Abort Interrupt Enable Bit
The TXABTIEN controls the TXABTIF (EMAC_INTSTS[21]) interrupt generation If TXABTIF (EMAC_INTSTS[21]) is set, and both TXABTIEN and TXIEN (EMAC_INTEN[16]) are enabled, the EMAC generates the TX interrupt to CPU If TXABTIEN or TXIEN (EMAC_INTEN[16]) is disabled, no TX interrupt is generated to CPU even the TXABTIF (EMAC_INTSTS[21]) is set. 0 = TXABTIF (EMAC_INTSTS[21]) trigger TX interrupt Disabled. 1 = TXABTIF (EMAC_INTSTS[21]) trigger TX interrupt Enabled. |
[22] | LCIEN | Late Collision Interrupt Enable Bit
The LCIEN controls the LCIF (EMAC_INTSTS[22]) interrupt generation If LCIF (EMAC_INTSTS[22]) is set, and both LCIEN and TXIEN (EMAC_INTEN[16]) are enabled, the EMAC generates the TX interrupt to CPU If LCIEN or TXIEN (EMAC_INTEN[16]) is disabled, no TX interrupt is generated to CPU even the LCIF (EMAC_INTSTS[22]) is set. 0 = LCIF (EMAC_INTSTS[22]) trigger TX interrupt Disabled. 1 = LCIF (EMAC_INTSTS[22]) trigger TX interrupt Enabled. |
[23] | TDUIEN | Transmit Descriptor Unavailable Interrupt Enable Bit
The TDUIEN controls the TDUIF (EMAC_INTSTS[23]) interrupt generation If TDUIF (EMAC_INTSTS[23]) is set, and both TDUIEN and TXIEN (EMAC_INTEN[16]) are enabled, the EMAC generates the TX interrupt to CPU If TDUIEN or TXIEN (EMAC_INTEN[16]) is disabled, no TX interrupt is generated to CPU even the TDUIF (EMAC_INTSTS[23]) is set. 0 = TDUIF (EMAC_INTSTS[23]) trigger TX interrupt Disabled. 1 = TDUIF (EMAC_INTSTS[23]) trigger TX interrupt Enabled. |
[24] | TXBEIEN | Transmit Bus Error Interrupt Enable Bit
The TXBEIEN controls the TXBEIF (EMAC_INTSTS[24]) interrupt generation If TXBEIF (EMAC_INTSTS[24]) is set, and both TXBEIEN and TXIEN (EMAC_INTEN[16]) are enabled, the EMAC generates the TX interrupt to CPU If TXBEIEN or TXIEN (EMAC_INTEN[16]) is disabled, no TX interrupt is generated to CPU even the TXBEIF (EMAC_INTSTS[24]) is set. 0 = TXBEIF (EMAC_INTSTS[24]) trigger TX interrupt Disabled. 1 = TXBEIF (EMAC_INTSTS[24]) trigger TX interrupt Enabled. |
[28] | TSALMIEN | Time Stamp Alarm Interrupt Enable Bit
The TSALMIEN controls the TSALMIF (EMAC_INTSTS[28]) interrupt generation If TSALMIF (EMAC_INTSTS[28]) is set, and both TSALMIEN and TXIEN (EMAC_INTEN[16]) enabled, the EMAC generates the TX interrupt to CPU If TSALMIEN or TXIEN (EMAC_INTEN[16]) disabled, no TX interrupt generated to CPU even the TXTSALMIF (EMAC_INTEN[28]) is set. 0 = TXTSALMIF (EMAC_INTSTS[28]) trigger TX interrupt Disabled. 1 = TXTSALMIF (EMAC_INTSTS[28]) trigger TX interrupt Enabled. |
Definition at line 3116 of file emac_reg.h.
EMAC_T::INTSTS |
[0x00b0] MAC Interrupt Status Register
Bits | Field | Descriptions |
[0] | RXIF | Receive Interrupt
The RXIF indicates the RX interrupt status. If RXIF high and its corresponding enable bit, RXIEN (EMAC_INTEN[0]), is also high indicates the EMAC generates RX interrupt to CPU If RXIF is high but RXIEN (EMAC_INTEN[0]) is disabled, no RX interrupt is generated. The RXIF is logic OR result of bit logic AND result of EMAC_INTSTS[15:1] and EMAC_INTEN[15:1] In other words, if any bit of EMAC_INTSTS[15:1] is high and its corresponding enable bit in EMAC_INTEN[15:1] is also enabled, the RXIF will be high. Because the RXIF is a logic OR result, clears EMAC_INTSTS[15:1] makes RXIF be cleared, too. 0 = No status bit in EMAC_INTSTS[15:1] is set or no enable bit in EMAC_INTEN[15:1] is enabled. 1 = At least one status in EMAC_INTSTS[15:1] is set and its corresponding enable bit in EMAC_INTEN[15:1] is enabled, too. |
[1] | CRCEIF | CRC Error Interrupt
The CRCEIF high indicates the incoming packet incurred the CRC error and the packet is dropped If the AEP (EMAC_CTL[4]) is set, the CRC error packet will be regarded as a good packet and CRCEIF will not be set. If the CRCEIF is high and CRCEIEN (EMAC_INTEN[1]) is enabled, the RXIF will be high Write 1 to this bit clears the CRCEIF status. 0 = The frame does not incur CRC error. 1 = The frame incurred CRC error. |
[2] | RXOVIF | Receive FIFO Overflow Interrupt
The RXOVIF high indicates the RXFIFO overflow occurred during packet reception While the RXFIFO overflow occurred, the EMAC drops the current receiving packer If the RXFIFO overflow occurred often, it is recommended that modify RXFIFO threshold control, the RXFIFOTH of FFTCR register, to higher level. If the RXOVIF is high and RXOVIEN (EMAC_INTEN[2]) is enabled, the RXIF will be high Write 1 to this bit clears the RXOVIF status. 0 = No RXFIFO overflow occurred during packet reception. 1 = RXFIFO overflow occurred during packet reception. |
[3] | LPIF | Long Packet Interrupt Flag
The LPIF high indicates the length of the incoming packet is greater than 1518 bytes and the incoming packet is dropped If the ALP (EMAC_CTL[1]) is set, the long packet will be regarded as a good packet and LPIF will not be set. If the LPIF is high and LPIEN (EMAC_INTEN[3]) is enabled, the RXIF will be high Write 1 to this bit clears the LPIF status. 0 = The incoming frame is not a long frame or S/W wants to receive a long frame. 1 = The incoming frame is a long frame and dropped. |
[4] | RXGDIF | Receive Good Interrupt
The RXGDIF high indicates the frame reception has completed. If the RXGDIF is high and RXGDIEN (EAMC_MIEN[4]) is enabled, the RXIF will be high Write 1 to this bit clears the RXGDIF status. 0 = The frame reception has not complete yet. 1 = The frame reception has completed. |
[5] | ALIEIF | Alignment Error Interrupt
The ALIEIF high indicates the length of the incoming frame is not a multiple of byte If the ALIEIF is high and ALIEIEN (EMAC_INTEN[5]) is enabled, the RXIF will be high Write 1 to this bit clears the ALIEIF status. 0 = The frame length is a multiple of byte. 1 = The frame length is not a multiple of byte. |
[6] | RPIF | Runt Packet Interrupt
The RPIF high indicates the length of the incoming packet is less than 64 bytes and the packet is dropped If the ARP (EMAC_CTL[2]) is set, the short packet is regarded as a good packet and RPIF will not be set. If the RPIF is high and RPIEN (EMAC_INTEN[6]) is enabled, the RXIF will be high Write 1 to this bit clears the RPIF status. 0 = The incoming frame is not a short frame or S/W wants to receive a short frame. 1 = The incoming frame is a short frame and dropped. |
[7] | MPCOVIF | Missed Packet Counter Overrun Interrupt Flag
The MPCOVIF high indicates the MPCNT, Missed Packet Count, has overflow If the MPCOVIF is high and MPCOVIEN (EMAC_INTEN[7]) is enabled, the RXIF will be high Write 1 to this bit clears the MPCOVIF status. 0 = The MPCNT has not rolled over yet. 1 = The MPCNT has rolled over yet. |
[8] | MFLEIF | Maximum Frame Length Exceed Interrupt Flag
The MFLEIF high indicates the length of the incoming packet has exceeded the length limitation configured in DMARFC register and the incoming packet is dropped If the MFLEIF is high and MFLEIEN (EMAC_INTEN[8]) is enabled, the RXIF will be high Write 1 to this bit clears the MFLEIF status. 0 = The length of the incoming packet does not exceed the length limitation configured in DMARFC. 1 = The length of the incoming packet has exceeded the length limitation configured in DMARFC. |
[9] | DENIF | DMA Early Notification Interrupt
The DENIF high indicates the EMAC has received the LENGTH field of the incoming packet. If the DENIF is high and DENIENI (EMAC_INTEN[9]) is enabled, the RXIF will be high Write 1 to this bit clears the DENIF status. 0 = The LENGTH field of incoming packet has not received yet. 1 = The LENGTH field of incoming packet has received. |
[10] | RDUIF | Receive Descriptor Unavailable Interrupt
The RDUIF high indicates that there is no available RX descriptor for packet reception and RXDMA will stay at Halt state Once, the RXDMA enters the Halt state, S/W must issues a write command to RSDR register to make RXDMA leave Halt state while new RX descriptor is available. If the RDUIF is high and RDUIEN (EMAC_INTEN[10]) is enabled, the RXIF will be high Write 1 to this bit clears the RDUIF status. 0 = RX descriptor is available. 1 = RX descriptor is unavailable. |
[11] | RXBEIF | Receive Bus Error Interrupt
The RXBEIF high indicates the memory controller replies ERROR response while EMAC access system memory through RXDMA during packet reception process Reset EMAC is recommended while RXBEIF status is high. If the RXBEIF is high and RXBEIEN (EMAC_INTEN[11]) is enabled, the RXIF will be high Write 1 to this bit clears the RXBEIF status. 0 = No ERROR response is received. 1 = ERROR response is received. |
[14] | CFRIF | Control Frame Receive Interrupt
The CFRIF high indicates EMAC receives a flow control frame The CFRIF only available while EMAC is operating on full duplex mode. If the CFRIF is high and CFRIEN (EMAC_INTEN[14]) is enabled, the RXIF will be high Write 1 to this bit clears the CFRIF status. 0 = The EMAC does not receive the flow control frame. 1 = The EMAC receives a flow control frame. |
[15] | WOLIF | Wake on LAN Interrupt Flag
The WOLIF high indicates EMAC receives a Magic Packet The CFRIF only available while system is in power down mode and WOLEN is set high. If the WOLIF is high and WOLIEN (EMAC_INTEN[15]) is enabled, the RXIF will be high Write 1 to this bit clears the WOLIF status. 0 = The EMAC does not receive the Magic Packet. 1 = The EMAC receives a Magic Packet. |
[16] | TXIF | Transmit Interrupt
The TXIF indicates the TX interrupt status. If TXIF high and its corresponding enable bit, TXIEN (EMAC_INTEN[16]), is also high indicates the EMAC generates TX interrupt to CPU If TXIF is high but TXIEN (EMAC_INTEN[16]) is disabled, no TX interrupt is generated. The TXIF is logic OR result of bit logic AND result of EMAC_INTSTS[28:17] and EMAC_INTEN[28:17] In other words, if any bit of EMAC_INTSTS[28:17] is high and its corresponding enable bit in EMAC_INTEN[28:17] is also enabled, the TXIF will be high Because the TXIF is a logic OR result, clears EMAC_INTSTS[28:17] makes TXIF be cleared, too. 0 = No status bit in EMAC_INTSTS[28:17] is set or no enable bit in EMAC_INTEN[28:17] is enabled. 1 = At least one status in EMAC_INTSTS[28:17] is set and its corresponding enable bit in EMAC_INTEN[28:17] is enabled, too. |
[17] | TXUDIF | Transmit FIFO Underflow Interrupt
The TXUDIF high indicates the TXFIFO underflow occurred during packet transmission While the TXFIFO underflow occurred, the EMAC will retransmit the packet automatically without S/W intervention If the TXFIFO underflow occurred often, it is recommended that modify TXFIFO threshold control, the TXFIFOTH of FFTCR register, to higher level. If the TXUDIF is high and TXUDIEN (EMAC_INTEN[17]) is enabled, the TXIF will be high Write 1 to this bit clears the TXUDIF status. 0 = No TXFIFO underflow occurred during packet transmission. 1 = TXFIFO underflow occurred during packet transmission. |
[18] | TXCPIF | Transmit Completion Interrupt
The TXCPIF indicates the packet transmission has completed correctly. If the TXCPIF is high and TXCPIEN (EMAC_INTEN[18]) is enabled, the TXIF will be high Write 1 to this bit clears the TXCPIF status. 0 = The packet transmission not completed. 1 = The packet transmission has completed. |
[19] | EXDEFIF | Defer Exceed Interrupt
The EXDEFIF high indicates the frame waiting for transmission has deferred over 0.32768ms on 100Mbps mode, or 3.2768ms on 10Mbps mode. The deferral exceed check will only be done while bit NODEF of MCMDR is disabled, and EMAC is operating on half-duplex mode. If the EXDEFIF is high and EXDEFIEN (EMAC_INTEN[19]) is enabled, the TXIF will be high Write 1 to this bit clears the EXDEFIF status. 0 = Frame waiting for transmission has not deferred over 0.32768ms (100Mbps) or 3.2768ms (10Mbps). 1 = Frame waiting for transmission has deferred over 0.32768ms (100Mbps) or 3.2768ms (10Mbps). |
[20] | NCSIF | No Carrier Sense Interrupt
The NCSIF high indicates the MII I/F signal CRS does not active at the start of or during the packet transmission The NCSIF is only available while EMAC is operating on half-duplex mode If the NCSIF is high and NCSIEN (EMAC_INTEN[20]) is enabled, the TXIF will be high. Write 1 to this bit clears the NCSIF status. 0 = CRS signal actives correctly. 1 = CRS signal does not active at the start of or during the packet transmission. |
[21] | TXABTIF | Transmit Abort Interrupt
The TXABTIF high indicates the packet incurred 16 consecutive collisions during transmission, and then the transmission process for this packet is aborted The transmission abort is only available while EMAC is operating on half-duplex mode. If the TXABTIF is high and TXABTIEN (EMAC_INTEN[21]) is enabled, the TXIF will be high Write 1 to this bit clears the TXABTIF status. 0 = Packet does not incur 16 consecutive collisions during transmission. 1 = Packet incurred 16 consecutive collisions during transmission. |
[22] | LCIF | Late Collision Interrupt
The LCIF high indicates the collision occurred in the outside of 64 bytes collision window This means after the 64 bytes of a frame has been transmitted out to the network, the collision still occurred. The late collision check will only be done while EMAC is operating on half-duplex mode If the LCIF is high and LCIEN (EMAC_INTEN[22]) is enabled, the TXIF will be high. Write 1 to this bit clears the LCIF status. 0 = No collision occurred in the outside of 64 bytes collision window. 1 = Collision occurred in the outside of 64 bytes collision window. |
[23] | TDUIF | Transmit Descriptor Unavailable Interrupt
The TDUIF high indicates that there is no available TX descriptor for packet transmission and TXDMA will stay at Halt state. Once, the TXDMA enters the Halt state, S/W must issues a write command to TSDR register to make TXDMA leave Halt state while new TX descriptor is available. If the TDUIF is high and TDUIEN (EMAC_INTEN[23]) is enabled, the TXIF will be high. Write 1 to this bit clears the TDUIF status. 0 = TX descriptor is available. 1 = TX descriptor is unavailable. |
[24] | TXBEIF | Transmit Bus Error Interrupt
The TXBEIF high indicates the memory controller replies ERROR response while EMAC access system memory through TXDMA during packet transmission process Reset EMAC is recommended while TXBEIF status is high. If the TXBEIF is high and TXBEIEN (EMAC_INTEN[24]) is enabled, the TXIF will be high. Write 1 to this bit clears the TXBEIF status. 0 = No ERROR response is received. 1 = ERROR response is received. |
[28] | TSALMIF | Time Stamp Alarm Interrupt
The TSALMIF high indicates the EMAC_TSSEC register value equals to EMAC_ALMSEC register and EMAC_TSSUBSEC register value equals to register EMAC_ALMSUBLSR. If TSALMIF is high and TSALMIEN (EMAC_INTEN[28]) enabled, the TXIF will be high. Write 1 to this bit clears the TSALMIF status. 0 = EMAC_TSSEC did not equal EMAC_ALMSEC or EMAC_TSSUBSEC did not equal EMAC_ALMSUBSEC. 1 = EMAC_TSSEC equals EMAC_ALMSEC and EMAC_TSSUBSEC equals EMAC_ALMSUBSEC. |
Definition at line 3117 of file emac_reg.h.
EMAC_T::MIIMCTL |
[0x0098] MII Management Control and Address Register
Bits | Field | Descriptions |
[4:0] | PHYREG | PHY Register Address
The PHYREG keeps the address to indicate which register of external PHY is the target of the MII management command. |
[12:8] | PHYADDR | PHY Address
The PHYADDR keeps the address to differentiate which external PHY is the target of the MII management command. |
[16] | WRITE | Write Command
The Write defines the MII management command is a read or write. 0 = MII management command is a read command. 1 = MII management command is a write command. |
[17] | BUSY | Busy Bit
The BUSY controls the enable of the MII management frame generation If S/W wants to access registers of external PHY, it set BUSY to high and EMAC generates the MII management frame to external PHY through MII Management I/F The BUSY is a self-clear bit This means the BUSY will be cleared automatically after the MII management command finished. 0 = MII management command generation finished. 1 = MII management command generation Enabled. |
[18] | PREAMSP | Preamble Suppress
The PREAMSP controls the preamble field generation of MII management frame If the PREAMSP is set to high, the preamble field generation of MII management frame is skipped. 0 = Preamble field generation of MII management frame not skipped. 1 = Preamble field generation of MII management frame skipped. |
[19] | MDCON | MDC Clock ON
The MDC controls the MDC clock generation. If the MDCON is set to high, the MDC clock is turned on. 0 = MDC clock off. 1 = MDC clock on. |
Definition at line 3111 of file emac_reg.h.
EMAC_T::MIIMDAT |
[0x0094] MII Management Data Register
Bits | Field | Descriptions |
[15:0] | DATA | MII Management Data
The DATA is the 16 bits data that will be written into the registers of external PHY for MII Management write command or the data from the registers of external PHY for MII Management read command. |
Definition at line 3110 of file emac_reg.h.
EMAC_T::MPCNT |
[0x00b8] Missed Packet Count Register
Bits | Field | Descriptions |
[15:0] | MPCNT | Miss Packet Count
The MPCNT indicates the number of packets that were dropped due to various types of receive errors The following type of receiving error makes missed packet counter increase: 1. Incoming packet is incurred RXFIFO overflow. 2. Incoming packet is dropped due to RXON is disabled. 3. Incoming packet is incurred CRC error. |
Definition at line 3119 of file emac_reg.h.
EMAC_T::MRFL |
[0x00a8] Maximum Receive Frame Control Register
Bits | Field | Descriptions |
[15:0] | MRFL | Maximum Receive Frame Length
The MRFL defines the maximum frame length for received frame If the frame length of received frame is greater than MRFL, and bit MFLEIEN (EMAC_INTEN[8]) is also enabled, the bit MFLEIF (EMAC_INTSTS[8]) is set and the RX interrupt is triggered. It is recommended that only use MRFL to qualify the length of received frame while S/W wants to receive a frame which length is greater than 1518 bytes. |
Definition at line 3115 of file emac_reg.h.
EMAC_T::RPCNT |
[0x00bc] MAC Receive Pause Count Register
Bits | Field | Descriptions |
[15:0] | RPCNT | MAC Receive Pause Count
The RPCNT keeps the OPERAND field of the PAUSE control frame It indicates how many slot time (512 bit time) the TX of EMAC will be paused. |
Definition at line 3120 of file emac_reg.h.
EMAC_T::RXDSA |
[0x008c] Receive Descriptor Link List Start Address Register
Bits | Field | Descriptions |
[31:0] | RXDSA | Receive Descriptor Link-list Start Address
The RXDSA keeps the start address of receive descriptor link-list If the S/W enables the bit RXON (EMAC_CTL[0]), the content of RXDSA will be loaded into the current receive descriptor start address register (EMAC_CRXDSA) The RXDSA does not be updated by EMAC During the operation, EMAC will ignore the bits [1:0] of RXDSA This means that RX descriptors must locate at word boundary memory address. |
Definition at line 3108 of file emac_reg.h.
EMAC_T::RXST |
[0x00a4] Receive Start Demand Register
Bits | Field | Descriptions |
[31:0] | RXST | Receive Start Demand
If the RX descriptor is not available for use of RXDMA after the RXON (EMAC_CTL[0]) is enabled, the FSM (Finite State Machine) of RXDMA enters the Halt state and the frame reception is halted After the S/W has prepared the new RX descriptor for frame reception, it must issue a write command to EMAC_RXST register to make RXDMA to leave Halt state and continue the frame reception. The EMAC_RXST is a write only register and read from this register is undefined. The write to EMAC_RXST register take effect only when RXDMA stayed at Halt state. |
Definition at line 3114 of file emac_reg.h.
EMAC_T::TSADDEND |
[0x011c] Time Stamp Addend Register
Bits | Field | Descriptions |
[31:0] | ADDEND | Time Stamp Counter Addend
This register keeps a 32-bit value for accumulator to enable increment of EMAC_TSSUBSEC. If TSEN (EMAC_TSCTL[0]) and TSMODE (EMAC_TSCTL[2]) are both high, EMAC increases accumulator with this 32-bit value in each HCLK Once the accumulator is overflow, it generates a enable to increase EMAC_TSSUBSEC with an 8-bit value kept in register EMAC_TSINC. |
Definition at line 3139 of file emac_reg.h.
EMAC_T::TSCTL |
[0x0100] Time Stamp Control Register
Bits | Field | Descriptions |
[0] | TSEN | Time Stamp Function Enable Bit
This bit controls if the IEEE 1588 PTP time stamp function is enabled or not. Set this bit high to enable IEEE 1588 PTP time stamp function while set this bit low to disable IEEE 1588 PTP time stamp function. 0 = I EEE 1588 PTP time stamp function Disabled. 1 = IEEE 1588 PTP time stamp function Enabled. |
[1] | TSIEN | Time Stamp Counter Initialization Enable Bit
Set this bit high enables Ethernet MAC controller to load value of register EMAC_UPDSEC and EMAC_UPDSUBSEC to PTP time stamp counter. After the load operation finished, Ethernet MAC controller clear this bit to low automatically. 0 = Time stamp counter initialization done. 1 = Time stamp counter initialization Enabled. |
[2] | TSMODE | Time Stamp Fine Update Enable Bit
This bit chooses the time stamp counter update mode. 0 = Time stamp counter is in coarse update mode. 1 = Time stamp counter is in fine update mode. |
[3] | TSUPDATE | Time Stamp Counter Time Update Enable Bit
Set this bit high enables Ethernet MAC controller to add value of register EMAC_UPDSEC and EMAC_UPDSUBSEC to PTP time stamp counter. After the add operation finished, Ethernet MAC controller clear this bit to low automatically. 0 = No action. 1 = EMAC_UPDSEC updated to EMAC_TSSEC and EMAC_UPDSUBSEC updated to EMAC_TSSUBSEC. |
[5] | TSALMEN | Time Stamp Alarm Enable Bit
Set this bit high enable Ethernet MAC controller to set TSALMIF (EMAC_INTSTS[28]) high when EMAC_TSSEC equals to EMAC_ALMSEC and EMAC_TSSUBSEC equals to EMAC_ALMSUBSEC. 0 = Alarm disabled when EMAC_TSSEC equals to EMAC_ALMSEC and EMAC_TSSUBSEC equals to EMAC_ALMSUBSEC. 1 = Alarm enabled when EMAC_TSSEC equals to EMAC_ALMSEC and EMAC_TSSUBSEC equals to EMAC_ALMSUBSEC. |
Definition at line 3132 of file emac_reg.h.
EMAC_T::TSINC |
[0x0118] Time Stamp Increment Register
Bits | Field | Descriptions |
[7:0] | CNTINC | Time Stamp Counter Increment
Time stamp counter increment value. If TSEN (EMAC_TSCTL[0]) is high, EMAC adds EMAC_TSSUBSEC with this 8-bit value every time when it wants to increase the EMAC_TSSUBSEC value. |
Definition at line 3138 of file emac_reg.h.
EMAC_T::TSSEC |
[0x0110] Time Stamp Counter Second Register
Bits | Field | Descriptions |
[31:0] | SEC | Time Stamp Counter Second
This register reflects the bit [63:32] value of 64-bit reference timing counter This 32-bit value is used as the second part of time stamp when TSEN (EMAC_TSCTL[0]) is high. |
Definition at line 3136 of file emac_reg.h.
EMAC_T::TSSUBSEC |
[0x0114] Time Stamp Counter Sub Second Register
Bits | Field | Descriptions |
[31:0] | SUBSEC | Time Stamp Counter Sub-second
This register reflects the bit [31:0] value of 64-bit reference timing counter This 32-bit value is used as the sub-second part of time stamp when TSEN (EMAC_TSCTL[0]) is high. |
Definition at line 3137 of file emac_reg.h.
EMAC_T::TXDSA |
[0x0088] Transmit Descriptor Link List Start Address Register
Bits | Field | Descriptions |
[31:0] | TXDSA | Transmit Descriptor Link-list Start Address
The TXDSA keeps the start address of transmit descriptor link-list If the software enables the bit TXON (EMAC_CTL[8]), the content of TXDSA will be loaded into the current transmit descriptor start address register (EMAC_CTXDSA) The TXDSA does not be updated by EMAC During the operation, EMAC will ignore the bits [1:0] of TXDSA This means that TX descriptors must locate at word boundary memory address. |
Definition at line 3107 of file emac_reg.h.
EMAC_T::TXST |
[0x00a0] Transmit Start Demand Register
Bits | Field | Descriptions |
[31:0] | TXST | Transmit Start Demand
If the TX descriptor is not available for use of TXDMA after the TXON (EMAC_CTL[8]) is enabled, the FSM (Finite State Machine) of TXDMA enters the Halt state and the frame transmission is halted After the S/W has prepared the new TX descriptor for frame transmission, it must issue a write command to EMAC_TXST register to make TXDMA to leave Halt state and continue the frame transmission. The EMAC_TXST is a write only register and read from this register is undefined. The write to EMAC_TXST register takes effect only when TXDMA stayed at Halt state. |
Definition at line 3113 of file emac_reg.h.
EMAC_T::UPDSEC |
[0x0120] Time Stamp Update Second Register
Bits | Field | Descriptions |
[31:0] | SEC | Time Stamp Counter Second Update
When TSIEN (EMAC_TSCTL[1]) is high EMAC loads this 32-bit value to EMAC_TSSEC directly When TSUPDATE (EMAC_TSCTL[3]) is high, EMAC increases EMAC_TSSEC with this 32-bit value. |
Definition at line 3140 of file emac_reg.h.
EMAC_T::UPDSUBSEC |
[0x0124] Time Stamp Update Sub Second Register
Bits | Field | Descriptions |
[31:0] | SUBSEC | Time Stamp Counter Sub-second Update
When TSIEN (EMAC_TSCTL[1]) is high EMAC loads this 32-bit value to EMAC_TSSUBSEC directly When TSUPDATE (EMAC_TSCTL[3]) is high, EMAC increases EMAC_TSSUBSEC with this 32-bit value. |
Definition at line 3141 of file emac_reg.h.