Specifications
RX62N Group Ethernet Transmit and Receive Settings
End
2
Set transmit data in the buffer specified by the current descriptor.
Set the transmit request (TR) bit in the EDMAC transmit request register (EDTRR)
to 1 to start the transmit function.
Set the next descriptor as the current descriptor.
Set the current descriptor to the transmit-enabled state.
Set TFP to a position within the transmit frame.
Set TDL to the transmit data length.
Set the TACT bit to 1. (This bit is set last.)
Set transmit frame in transmit buffer
Transmit descriptor settings
Update transmit descriptor
management pointer
Start transmission
Figure 4.13 Sample Ethernet Transmit/Receive Setting Sequence (3)
4.2 21BOperation of Sample Program
The sample program performs one of the two tasks listed below according to the test type selected in the main routine.
In both cases, the same settings are used for the Ethernet initial state.
• Transmission of 10 Ethernet frames
• Reception of 10 Ethernet frames
4.2.1 43BOperation of Sample Program (Transmission)
When the transmission test is selected, the sample program uses the ETHERC and EDMAC to transmit 10 frames to
the partner host.
Eight transmit descriptor planes and eight 1,536-byte transmit buffer planes are prepared. The transmit descriptors are
put into a linked state for use.
After writing 10 frames worth of transmit data to the transmit buffer, the sample program uses the transmit request
(TR) bit in the EDMAC transmit request register (EDTRR) to determine when transmission of the 10 frames is
complete, then ends the transmission test.
4.2.2 44BOperation of Sample Program (Reception)
When the reception test is selected, the sample program uses the ETHERC and EDMAC to receive 10 frames from
the partner host.
Eight receive descriptor planes and eight 1,536-byte receive buffer planes are prepared. The receive request bit reset
(RNR) bit in the receiving method control register (RMCR) is set to 1 to enable continuous reception.
The sample program checks the RFE bit in the receive descriptor (bit 27 in RD0) and, if there is no error (RFE = 0),
copies 1 frame of data from the receive buffer to the user buffer. Then it initializes the relevant descriptor to prepare for
the next transmission. If an error has occurred (RFE = 1), the sample program just initializes the relevant descriptor but
does not copy a frame to the user buffer. Note that the data transferred to the receive buffer consists of the portion of the
Ethernet frame other than the preamble, SFD, and CRC.
R01AN0629EJ0101 Rev.1.01 Page 30 of 52
Mar 31, 2011