09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

● TDES2: Transmit descriptor Word2<br />

TDES2 contains the address pointer to the first buffer of the descriptor or it contains<br />

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 />

TBAP1/TBAP/TTSL<br />

rw<br />

Bits 31:0 TBAP1: Transmit buffer 1 address pointer / Transmit frame time stamp low<br />

These bits have two different functions: they indicate to the DMA the location of data in<br />

memory, and after all data are transferred, the DMA can then use these bits to pass back time<br />

stamp data.<br />

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

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

limitation on the buffer address alignment. See Host data buffer alignment on page 942 for further<br />

details on buffer address alignment.<br />

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

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

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

frame (see TTSE, TDES0 bit 25) and if the Last segment control bit (LS) in the descriptor is<br />

set.<br />

● TDES3: Transmit descriptor Word3<br />

TDES3 contains the address pointer either to the second buffer of the descriptor or the<br />

next descriptor, or it 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 />

TBAP2/TBAP2/TTSH<br />

rw<br />

Bits 31:0 TBAP2: Transmit buffer 2 address pointer (Next descriptor address) / Transmit frame time<br />

stamp high<br />

These bits have two different functions: they indicate to the DMA the location of data in<br />

memory, and after all data are transferred, the DMA can then use these bits to pass back<br />

time stamp data.<br />

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

the OWN bit is set to 1 in TDES0), these bits indicate the physical address of Buffer 2 when a<br />

descriptor ring structure is used. If the Second address chained (TDES1 [24]) bit is set, this<br />

address contains the pointer to the physical memory where the next descriptor is present. The<br />

buffer address pointer must be aligned to the bus width only when TDES1 [24] is set. (LSBs are<br />

ignored internally.)<br />

TTSH: Before it clears the OWN bit in TDES0, the DMA updates this field with the 32 most<br />

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

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

frame (see TDES0 bit 25, TTSE) and if the Last segment control bit (LS) in the descriptor is<br />

set.<br />

Doc ID 018909 Rev 3 952/1416

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

Saved successfully!

Ooh no, something went wrong!