29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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

RM0008<br />

●<br />

●<br />

●<br />

RDES0: Receive descriptor Word0<br />

Refer to RDES0: Receive descriptor Word0 section<br />

RDES1: Receive descriptor Word1<br />

Refer to RDES1: Receive descriptor Word1 section<br />

RDES2: Receive descriptor Word2<br />

The table below describes the fields that have different meaning for RDES2 when the<br />

receive descriptor is closed <strong>and</strong> time stamping is enabled.<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 />

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

.<br />

Bits 31:0 RTSL: Receive frame time stamp low<br />

The DMA updates this field with the 32 least significant bits of the time stamp captured for the<br />

corresponding receive frame. The DMA updates this field only for the last descriptor of the receive<br />

frame indicated by last descriptor status bit (RDES0[8]). When this field <strong>and</strong> the RTSH field in RDES3<br />

show all ones, the time stamp must be treated as corrupt.<br />

●<br />

RDES3: Receive descriptor Word3<br />

The table below describes the fields that have different meaning for RDES3 when the<br />

receive descriptor is closed <strong>and</strong> time stamping is enabled.<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 />

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

.<br />

Bits 31:0 RTSH: Receive frame time stamp high<br />

The DMA updates this field with the 32 most significant bits of the time stamp captured for the<br />

corresponding receive frame. The DMA updates this field only for the last descriptor of the receive frame<br />

indicated by last descriptor status bit (RDES0[8]).<br />

When this field <strong>and</strong> RDES2’s RTSL field show all ones, the time stamp must be treated as<br />

corrupt.<br />

27.6.9 DMA interrupts<br />

Interrupts can be generated as a result of various events. The ETH_DMASR register<br />

contains all the bits that might cause an interrupt. The ETH_DMAIER register contains an<br />

enable bit for each of the events that can cause an interrupt.<br />

There are two groups of interrupts, Normal <strong>and</strong> Abnormal, as described in the<br />

ETH_DMASR register. Interrupts are cleared by writing a 1 to the corresponding bit position.<br />

When all the enabled interrupts within a group are cleared, the corresponding summary bit<br />

is cleared. If the MAC core is the cause for assertion of the interrupt, then any of the TSTS<br />

or PMTS bits in the ETH_DMASR register is set high.<br />

Interrupts are not queued <strong>and</strong> if the interrupt event occurs before the driver has responded<br />

to it, no additional interrupts are generated. For example, the Receive Interrupt bit<br />

(ETH_DMASR register [6]) indicates that one or more frames were transferred to the<br />

904/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!