BL702/704/706 Reference Manual
The send and receive buffer descriptor group is connected to the external RAM, which is used to store the Ethernet
data frames sent and received. Each descriptor contains the corresponding control status word and the corresponding
buffer memory address. There are 128 groups of descriptors, which can be flexibly allocated for sending or receiving.
17.4 Emac clock
The EMAC module needs a clock for synchronous transmission and reception (at 100Mbps, 25MHz (MII) or 50MHz
(RMII); at 10Mbps, 2.5MHz). This clock must be synchronized between EMAC and PHY.
17.5 Send and receive buffer descriptor (BD, Buffer Descriptor)
The transceiver buffer descriptor is used to provide the association between the EAMC and the data frame buffer
address information, to control the transceiver data frame, and to provide the transceiver status prompt.
Each descriptor is composed of two consecutive words (32 bits). The low address word provides the length, control
and status bits of the data frame contained in the buffer; the high address word is a memory pointer.
Specific BD description can refer to the register description chapter.
Note that: For BD, you need to write in word.
The EMAC module supports 128 BDs, which are shared by the sending/receiving logic and can be freely combined.
But the sending BD always occupies the previous continuous area (the number is specified by the TXBDNUM field in
the MAC_TX_BD_NUM register).
EMAC processes the sending/receiving BD in the order of BD, until it encounters the BD marked as WR, it wraps
around to send/receive the respective first BD.
17.6 PHY interaction
The PHY interaction register group provides the commands and data communication methods needed for PHY in-
teraction. EMAC controls the working mode of PHY through MDIO and ensures that the two match (rate, full/half du-
plex).
The data packet interacts between EMAC and PHY through the MII/RMII interface, and can be selected by RMII_EN
in the EMAC mode register (EMAC_MODE). When this bit is 1, select RMII mode, otherwise it is MII mode.
Both MII and RMII modes support the 10Mbps and 100Mbps transmission rates specified in the IEEE 802.3u standard.
The transmission signal description of MII and RMII is shown in the table below.
Table 17.1: Transmission signal
Name
MII RMII
EXTCK_EREFCK ETXCK: send clock signal EREFCK: reference clock
ECRS ECRS: carrier detection -
BL702/704/706 Reference Manual 292/ 375
@2021 Bouffalo Lab