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

Bit 4 TSITE: Time stamp interrupt trigger enable<br />

When this bit is set, a time stamp interrupt is generated when the system time becomes<br />

greater than the value written in the Target time register. When the Time stamp trigger<br />

interrupt is generated, this bit is cleared.<br />

Bit 3 TSSTU: Time stamp system time update<br />

When this bit is set, the system time is updated (added to or subtracted from) with the value<br />

specified in the Time stamp high update and Time stamp low update registers. Both the<br />

TSSTU and TSSTI bits must be read as zero before you can set this bit. Once the update is<br />

completed in hardware, this bit is cleared.<br />

Bit 2 TSSTI: Time stamp system time initialize<br />

When this bit is set, the system time is initialized (overwritten) with the value specified in the<br />

Time stamp high update and Time stamp low update registers. This bit must be read as zero<br />

before you can set it. When initialization is complete, this bit is cleared.<br />

Bit 1 TSFCU: Time stamp fine or coarse update<br />

When set, this bit indicates that the system time stamp is to be updated using the Fine<br />

Update method. When cleared, it indicates the system time stamp is to be updated using the<br />

Coarse method.<br />

Bit 0 TSE: Time stamp enable<br />

When this bit is set, time stamping is enabled for transmit and receive frames. When this bit<br />

is cleared, the time stamp function is suspended and time stamps are not added for transmit<br />

and receive frames. Because the maintained system time is suspended, you must always<br />

initialize the time stamp feature (system time) after setting this bit high.<br />

The table below indicates the messages for which a snapshot is taken depending on the<br />

clock, enable master and enable snapshot for event message register settings.<br />

Table 167. Time stamp snapshot dependency on registers bits<br />

TSCNT<br />

(bits 17:16)<br />

1. N/A = not applicable.<br />

2. X = don’t care.<br />

TSSMRME<br />

(bit 15) (1)<br />

00 or 01 X (2)<br />

TSSEME<br />

(bit 14)<br />

00 or 01 1 1 Delay_Req<br />

00 or 01 0 1 SYNC<br />

Messages for which snapshots are taken<br />

0 SYNC, Follow_Up, Delay_Req, Delay_Resp<br />

10 N/A 0 SYNC, Follow_Up, Delay_Req, Delay_Resp<br />

10 N/A 1 SYNC, Follow_Up<br />

11 N/A 0<br />

SYNC, Follow_Up, Delay_Req, Delay_Resp,<br />

Pdelay_Req, Pdelay_Resp<br />

11 N/A 1 SYNC, Pdelay_Req, Pdelay_Resp<br />

Ethernet PTP subsecond increment register (ETH_PTPSSIR)<br />

Address offset: 0x0704<br />

Reset value: 0x0000 0000<br />

This register contains the 8-bit value by which the subsecond register is incremented. In<br />

Coarse update mode (TSFCU bit in ETH_PTPTSCR), the value in this register is added to<br />

Doc ID 018909 Rev 3 994/1416

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

Saved successfully!

Ooh no, something went wrong!