Datasheet

DP83640
SNOSAY8E SEPTEMBER 2007REVISED APRIL 2013
www.ti.com
10.6.7 PTP Receive Configuration Register 1 (PTP_RXCFG1), Page 5
This register provides data and mask fields to filter the first byte in a PTP Message. This function will be
disabled if all the mask bits are set to 0.
Table 10-58. PTP Receive Configuration Register 1 (PTP_RXCFG1), address 0x1A
Bit Bit Name Default Description
15:8 BYTE0_MASK 0000 0000, RW Byte0 Data:
Bit mask to be used for matching Byte0 of the Receive PTP Message. A one in any
bit enables matching for the associated data bit. If no matching is required, all bits of
the mask should be set to 0.
7:0 BYTE0_DATA 0000 0000, RW Byte0 Mask:
Data to be used for matching Byte0 of the Receive PTP Message.
10.6.8 PTP Receive Configuration Register 2 (PTP_RXCFG2), Page 5
This register provides for programming an IP address to be used for filtering packets to detect PTP Event
Messages. Since the IPv4 address is 32-bits, to write an IP address, software must write two 16-bit
values. The USER_IP_SEL bit in the PTP_RXCFG0 register selects which octects of the IP address are
accessible through this register. For example, to write an IP address of 224.0.1.129, software should do
the following:
1. Set USER_IP_SEL bit in PTP_RXCFG0 register to 0
2. Write 0xE000 (224.00) to PTP_RXCFG2
3. Set USER_IP_SEL bit in the PTP_RXCFG0 register to 1
4. Write 0x0181 (01.129) to PTP_RXCFG2
Reading this registerwill return the IP address field selected by USER_IP_SEL.
Table 10-59. PTP Receive Configuration Register 2 (PTP_RXCFG2), address 0x1B
Bit Bit Name Default Description
15:0 IP_ADDR_DATA 0000 0000 0000 Receive IP Address Data:
0000, RW 16-bits of the IP Address field to be read or written. The USER_IP_SEL bit in the
PTP_RXCFG0 Register selects the portion of the IP address is to be read or written.
10.6.9 PTP Receive Configuration Register 3 (PTP_RXCFG3), Page 5
This register provides extended configuration for IEEE 1588 Receive Timestamp operation.
Table 10-60. PTP Receive Configuration Register 3 (PTP_RXCFG3), address 0x1C
Bit Bit Name Default Description
15:1 TS_MIN_IFG 1100, RW Minimum Inter-frame Gap:
2 When a Timestamp is appended to a PTP Message, the length of the packet may
get extended. This could reduce the Inter-frame Gap (IFG) between packets by as
much as 8 byte times (640 ns at 100 Mb). This field sets a minimum on the IFG
between packets in number of byte times. If the IFG is set larger than the actual
IFG, preamble bytes of the subsequent packet will get dropped. This value should
be set to the lowest possible value that the attached MAC can support.
11 ACC_UDP 0, RW Record Timestamp if UDP Checksum Error:
By default, Timestamps will be discarded for packets with UDP Checksum errors. If
this bit is set, then the Timestamp will be made available in the normal manner.
10 ACC_CRC 0, RW Record Timestamp if CRC Error:
By default, Timestamps will be discarded for packets with CRC errors. If this bit is
set, then the Timestamp will be made available in the normal manner.
9 TS_APPEND 0, RW Append Timestamp for L2:
For Layer 2 encapsulated PTP messages, if this bit is set, always append the
Timestamp to end of the PTP message rather than inserted in unused message
fields. This bit will be ignored if TS_INSERT is 0.
124 Register Block Copyright © 2007–2013, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640