Texas Instruments TMS320DM36X manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134

Ir para a página of

Bom manual de uso

As regras impõem ao revendedor a obrigação de fornecer ao comprador o manual com o produto Texas Instruments TMS320DM36X. A falta de manual ou informações incorretas fornecidas ao consumidor são a base de uma queixa por não conformidade do produto com o contrato. De acordo com a lei, pode anexar o manual em uma outra forma de que em papel, o que é frequentemente utilizado, anexando uma forma gráfica ou manual electrónicoTexas Instruments TMS320DM36X vídeos instrutivos para os usuários. A condição é uma forma legível e compreensível.

O que é a instrução?

A palavra vem do latim "Instructio" ou instruir. Portanto, no manual Texas Instruments TMS320DM36X você pode encontrar uma descrição das fases do processo. O objetivo do manual é instruir, facilitar o arranque, a utilização do equipamento ou a execução de determinadas tarefas. O manual é uma coleção de informações sobre o objeto / serviço, um guia.

Infelizmente, pequenos usuários tomam o tempo para ler o manual Texas Instruments TMS320DM36X, e um bom manual não só permite conhecer uma série de funcionalidades adicionais do dispositivo, mas evita a formação da maioria das falhas.

Então, o que deve conter o manual perfeito?

Primeiro, o manual Texas Instruments TMS320DM36X deve conte:
- dados técnicos do dispositivo Texas Instruments TMS320DM36X
- nome do fabricante e ano de fabricação do dispositivo Texas Instruments TMS320DM36X
- instruções de utilização, regulação e manutenção do dispositivo Texas Instruments TMS320DM36X
- sinais de segurança e certificados que comprovam a conformidade com as normas pertinentes

Por que você não ler manuais?

Normalmente, isso é devido à falta de tempo e à certeza quanto à funcionalidade específica do dispositivo adquirido. Infelizmente, a mesma ligação e o arranque Texas Instruments TMS320DM36X não são suficientes. O manual contém uma série de orientações sobre funcionalidades específicas, a segurança, os métodos de manutenção (mesmo sobre produtos que devem ser usados), possíveis defeitos Texas Instruments TMS320DM36X e formas de resolver problemas comuns durante o uso. No final, no manual podemos encontrar as coordenadas do serviço Texas Instruments na ausência da eficácia das soluções propostas. Atualmente, muito apreciados são manuais na forma de animações interessantes e vídeos de instrução que de uma forma melhor do que o o folheto falam ao usuário. Este tipo de manual é a chance que o usuário percorrer todo o vídeo instrutivo, sem ignorar especificações e descrições técnicas complicadas Texas Instruments TMS320DM36X, como para a versão papel.

Por que ler manuais?

Primeiro de tudo, contem a resposta sobre a construção, as possibilidades do dispositivo Texas Instruments TMS320DM36X, uso dos acessórios individuais e uma gama de informações para desfrutar plenamente todos os recursos e facilidades.

Após a compra bem sucedida de um equipamento / dispositivo, é bom ter um momento para se familiarizar com cada parte do manual Texas Instruments TMS320DM36X. Atualmente, são cuidadosamente preparados e traduzidos para sejam não só compreensíveis para os usuários, mas para cumprir a sua função básica de informação

