GD32F10x User Manual
689
than TX_CLK, the efficiency of transmitting two frames will be greatly reduced.
To avoid the case mentioned above, application can set OSF to 1.If so, the second frame
data can be read from the memory and push into FIFO without waiting the first frame’s status
writing back. OSF function is only performed between two neighboring frames.
TxDMA operation mode (A) (default mode): Non-OSF
The TxDMA controller in Non-OSF mode proceeds as follows:
1)
Initialize the frame data into the buffer space and configure the descriptor (TDES0-3)
with DAV bit of TDES0 sets to 1.
2)
Enable TxDMA controller by setting STE bit in ENET_DMA_CTL register.
3)
The TxDMA controller starts continue polling and performing transmit descriptor. When
the DAV bit in TDES0[31] that TxDMA controller read is cleared, or any error condition
occurs, the controller will enter suspend state and at the same time both the transmit
buffer unavailable bit in ENET_DMA_STAT and normal interrupt summary bit in
ENET_DMA_STAT register are set. If entered into suspend state, operation proceeds
to Step 8.
4)
When the DAV bit in TDES0[31] of the acquired descriptor is set, the DMA decodes the
transmit frame configured and the data buffer address from the acquired descriptor.
5)
DMA retrieve data from the memory and push it into the TxFIFO of MAC.
6)
The TxDMA controller continues polling the descriptor table until the EOF data (LSG bit
is set) is transferred. If the LSG bit of current descriptor is reset, it will be closed by
resetting the DAV bit after all buffer data pushed into TxFIFO. Then the TxDMA
controller waits to write back descriptor status and IEEE 1588 timestamp value if
enabled.
7)
After the whole frame is transferred, the transmit status bit (TS bit in
ENET_DMA_STAT register) is set only when INTC bit in TDES0[30] is set. Also an
interrupt generates if the corresponding interrupt enable flag is set. The TxDMA
controller returns to Step 3 for the next frame.
8)
In the suspend state, application can make TxDMA returns to running state by writing
any data to ENET_DMA_TPEN register and clearing the transmit underflow flag. Then
the TxDMA controller process turns to Step 3.
TxDMA operation mode (B): OSF
The TxDMA controller supports transmitting two frames without waiting status write back of
the first frame, this mode is called operation on second frame (OSF). When the frequency of
system is much faster than the frequency of the MAC interface (10Mbit/s or 100Mbit/s), the
OSF mode can improve the sending efficiency. Setting OSF bit in ENET_DMA_CTL register
can enable this mode. When the TxDMA controller received EOF of the first frame, it will not
enter the state of waiting status write back but to fetch the next descriptor, if the DAV bit and
FSG bit of the next descriptor is set, the TxDMA controller immediately read the second frame
data an push them into the MAC FIFO.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...