09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>RM0090</strong> Ethernet (ETH): media access control (MAC) with DMA controller<br />

● RDES2: Receive descriptor Word2<br />

RDES2 contains the address pointer to the first data buffer in the descriptor, or it<br />

contains time stamp data.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

RBP1 / RTSL<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bits 31:0 RBAP1 / RTSL: Receive buffer 1 address pointer / Receive frame time stamp low<br />

These bits take on two different functions: the application uses them to indicate to the DMA<br />

where to store the data in memory, and then after transferring all the data the DMA may use<br />

these bits to pass back time stamp data.<br />

RBAP1: When the software makes this descriptor available to the DMA (at the moment that<br />

the OWN bit is set to 1 in RDES0), these bits indicate the physical address of Buffer 1. There are<br />

no limitations on the buffer address alignment except for the following condition: the DMA uses the<br />

configured value for its address generation when the RDES2 value is used to store the start of<br />

frame. Note that the DMA performs a write operation with the RDES2[3/2/1:0] bits as 0 during the<br />

transfer of the start of frame but the frame data is shifted as per the actual Buffer address pointer.<br />

The DMA ignores RDES2[3/2/1:0] (corresponding to bus width of 128/64/32) if the address pointer<br />

is to a buffer where the middle or last part of the frame is stored.<br />

RTSL: Before it clears the OWN bit in RDES0, the DMA updates this field with the 32 least<br />

significant bits of the time stamp captured for the corresponding receive frame (overwriting<br />

the value for RBAP1). This field has the time stamp only if time stamping is activated for this<br />

frame and if the Last segment control bit (LS) in the descriptor is set.<br />

Doc ID 018909 Rev 3 962/1416

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!