Índice do manual

  • Página 1

    TMS320DM36x Digital Media System-on-Chip (DMSoC) Ethernet Media Access Controller (EMAC) User's Guide Literature Number: SPRUFI5B March 2009 – Revised December 2010[...]

  • Página 2

    2 SPRUFI5B – March 2009 – Revised December 2010 Submit Documentation Feedback © 2009–2010, Texas Instruments Incorporated[...]

  • Página 3

    Preface ...................................................................................................................................... 10 1 Introduction ...................................................................................................................... 13 1.1 Purpose of the Peripheral .....................................[...]

  • Página 4

    www.ti.com 4.1 MDIO Version Register (VERSION) ................................................................................. 70 4.2 MDIO Control Register (CONTROL) ................................................................................ 71 4.3 PHY Acknowledge Status Register (ALIVE) ......................................................[...]

  • Página 5

    www.ti.com 5.35 MAC Source Address Low Bytes Register (MACSRCADDRLO) .............................................. 115 5.36 MAC Source Address High Bytes Register (MACSRCADDRHI) .............................................. 115 5.37 MAC Hash Address Register 1 (MACHASH1) ................................................................... 116 5.38[...]

  • Página 6

    www.ti.com List of Figures 1 EMAC and MDIO Block Diagram ........................................................................................ 14 2 Ethernet Configuration MII Connections ................................................................................ 16 3 Ethernet Frame Format ....................................................[...]

  • Página 7

    www.ti.com 48 Transmit Interrupt Mask Set Register (TXINTMASKSET) ........................................................... 92 49 Transmit Interrupt Mask Clear Register (TXINTMASKCLEAR) ..................................................... 93 50 MAC Input Vector Register (MACINVECTOR) ..............................................................[...]

  • Página 8

    www.ti.com List of Tables 1 EMAC and MDIO Signals for MII Interface ............................................................................. 17 2 Ethernet Frame Description .............................................................................................. 18 3 Basic Descriptor Description ...........................................[...]

  • Página 9

    www.ti.com 46 Transmit Interrupt Mask Set Register (TXINTMASKSET) Field Descriptions ..................................... 92 47 Transmit Interrupt Mask Clear Register (TXINTMASKCLEAR) Field Descriptions ............................... 93 48 MAC Input Vector Register (MACINVECTOR) Field Descriptions .................................................[...]

  • Página 10

    Preface SPRUFI5B – March 2009 – Revised December 2010 Read This First About This Manual This document provides a functional description of the Ethernet Media Access Controller (EMAC) and physical layer (PHY) device Management Data Input/Output (MDIO) module integrated in the TMS320DM36x Digital Media System-on-Chip (DMSoC). Included are the fea[...]

  • Página 11

    www.ti.com Related Documentation From Texas Instruments SPRUFH2 — TMS320DM36x Digital Media System-on-Chip (DMSoC) Universal Asynchronous Receiver/Transmitter (UART) Users Guide This document describes the universal asynchronous receiver/transmitter (UART) peripheral in the TMS320DM36x Digital Media System-on-Chip (DMSoC). The UART peripheral per[...]

  • Página 12

    Related Documentation From Texas Instruments www.ti.com SPRUFI5 — TMS320DM36x Digital Media System-on-Chip (DMSoC) Ethernet Media Access Controller (EMAC) User's Guide This document describes the operation of the ethernet media access controller interface in the TMS320DM36x Digital Media System-on-Chip (DMSoC). SPRUFI7 — TMS320DM36x Digita[...]

  • Página 13

    User's Guide SPRUFI5B – March 2009 – Revised December 2010 Ethernet Media Access Controller (EMAC)/Management Data Input/Output (MDIO) 1 Introduction This document provides a functional description of the Ethernet Media Access Controller (EMAC) and physical layer (PHY) device Management Data Input/Output (MDIO) module integrated in the dev[...]

  • Página 14

    Configurationbus DMA memory transfercontroller Peripheralbus EMACcontrolmodule EMACmodule MDIOmodule MIIbus MDIObus EMAC/MDIO interrupts ARMinterrupt controller 4 Introduction www.ti.com • Emulation support • Loopback mode 1.3 Functional Block Diagram Figure 1 shows the three main functional modules of the EMAC/MDI[...]

  • Página 15

    www.ti.com Architecture The EMAC and MDIO interrupts are combined within the control module, so only the control module interrupt needs to be monitored by the application software or device driver. The EMAC control module combines the EMAC and MDIO interrupts and generates 4 separate interrupts to the ARM through the ARM interrupt controller. See S[...]

  • Página 16

    EMAC_TX_CLK EMAC_TXD(3-0) EMAC_TX_EN EMAC_COL EMAC_CRS EMAC_RX_CLK EMAC_RXD(3-0) EMAC_RX_DV MRXER MDCLK MDIO Physical layer device (PHY) System core T ransformer 2.5 MHz, 25 MHz RJ-45 EMAC MDIO _ Architecture www.ti.com 2.2 Memory Map The EMAC peripheral includes internal memory that is used to hold information about the Ethernet packets received a[...]

  • Página 17

    www.ti.com Architecture Table 1. EMAC and MDIO Signals for MII Interface Signal Type Description EMAC_TX_CLK I Transmit clock (EMAC_TX_CLK). The transmit clock is a continuous clock that provides the timing reference for transmit operations. The EMAC_TXD and EMAC_TX_EN signals are tied to this clock. The clock is generated by the PHY and is 2.5 MHz[...]

  • Página 18

    Preamble SFD Destination Source Len Data 7 1 6 6 2 46−1500 4 FCS Number of bytes Legend: SFD=Start Frame Delimeter; FCS=Frame Check Sequence (CRC) Architecture www.ti.com 2.5 Ethernet Protocol Overview Ethernet provides an unreliable, connection-less service to a networking application. A brief overview of the Ethernet protocol is given in the fo[...]

  • Página 19

    www.ti.com Architecture 2.5.2 Ethernet ’s Multiple Access Protocol Nodes in an Ethernet Local Area Network are interconnected by a broadcast channel, as a result, when an EMAC port transmits a frame, all the adapters on the local network receive the frame. Carrier Sense Multiple Access with Collision Detection (CSMA/CD) algorithms are used when t[...]

  • Página 20

    SOP | EOP 60 0 60 pBuf fer pNext Packet A 60 bytes 0 SOP Fragment 1 Packet B 512 1514 pBuf fer pNext 512 bytes EOP 0 0 −−− Packet B Fragment 3 500 bytes 502 pBuf fer −−− 500 pNext −−− pBuf fer pNext Packet B Fragment 2 502 bytes SOP | EOP 0 1514 bytes Packet C 1514 pBuf fer pNext (NULL) 1514 Architecture www.ti.com Table 3. Basic [...]

  • Página 21

    www.ti.com Architecture 2.6.2 Transmit and Receive Descriptor Queues The EMAC module processes descriptors in linked list chains as discussed in Section 2.6.1 . The lists controlled by the EMAC are maintained by the application software through the use of the head descriptor pointer registers (HDP). Since the EMAC supports eight channels for both t[...]

  • Página 22

    Architecture www.ti.com 2.6.3 Transmit and Receive EMAC Interrupts The EMAC processes descriptors in linked list chains as discussed in Section 2.6.1 , using the linked list queue mechanism discussed in Section 2.6.2 . The EMAC synchronizes descriptor list processing through the use of interrupts to the software application. The interrupts are cont[...]

  • Página 23

    www.ti.com Architecture 2.6.4 Transmit Buffer Descriptor Format A transmit (TX) buffer descriptor ( Figure 6 ) is a contiguous block of four 32-bit data words aligned on a 32-bit boundary that describes a packet or a packet fragment. Example 1 shows the transmit buffer descriptor described by a C structure. Figure 6. Transmit Buffer Descriptor Form[...]

  • Página 24

    Architecture www.ti.com 2.6.4.1 Next Descriptor Pointer The next descriptor pointer points to the 32-bit word aligned memory address of the next buffer descriptor in the transmit queue. This pointer is used to create a linked list of buffer descriptors. If the value of this pointer is zero, then the current buffer is the last buffer in the queue. T[...]

  • Página 25

    www.ti.com Architecture 2.6.4.7 End of Packet (EOP) Flag When set, this flag indicates that the descriptor points to a packet buffer that is last for a given packet. In the case of a single fragment packet, both the start of packet (SOP) and EOP flags are set. Otherwise, the descriptor pointing to the last packet buffer for the packet sets the EOP [...]

  • Página 26

    Architecture www.ti.com 2.6.5 Receive Buffer Descriptor Format A receive (RX) buffer descriptor ( Figure 7 ) is a contiguous block of four 32-bit data words aligned on a 32-bit boundary that describes a packet or a packet fragment. Example 2 shows the receive buffer descriptor described by a C structure. 2.6.5.1 Next Descriptor Pointer This pointer[...]

  • Página 27

    www.ti.com Architecture Example 2. Receive Buffer Descriptor in C Structure Format /* // EMAC Descriptor // // The following is the format of a single buffer descriptor // on the EMAC. */ typedef struct _EMAC_Desc { struct _EMAC_Desc *pNext; /* Pointer to next descriptor in chain */ Uint8 *pBuffer; /* Pointer to data buffer */ Uint32 BufOffLen; /* [...]

  • Página 28

    Architecture www.ti.com 2.6.5.4 Buffer Length This 16-bit field is used for two purposes: • Before the descriptor is first placed on the receive queue by the application software, the buffer length field is first initialized by the software to have the physical size of the empty data buffer pointed to by the buffer pointer field. • After the em[...]

  • Página 29

    www.ti.com Architecture 2.6.5.11 Pass CRC (PASSCRC) Flag This flag is set by the EMAC in the SOP buffer descriptor if the received packet includes the 4-byte CRC. This flag should be cleared by the software application before submitting the descriptor to the receive queue. 2.6.5.12 Jabber Flag This flag is set by the EMAC in the SOP buffer descript[...]

  • Página 30

    Arbiter and bus switches CPU DMA Controllers 8K byte descriptor memory Configuration registers Interrupt control and pacing logic EMAC interrupts MDIO interrupts Configuration bus T ransmit and Receive 4 interrupts to ARM Architecture www.ti.com 2.7 EMAC Control Module The basic functions of the EMAC control module ( Figure 8 ) are to interface the[...]

  • Página 31

    www.ti.com Architecture 2.7.3 Interrupt Control The EMAC control module combines multiple interrupt conditions generated by the EMAC and MDIO modules into four separate interrupt signals that are mapped to a CPU interrupt via the CPU interrupt controller. The four separate sources of interrupt can be individually enabled for each channel by the CMR[...]

  • Página 32

    Architecture www.ti.com 2.7.3.3 Receive Threshold Pulse Interrupt The EMAC control module receives the eight individual receive threshold interrupts originating from the EMAC module, one for each of the eight channels, and combines them into a single receive threshold pulse interrupt to the CPU. This receive threshold pulse interrupt is not paced. [...]

  • Página 33

    EMAC control module Control registers and logic PHY monitoring Peripheral clock MDIO clock generator USERINT MDIO interface polling PHY MDCLK MDIO LINKINT Configuration bus www.ti.com Architecture 2.8 MDIO Module The MDIO module is used to manage up to 32 physical layer (PHY) devices connected to the Ethernet Media Access Controller (EMAC). The DM3[...]

  • Página 34

    Architecture www.ti.com 2.8.1.3 Active PHY Monitoring Once a PHY candidate has been selected for use, the MDIO module transparently monitors its link state by reading the MDIO PHY link status register (LINK). Link change events are stored on the MDIO device and can optionally interrupt the CPU. This allows the system to poll the link status of the [...]

  • Página 35

    www.ti.com Architecture 2.8.2.1 Initializing the MDIO Module The following steps are performed by the application software or device driver to initialize the MDIO device: 1. Configure the PREAMBLE and CLKDIV bits in the MDIO control register (CONTROL). 2. Enable the MDIO module by setting the ENABLE bit in CONTROL. 3. The MDIO PHY alive status regi[...]

  • Página 36

    Architecture www.ti.com 2.8.2.4 Example of MDIO Register Access Code The MDIO module uses the MDIO user access register (USERACCESS n ) to access the PHY control registers. Software functions that implement the access process may simply be the following four macros: Start the process of reading a PHY register • PHYREG_read( regadr, phyadr ) Start[...]

  • Página 37

    Clock and reset logic Receive DMA engine Interrupt controller Transmit DMA engine Control registers Configuration bus EMAC control module Configuration bus RAM State FIFO Receive FIFO Transmit MAC transmitter Statistics receiver MAC SYNC www.ti.com Architecture 2.9 EMAC Module This section discusses the architecture and basic function of the EMAC m[...]

  • Página 38

    Architecture www.ti.com 2.9.1.3 MAC Receiver The MAC receiver detects and processes incoming network frames, de-frames them, and puts them into the receive FIFO. The MAC receiver also detects errors and passes statistics to the statistics RAM. 2.9.1.4 Receive Address This sub-module performs address matching and address filtering based on the incom[...]

  • Página 39

    www.ti.com Architecture 2.9.2 EMAC Module Operational Overview After reset, initialization, and configuration, the application software running on the host may initiate transmit operations. Transmit operations are initiated by host writes to the appropriate transmit channel head descriptor pointer contained in the state RAM block. The transmit DMA [...]

  • Página 40

    Architecture www.ti.com 2.10 Media Independent Interface (MII) The following sections discuss the operation of the Media Independent Interface (MII) in 10 Mbps and 100 Mbps mode. An IEEE 802.3 compliant Ethernet MAC controls the interface. 2.10.1 Data Reception 2.10.1.1 Receive Control Data received from the PHY is interpreted and output to the EMA[...]

  • Página 41

    www.ti.com Architecture 2.10.1.3.1 Collision-Based Receive Buffer Flow Control Collision-based receive buffer flow control provides a means of preventing frame reception when the EMAC is operating in half-duplex mode (the FULLDUPLEX bit is cleared in MACCONTROL). When receive flow control is enabled and triggered, the EMAC generates collisions for [...]

  • Página 42

    Architecture www.ti.com 2.10.2 Data Transmission The EMAC passes data to the PHY from the transmit FIFO (when enabled). Data is synchronized to the transmit clock rate. Transmission begins when there are TXCELLTHRESH cells of 64 bytes each, or a complete packet, in the FIFO. 2.10.2.1 Transmit Control A jam sequence is output if a collision is detec[...]

  • Página 43

    www.ti.com Architecture 2.10.2.6 Transmit Flow Control Incoming pause frames are acted upon, when enabled, to prevent the EMAC from transmitting any further frames. Incoming pause frames are only acted upon when the FULLDUPLEX and TXFLOWEN bits in the MAC control register (MACCONTROL) are set. Pause frames are not acted upon in half-duplex mode. Pa[...]

  • Página 44

    Architecture www.ti.com 2.11 Packet Receive Operation 2.11.1 Receive DMA Host Configuration To configure the receive DMA for operation the host must: • Initialize the receive addresses. • Initialize the receive channel n DMA head descriptor pointer registers (RX n HDP) to 0. • Write the MAC address hash n registers (MACHASH1 and MACHASH2), if[...]

  • Página 45

    www.ti.com Architecture 2.11.3 Receive Address Matching The receive address block can store up to 32 addresses to be filtered or matched. Before enabling packet reception, all the address RAM locations should be initialized, including locations to be unused. The system software is responsible for adding and removing addresses from the RAM. A MAC ad[...]

  • Página 46

    Architecture www.ti.com 2.11.5 Host Free Buffer Tracking The host must track free buffers for each enabled channel (including unicast, multicast, broadcast, and promiscuous), if receive QOS or receive flow control is used. Disabled channel free buffer values are do not cares. During initialization, the host should write the number of free buffers f[...]

  • Página 47

    www.ti.com Architecture • If the frame length is 1522, there are 1518 bytes transferred to memory. The last byte is the last data byte. 2.11.8 Promiscuous Receive Mode When the promiscuous receive mode is enabled by setting the RXCAFEN bit in the receive multicast/broadcast/promiscuous channel enable register (RXMBPENABLE), nonaddress matching fr[...]

  • Página 48

    Architecture www.ti.com Table 4. Receive Frame Treatment Summary (continued) Address Match RXCAFEN RXCEFEN RXCMFEN RXCSFEN Receive Frame Treatment 1 X 1 1 0 Proper/oversize/jabber/code/align/CRC data and control frames transferred to address match channel. No undersized/fragment frames are transferred. 1 X 1 1 1 All address matching frames with and[...]

  • Página 49

    www.ti.com Architecture 2.12 Packet Transmit Operation The transmit DMA is an eight channel interface. Priority between the eight queues may be either fixed or round-robin as selected by the TXPTYPE bit in the MAC control register (MACCONTROL). If the priority type is fixed, then channel 7 has the highest priority and channel 0 has the lowest prior[...]

  • Página 50

    Architecture www.ti.com Receive overrun is prevented if the receive memory cell latency is less than the time required to transmit a 64-byte cell on the wire (0.512 ms in 1 Gbps mode, 5.12 ms in 100 Mbps mode, or 51.2ms in 10 Mbps mode). The latency time includes any required buffer descriptor reads for the cell data. Latency to descriptor RAM is l[...]

  • Página 51

    www.ti.com Architecture 2.15.2 Hardware Reset Considerations When a hardware reset occurs, the EMAC peripheral has its register values reset and all the components return to their default state. After the hardware reset, the EMAC needs to be initialized before being able to resume its data transmission, as described in Section 2.16 . A hardware res[...]

  • Página 52

    Architecture www.ti.com Example 4. EMAC Control Module Initialization Code Uint32 tmpval ; /* Disable all the EMAC/MDIO interrupts in the control module */ EmacControlRegs->CONTROL.C_RX_EN = 0; EmacControlRegs->CONTROL.C_TX_EN = 0; EmacControlRegs->CONTROL.C_RX_THRESH_EN = 0; EmacControlRegs->CONTROL.C_MISC_EN = 0; /* Wait about 100 cyc[...]

  • Página 53

    www.ti.com Architecture 2.16.3 MDIO Module Initialization The MDIO module is used to initially configure and monitor one or more external PHY devices. Other than initializing the software state machine (details on this state machine can be found in the IEEE 802.3 standard), all that needs to be done for the MDIO module is to enable the MDIO engine [...]

  • Página 54

    Architecture www.ti.com 2.16.4 EMAC Module Initialization The EMAC module is used to send and receive data packets over the network. This is done by maintaining up to eight transmit and receive descriptor queues. The EMAC module configuration must also be kept up-to-date based on PHY negotiation results returned from the MDIO module. Most of the wo[...]

  • Página 55

    EMACcore MDIOcore RXTHRESHOLDPEND(0..7) Receivethresholdinterrupt RXPEND(0..7) Receiveinterrupt TXPEND(0..7) T ransmitinterrupt ST A TPEND HOSTPEND MDIO_USER Miscellaneousinterrupt MDIO_LINKINT Interruptcontrolandpacinglogic www.ti.com Architecture 2.17 Interrupt Support 2.17.1 EMAC Module Interrupt Events and Reque[...]

  • Página 56

    Architecture www.ti.com Each of the eight transmit channel interrupts may be individually enabled by setting the corresponding bit in the transmit interrupt mask set register (TXINTMASKSET) to 1. Each of the eight transmit channel interrupts may be individually disabled by clearing the corresponding bit in the transmit interrupt mask clear register[...]

  • Página 57

    www.ti.com Architecture 2.17.1.4 Statistics Interrupt The statistics level interrupt (STATPEND) is issued when any statistics value is greater than or equal to 8000 0000h, if enabled by setting the STATMASK bit in the MAC interrupt mask set register (MACINTMASKSET) to 1. The statistics interrupt is removed by writing to decrement any statistics val[...]

  • Página 58

    Architecture www.ti.com 2.17.2 MDIO Module Interrupt Events and Requests The MDIO module generates two interrupt events: • LINKINT: Serial interface link change interrupt. Indicates a change in the state of the PHY link • USERINT: Serial interface user command event complete interrupt 2.17.2.1 Link Change Interrupt The MDIO module asserts a lin[...]

  • Página 59

    www.ti.com Architecture 2.18 Power Management Each of the three main components of the EMAC peripheral can independently be placed in reduced-power modes to conserve power during periods of low activity. The power management of the EMAC peripheral is controlled by the processor Power and Sleep Controller (PSC). The PSC acts as a master controller f[...]

  • Página 60

    EMAC Control Module Registers www.ti.com 3 EMAC Control Module Registers Table 7 lists the memory-mapped registers for the EMAC control module. See the device-specific data manual for the memory address of these registers. Table 7. EMAC Control Module Registers Slave VBUS Address Acronym Register Description Section 0h CMIDVER Identification and Ve[...]

  • Página 61

    www.ti.com EMAC Control Module Registers 3.2 EMAC Control Module Software Reset Register (CMSOFTRESET) The software reset register (CMSOFTRESET) is shown in Figure 13 and described in Table 9 . Figure 13. EMAC Control Module Software Reset Register (CMSOFTRESET) 31 16 Reserved R-0 15 1 0 Reserved SOFTRESET R-0 R/W-0 LEGEND: R/W = Read/Write; R = Re[...]

  • Página 62

    EMAC Control Module Registers www.ti.com 3.4 EMAC Control Module Interrupt Control Register (CMINTCTRL) The interrupt control register (CMINTCTRL) is shown in Figure 15 and described in Table 11 . Figure 15. EMAC Control Module Interrupt Control Register (CMINTCTRL) 31 30 18 17 16 Reserved Reserved INTPACEEN R/W-0 R-0 R/W-0 15 12 11 0 Reserved INTP[...]

  • Página 63

    www.ti.com EMAC Control Module Registers 3.5 EMAC Control Module Receive Threshold Interrupt Enable Register (CMRXTHRESHINTEN) The receive threshold interrupt enable register (CMRXTHRESHINTEN) is shown in Figure 16 and described in Table 12 . Figure 16. EMAC Control Module Receive Threshold Interrupt Enable Register (CMRXTHRESHINTEN) 31 16 Reserved[...]

  • Página 64

    EMAC Control Module Registers www.ti.com 3.7 EMAC Control Module Transmit Interrupt Enable Register (CMTXINTEN) The transmit interrupt enable register (CMTXINTEN) is shown in Figure 18 and described in Table 14 . Figure 18. EMAC Control Module Transmit Interrupt Enable Register (CMTXINTEN) 31 16 Reserved R-0 15 8 7 0 Reserved TXPULSEEN R-0 R/W-0 LE[...]

  • Página 65

    www.ti.com EMAC Control Module Registers 3.8 EMAC Control Module Miscellaneous Interrupt Enable Register (CMMISCINTEN) The miscellaneous interrupt enable register (CMMISCINTEN) is shown in Figure 19 and described in Table 15 . Figure 19. EMAC Control Module Miscellaneous Interrupt Enable Register (CMMISCINTEN) 31 16 Reserved R-0 15 4 3 2 1 0 Reserv[...]

  • Página 66

    EMAC Control Module Registers www.ti.com 3.9 EMAC Control Module Receive Threshold Interrupt Status Register (CMRXTHRESHINTSTAT) The receive threshold interrupt status register (CMRXTHRESHINTSTAT) is shown in Figure 20 and described in Table 16 . Figure 20. EMAC Control Module Receive Threshold Interrupt Status Register (CMRXTHRESHINTSTAT) 31 16 Re[...]

  • Página 67

    www.ti.com EMAC Control Module Registers 3.11 EMAC Control Module Transmit Interrupt Status Register (CMTXINTSTAT) The transmit interrupt status register (CMTXINTSTAT) is shown in Figure 22 and described in Table 18 . Figure 22. EMAC Control Module Transmit Interrupt Status Register (CMTXINTSTAT) 31 16 Reserved R-0 15 8 7 0 Reserved TXPULSEINTTSTAT[...]

  • Página 68

    EMAC Control Module Registers www.ti.com 3.12 EMAC Control Module Miscellaneous Interrupt Status Register (EWMISCSTAT) The miscellaneous interrupt status register (EWMISCSTAT) is shown in Figure 23 and described in Table 19 . Figure 23. EMAC Control Module Miscellaneous Interrupt Status Register (CMMISCINTSTAT) 31 16 Reserved R-0 15 4 3 2 1 0 Reser[...]

  • Página 69

    www.ti.com EMAC Control Module Registers 3.13 EMAC Control Module Receive Interrupts per Millisecond Register (CMRXINTMAX) The receive interrupts per millisecond register (CMRXINTMAX) is shown in Figure 24 and described in Table 20 . Figure 24. EMAC Control Module Receive Interrupts per Millisecond Register (CMRXINTMAX) 31 16 Reserved R-0 15 6 5 0 [...]

  • Página 70

    MDIO Registers www.ti.com 4 MDIO Registers Table 22 lists the memory-mapped registers for the MDIO module. See the device-specific data manual for the memory address of these registers. Table 22. Management Data Input/Output (MDIO) Registers Offset Acronym Register Description Section 0h VERSION MDIO Version Register Section 4.1 4h CONTROL MDIO Con[...]

  • Página 71

    www.ti.com MDIO Registers 4.2 MDIO Control Register (CONTROL) The MDIO control register (CONTROL) is shown in Figure 27 and described in Table 24 . Figure 27. MDIO Control Register (CONTROL) 31 30 29 28 24 23 21 20 19 18 17 16 IDLE ENABLE Rsvd HIGHEST_USER_CHANNEL Reserved PREAMBLE FAULT FAULTENB Reserved R-1 R/W-0 R-0 R-1 R-0 R/W-0 R/W1C-0 R/W-0 R[...]

  • Página 72

    MDIO Registers www.ti.com 4.3 PHY Acknowledge Status Register (ALIVE) The PHY acknowledge status register (ALIVE) is shown in Figure 28 and described in Table 25 . Figure 28. PHY Acknowledge Status Register (ALIVE) 31 16 ALIVE R/W1C-0 15 0 ALIVE R/W1C-0 LEGEND: R/W = Read/Write; W1C = Write 1 to clear, write of 0 has no effect; - n = value after re[...]

  • Página 73

    www.ti.com MDIO Registers 4.5 MDIO Link Status Change Interrupt (Unmasked) Register (LINKINTRAW) The MDIO link status change interrupt (unmasked) register (LINKINTRAW) is shown in Figure 30 and described in Table 27 . Figure 30. MDIO Link Status Change Interrupt (Unmasked) Register (LINKINTRAW) 31 16 Reserved R-0 15 2 1 0 Reserved LINKINTRAW R-0 R/[...]

  • Página 74

    MDIO Registers www.ti.com 4.6 MDIO Link Status Change Interrupt (Masked) Register (LINKINTMASKED) The MDIO link status change interrupt (masked) register (LINKINTMASKED) is shown in Figure 31 and described in Table 28 . Figure 31. MDIO Link Status Change Interrupt (Masked) Register (LINKINTMASKED) 31 16 Reserved R-0 15 2 1 0 Reserved LINKINTMASKED [...]

  • Página 75

    www.ti.com MDIO Registers 4.7 MDIO User Command Complete Interrupt (Unmasked) Register (USERINTRAW) The MDIO user command complete interrupt (unmasked) register (USERINTRAW) is shown in Figure 32 and described in Table 29 . Figure 32. MDIO User Command Complete Interrupt (Unmasked) Register (USERINTRAW) 31 16 Reserved R-0 15 2 1 0 Reserved USERINTR[...]

  • Página 76

    MDIO Registers www.ti.com 4.8 MDIO User Command Complete Interrupt (Masked) Register (USERINTMASKED) The MDIO user command complete interrupt (masked) register (USERINTMASKED) is shown in Figure 33 and described in Table 30 . Figure 33. MDIO User Command Complete Interrupt (Masked) Register (USERINTMASKED) 31 16 Reserved R-0 15 2 1 0 Reserved USERI[...]

  • Página 77

    www.ti.com MDIO Registers 4.9 MDIO User Command Complete Interrupt Mask Set Register (USERINTMASKSET) The MDIO user command complete interrupt mask set register (USERINTMASKSET) is shown in Figure 34 and described in Table 31 . Figure 34. MDIO User Command Complete Interrupt Mask Set Register (USERINTMASKSET) 31 16 Reserved R-0 15 2 1 0 Reserved US[...]

  • Página 78

    MDIO Registers www.ti.com 4.10 MDIO User Command Complete Interrupt Mask Clear Register (USERINTMASKCLEAR) The MDIO user command complete interrupt mask clear register (USERINTMASKCLEAR) is shown in Figure 35 and described in Table 32 . Figure 35. MDIO User Command Complete Interrupt Mask Clear Register (USERINTMASKCLEAR) 31 16 Reserved R-0 15 2 1 [...]

  • Página 79

    www.ti.com MDIO Registers 4.11 MDIO User Access Register 0 (USERACCESS0) The MDIO user access register 0 (USERACCESS0) is shown in Figure 36 and described in Table 33 . Figure 36. MDIO User Access Register 0 (USERACCESS0) 31 30 29 28 26 25 21 20 16 GO WRITE ACK Reserved REGADR PHYADR R/W1S-0 R/W-0 R/W-0 R-0 R/W-0 R/W-0 15 0 DATA R/W-0 LEGEND: R = R[...]

  • Página 80

    MDIO Registers www.ti.com 4.12 MDIO User PHY Select Register 0 (USERPHYSEL0) The MDIO user PHY select register 0 (USERPHYSEL0) is shown in Figure 37 and described in Table 34 . Figure 37. MDIO User PHY Select Register 0 (USERPHYSEL0) 31 16 Reserved R-0 15 8 7 6 5 4 0 Reserved LINKSEL LINKINTENB Rsvd PHYADRMON R-0 R/W-0 R/W-0 R-0 R/W-0 LEGEND: R/W =[...]

  • Página 81

    www.ti.com MDIO Registers 4.13 MDIO User Access Register 1 (USERACCESS1) The MDIO user access register 1 (USERACCESS1) is shown in Figure 38 and described in Table 35 . Figure 38. MDIO User Access Register 1 (USERACCESS1) 31 30 29 28 26 25 21 20 16 GO WRITE ACK Reserved REGADR PHYADR R/W1S-0 R/W-0 R/W-0 R-0 R/W-0 R/W-0 15 0 DATA R/W-0 LEGEND: R = R[...]

  • Página 82

    MDIO Registers www.ti.com 4.14 MDIO User PHY Select Register 1 (USERPHYSEL1) The MDIO user PHY select register 1 (USERPHYSEL1) is shown in Figure 39 and described in Table 36 . Figure 39. MDIO User PHY Select Register 1 (USERPHYSEL1) 31 16 Reserved R-0 15 8 7 6 5 4 0 Reserved LINKSEL LINKINTENB Rsvd PHYADRMON R-0 R/W-0 R/W-0 R-0 R/W-0 LEGEND: R/W =[...]

  • Página 83

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5 Ethernet Media Access Controller (EMAC) Registers Table 37 lists the memory-mapped registers for the EMAC. See the device-specific data manual for the memory address of these registers. Table 37. Ethernet Media Access Controller (EMAC) Registers Offset Acronym Register Description Secti[...]

  • Página 84

    Ethernet Media Access Controller (EMAC) Registers www.ti.com Table 37. Ethernet Media Access Controller (EMAC) Registers (continued) Offset Acronym Register Description Section 164h MACSTATUS MAC Status Register Section 5.30 168h EMCONTROL Emulation Control Register Section 5.31 16Ch FIFOCONTROL FIFO Control Register Section 5.32 170h MACCONFIG MAC[...]

  • Página 85

    www.ti.com Ethernet Media Access Controller (EMAC) Registers Table 37. Ethernet Media Access Controller (EMAC) Registers (continued) Offset Acronym Register Description Section 67Ch RX7CP Receive Channel 7 Completion Pointer Register Section 5.49 Network Statistics Registers 200h RXGOODFRAMES Good Receive Frames Register Section 5.50.1 204h RXBCAST[...]

  • Página 86

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.1 Transmit Identification and Version Register (TXIDVER) The transmit identification and version register (TXIDVER) is shown in Figure 40 and described in Table 38 . Figure 40. Transmit Identification and Version Register (TXIDVER) 31 16 TXIDENT R-0Ch 15 8 7 0 TXMAJORVER TXMINORVER R-02[...]

  • Página 87

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.3 Transmit Teardown Register (TXTEARDOWN) The transmit teardown register (TXTEARDOWN) is shown in Figure 42 and described in Table 40 . Figure 42. Transmit Teardown Register (TXTEARDOWN) 31 16 Reserved R-0 15 3 2 0 Reserved TXTDNCH R-0 R/W-0 LEGEND: R = Read only; R/W = Read/Write; - n [...]

  • Página 88

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.4 Receive Identification and Version Register (RXIDVER) The receive identification and version register (RXIDVER) is shown in Figure 43 and described in Table 41 . Figure 43. Receive Identification and Version Register (RXIDVER) 31 16 RXIDENT R-0Ch 15 8 7 0 RXMAJORVER RXMINORVER R-02h R[...]

  • Página 89

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.5 Receive Control Register (RXCONTROL) The receive control register (RXCONTROL) is shown in Figure 44 and described in Table 42 . Figure 44. Receive Control Register (RXCONTROL) 31 16 Reserved R-0 15 1 0 Reserved RXEN R-0 R/W-0 LEGEND: R = Read only; R/W = Read/Write; - n = value after [...]

  • Página 90

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.7 Transmit Interrupt Status (Unmasked) Register (TXINTSTATRAW) The transmit interrupt status (unmasked) register (TXINTSTATRAW) is shown in Figure 46 and described in Table 44 . Figure 46. Transmit Interrupt Status (Unmasked) Register (TXINTSTATRAW) 31 16 Reserved R-0 15 8 Reserved R-0 [...]

  • Página 91

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.8 Transmit Interrupt Status (Masked) Register (TXINTSTATMASKED) The transmit interrupt status (masked) register (TXINTSTATMASKED) is shown in Figure 47 and described in Table 45 . Figure 47. Transmit Interrupt Status (Masked) Register (TXINTSTATMASKED) 31 16 Reserved R-0 15 8 Reserved R[...]

  • Página 92

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.9 Transmit Interrupt Mask Set Register (TXINTMASKSET) The transmit interrupt mask set register (TXINTMASKSET) is shown in Figure 48 and described in Table 46 . Figure 48. Transmit Interrupt Mask Set Register (TXINTMASKSET) 31 16 Reserved R-0 15 8 Reserved R-0 76543210 TX7MASK TX6MASK TX[...]

  • Página 93

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.10 Transmit Interrupt Mask Clear Register (TXINTMASKCLEAR) The transmit interrupt mask clear register (TXINTMASKCLEAR) is shown in Figure 49 and described in Table 47 . Figure 49. Transmit Interrupt Mask Clear Register (TXINTMASKCLEAR) 31 16 Reserved R-0 15 8 Reserved R-0 76543210 TX7MA[...]

  • Página 94

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.11 MAC Input Vector Register (MACINVECTOR) The MAC input vector register (MACINVECTOR) is shown in Figure 50 and described in Table 48 . Figure 50. MAC Input Vector Register (MACINVECTOR) 31 28 27 26 25 24 23 16 Reserved STATPEND HOSTPEND LINKINT USERINT TXPEND R-0 R-0 R-0 R-0 R-0 R-0 1[...]

  • Página 95

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.13 Receive Interrupt Status (Unmasked) Register (RXINTSTATRAW) The receive interrupt status (unmasked) register (RXINTSTATRAW) is shown in Figure 52 and described in Table 50 . Figure 52. Receive Interrupt Status (Unmasked) Register (RXINTSTATRAW) 31 16 Reserved R-0 15 8 Reserved R-0 76[...]

  • Página 96

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.14 Receive Interrupt Status (Masked) Register (RXINTSTATMASKED) The receive interrupt status (masked) register (RXINTSTATMASKED) is shown in Figure 53 and described in Table 51 . Figure 53. Receive Interrupt Status (Masked) Register (RXINTSTATMASKED) 31 16 Reserved R-0 15 8 Reserved R-0[...]

  • Página 97

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.15 Receive Interrupt Mask Set Register (RXINTMASKSET) The receive interrupt mask set register (RXINTMASKSET) is shown in Figure 54 and described in Table 52 . Figure 54. Receive Interrupt Mask Set Register (RXINTMASKSET) 31 16 Reserved R-0 15 8 Reserved R-0 76543210 RX7MASK RX6MASK RX5M[...]

  • Página 98

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.16 Receive Interrupt Mask Clear Register (RXINTMASKCLEAR) The receive interrupt mask clear register (RXINTMASKCLEAR) is shown in Figure 55 and described in Table 53 . Figure 55. Receive Interrupt Mask Clear Register (RXINTMASKCLEAR) 31 16 Reserved R-0 15 8 Reserved R-0 76543210 RX7MASK [...]

  • Página 99

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.17 MAC Interrupt Status (Unmasked) Register (MACINTSTATRAW) The MAC interrupt status (unmasked) register (MACINTSTATRAW) is shown in Figure 56 and described in Table 54 . Figure 56. MAC Interrupt Status (Unmasked) Register (MACINTSTATRAW) 31 16 Reserved R-0 15 2 1 0 Reserved HOSTPEND ST[...]

  • Página 100

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.19 MAC Interrupt Mask Set Register (MACINTMASKSET) The MAC interrupt mask set register (MACINTMASKSET) is shown in Figure 58 and described in Table 56 . Figure 58. MAC Interrupt Mask Set Register (MACINTMASKSET) 31 16 Reserved R-0 15 2 1 0 Reserved HOSTMASK STATMASK R-0 R/W1S-0 R/W1S-0 [...]

  • Página 101

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.21 Receive Multicast/Broadcast/Promiscuous Channel Enable Register (RXMBPENABLE) The receive multicast/broadcast/promiscuous channel enable register (RXMBPENABLE) is shown in Figure 60 and described in Table 58 . Figure 60. Receive Multicast/Broadcast/Promiscuous Channel Enable Register[...]

  • Página 102

    Ethernet Media Access Controller (EMAC) Registers www.ti.com Table 58. Receive Multicast/Broadcast/Promiscuous Channel Enable Register (RXMBPENABLE) Field Descriptions (continued) Bit Field Value Description 22 RXCEFEN Receive copy error frames enable bit. Enables frames containing errors to be transferred to memory. The appropriate error bit will [...]

  • Página 103

    www.ti.com Ethernet Media Access Controller (EMAC) Registers Table 58. Receive Multicast/Broadcast/Promiscuous Channel Enable Register (RXMBPENABLE) Field Descriptions (continued) Bit Field Value Description 2-0 RXMULTCH 0-7h Receive multicast channel select 0 Select channel 0 to receive multicast frames 1h Select channel 1 to receive multicast fra[...]

  • Página 104

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.22 Receive Unicast Enable Set Register (RXUNICASTSET) The receive unicast enable set register (RXUNICASTSET) is shown in Figure 61 and described in Table 59 . Figure 61. Receive Unicast Enable Set Register (RXUNICASTSET) 31 16 Reserved R-0 15 8 Reserved R-0 76543210 RXCH7EN RXCH6EN RXCH[...]

  • Página 105

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.23 Receive Unicast Clear Register (RXUNICASTCLEAR) The receive unicast clear register (RXUNICASTCLEAR) is shown in Figure 62 and described in Table 60 . Figure 62. Receive Unicast Clear Register (RXUNICASTCLEAR) 31 16 Reserved R-0 15 8 Reserved R-0 76543210 RXCH7EN RXCH6EN RXCH5EN RXCH4[...]

  • Página 106

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.24 Receive Maximum Length Register (RXMAXLEN) The receive maximum length register (RXMAXLEN) is shown in Figure 63 and described in Table 61 . Figure 63. Receive Maximum Length Register (RXMAXLEN) 31 16 Reserved R-0 15 0 RXMAXLEN R/W-1518 LEGEND: R = Read only; R/W = Read/Write; - n = v[...]

  • Página 107

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.26 Receive Filter Low Priority Frame Threshold Register (RXFILTERLOWTHRESH) The receive filter low priority frame threshold register (RXFILTERLOWTHRESH) is shown in Figure 65 and described in Table 63 . Figure 65. Receive Filter Low Priority Frame Threshold Register (RXFILTERLOWTHRESH) [...]

  • Página 108

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.28 Receive Channel 0-7 Free Buffer Count Register (RX n FREEBUFFER) The receive channel 0-7 free buffer count register (RX n FREEBUFFER) is shown in Figure 67 and described in Table 65 . Figure 67. Receive Channel n Free Buffer Count Register (RX n FREEBUFFER) 31 16 Reserved R-0 15 0 RX[...]

  • Página 109

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.29 MAC Control Register (MACCONTROL) The MAC control register (MACCONTROL) is shown in Figure 68 and described in Table 66 . Figure 68. MAC Control Register (MACCONTROL) 31 18 17 16 Reserved R-0 15 14 13 12 11 10 9 8 Reserved RXOFFLENBLOCK RXOWNERSHIP RXFIFOFLOWEN CMDIDLE Rsvd TXPTYPE R[...]

  • Página 110

    Ethernet Media Access Controller (EMAC) Registers www.ti.com Table 66. MAC Control Register (MACCONTROL) Field Descriptions (continued) Bit Field Value Description 4 TXFLOWEN Transmit flow control enable bit. This bit determines if incoming pause frames are acted upon in full-duplex mode. Incoming pause frames are not acted upon in half-duplex mode[...]

  • Página 111

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.30 MAC Status Register (MACSTATUS) The MAC status register (MACSTATUS) is shown in Figure 69 and described in Table 67 . Figure 69. MAC Status Register (MACSTATUS) 31 30 24 23 20 19 18 16 IDLE Reserved TXERRCODE Rsvd TXERRCH R-0 R-0 R-0 R-0 R-0 15 12 11 10 8 RXERRCODE Reserved RXERRCH R[...]

  • Página 112

    Ethernet Media Access Controller (EMAC) Registers www.ti.com Table 67. MAC Status Register (MACSTATUS) Field Descriptions (continued) Bit Field Value Description 10-8 RXERRCH 0-3h Receive host error channel. These bits indicate which receive channel the host error occurred on. This field is cleared to 0 on a host read. 0 The host error occurred on [...]

  • Página 113

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.31 Emulation Control Register (EMCONTROL) The emulation control register (EMCONTROL) is shown in Figure 70 and described in Table 68 . Figure 70. Emulation Control Register (EMCONTROL) 31 16 Reserved R-0 15 2 1 0 Reserved SOFT FREE R-0 R/W-0 R/W-0 LEGEND: R = Read only; R/W = Read/Write[...]

  • Página 114

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.33 MAC Configuration Register (MACCONFIG) The MAC configuration register (MACCONFIG) is shown in Figure 72 and described in Table 70 . Figure 72. MAC Configuration Register (MACCONFIG) 31 24 23 16 TXCELLDEPTH RXCELLDEPTH R-18h R-44h 15 8 7 0 ADDRESSTYPE MACCFIG R-2h R-3h LEGEND: R = Rea[...]

  • Página 115

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.35 MAC Source Address Low Bytes Register (MACSRCADDRLO) The MAC source address low bytes register (MACSRCADDRLO) is shown in Figure 74 and described in Table 72 . Figure 74. MAC Source Address Low Bytes Register (MACSRCADDRLO) 31 16 Reserved R-0 15 8 7 0 MACSRCADDR0 MACSRCADDR1 R/W-0 R/[...]

  • Página 116

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.37 MAC Hash Address Register 1 (MACHASH1) The MAC hash registers allow group addressed frames to be accepted on the basis of a hash function of the address. The hash function creates a 6-bit data value (Hash_fun) from the 48-bit destination address (DA) as follows: Hash_fun(0)=DA(0) XOR[...]

  • Página 117

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.39 Back Off Test Register (BOFFTEST) The back off test register (BOFFTEST) is shown in Figure 78 and described in Table 76 . Figure 78. Back Off Random Number Generator Test Register (BOFFTEST) 31 26 25 16 Reserved RNDNUM R-0 R-0 15 12 11 10 9 0 COLLCOUNT Reserved TXBACKOFF R-0 R-0 R-0 [...]

  • Página 118

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.41 Receive Pause Timer Register (RXPAUSE) The receive pause timer register (RXPAUSE) is shown in Figure 80 and described in Table 78 . Figure 80. Receive Pause Timer Register (RXPAUSE) 31 16 Reserved R-0 15 0 PAUSETIMER R-0 LEGEND: R = Read only; - n = value after reset Table 78. Receiv[...]

  • Página 119

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.43 MAC Address Low Bytes Register (MACADDRLO) The MAC address low bytes register used in address matching (MACADDRLO), is shown in Figure 82 and described in Table 80 . Figure 82. MAC Address Low Bytes Register (MACADDRLO) 31 21 20 19 18 16 Reserved VALID MATCHFILT CHANNEL R-0 R/W-x R/W[...]

  • Página 120

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.44 MAC Address High Bytes Register (MACADDRHI) The MAC address high bytes register (MACADDRHI) is shown in Figure 83 and described in Table 81 . Figure 83. MAC Address High Bytes Register (MACADDRHI) 31 24 23 16 MACADDR2 MACADDR3 R/W-0 R/W-0 15 8 7 0 MACADDR4 MACADDR5 R/W-0 R/W-0 LEGEND[...]

  • Página 121

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.46 Transmit Channel 0-7 DMA Head Descriptor Pointer Register (TX n HDP) The transmit channel 0-7 DMA head descriptor pointer register (TX n HDP) is shown in Figure 85 and described in Table 83 . Figure 85. Transmit Channel n DMA Head Descriptor Pointer Register (TX n HDP) 31 16 TX n HDP[...]

  • Página 122

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.48 Transmit Channel 0-7 Completion Pointer Register (TX n CP) The transmit channel 0-7 completion pointer register (TX n CP) is shown in Figure 87 and described in Table 85 . Figure 87. Transmit Channel n Completion Pointer Register (TX n CP) 31 16 TX n CP R/W-x 15 0 TX n CP R/W-x LEGEN[...]

  • Página 123

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.50 Network Statistics Registers The EMAC has a set of statistics that record events associated with frame traffic. The statistics values are cleared to zero 38 clocks after the rising edge of reset. When the MII bit in the MACCONTROL register is set, all statistics registers (see Figure[...]

  • Página 124

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.50.4 Pause Receive Frames Register (RXPAUSEFRAMES) The total number of IEEE 802.3X pause frames received by the EMAC (whether acted upon or not). A pause frame is defined as having all of the following: • Contained any unicast, broadcast, or multicast address • Contained the length/[...]

  • Página 125

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.50.8 Receive Jabber Frames Register (RXJABBER) The total number of jabber frames received on the EMAC. A jabber frame is defined as having all of the following: • Was any data or MAC control frame that matched a unicast, broadcast, or multicast address, or matched due to promiscuous m[...]

  • Página 126

    Ethernet Media Access Controller (EMAC) Registers www.ti.com This may not be an exact count because the receive overruns statistic is independent of the other statistics, so if an overrun occurs at the same time as one of the other discard reasons, then the above sum double-counts that frame. 5.50.12 Receive QOS Filtered Frames Register (RXQOSFILTE[...]

  • Página 127

    www.ti.com Ethernet Media Access Controller (EMAC) Registers 5.50.17 Pause Transmit Frames Register (TXPAUSEFRAMES) The total number of IEEE 802.3X pause frames transmitted by the EMAC. Pause frames cannot underrun or contain a CRC error because they are created in the transmitting MAC, so these error conditions have no effect on this statistic. Pa[...]

  • Página 128

    Ethernet Media Access Controller (EMAC) Registers www.ti.com CRC errors have no effect on this statistic. 5.50.22 Transmit Excessive Collision Frames Register (TXEXCESSIVECOLL) The total number of frames when transmission was abandoned due to excessive collisions. Such a frame is defined as having all of the following: • Was any data or MAC contr[...]

  • Página 129

    www.ti.com Ethernet Media Access Controller (EMAC) Registers • Was exactly 64-bytes long. (If the frame was being transmitted and experienced carrier loss that resulted in a frame of this size being transmitted, then the frame is recorded in this statistic). CRC errors, alignment/code errors, and overruns do not affect the recording of frames in [...]

  • Página 130

    Ethernet Media Access Controller (EMAC) Registers www.ti.com 5.50.33 Network Octet Frames Register (NETOCTETS) The total number of bytes of frame data received and transmitted on the EMAC. Each frame counted has all of the following: • Was any data or MAC control frame destined for any unicast, broadcast, or multicast address (address match does [...]

  • Página 131

    www.ti.com Appendix A Glossary Broadcast MAC Address— A special Ethernet MAC address used to send data to all Ethernet devices on the local network. The broadcast address is FFh-FFh-FFh-FFh-FFh-FFh. The LSB of the first byte is odd, qualifying it as a group address; however, its value is reserved for broadcast. It is classified separately by the [...]

  • Página 132

    Appendix A www.ti.com Multicast MAC Address— A class of MAC address that sends a packet to potentially more than one recipient. A group address is specified by setting the LSB of the first MAC address byte to 1. Thus, 01h-02h-03h-04h-05h-06h is a valid multicast address. Typically, an Ethernet MAC looks for only certain multicast addresses on a n[...]

  • Página 133

    www.ti.com Appendix B Revision History Table 88 lists the changes made since the previous version of this document. Table 88. Document Revision History Reference Additions/Modifications/Deletions Section 1.3 Changed fourth paragraph. 133 SPRUFI5B – March 2009 – Revised December 2010 Revision History Submit Documentation Feedback © 2009–2010,[...]

  • Página 134

    IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders[...]