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.

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

Ethernet PTP time stamp low update register (ETH_PTPTSLUR)<br />

Address offset: 0x0714<br />

Reset value: 0x0000 0000<br />

This register contains the least significant (lower) 32 bits of the time to be written to, added<br />

to, or subtracted from the System Time value.<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 />

TSUPNS<br />

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

Bit 31 TSUPNS: Time stamp update positive or negative sign<br />

This bit indicates positive or negative time value. When set, the bit indicates that time<br />

representation is negative. When cleared, it indicates that time representation is positive.<br />

When TSSTI is set (system time initialization) this bit should be zero. If this bit is set when<br />

TSSTU is set, the value in the Time stamp update registers is subtracted from the system<br />

time. Otherwise it is added to the system time.<br />

Bits 30:0 TSUSS: Time stamp update subseconds<br />

The value in this field indicates the subsecond time to be initialized or added to the system<br />

time. This value has an accuracy of 0.46 ns (in other words, a value of 0x0000_0001 is<br />

0.46 ns).<br />

Ethernet PTP time stamp addend register (ETH_PTPTSAR)<br />

Address offset: 0x0718<br />

Reset value: 0x0000 0000<br />

This register is used by the software to readjust the clock frequency linearly to match the<br />

master clock frequency. This register value is used only when the system time is configured<br />

for Fine update mode (TSFCU bit in ETH_PTPTSCR). This register content is added to a<br />

32-bit accumulator in every clock cycle and the system time is updated whenever the<br />

accumulator overflows.<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 />

997/1416 Doc ID 018909 Rev 3<br />

TSA<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 TSA: Time stamp addend<br />

This register indicates the 32-bit time value to be added to the Accumulator register to<br />

achieve time synchronization.

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

Saved successfully!

Ooh no, something went wrong!