Product
Folder
Sample &
Buy
Tools &
Software
Technical
Documents
Support &
Community
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
DP83640 Precision PHYTER™ - IEEE 1588 Precision Time Protocol Transceiver
1 Device Overview
1.1
Features
1
• IEEE 1588 V1 and V2 Supported
• UDP/IPv4, UDP/IPv6, and Layer2 Ethernet
Packets Supported
• IEEE 1588 Clock Synchronization
• Timestamp Resolution of 8 ns
• Allows Sub 10-ns Synchronization to Master
Reference
• 12 IEEE 1588 GPIOs for Trigger or Capture
• Deterministic, Low Transmit and Receive Latency
• Selectable Frequency Synchronized Clock Output
• Dynamic Link Quality Monitoring
• TDR Based Cable Diagnostic and Cable Length
Detection
• 10/100 Mb/s Packet BIST (Built-in Self Test)
• Error-Free Operation up to 150 Meters CAT5
1.2
•
•
•
•
•
•
•
•
Applications
Factory Automation
– Ethernet/IP
– CIP Sync
Test and Measurement
– LXI Standard
1.3
•
•
•
•
•
Cable
ESD Protection - 8 kV Human Body Model
2.5-V and 3.3-V I/Os and MAC Interface
Auto-MDIX for 10/100 Mbps
RMII Rev. 1.2 and MII MAC Interface
25-MHz MDC and MDIO Serial Management
Interface
IEEE 802.3 100BASE-FX Fiber Interface
IEEE 1149.1 JTAG
Programmable LED Support for Link, 10/100 Mb/s
Mode, Duplex, Activity, and Collision Detect
Optional 100BASE-TX Fast Link-loss Detection
Industrial Temperature Range
48-pin LQFP Package (7 mm × 7 mm)
•
•
Telecom
– Basestation
Real Time Networking
Description
The DP83640 Precision PHYTER™ device delivers the highest level of precision clock synchronization for
real time industrial connectivity based on the IEEE 1588 standard. The DP83640 has deterministic, low
latency and allows choice of microcontroller with no hardware customization required. The integrated 1588
functionality allows system designers the flexibility and precision of a close to the wire timestamp. The
three key 1588 features supported by the device are:
• Packet time stamps for clock synchronization
• Integrated IEEE 1588 synchronized clock generation
• Synchronized event triggering and time stamping through GPIO
DP83640 offers innovative diagnostic features unique to Texas Instruments, including dynamic monitoring
of link quality during standard operation for fault prediction. These advanced features allow the system
designer to implement a fault prediction mechanism to detect and warn of deteriorating and changing link
conditions. This single port fast Ethernet transceiver can support both copper and fiber media.
Device Information (1)
PART NUMBER
DP83640
(1)
PACKAGE
LQFP (48)
BODY SIZE (NOM)
7.00 mm × 7.00 mm
For more information, see Section 8, Mechanical Packaging and Orderable Information.
1
An IMPORTANT NOTICE at the end of this data sheet addresses availability, warranty, changes, use in safety-critical applications,
intellectual property matters and other important disclaimers. PRODUCTION DATA.
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
1.4
www.ti.com
Functional Block Diagram
RX_CLK
RXD[3:0]
RX_DV
RX_ER
COL
MDC
MDIO
TX_EN
TXD[3:0]
TX_CLK
SERIAL
MANAGEMENT
CRS/CRS_DV
MII/RMII
MII/RMII INTERFACE
TX_DATA
TX_CLK
RX_CLK
RX_DATA
MANAGEMENT
REGISTERS
10BASE -T
AND
100BASE-TX
10BASE -T
AND
100BASE-TX
AUTO-NEGOTIATION
REGISTERS
TRANSMIT BLOCK
RECEIVE BLOCK
CLOCK
GENERATION
IEEE 1588
DAC
ADC
ANALOG SIGNAL
PROCESSOR
BOUNDARY
SCAN
JTAG
2
LED
DRIVERS
AUTO-MDIX
TD+/-
RD+/-
SYSTEM CLOCK
REFERENCE
GPIO
Device Overview
LEDS
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
Table of Contents
1
2
3
4
Device Overview ......................................... 1
4.3
Recommended Operating Conditions ............... 12
1.1
Features .............................................. 1
4.4
Thermal Information ................................. 12
1.2
Applications ........................................... 1
4.5
DC Specifications ................................... 13
1.3
Description ............................................ 1
4.6
AC Timing Requirements
1.4
Functional Block Diagram ............................ 2
5
Revision History ......................................... 3
Pin Configuration and Functions ..................... 4
3.1
Pin Layout ............................................ 5
3.2
Package Pin Assignments............................ 6
3.3
Serial Management Interface (SMI) .................. 6
.................................. 6
....................................... 8
3.6
LED Interface ......................................... 8
3.7
IEEE 1588 Event/Trigger/Clock Interface ............ 9
3.8
JTAG Interface ....................................... 9
3.9
Reset and Power Down .............................. 9
3.10 Strap Options ....................................... 10
3.11 10 Mb/s and 100 Mb/s PMD Interface .............. 11
3.12 Power Supply Pins .................................. 11
Specifications ........................................... 12
4.1
Absolute Maximum Ratings ......................... 12
4.2
ESD Ratings ........................................ 12
3.4
MAC Data Interface
3.5
Clock Interface
6
7
8
...........................
14
Detailed Description ................................... 28
............................................
5.1
Overview
5.2
Functional Block Diagram ........................... 28
28
................................. 29
........................... 39
5.5
Programming ........................................ 47
5.6
Memory .............................................. 58
Application, Implementation, and Layout........ 113
6.1
Application Information............................. 113
6.2
Typical Application ................................. 117
6.3
Layout .............................................. 124
6.4
Power Supply Recommendations ................. 126
Device and Documentation Support .............. 127
7.1
Documentation Support ............................ 127
7.2
Trademarks ........................................ 127
7.3
Electrostatic Discharge Caution ................... 127
7.4
Glossary............................................ 127
5.3
Feature Description
5.4
Device Functional Modes
Mechanical, Packaging, and Orderable
Information ............................................. 127
2 Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
Changes from Revision E (April 2013) to Revision F
•
Page
Added ESD Ratings table, Feature Description section, Device Functional Modes, Application and
Implementation section, Power Supply Recommendations section, Layout section, Device and Documentation
Support section, and Mechanical, Packaging, and Orderable Information section .......................................... 1
Changes from Revision D (April 2013) to Revision E
•
Changed layout of National Data Sheet to TI format
Page
.........................................................................
Revision History
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
112
3
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
3 Pin Configuration and Functions
The DP83640 pins are classified into the following interface categories (each interface is described in the
sections that follow):
• Serial Management Interface
• MAC Data Interface
• Clock Interface
• LED Interface
• IEEE 1588 Event/Trigger/Clock Interface
• JTAG Interface
• Reset and Power Down
• Strap Options
• 10/100 Mb/s PMD Interface
• Power Supply Pins
NOTE
Strapping pin option. See Section 3.10 for strap definitions.
All DP83640 signal pins are I/O cells regardless of the particular use. The definitions below define the
functionality of the I/O cells for each pin.
Type: I
Input
Type: O
Output
Type: I/O
Input/Output
Type: OD
Open Drain
Type: PD,PU Internal Pulldown/Pullup
Type: S
4
Strapping Pin (All strap pins have weak internal pullups or pulldowns. If the default strap
value is to be changed then an external 2.2-kΩ resistor should be used. See Section 3.10 for
details.)
Pin Configuration and Functions
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
3.1
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
Pin Layout
GPIO8
IO_CORE_VSS
X1
X2
IO_VDD
MDC
MDIO
RESET_N
LED_LINK
LED_SPEED/FX_SD
LED_ACT
GPIO4
36
35
34
33
32
31
30
29
28
27
26
25
PT048 Package
48-Pin LQFP
Top View
GPIO9
37
24
CLK_OUT
RX_CLK
38
23
GPIO3
RX_DV
39
22
GPIO2
CRS/CRS_DV
40
21
GPIO1
RX_ER
41
20
VREF
COL
42
19
ANA33VDD
RXD_3
43
18
ANAVSS
RXD_2
44
17
TD+
RXD_1
45
16
TD-
RXD_0
46
15
CD_VSS
IO_VSS
47
14
RD+
IO_VDD
48
13
RD-
3
4
5
6
7
8
9
10
11
TXD_0
TXD_1
TXD_2
TXD_3
PWRDOWN/INTN
TCK
TDO
TMS
TRST#
12
2
TX_EN
TDI
1
TX_CLK
DP83640
Pin Configuration and Functions
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
5
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
3.2
www.ti.com
Package Pin Assignments
PIN
PIN
NAME
NO.
NAME
NO.
ANA33VDD
19
RESET_N
29
ANAVSS
18
RX_CLK
38
CD_VSS
15
RX_DV
39
CLK_OUT
24
RX_ER
41
COL
42
RXD_0
46
CRS/CRS_DV
40
RXD_1
45
GPIO1
21
RXD_2
44
GPIO2
22
RXD_3
43
GPIO3
23
TCK
8
GPIO4
25
TD-
16
GPIO8
36
TD+
17
GPIO9
37
TDI
12
IO_CORE_VSS
35
TDO
9
IO_VDD
32
TRST#
11
IO_VDD
48
TX_CLK
1
IO_VSS
47
TX_EN
2
LED_ACT
26
TXD_0
3
LED_LINK
28
TXD_1
4
LED_SPEED/FX_SD
27
TXD_2
5
MDC
31
TXD_3
6
MDIO
30
TMS
10
PWRDOWN/INTN
7
VREF
20
RD-
13
X1
34
RD+
14
X2
33
3.3
Serial Management Interface (SMI)
SIGNAL NAME
TYPE
PIN #
DESCRIPTION
MDC
MDC
I
31
MANAGEMENT DATA CLOCK: Synchronous clock to the MDIO
management data input/output serial interface which may be asynchronous
to transmit and receive clocks. The maximum clock rate is 25 MHz with no
minimum clock rate.
MDIO
MDIO
I/O
30
MANAGEMENT DATA I/O: Bi-directional management instruction/data
signal that may be sourced by the station management entity or the PHY.
This pin requires a 1.5-kΩ pullup resistor. Alternately, an internal pullup may
be enabled by setting bit 3 in the CDCTRL1 register.
3.4
PIN NAME
MAC Data Interface
SIGNAL NAME
TYPE
PIN #
DESCRIPTION
TX_CLK
TX_CLK
O
1
MII TRANSMIT CLOCK: 25-MHz Transmit clock output in 100 Mb/s mode
or 2.5 MHz in 10 Mb/s mode derived from the 25-MHz reference clock. The
MAC should source TX_EN and TXD[3:0] using this clock.
RMII MODE: Unused in RMII Slave mode. The device uses the X1
reference clock input as the 50 MHz reference for both transmit and
receive. For RMII Master mode, the device outputs the internally generated
50-MHz reference clock on this pin.
This pin provides an integrated 50-Ω signal termination, making external
termination resistors unnecessary.
TX_EN
TX_EN
I, PD
2
MII TRANSMIT ENABLE: Active high input indicates the presence of valid
data inputs on TXD[3:0].
RMII TRANSMIT ENABLE: Active high input indicates the presence of valid
data on TXD[1:0].
6
PIN NAME
Pin Configuration and Functions
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SIGNAL NAME
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
PIN NAME
TYPE
PIN #
I
I
I
I, PD
3
4
5
6
MII TRANSMIT DATA: Transmit data MII input pins, TXD[3:0], that accept
data synchronous to the TX_CLK (2.5 MHz in 10 Mb/s mode or 25 MHz in
100 Mb/s mode).
RMII TRANSMIT DATA: Transmit data RMII input pins, TXD[1:0], that
accept data synchronous to the 50-MHz reference clock.
RX_CLK
O
38
MII RECEIVE CLOCK: Provides the 25-MHz recovered receive clocks for
100 Mb/s mode and 2.5 MHz for 10 Mb/s mode.
RMII MODE: Unused in RMII Slave mode. The device uses the X1
reference clock input as the 50-MHz reference for both transmit and
receive. For RMII Master mode, the device outputs the internally generated
50-MHz reference clock on this pin.
This pin provides an integrated 50-Ω signal termination, making external
termination resistors unnecessary.
RX_DV
RX_DV
O, PD
39
MII RECEIVE DATA VALID: Asserted high to indicate that valid data is
present on the corresponding RXD[3:0].
RMII RECEIVE DATA VALID: This signal provides the RMII Receive Data
Valid indication independent of Carrier Sense.
This pin provides an integrated 50-Ω signal termination, making external
termination resistors unnecessary.
RX_ER
RX_ER
S, O, PU
41
MII RECEIVE ERROR: Asserted high synchronously to RX_CLK to indicate
that an invalid symbol has been detected within a received packet in 100
Mb/s mode.
RMII RECEIVE ERROR: Asserted high synchronously to X1 whenever a
media error is detected, and RX_DV is asserted in 100 Mb/s mode.
This pin is not required to be used by a MAC in RMII mode because the
PHY is required to corrupt data on a receive error.
This pin provides an integrated 50-Ω signal termination, making external
termination resistors unnecessary.
RXD_0
RXD_1
RXD_2
RXD_3
RXD_0
RXD_1
RXD_2
RXD_3
S, O, PD
46
45
44
43
MII RECEIVE DATA: Nibble wide receive data signals driven synchronously
to the RX_CLK (25 MHz for 100 Mb/s mode, 2.5 MHz for 10 Mb/s mode).
RXD[3:0] signals contain valid data when RX_DV is asserted.
RMII RECEIVE DATA: 2-bits receive data signals, RXD[1:0], driven
synchronously to the 50-MHz reference clock.
These pins provide integrated 50-Ω signal terminations, making external
termination resistors unnecessary.
CRS/CRS_DV
CRS/CRS_DV
S, O, PU
40
MII CARRIER SENSE: Asserted high to indicate the receive medium is
non-idle.
RMII CARRIER SENSE/RECEIVE DATA VALID: This signal combines the
RMII Carrier and Receive Data Valid indications. For a detailed description
of this signal, see the RMII Specification.
This pin provides an integrated 50-Ω signal termination, making external
termination resistors unnecessary.
COL
COL
S, O, PU
42
MII COLLISION DETECT: Asserted high to indicate detection of a collision
condition (simultaneous transmit and receive activity) in 10 Mb/s and 100
Mb/s Half-Duplex Modes.
While in 10BASE-T Half-Duplex mode with heartbeat enabled this pin is
also asserted for a duration of approximately 1 µs at the end of
transmission to indicate heartbeat (SQE test).
In Full-Duplex Mode, for 10 Mb/s or 100 Mb/s operation, this signal is
always logic 0. There is no heartbeat function during 10 Mb/s full-duplex
operation.
RMII COLLISION DETECT: Per the RMII Specification, no COL signal is
required. The MAC will recover CRS from the CRS_DV signal and use that
along with its TX_EN signal to determine collision.
This pin provides an integrated 50-Ω signal termination, making external
termination resistors unnecessary.
TXD_0
TXD_1
TXD_2
TXD_3
TXD_0
TXD_1
TXD_2
TXD_3
RX_CLK
DESCRIPTION
Pin Configuration and Functions
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
7
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
3.5
www.ti.com
Clock Interface
TYPE
PIN #
DESCRIPTION
X1
SIGNAL NAME
X1
PIN NAME
I
34
CRYSTAL/OSCILLATOR INPUT: This pin is the primary clock reference
input for the DP83640 and must be connected to a 25-MHz 0.005% (±50
ppm) clock source. The DP83640 supports either an external crystal
resonator connected across pins X1 and X2 or an external CMOS-level
oscillator source connected to pin X1 only.
RMII REFERENCE CLOCK: For RMII Slave Mode, this pin must be
connected to a 50-MHz 0.005% (±50 ppm) CMOS-level oscillator source. In
RMII Master Mode, a 25-MHz reference is required, either from an external
crystal resonator connected across pins X1 and X2 or from an external
CMOS-level oscillator source connected to pin X1 only.
X2
X2
O
33
CRYSTAL OUTPUT: This pin is the primary clock reference output to
connect to an external 25-MHz crystal resonator device. This pin must be
left unconnected if an external CMOS oscillator clock source is used.
CLK_OUT
CLK_OUT
I/O, PD
24
CLOCK OUTPUT: This pin provides a highly configurable system clock,
which may have one of four sources:
1. Relative to the internal PTP clock, with a default frequency of 25 MHz
(default)
2. 50-MHz RMII reference clock in RMII Master Mode
3. 25-MHz Receive Clock (same as RX_CLK) in 100-Mb mode
4. 25-MHz or 50-MHz pass-through of X1 reference clock
CLOCK INPUT: This pin is used to input an external IEEE 1588 reference
clock for use by the IEEE 1588 logic. The CLK_OUT_EN strap should be
disabled in the system to prevent possible contention. The PTP_CLKSRC
register must be configured prior to enabling the IEEE 1588 function in
order to allow correct operation.
3.6
LED Interface
The DP83640 supports three configurable LED pins. The LEDs support two operational modes which are
selected by the LED mode strap and a third operational mode which is register configurable. The
definitions for the LEDs for each mode are detailed below.
TYPE
PIN #
DESCRIPTION
LED_LINK
SIGNAL NAME
LED_LINK
S, O, PU
28
LINK LED: In Mode 1, this pin indicates the status of the LINK.
The
LED
will
be
ON
when
Link
is
good.
LINK/ACT LED: In Mode 2 and Mode 3, this pin indicates transmit and
receive activity in addition to the status of the Link. The LED will be ON
when Link is good. It will blink when the transmitter or receiver is active.
LED_SPEED
LED_SPEED/FX_S
D
S, O, PU
27
SPEED LED: The LED is ON when device is in 100 Mb/s and OFF when in
10 Mb/s. Functionality of this LED is independent of mode selected.
LED_ACT
LED_ACT
S, O, PU
26
ACTIVITY LED: In Mode 1, this pin is the Activity LED which is ON when
activity
is
present
on
either
Transmit
or
Receive.
COLLISION/DUPLEX LED: In Mode 2, this pin by default indicates
Collision detection. In Mode 3, this LED output indicates Full-Duplex status.
8
PIN NAME
Pin Configuration and Functions
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
3.7
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
IEEE 1588 Event/Trigger/Clock Interface
TYPE
PIN #
GPIO1
GPIO2
GPIO3
GPIO4
SIGNAL NAME
GPIO1
GPIO2
GPIO3
GPIO4
I/O, PD
21
22
23
25
General Purpose I/O: These pins may be used to signal or detect events.
GPIO5
GPIO6
I/O, PU
26
27
General Purpose I/O: These pins may be used to signal or detect events.
Care should be taken when designing systems that use LEDs but use these
pins as GPIOs. To disable the LED functions, refer to Section 5.6.1.2.5.
GPIO7
LED_ACT
LED_SPEED/FX_S
D
LED_LINK
GPIO8
GPIO9
GPIO8
GPIO9
I/O, PD
36
37
General Purpose I/O: These pins may be used to signal or detect events.
GPIO10
GPIO11
TDO
TDI
I/O, PU
9
12
General Purpose I/O: These pins may be used to signal or detect events.
Care should be taken when designing systems that use the JTAG interface
but use these pins as GPIOs.
GPIO12
CLK_OUT
I/O, PD
24
General Purpose I/O: This pin may be used to signal or detect events or
may output a programmable clock signal synchronized to the internal IEEE
1588 clock or may be used as an input for an externally generated IEEE
1588 reference clock. If the system does not require the CLK_OUT signal,
the CLK_OUT output should be disabled through the CLK_OUT_EN strap.
TYPE
PIN #
3.8
PIN NAME
DESCRIPTION
28
JTAG Interface
SIGNAL NAME
PIN NAME
DESCRIPTION
TCK
TCK
I, PU
8
TEST CLOCK
TDO
TDO
O
9
TEST OUTPUT
TMS
TMS
I, PU
10
TEST MODE SELECT
TRST#
TRST#
I, PU
11
This pin has a weak internal pullup.
This pin has a weak internal pullup.
TEST RESET: Active low test reset.
This pin has a weak internal pullup.
TDI
TDI
I, PU
12
TEST DATA INPUT
This pin has a weak internal pullup.
3.9
Reset and Power Down
SIGNAL NAME
TYPE
PIN #
DESCRIPTION
RESET_N
RESET_N
PIN NAME
I, PU
29
RESET: Active Low input that initializes or re-initializes the DP83640.
Asserting this pin low for at least 1 µs will force a reset process to occur.
All internal registers will re-initialize to their default states as specified for
each bit in the Register Block section. All strap options are re-initialized as
well.
PWRDOWN/INTN
PWRDOWN/INTN
I, PU
7
The
default
function
of
this
pin
is
POWER
DOWN.
POWER DOWN: Asserting this signal low enables the DP83640 Power
Down mode of operation. In this mode, the DP83640 will power down and
consume minimum power. Register access will be available through the
Management Interface to configure and power up the device.
INTERRUPT: This pin may be programmed as an interrupt output instead
of a Powerdown input. In this mode, Interrupts will be asserted low using
this pin. Register access is required for the pin to be used as an interrupt
mechanism. See Section 5.3.6.2 for more details on the interrupt
mechanisms.
Pin Configuration and Functions
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
9
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
3.10 Strap Options
The DP83640 uses many of the functional pins as strap options to place the device into specific modes of
operation. The values of these pins are sampled at power up or hard reset. During software resets, the
strap options are internally reloaded from the values sampled at power up or hard reset. The strap option
pin assignments are defined below. The functional pin name is indicated in parentheses.
A 2.2-kΩ resistor should be used for pulldown or pullup to change the default strap option. If the default
option is required, then there is no need for external pullup or pulldown resistors. Because these pins may
have alternate functions after reset is deasserted, they should not be connected directly to VCC or GND.
TYPE
PIN #
DESCRIPTION
PHYAD0
PHYAD1
PHYAD2
PHYAD3
PHYAD4
SIGNAL NAME
COL
RXD_3
RXD_2
RXD_1
RXD_0
S, O, PU
S, O, PD
S, O, PD
S, O, PD
S, O, PD
42
43
44
45
46
PHY ADDRESS [4:0]: The DP83640 provides five PHY address pins,
the state of which are latched into the PHYCTRL register at system
Hardware-Reset.
The DP83640 supports PHY Address strapping values 0 ()
through 31 ().A PHY Address of 0 puts the part into the MII
Isolate Mode. The MII isolate mode must be selected by strapping
PHY Address 0; changing to Address 0 by register write will not put the
PHY in the MII isolate mode.
PHYAD[0] pin has weak internal pullup resistor.
PHYAD[4:1] pins have weak internal pulldown resistors.
AN_EN
AN1
LED_LINK
LED_SPEED/FX_S
D
LED_ACT
S, O, PU
S, O, PU
28
27
S, O, PU
26
AUTO-NEGOTIATION ENABLE: When high, this enables AutoNegotiation with the capability set by AN0 and AN1 pins. When low, this
puts the part into Forced Mode with the capability set by AN0 and AN1
pins.
AN0 / AN1: These input pins control the forced or advertised operating
mode of the DP83640 according to the following table. The value on
these pins is set by connecting the input pins to GND (0) or VCC (1)
through 2.2-kΩ resistors. These pins should NEVER be connected
directly to GND or VCC.
The value set at this input is latched into the DP83640 at HardwareReset.
The float/pulldown status of these pins are latched into the Basic Mode
Control Register and the Auto_Negotiation Advertisement Register
during Hardware-Reset.
The default is 111 because these pins have internal pullups.
FIBER MODE DUPLEX SELECTION: If Fiber mode is strapped using
the FX_EN_Z pin (FX_EN_Z = 0), the AN0 strap value is used to select
half or full duplex. AN_EN and AN1 are ignored in Fiber mode because
it is 100 Mb only and does not support Auto-Negotiation. In Fiber mode,
AN1 should not be connected to any system components except the
fiber transceiver.
AN0
CLK_OUT_EN
10
PIN NAME
GPIO1
S, I, PD
21
FX_EN_
Z
AN_EN
AN1
AN0
Forced Mode
1
0
0
0
10BASE-T, Half-Duplex
1
0
0
1
10BASE-T, Full-Duplex
1
0
1
0
100BASE-TX, Half-Duplex
1
0
1
1
100BASE-TX, Full-Duplex
0
X
X
0
100BASE-FX, Half-Duplex
0
X
X
1
100BASE-FX, Full-Duplex
FX_EN_
Z
AN_EN
AN1
AN0
1
1
0
0
10BASE-T, Half/Full-Duplex
1
1
0
1
100BASE-TX, Half/Full-Duplex
1
1
1
0
100BASE-TX, Full-Duplex
1
1
1
1
10BASE-T, Half/Full-Duplex,
100BASE-TX, Half/Full-Duplex
Advertised Mode
CLK_OUT OUTPUT ENABLE: When high, enables clock output on the
CLK_OUT pin at power-up.
Pin Configuration and Functions
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
TYPE
PIN #
DESCRIPTION
FX_EN_Z
SIGNAL NAME
RX_ER
PIN NAME
S, O, PU
41
FX ENABLE: This strapping option enables 100Base-FX (Fiber) mode.
This mode is disabled by default. An external pulldown will enable
100Base-FX mode.
LED_CFG
CRS/CRS_DV
S, O, PU
40
LED CONFIGURATION: This strapping option determines the mode of
operation of the LED pins. Default is Mode 1. Mode 1 and Mode 2 can
be controlled through the strap option. All modes are configurable
through register access.
See Table 5-2 for LED Mode Selection.
MII_MODE
RX_DV
S, O, PD
39
MII MODE SELECT: This strapping option determines the operating
mode of the MAC Data Interface. Default operation is MII Mode with a
value of 0 due to the internal pulldown. Strapping MII_MODE high will
cause the device to be in RMII mode of operation.
MII_MODE
MAC Interface Mode
0
MII Mode
1
RMII Mode
PCF_EN
GPIO2
S, I, PD
22
PHY CONTROL FRAME ENABLE: When high, allows the DP83640 to
respond to PHY Control Frames.
RMII_MAS
TXD_3
S, I, PD
6
RMII MASTER ENABLE: When MII_MODE is strapped high, this
strapping option enables RMII Master mode, in which the DP83640
uses a 25-MHz crystal connection on X1/X2 and generates the 50-MHz
RMII reference clock. If strapped low when MII_MODE is strapped high,
default RMII operation (RMII Slave) is enabled, in which the DP83640
uses a 50 MHz oscillator input on X1 as the RMII reference clock. This
strap option is ignored if the MII_MODE strap is low.
3.11 10 Mb/s and 100 Mb/s PMD Interface
SIGNAL NAME
PIN NAME
TYPE
PIN #
DESCRIPTION
TDTD+
TDTD+
I/O
16
17
Differential common driver transmit output (PMD Output Pair). These
differential outputs are automatically configured to either 10BASE-T or
100BASE-TX signaling.
In Auto-MDIX mode of operation, this pair can be used as the Receive Input
pair.
In 100BASE-FX mode, this pair becomes the 100BASE-FX Transmit pair.
These pins require 3.3-V bias for operation.
RDRD+
RDRD+
I/O
13
14
Differential receive input (PMD Input Pair). These differential inputs are
automatically configured to accept either 100BASE-TX or 10BASE-T
signaling.
In Auto-MDIX mode of operation, this pair can be used as the Transmit
Output pair.
In 100BASE-FX mode, this pair becomes the 100BASE-FX Receive pair.
These pins require 3.3-V bias for operation.
FX_SD
LED_SPEED/FX_S S, I/O, PU
D
27
FIBER MODE SIGNAL DETECT: This pin provides the Signal Detect input
for 100BASE-FX mode.
3.12 Power Supply Pins
SIGNAL NAME
PIN NAME
TYPE
PIN #
Ground
18
Analog Ground
ANA33VDD
Supply
19
Analog VDD Supply
CD_VSS
Ground
15
Analog Ground
IO_CORE_VSS
IO_CORE_VSS
Ground
35
Digital Ground
IO_VDD
IO_VDD
Supply
32
48
I/O VDD Supply
IO_VSS
IO_VSS
Ground
47
Digital Ground
VREF
VREF
20
Bias Resistor Connection. A 4.87-kΩ 1% resistor should be connected from
VREF to GND.
ANAVSS
ANAVSS
ANA33VDD
CD_VSS
DESCRIPTION
Pin Configuration and Functions
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
11
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
4 Specifications
Absolute Maximum Ratings (1) (2)
4.1
over operating free-air temperature range (unless otherwise noted)
MIN
MAX
–0.5
4.2
V
DC Input Voltage (VIN)
–0.5 to VCC +
0.5
V
DC Output Voltage (VOUT)
–0.5 to VCC +
0.5
V
Supply Voltage (VCC)
Maximum Case Temperature for TA = 85 °C
UNIT
95
°C
Maximum Die Temperature (TJ)
150
°C
Lead Temperature (TL)
(Soldering, 10 s)
260
Storage temperature, Tstg
(1)
(2)
–65
150
°C
Stresses beyond those listed under Absolute Maximum Ratings may cause permanent damage to the device. These are stress ratings
only, and functional operation of the device at these or any other conditions beyond those indicated under Recommended Operating
Conditions is not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability.
All voltage values are with respect to VSS, unless otherwise noted.
4.2
ESD Ratings
VALUE
Electrostatic discharge (1)
V(ESD)
(1)
(2)
(3)
°C
Human body model (HBM), per ANSI/ESDA/JEDEC JS-001 (2)
±8000
Charged device model (CDM), per JEDEC specification JESD22C101 (3)
±1000
UNIT
V
RZAP = 1.5k, CZAP = 120 pF
JEDEC document JEP155 states that 500-V HBM allows safe manufacturing with a standard ESD control process.
JEDEC document JEP157 states that 250-V CDM allows safe manufacturing with a standard ESD control process.
4.3
Recommended Operating Conditions
over operating free-air temperature range (unless otherwise noted)
MIN
MAX
Analog Supply Voltage (VCC)
I/O Supply Voltage (VI/O)
Industrial Temperature (TI)
V
3.3 ± 10%
or
2.5 ± 5%
V
85
°C
Power Dissipation (PD) with VI/O = 3.3 V
290
mW
Power Dissipation (PD) with VI/O = 2.5 V
260
mW
4.4
–40
UNIT
3.3 ± 0.3
Thermal Information
THERMAL METRIC (1)
RθJA
Junction-to-ambient thermal resistance
RθJC(top)
Junction-to-case (top) thermal resistance
(1)
(2)
12
PT
48 PINS
53.3 (2)
24.7
UNIT
°C/W
For more information about traditional and new thermal metrics, see the IC Package Thermal Metrics application report, SPRA953.
No Airflow @ 1 W.
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
4.5
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
DC Specifications
PIN
TYPES
PARAMETER
TEST
CONDITIONS
MIN
TYP
MAX
VIH
I
I/O
Input High Voltage
VIL
I
I/O
Input Low Voltage
IIH
I
I/O
Input High Current
VIN = VI/O
10
IIL
I
I/O
Input Low Current
VIN = GND
10
VOL
O
I/O
Output Low Voltage
IOL = 4 mA
0.4
VOH
O
I/O
Output High Voltage
IOH = -4 mA
IOZ
O
I/O
TRI-STATE Output Leakage Current
VOUT = VI/O or GND
V
2.0
VI/O = 3.3 V
0.8
VI/O = 2.5 V
0.7
–10
VTPTDsym
PMD Output
Pair
100M Transmit Voltage Symmetry
VTPTD_10
PMD Output
Pair
10M Transmit Voltage
VFXTD_100
PMD Output
Pair
FX 100M Transmit Voltage
I
CMOS Input Capacitance
8
COUT1
O
CMOS Output Capacitance
8
SDTHon
PMD Input
Pair
100BASE-TX Signal detect turnon
threshold
SDTHoff
PMD Input
Pair
Signal detect turnoff threshold
VTH
PMD Input
Pair
10BASE-T Receive Threshold
Idd10
Idd
(1)
Supply
Supply
100BASE-TX (Full Duplex)
10BASE-T (Full Duplex)
Power Down Mode
µA
V
0.95
µA
10
100M Transmit Voltage
Supply
V
µA
V
PMD Output
Pair
Idd100
V
VI/O - 0.5
VTPTD_100
CIN1
UNIT
1
V
1.05
±2%
2.2
2.5
2.8
0.3
0.5
0.93
V
V
pF
pF
1000
mV diff
pk-pk
mV diff
pk-pk
200
300
585
VCC = 3.3 V, VI/O =
3.3 V, IOUT = 0
mA (1)
88
VCC = 3.3 V, VI/O =
2.5 V, IOUT = 0
mA (1)
84
VCC = 3.3 V, VI/O =
3.3 V, IOUT = 0
mA (1)
105
VCC = 3.3 V, VI/O =
2.5 V, IOUT = 0
mA (1)
103
CLK_OUT disabled
10
mV
mA
mA
mA
mA
mA
For Idd measurements, outputs are not loaded
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
13
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
4.6
www.ti.com
AC Timing Requirements
PARAMETER
DESCRIPTION
NOTES
MIN
Post Power Up Stabilization time
prior to MDC preamble for register
accesses (1)
MDIO is pulled high for 32-bit serial
management initialization.
167
T2.1.2
Hardware Configuration Latch-in
Time from power up (1)
Hardware Configuration Pins are
described in Section 3.
T2.1.3
Hardware Configuration pins
transition to output drivers
TYP
MAX
UNIT
POWER-UP TIMING (Refer to Figure 4-1)
T2.1.1
ms
167
ns
50
RESET TIMING (Refer to Figure 4-2)
T2.2.1
T2.2.2
Post RESET Stabilization time prior
to MDC preamble for register
accesses
MDIO is pulled high for 32-bit serial
management initialization
3
Hardware Configuration Latch-in
Time from the Deassertion of
RESET (either soft or hard)
Hardware Configuration Pins are
described in Section 3
3
T2.2.3
Hardware Configuration pins
transition to output drivers (2)
T2.2.4
RESET pulse width
µs
µs
ns
50
X1 Clock must be stable for at min.
of 1 µs during RESET pulse low
time.
µs
1
MII SERIAL MANAGEMENT TIMING (Refer to Figure 4-3)
T2.3.1
MDC to MDIO (Output) Delay Time
0
T2.3.2
MDIO (Input) to MDC Setup Time
10
T2.3.3
MDIO (Input) to MDC Hold Time
10
T2.3.4
MDC Frequency
20
ns
2.5
25
MHz
20
24
100 Mb/s MII TRANSMIT TIMING (Refer to Figure 4-4)
T2.4.1
TX_CLK High/Low Time
16
T2.4.2
TXD[3:0], TX_EN Data Setup to
TX_CLK
10
T2.4.3
100 Mb/s Normal mode
ns
TXD[3:0], TX_EN Data Hold from
TX_CLK
0
100 Mb/s MII RECEIVE TIMING (Refer to Figure 4-5)
T2.5.1
RX_CLK High/Low Time (3)
T2.5.2
RX_CLK to RXD[3:0], RX_DV,
RX_ER Delay
100 Mb/s Normal mode
16
20
10
24
ns
30
100BASE-TX AND 100BASE-FX MII TRANSMIT PACKET LATENCY TIMING (Refer to Figure 4-6)
T2.6.1
TX_CLK to PMD Output Pair
Latency (4)
100BASE-TX and 100BASE-FX
modes
IEEE 1588 One-Step Operation
enabled (5)
5
9
bits
100BASE-TX AND 100BASE-FX MII TRANSMIT PACKET DEASSERTION TIMING (Refer to Figure 4-7)
T2.7.1
(1)
(2)
(3)
(4)
(5)
(6)
14
TX_CLK to PMD Output Pair
Deassertion (6)
100BASE-TX and 100BASE-FX
modes
5
bits
In RMII Slave Mode, the minimum Post Power up Stabilization and Hardware Configuration Latch-in times are 84 ms.
It is important to choose pullup and/or pulldown resistors for each of the hardware configuration pins that provide fast RC time constants
in order to latch-in the proper value prior to the pin transitioning to an output driver.
RX_CLK may be held low or high for a longer period of time during transition between reference and recovered clocks. Minimum high
and low times will not be violated.
Enabling PHY Control Frames will add latency equal to 8 bits times the PCF_BUF_SIZE setting. For example if PCF_BUF_SIZE is set
to 15, then the additional delay will be 15*8= 120 bits.
For Normal mode, latency is determined by measuring the time from the first rising edge of TX_CLK occurring after the assertion of
TX_EN to the first bit of the “J” code group as output from the PMD Output Pair. 1 bit time = 10 ns in 100 Mb/s mode.
Deassertion is determined by measuring the time from the first rising edge of TX_CLK occurring after the deassertion of TX_EN to the
first bit of the "T" code group as output from the PMD Output Pair. 1 bit time = 10 ns in 100 Mb/s mode.
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
AC Timing Requirements (continued)
PARAMETER
DESCRIPTION
NOTES
MIN
TYP
MAX
3
4
5
UNIT
100BASE-TX TRANSMIT TIMING (tR/F and Jitter) (Refer to Figure 4-8)
T2.8.1
T2.8.2
100 Mb/s PMD Output Pair tR and
tF (7)
100 Mb/s tR and tF Mismatch (8)
500
100 Mb/s PMD Output Pair Transmit
Jitter
1.4
ns
ps
ns
100BASE-TX AND 100BASE-FX MII RECEIVE PACKET LATENCY TIMING (Refer to Figure 4-9)
T2.9.1
Carrier Sense ON Delay (9)
T2.9.2
Receive Data Latency (11) (12)
100BASE-TX mode
20
100BASE-FX mode
10
100BASE-TX mode
24
100BASE-FX mode
14
bits (10)
100BASE-TX AND 100BASE-FX MII RECEIVE PACKET DEASSERTION TIMING (Refer to Figure 4-10)
T2.10.1
Carrier Sense OFF Delay (13)
10 Mb/s MII TRANSMIT TIMING
(15)
100BASE-TX mode
24
100BASE-FX mode
14
bits (14)
(Refer to Figure 4-11)
T2.11.1
TX_CLK High/Low Time
10 Mb/s MII mode
T2.11.2
TXD[3:0], TX_EN Data Setup to
TX_CLK falling edge
10 Mb/s MII mode
T2.11.3
TXD[3:0], TX_EN Data Hold from
TX_CLK rising edge
10 Mb/s MII mode
190
200
210
ns
200
240
ns
25
0
10 Mb/s MII RECEIVE TIMING (Refer to Figure 4-12)
T2.12.1
RX_CLK High/Low Time (16)
T2.12.2
RXD[3:0], RX_DV transition delay
from RX_CLK rising edge
10 Mb/s MII mode
T2.12.3
RX_CLK rising edge delay from
RXD[3:0], RX_DV valid data
10 Mb/s MII mode
160
100
100
10BASE-T MII TRANSMIT TIMING (START OF PACKET) (Refer to Figure 4-13)
T2.13.1
Transmit Output Delay from the
10 Mb/s MII mode
bits (17)
3.5
Falling Edge of TX_CLK
10BASE-T MII TRANSMIT TIMING (END OF PACKET) (Refer to Figure 4-14)
T2.14.1
End of Packet High Time
(with '0' ending bit)
T2.14.2
End of Packet High Time
(with '1' ending bit)
250
300
250
300
ns
ns
10BASE-T MII RECEIVE TIMING (START OF PACKET) (Refer to Figure 4-15)
T2.15.1
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
Carrier Sense Turnon Delay (PMD
Input Pair to CRS)
630
1000
ns
Rise and fall times taken at 10% and 90% of the +1 or –1 amplitude.
Normal Mismatch is the difference between the maximum and minimum of all rise and fall times.
Carrier Sense On Delay is determined by measuring the time from the first bit of the “J” code group to the assertion of Carrier Sense.
1 bit time = 10 ns in 100 Mb/s mode.
Enabling IEEE 1588 Receive Timestamp insertion will increase the Receive Data Latency by 40 bit times.
Enabling PHY Status Frames will introduce variability in Receive Data Latency due to insertion of PHY Status Frames into the receive
datapath.
Carrier Sense Off Delay is determined by measuring the time from the first bit of the “T” code group to the deassertion of Carrier Sense.
1 bit time = 10 ns in 100 Mb/s mode.
An attached Mac should drive the transmit signals using the positive edge of TX_CLK. As shown above, the MII signals are sampled on
the falling edge of TX_CLK.
RX_CLK may be held low for a longer period of time during transition between reference and recovered clocks. Minimum high and low
times will not be violated.
1 bit time = 100 ns in 10 Mb/s mode.
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
15
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
AC Timing Requirements (continued)
PARAMETER
DESCRIPTION
T2.15.2
RX_DV Latency (18)
T2.15.3
Receive Data Latency
NOTES
MIN
TYP
MAX
Measurement shown from SFD
UNIT
bits (19)
10
8
10BASE-T MII RECEIVE TIMING (END OF PACKET) (Refer to Figure 4-16)
T2.16.1
Carrier Sense Turnoff Delay
1.0
µs
10 Mb/s HEARTBEAT TIMING (Refer to Figure 4-17)
T2.17.1
CD Heartbeat Delay
All 10 Mb/s modes
1200
T2.17.2
CD Heartbeat Duration
All 10 Mb/s modes
1000
ns
10 Mb/s JABBER TIMING (Refer to Figure 4-18)
T2.18.1
Jabber Activation Time
T2.18.2
Jabber Deactivation Time
85
ms
500
10BASE-T NORMAL LINK PULSE TIMING (20) (Refer to Figure 4-19)
T2.19.1
Pulse Width
100
ns
T2.19.2
Pulse Period
16
ms
ns
AUTO-NEGOTIATION FAST LINK PULSE (FLP) TIMING (21) (Refer to Figure 4-20)
T2.20.1
Clock, Data Pulse Width
100
T2.20.2
Clock Pulse to Clock Pulse Period
125
T2.20.3
Clock Pulse to Data Pulse Period
T2.20.4
Burst Width
T2.20.5
FLP Burst to FLP Burst Period
Data = 1
µs
62
2
ms
16
100BASE-TX SIGNAL DETECT TIMING (22) (Refer to Figure 4-21)
T2.21.1
SD Internal Turnon Time
T2.21.2
SD Internal Turnoff Time
Default operation
Fast link-loss indication enabled (23)
250
1.3
1
ms
300
µs
µs
100 Mb/s INTERNAL LOOPBACK TIMING (Refer to Figure 4-22)
T2.22.1
TX_EN to RX_DV Loopback (24)
100 Mb/s internal loopback
mode (25)
240
ns
10 Mb/s INTERNAL LOOPBACK TIMING (Refer to Figure 4-23)
T2.23.1
10 Mb/s internal loopback mode (26)
TX_EN to RX_DV Loopback
2
µs
RMII TRANSMIT TIMING (SLAVE MODE) (Refer to Figure 4-24)
T2.24.1
X1 Clock Period
T2.24.2
TXD[1:0], TX_EN, Data Setup to X1
rising edge
50-MHz Reference Clock
4
20
T2.24.3
TXD[1:0], TX_EN, Data Hold from
X1 rising edge
2
T2.24.4
X1 Clock to PMD Output Pair
Latency (100 Mb) (27)
ns
100BASE-TX or 100BASE-FX
11
bits
(18)
(19)
(20)
(21)
(22)
(23)
(24)
10BASE-T RX_DV Latency is measured from first bit of preamble on the wire to the assertion of RX_DV.
1 bit time = 100 ns in 10 Mb/s mode.
These specifications represent transmit timings.
These specifications represent transmit timings.
The signal amplitude on PMD Input Pair must be TP-PMD compliant.
Fast Link-loss detect is enabled by setting the SD_CNFG[8] register bit to a 1.
Due to the nature of the descrambler function, all 100BASE-TX Loopback modes will cause an initial “dead-time” of up to 550 µs during
which time no data will be present at the receive MII outputs. The 100BASE-TX timing specified is based on device delays after the
initial 550 µs “dead-time”.
(25) Measurement is made from the first rising edge of TX_CLK after assertion of TX_EN.
(26) Measurement is made from the first falling edge of TX_CLK after assertion of TX_EN.
(27) Latency measurement is made from the X1 rising edge to the first bit of symbol.
16
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
AC Timing Requirements (continued)
PARAMETER
DESCRIPTION
NOTES
MIN
TYP
MAX
UNIT
RMII TRANSMIT TIMING (MASTER MODE) (Refer to Figure 4-25)
T2.25.1
RX_CLK, TX_CLK, CLK_OUT
Period
50-MHz Reference Clock
20
T2.25.2
TXD[1:0], TX_EN Data Setup to
RX_CLK, TX_CLK, CLK_OUT rising
edge
4
T2.25.3
TXD[1:0], TX_EN Data Hold from
RX_CLK, TX_CLK, CLK_OUT rising
edge
2
T2.25.4
RX_CLK, TX_CLK, CLK_OUT to
PMD Output Pair Latency (28)
ns
From RX_CLK rising edge to first
bit of symbol
11
bits
RMII RECEIVE TIMING (SLAVE MODE) (29) (Refer to Figure 4-26)
T2.26.1
X1 Clock Period
T2.26.2
RXD[1:0], CRS_DV, and RX_ER
output delay from X1 rising edge (30)
T2.26.3
CRS ON delay (31)
T2.26.4
T2.26.5
CRS OFF delay
50-MHz Reference Clock
(32)
RXD[1:0] and RX_ER
latency (33) (34) (35)
20
2
ns
14
100BASE-TX mode
18.5
100BASE-FX mode
9
100BASE-TX mode
27
100BASE-FX mode
17
100BASE-TX mode
38
100BASE-FX mode
27
bits
RMII RECEIVE TIMING (MASTER MODE) (36) (Refer to Figure 4-27)
T2.27.1
RX_CLK, TX_CLK, CLK_OUT Clock 50-MHz Reference Clock
Period
T2.27.2
RXD[1:0], CRS_DV, RX_DV and
RX_ER output delay from RX_CLK,
TX_CLK, CLK_OUT rising edge (37)
T2.27.3
T2.27.4
T2.27.5
CRS ON delay (38)
CRS OFF delay
(39)
RXD[1:0] and RX_ER latency
(40)
ns
20
2
14
100BASE-TX mode
18.5
100BASE-FX mode
9
100BASE-TX mode
27
100BASE-FX mode
17
100BASE-TX mode
38
100BASE-FX mode
27
bits
RX_CLK TIMING (RMII MASTER MODE) (Refer to Figure 4-28)
T2.28.1
RX_CLK High Time (41)
12
T2.28.2
RX_CLK Low Time (41)
8
T2.28.3
RX_CLK Period
ns
20
(28) Latency measurement is made from the RX_CLK rising edge to the first bit of symbol.
(29) Per the RMII Specification, output delays assume a 25-pF load.
(30) CRS_DV is asserted asynchronously in order to minimize latency of control signals through the PHY. CRS_DV may toggle
synchronously at the end of the packet to indicate CRS deassertion.
(31) CRS ON delay is measured from the first bit of the JK symbol on the PMD Input Pair to initial assertion of CRS_DV.
(32) CRS OFF delay is measured from the first bit of the TR symbol on the PMD Input Pair to initial deassertion of CRS_DV.
(33) Receive Latency is measured from the first bit of the symbol pair on the PMD Input Pair. Typical values are with the Elasticity Buffer set
to the default value (01).
(34) Enabling IEEE 1588 Receive Timestamp insertion will increase the Receive Data Latency by 40 bit times.
(35) Enabling PHY Status Frames will introduce variability in Receive Data Latency due to insertion of PHY Status Frames into the receive
datapath.
(36) Per the RMII Specification, output delays assume a 25-pF load.
(37) CRS_DV is asserted asynchronously in order to minimize latency of control signals through the PHY. CRS_DV may toggle
synchronously at the end of the packet to indicate CRS deassertion.
(38) CRS ON delay is measured from the first bit of the JK symbol on the PMD Input Pair to initial assertion of CRS_DV.
(39) CRS OFF delay is measured from the first bit of the TR symbol on the PMD Input Pair to initial deassertion of CRS_DV.
(40) Receive Latency is measured from the first bit of the symbol pair on the PMD Input Pair. Typical values are with the Elasticity Buffer set
to the default value (01).
(41) The High Time and Low Tme will add up to 20 ns.
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
17
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
AC Timing Requirements (continued)
PARAMETER
DESCRIPTION
NOTES
MIN
TYP
MAX
UNIT
CLK_OUT TIMING (RMII SLAVE MODE) (Refer to Figure 4-29)
T2.29.1
CLK_OUT High/Low Time
T2.29.2
CLK_OUT propagation delay
10
Relative to X1
ns
8
SINGLE CLOCK MII (SCMII) TRANSMIT TIMING (Refer to Figure 4-30)
T2.30.1
X1 Clock Period
25-MHz Reference Clock
T2.30.2
TXD[3:0], TX_EN Data Setup
To X1 rising edge
4
40
T2.30.3
TXD[3:0], TX_EN Data Hold
From X1 rising edge
2
T2.30.4
X1 Clock to PMD Output Pair
Latency (100 Mb) (42)
100BASE-TX or 100BASE-FX
ns
bits
13
SINGLE CLOCK MII (SCMII) RECEIVE TIMING (Refer to Figure 4-31)
T2.31.1
X1 Clock Period
25-MHz Reference Clock (43)
T2.31.2
RXD[3:0], RX_DV and RX_ER
output delay (44)
From X1 rising edge
(45)
T2.31.3
CRS ON delay
T2.31.4
CRS OFF delay
T2.31.5
RXD[3:0] and RX_ER latency (47)
40
2
100BASE-TX mode
(46)
ns
18
19
100BASE-FX mode
9
100BASE-TX mode
26
100BASE-FX mode
16
100BASE-TX mode
56
100BASE-FX mode
46
bits
100 Mb/s X1 TO TX_CLK TIMING (Refer to Figure 4-32)
T2.32.1
X1 to TX_CLK delay (48)
100 Mb/s Normal mode
0
5
ns
(42)
(43)
(44)
(45)
(46)
(47)
Latency measurement is made from the X1 rising edge to the first bit of symbol.
CRS is asserted and deasserted asynchronously relative to the reference clock.
Output delays assume a 25-pF load.
CRS ON delay is measured from the first bit of the JK symbol on the PMD Input Pair to assertion of CRS_DV.
CRS OFF delay is measured from the first bit of the TR symbol on the PMD Input Pair to deassertion of CRS_DV.
Receive Latency is measured from the first bit of the symbol pair on the PMD Input Pair. Typical values are with the Elasticity Buffer set
to the default value (01).
(48) X1 to TX_CLK timing is provided to support devices that use X1 instead of TX_CLK as the reference for transmit MII data.
Vcc
X1 clock
T2.1.1
Hardware
RESET_N
32 CLOCKS
MDC
T2.1.2
Latch-In of Hardware
Configuration Pins
T2.1.3
Dual Function Pins
Become Enabled As Outputs
INPUT
OUTPUT
Figure 4-1. Power Up Timing
18
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
Vcc
X1 clock
T2.2.1
T2.2.4
Hardware
RESET_N
32 CLOCKS
MDC
T2.2.2
Latch-In of Hardware
Configuration Pins
T2.2.3
Dual Function Pins
Become Enabled As Outputs
input
output
Figure 4-2. Reset Timing
MDC
T2.3.4
T2.3.1
MDIO (output)
MDC
T2.3.2
T2.3.3
Valid Data
MDIO (input)
Figure 4-3. MII Serial Management Timing
T2.4.1
T2.4.1
TX_CL
K
T2.4.2
TXD[3:0
]
TX_EN
T2.4.3
Valid Data
Figure 4-4. 100 Mb/s MII Transmit Timing
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
19
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
T2.5.1
T2.5.1
RX_CLK
T2.5.2
RXD[3:0]
RX_DV
RX_ER
Valid Data
Figure 4-5. 100 Mb/s MII Receive Timing
TX_CLK
TX_EN
TXD[3:0]
T2.6.1
PMD Output
Pair
IDLE
(J/K)
DATA
Figure 4-6. 100BASE-TX and 100BASE-FX MII Transmit Packet Latency Timing
TX_CLK
TX_EN
TXD[3:0]
T2.7.1
PMD Output
Pair
IDLE
(J/K)
DATA
Figure 4-7. 100BASE-TX and 100BASE-FX MII Transmit Packet Deassertion Timing
20
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
T2.8.1
+1 rise
90%
10%
PMD Output Pair
10%
+1 fall
90%
T2.8.1
-1 rise
-1 fall
T2.8.1
T2.8.2
T2.8.1
PMD Output Pair
eye pattern
T2.8.2
Figure 4-8. 100BASE-TX Transmit Timing (tR/F and Jitter)
PMD Input Pair
IDLE
(J/K)
Data
T2.9.1
CRS/CRS_DV
T2.9.2
RXD[3:0]
RX_DV
RX_ER
Figure 4-9. 100BASE-TX and 100BASE-FX MII Receive Packet Latency Timing
PMD Input Pair
DATA
(T/R)
IDLE
T2.10.1
CRS/CRS_DV
Figure 4-10. 100BASE-TX and 100BASE-FX MII Receive Packet Deassertion Timing
T2.11.1
T2.11.1
TX_CLK
T2.11.2
TXD[3:0]
TX_EN
T2.11.3
Valid Data
Figure 4-11. 10 Mb/s MII Transmit Timing
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
21
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
T2.12.1
T2.12.1
RX_CLK
T2.12.2
T2.12.3
RXD[3:0]
RX_DV
Valid Data
Figure 4-12. 10 Mb/s MII Receive Timing
TX_CLK
TX_EN
TXD[3:0]
PMD Output
Pair
T2.13.1
Figure 4-13. 10BASE-T MII Transmit Timing (Start of Packet)
TX_CLK
TX_EN
T2.14.1
PMD Output
Pair
0
0
T2.14.2
PMD Output
Pair
1
1
Figure 4-14. 10BASE-T MII Transmit Timing (End of Packet)
1st SFD bit decoded
1
0
1
0
1
0
1
0
1
0
1
1
PMD
Input Pair
T2.15.1
CRS/CRS_DV
T2.15.2
RX_DV
T2.15.3
RXD[3:0]
0000
Preamble
SFD
Data
Figure 4-15. 10BASE-T MII Receive Timing (Start of Packet)
22
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
1
0
1
IDLE
PMD Input
Pair
RX_CLK
T2.16.1
CRS/CRS_DV
Figure 4-16. 10BASE-T MII Receive Timing (End of Packet)
TX_EN
TX_CLK
T2.17.1
T2.17.2
COL
Figure 4-17. 10 Mb/s Heartbeat Timing
TX_EN
T2.18.1
T2.18.2
PMD Output
Pair
COL
Figure 4-18. 10 Mb/s Jabber Timing
T2.19.2
T2.19.1
Normal Link
Pulse(s)
Figure 4-19. 10BASE-T Normal Link Pulse Timing
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
23
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
T.2.20.2
T2.20.3
T2.20.1
T2.20.1
Fast Link
Pulse(s)
clock
pulse
data
pulse
clock
pulse
T2.20.5
T2.20.4
PMD
Output Pair
FLP Burst
FLP Burst
Figure 4-20. Auto-Negotiation Fast Link Pulse (FLP) Timing
PMD Input
Pair
T2.21.1
T2.21.2
SD+ internal
Figure 4-21. 100BASE-TX Signal Detect Timing
TX_CLK
TX_EN
TXD[3:0]
CRS/CRS_DV
T2.22.1
RX_CLK
RX_DV
RXD[3:0]
Figure 4-22. 100 Mb/s Internal Loopback Timing
24
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
TX_CLK
TX_EN
TXD[3:0]
CRS/CRS_DV
T2.23.1
RX_CLK
RX_DV
RXD[3:0]
Figure 4-23. 10 Mb/s Internal Loopback Timing
T2.24.1
X1
T2.24.2
TXD[1:0]
TX_EN
T2.24.3
Valid data
T2.24.4
PMD Output
Pair
Symbol
Figure 4-24. RMII Transmit Timing (Slave Mode)
T2.25.1
RX_CLK
TX_CLK
CLK_OUT
T2.25.2
TXD[1:0]
TX_EN
T2.25.3
Valid data
T2.25.4
PMD Output
Pair
Symbol
Figure 4-25. RMII Transmit Timing (Master Mode)
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
25
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
PMD Input
Pair
IDLE
www.ti.com
(J/K)
Data
(TR)
Data
T2.26.4
T2.26.5
X1
T2.26.1
T2.26.3
T2.26.2
CRS/CRS_DV
T2.26.2
RXD[1:0]
RX_ER
Figure 4-26. RMII Receive Timing (Slave Mode)
PMD Input
Pair
IDLE
(J/K)
Data
(TR)
Data
T2.27.4
T2.27.5
RX_CLK
TX_CLK
CLK_OUT
T2.27.1
T2.27.2
T2.27.2
T2.27.3
T2.27.2
RX_DV
CRS/CRS_DV
T2.27.2
RXD[1:0]
RX_ER
Figure 4-27. RMII Receive Timing (Master Mode)
T2.28.3
T2.28.1
T2.28.2
RX_CLK
Figure 4-28. RX_CLK Timing (RMII Master Mode)
X1
T2.29.2
T2.29.1
T2.29.1
CLK_OUT
Figure 4-29. CLK_OUT Timing (RMII Slave Mode)
26
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
T2.30.1
X1
T2.30.2
T2.30.3
TXD[3:0]
TX_EN
Valid data
T2.30.4
PMD Output
Pair
Symbol
Figure 4-30. Single Clock MII (SCMII) Transmit Timing
PMD Input
Pair
IDLE
(J/K)
Data
(TR)
Data
T2.31.4
T2.31.5
X1
T2.31.1
T2.31.3
CRS/CSR_DV
T2.31.2
T2.31.2
RX_DV
RXD[3:0]
RX_ER
Figure 4-31. Single Clock MII (SCMII) Receive Timing
X1
T2.32.1
TX_CLK
Figure 4-32. 100 Mb/s X1 to TX_CLK Timing
Specifications
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
27
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5 Detailed Description
5.1
Overview
The DP83640 supports many key parameters for industrial Ethernet including deterministic, low transmit
and receive latency, high ESD and EMC tolerance, excellent cable reach, innovative cable diagnostics
capabilities, and industrial temperature range. The MAC interface supports operation through MII or RMII
and allows operation from a 25-MHz clock source in RMII Master mode. The transceiver interface
supports operation over a twisted pair interface or a fiber interface. These characteristics comprise a
robust, rugged, and reliable Ethernet PHY suitable for a broad range of applications.
5.2
Functional Block Diagram
RX_CLK
RXD[3:0]
RX_DV
RX_ER
COL
MDC
MDIO
TX_EN
TXD[3:0]
TX_CLK
SERIAL
MANAGEMENT
CRS/CRS_DV
MII/RMII
MII/RMII INTERFACE
TX_DATA
TX_CLK
RX_CLK
RX_DATA
MANAGEMENT
REGISTERS
10BASE -T
AND
100BASE-TX
10BASE -T
AND
100BASE-TX
AUTO-NEGOTIATION
REGISTERS
TRANSMIT BLOCK
RECEIVE BLOCK
CLOCK
GENERATION
IEEE 1588
DAC
ADC
ANALOG SIGNAL
PROCESSOR
BOUNDARY
SCAN
JTAG
LED
DRIVERS
AUTO-MDIX
TD+/-
RD+/-
SYSTEM CLOCK
REFERENCE
GPIO
LEDS
Figure 5-1. DP83640 Functional Block Diagram
28
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
5.3
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
Feature Description
5.3.1
Media Configuration
The DP83640 supports both Twisted Pair (100BASE-TX and 10BASE-T) and Fiber (100BASE-FX) media.
The port may be configured for Twisted Pair (TP) or Fiber (FX) operation by strap option or by register
access.
At power-up/reset, the state of the RX_ER pin will select the media for the port. The default selection is
twisted pair mode, while an external pulldown will select FX mode of operation. Strapping the port into FX
mode also automatically sets the Far-End Fault Enable, bit 3 of PCSR (16h), the Scramble Bypass, bit 1
of PCSR (16h) and the Descrambler Bypass, bit 0 of PCSR (16h). In addition, the media selection may be
controlled by writing to bit 6, FX_EN, of PCSR (16h).
5.3.2
Auto-Negotiation
The Auto-Negotiation function provides a mechanism for exchanging configuration information between
two ends of a link segment and automatically selecting the highest performance mode of operation
supported by both devices. Fast Link Pulse (FLP) Bursts provide the signaling used to communicate AutoNegotiation abilities between two devices at each end of a link segment. For further detail regarding AutoNegotiation, refer to Clause 28 of the IEEE 802.3 specification. The DP83640 supports four different
Ethernet protocols (10 Mb/s Half Duplex, 10 Mb/s Full Duplex, 100 Mb/s Half Duplex, and 100 Mb/s Full
Duplex), so the inclusion of Auto-Negotiation ensures that the highest performance protocol will be
selected based on the advertised ability of the Link Partner. The Auto-Negotiation function within the
DP83640 can be controlled either by internal register access or by the use of the AN_EN, AN1 and AN0
pins.
5.3.2.1
Auto-Negotiation Pin Control
The state of AN_EN, AN0 and AN1 determines whether the DP83640 is forced into a specific mode or
Auto-Negotiation will advertise a specific ability (or set of abilities) as given in Table 5-1. These pins allow
configuration options to be selected without requiring internal register access.
The state of AN_EN, AN0 and AN1, upon power-up/reset, determines the state of bits [8:5] of the ANAR
register.
The Auto-Negotiation function selected at power-up or reset can be changed at any time by writing to the
Basic Mode Control Register (BMCR) at address 00h.
Table 5-1. Auto-Negotiation Modes
AN_EN
AN1
AN0
0
0
0
10BASE-T, Half-Duplex
FORCED MODE
0
0
1
10BASE-T, Full-Duplex
0
1
0
100BASE-TX, Half-Duplex
0
1
1
100BASE-TX, Full-Duplex
AN_EN
AN1
AN0
1
0
0
10BASE-T, Half/Full-Duplex
1
0
1
100BASE-TX, Half/Full-Duplex
1
1
0
100BASE-TX Full-Duplex
1
1
1
10BASE-T, Half/Full-Duplex
ADVERTISED MODE
100BASE-TX, Half/Full-Duplex
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
29
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.3.2.2
www.ti.com
Auto-Negotiation Register Control
When Auto-Negotiation is enabled, the DP83640 transmits the abilities programmed into the AutoNegotiation Advertisement register (ANAR) at address 04h through FLP Bursts. Any combination of 10
Mb/s, 100 Mb/s, Half-Duplex, and Full-Duplex modes may be selected.
Auto-Negotiation Priority Resolution:
1. 100BASE-TX Full Duplex (Highest Priority)
2. 100BASE-TX Half Duplex
3. 10BASE-T Full Duplex
4. 10BASE-T Half Duplex (Lowest Priority)
The Basic Mode Control Register (BMCR) at address 00h provides control for enabling, disabling, and
restarting the Auto-Negotiation process. When Auto-Negotiation is disabled, the SPEED SELECTION bit
in the BMCR controls switching between 10 Mb/s or 100 Mb/s operation, and the DUPLEX MODE bit
controls switching between full-duplex operation and half-duplex operation. The SPEED SELECTION and
DUPLEX MODE bits have no effect on the mode of operation when the Auto-Negotiation Enable bit is set.
The Link Speed can be examined through the PHY Status Register (PHYSTS) at address 10h after a Link
is achieved.
The Basic Mode Status Register (BMSR) indicates the set of available abilities for technology types, AutoNegotiation ability, and Extended Register Capability. These bits are permanently set to indicate the full
functionality of the DP83640 (only the 100BASE-T4 bit is not set because the DP83640 does not support
that function).
The BMSR also provides status on:
• Whether or not Auto-Negotiation is complete
• Whether or not the Link Partner is advertising that a remote fault has occurred
• Whether or not valid link has been established
• Support for Management Frame Preamble suppression
The Auto-Negotiation Advertisement Register (ANAR) indicates the Auto-Negotiation abilities to be
advertised by the DP83640. All available abilities are transmitted by default, but any ability can be
suppressed by writing to the ANAR. Updating the ANAR to suppress an ability is one way for a
management agent to change (restrict) the technology that is used.
The Auto-Negotiation Link Partner Ability Register (ANLPAR) at address 05h is used to receive the base
link code word as well as all next page code words during the negotiation. Furthermore, the ANLPAR will
be updated to either 0081h or 0021h for parallel detection to either 100 Mb/s or 10 Mb/s respectively.
The Auto-Negotiation Expansion Register (ANER) indicates additional Auto-Negotiation status. The ANER
provides status on:
• Whether or not a Parallel Detect Fault has occurred
• Whether or not the Link Partner supports the Next Page function
• Whether or not the DP83640 supports the Next Page function
• Whether or not the current page being exchanged by Auto-Negotiation has been received
• Whether or not the Link Partner supports Auto-Negotiation
5.3.2.3
Auto-Negotiation Parallel Detection
The DP83640 supports the Parallel Detection function as defined in the IEEE 802.3 specification. Parallel
Detection requires both the 10 Mb/s and 100 Mb/s receivers to monitor the receive signal and report link
status to the Auto-Negotiation function. Auto-Negotiation uses this information to configure the correct
technology in the event that the Link Partner does not support Auto-Negotiation but is transmitting link
signals that the 100BASE-TX or 10BASE-T PMAs recognize as valid link signals.
30
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
If the DP83640 completes Auto-Negotiation as a result of Parallel Detection, bits 5 and 7 within the
ANLPAR register will be set to reflect the mode of operation present in the Link Partner. Note that bits 4:0
of the ANLPAR will also be set to 00001 based on a successful parallel detection to indicate a valid 802.3
selector field. Software may determine that negotiation completed through Parallel Detection by reading a
zero in the Link Partner Auto-Negotiation Able bit once the Auto-Negotiation Complete bit is set. If
configured for parallel detect mode and any condition other than a single good link occurs then the parallel
detect fault bit will be set.
5.3.2.4
Auto-Negotiation Restart
Once Auto-Negotiation has completed, it may be restarted at any time by setting bit 9 (Restart AutoNegotiation) of the BMCR to one. If the mode configured by a successful Auto-Negotiation loses a valid
link, then the Auto-Negotiation process will resume and attempt to determine the configuration for the link.
This function ensures that a valid configuration is maintained if the cable becomes disconnected.
A renegotiation request from any entity, such as a management agent, will cause the DP83640 to halt any
transmit data and link pulse activity until the break_link_timer expires (approximately 1500 ms).
Consequently, the Link Partner will go into link fail and normal Auto-Negotiation resumes. The DP83640
will resume Auto-Negotiation after the break_link_timer has expired by issuing FLP (Fast Link Pulse)
bursts.
5.3.2.5
Enabling Auto-Negotiation Through Software
It is important to note that if the DP83640 has been initialized upon power-up as a non-auto-negotiating
device (forced technology), and it is then required that Auto-Negotiation or re-Auto-Negotiation be initiated
through software, bit 12 (Auto-Negotiation Enable) of the Basic Mode Control Register (BMCR) must first
be cleared and then set for any Auto-Negotiation function to take effect.
5.3.2.6
Auto-Negotiation Complete Time
Parallel detection and Auto-Negotiation take approximately 2-3 seconds to complete. In addition, AutoNegotiation with next page should take approximately 2-3 seconds to complete, depending on the number
of next pages sent.
Refer to Clause 28 of the IEEE 802.3 standard for a full description of the individual timers related to AutoNegotiation.
5.3.3
Auto-MDIX
When enabled, this function uses Auto-Negotiation to determine the proper configuration for transmission
and reception of data and subsequently selects the appropriate MDI pair for MDI/MDIX operation. The
function uses a random seed to control switching of the crossover circuitry. This implementation complies
with the corresponding IEEE 802.3 Auto-Negotiation and Crossover Specifications.
Auto-MDIX is enabled by default and can be configured through PHYCR (19h) register, bits [15:14].
Neither Auto-Negotiation nor Auto-MDIX is required to be enabled in forcing crossover of the MDI pairs.
Forced crossover can be achieved through the FORCE_MDIX bit, bit 14 of PHYCR (19h) register.
NOTE: Auto-MDIX will not work in a forced mode of operation.
5.3.4
LED Interface
The DP83640 supports three configurable
LED_SPEED/FX_SD, and LED_ACT.
Light
Emitting
Diode
(LED)
pins:
LED_LINK,
Several functions can be multiplexed onto the three LEDs using three different modes of operation. The
LED operation mode can be selected by writing to the LED_CFG[1:0] register bits in the PHY Control
Register (PHYCR) at address 19h, bits [6:5]. LED_CFG[1] is only controllable through register access and
cannot be set by a strap pin.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
31
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
See Table 5-2 for LED Mode selection.
Table 5-2. LED Mode Selection
MODE
LED_CFG[1]
LED_CFG[0]
1
don't care
1
2
0
0
3
1
0
LED_LINK
LED_SPEED
LED_ACT
ON for Good Link
ON in 100 Mb/s
ON for Activity
OFF for No Link
OFF in 10 Mb/s
OFF for No Activity
ON for Good Link
ON in 100 Mb/s
ON for Collision
BLINK for Activity
OFF in 10 Mb/s
OFF for No Collision
ON for Good Link
ON in 100 Mb/s
ON for Full Duplex
BLINK for Activity
OFF in 10 Mb/s
OFF for Half Duplex
The LED_LINK pin in Mode 1 indicates the link status of the port. In 100BASE-TX mode, link is
established as a result of input receive amplitude compliant with the TP-PMD specifications which will
result in internal generation of signal detect. A 10 Mb/s Link is established as a result of the reception of at
least seven consecutive normal Link Pulses or the reception of a valid 10BASE-T packet. This will cause
the assertion of LED_LINK. LED_LINK will deassert in accordance with the Link Loss Timer as specified
in the IEEE 802.3 specification. In 100BASE-TX mode, an optional fast link loss detection may be enabled
by setting the SD_TIME control in the SD_CNFG register. Enabling fast link loss detection will result in the
LED_LINK deassertion within approximately 1.3 µs of loss of signal on the wire.
The LED_LINK pin in Mode 1 will be OFF when no LINK is present.
The LED_LINK pin in Mode 2 and Mode 3 will be ON to indicate Link is good and BLINK to indicate
activity is present on activity. The BLINK frequency is defined in BLINK_FREQ, bits [7:6] of register
LEDCR (18h).
Activity is defined as configured in LEDACT_RX, bit 8 of register LEDCR (18h). If LEDACT_RX is 0,
Activity is signaled for either transmit or receive. If LEDACT_RX is 1, Activity is only signaled for receive.
The LED_SPEED/FX_SD pin indicates 10- or 100 Mb/s data rate of the port. The standard CMOS driver
goes high when operating in 100 Mb/s operation. The functionality of this LED is independent of mode
selected.
The LED_ACT pin in Mode 1 indicates the presence of either transmit or receive activity. The LED will be
ON for Activity and OFF for No Activity. In Mode 2, this pin indicates the Collision status of the port. The
LED will be ON for Collision and OFF for No Collision.
The LED_ACT pin in Mode 3 indicates Duplex status for 10- Mb/s or 100 Mb/s operation. The LED will be
ON for Full Duplex and OFF for Half Duplex.
In 10 Mb/s half-duplex mode, the collision LED is based on the COL signal.
Because these LED pins are also used as strap options, the polarity of the LED is dependent on whether
the pin is pulled up or down.
5.3.4.1
LEDs
Because the Auto-Negotiation (AN) strap options share the LED output pins, the external components
required for strapping and LED usage must be considered in order to avoid contention.
Specifically, when the LED outputs are used to drive LEDs directly, the active state of each output driver is
dependent on the logic level sampled by the corresponding AN input upon power-up/reset. For example, if
a given AN input is resistively pulled low, then the corresponding output will be configured as an active
high driver. Conversely, if a given AN input is resistively pulled high, then the corresponding output will be
configured as an active low driver.
Refer to Figure 5-2 for an example of AN connections to external components. In this example, the AN
strapping results in Auto-Negotiation disabled with 100 Full-Duplex forced.
32
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
LED_ACT
LED_LINK
LED_SPEED
The adaptive nature of the LED outputs helps to simplify potential implementation issues of these dual
purpose pins.
AN1 = 1
AN0 = 1
165:
165:
165:
VCC
2.2 k:
AN_EN = 0
GND
Figure 5-2. AN Strapping and LED Loading Example
5.3.4.2
LED Direct Control
The DP83640 provides another option to directly control any or all LED outputs through the LED Direct
Control Register (LEDCR), address 18h. The register does not provide read access to LEDs.
5.3.5
Internal Loopback
The DP83640 includes a Loopback Test mode for facilitating system diagnostics. The Loopback mode is
selected through bit 14 (Loopback) of the Basic Mode Control Register (BMCR). Writing 1 to this bit
enables MII transmit data to be routed to the MII receive outputs. Loopback status may be checked in bit 3
of the PHY Status Register (PHYSTS). While in Loopback mode the data will not be transmitted onto the
media. To ensure that the desired operating mode is maintained, Auto-Negotiation should be disabled
before selecting the Loopback mode.
5.3.6
Power Down/Interrupt
The Power Down and Interrupt functions are multiplexed on pin 7 of the device. By default, this pin
functions as a power-down input and the interrupt function is disabled. Setting bit 0 (INT_OE) of MICR
(11h) will configure the pin as an active low interrupt output.
5.3.6.1
Power Down Control Mode
The PWRDOWN/INTN pin can be asserted low to put the device in a Power Down mode. This is
equivalent to setting bit 11 (POWER DOWN) in the Basic Mode Control Register, BMCR (00h). An
external control signal can be used to drive the pin low, overcoming the weak internal pullup resistor.
Alternatively, the device can be configured to initialize into a Power Down state by use of an external
pulldown resistor on the PWRDOWN/INTN pin. Because the device will still respond to management
register accesses, setting the INT_OE bit in the MICR register will disable the PWRDOWN/INTN input,
allowing the device to exit the Power Down state.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
33
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.3.6.2
www.ti.com
Interrupt Mechanisms
The interrupt function is controlled through register access. All interrupt sources are disabled by default.
Setting bit 1 (INTEN) of MICR (11h) will enable interrupts to be output, dependent on the interrupt mask
set in the lower byte of the MISR (12h). The PWRDOWN/INTN pin is asynchronously asserted low when
an interrupt condition occurs. The source of the interrupt can be determined by reading the upper byte of
the MISR. One or more bits in the MISR will be set, denoting all currently pending interrupts. Reading of
the MISR clears ALL pending interrupts.
Example: To generate an interrupt on a change of link status or on a change of energy detect power state,
the steps would be:
• Write 0003h to MICR to set INTEN and INT_OE
• Write 0060h to MISR to set ED_INT_EN and LINK_INT_EN
• Monitor PWRDOWN/INTN pin
When PWRDOWN/INTN pin asserts low, the user would read the MISR register to see if the ED_INT or
LINK_INT bits are set, that is, which source caused the interrupt. After reading the MISR, the interrupt bits
should clear and the PWRDOWN/INTN pin will deassert.
5.3.7
Energy Detect Mode
When Energy Detect is enabled and there is no activity on the cable, the DP83640 will remain in a low
power mode while monitoring the transmission line. Activity on the line will cause the DP83640 to go
through a normal power up sequence. Regardless of cable activity, the DP83640 will occasionally wake
up the transmitter to put ED pulses on the line, but will otherwise draw as little power as possible. Energy
detect functionality is controlled through register Energy Detect Control (EDCR), address 1Dh.
5.3.8
Link Diagnostic Capabilities
The DP83640 contains several system diagnostic capabilities for evaluating link quality and detecting
potential cabling faults in twisted pair cabling. Software configuration is available through the Link
Diagnostics Registers - Page 2 which can be selected through Page Select Register (PAGESEL), address
13h. These capabilities include:
• Linked Cable Status
• Link Quality Monitor
• TDR (Time Domain Reflectometry) Cable Diagnostics
5.3.8.1
In
•
•
•
•
•
Linked Cable Status
an active connection with a valid link status, the following diagnostic capabilities are available:
Polarity reversal
Cable swap (MDI vs MDIX) detection
100-Mb Cable Length Estimation
Frequency offset relative to link partner
Cable Signal Quality Estimation
5.3.8.1.1 Polarity Reversal
The DP83640 detects polarity reversal by detecting negative link pulses. The Polarity indication is
available in bit 12 of the PHYSTS (10h) or bit 4 of the 10BTSCR (1Ah). Inverted polarity indicates the
positive and negative conductors in the receive pair are swapped. Because polarity is corrected by the
receiver, this does not necessarily indicate a functional problem in the cable.
Because the polarity indication is dependent on link pulses from the link partner, polarity indication is only
valid in 10-Mb modes of operation, or in 100-Mb Auto-Negotiated mode. Polarity indication is not available
in 100-Mb forced mode of operation or in a parallel detected 100-Mb mode.
34
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.3.8.1.2 Cable Swap Indication
As part of Auto-Negotiation, the DP83640 has the ability (using Auto-MDIX) to automatically detect a cable
with swapped MDI pairs and select the appropriate pairs for transmitting and receiving data. Normal
operation is termed MDI, while crossed operation is MDIX. The MDIX status can be read from bit 14 of the
PHYSTS (10h).
5.3.8.1.3 100-Mb Cable Length Estimation
The DP83640 provides a method of estimating cable length based on electrical characteristics of the 100Mb link. This essentially provides an effective cable length rather than a measurement of the physical
cable length. The cable length estimation is only available in 100-Mb mode of operation with a valid link
status. The cable length estimation is available at the Link Diagnostics Registers - Page 2, register 100
Mb Length Detect (LEN100_DET), address 14h.
5.3.8.1.4 Frequency Offset Relative to Link Partner
As part of the 100-Mb clock recovery process, the DSP implementation provides a frequency control
parameter. This value may be used to indicate the frequency offset of the device relative to the link
partner. This operation is only available in 100-Mb operation with a valid link status. The frequency offset
can be determined using the register 100-Mb Frequency Offset Indication (FREQ100), address 15h, of the
Link Diagnostics Registers - Page 2.
Two different versions of the Frequency Offset may be monitored through bits [7:0] of register FREQ100
(15h). The first is the long-term Frequency Offset. The second is the current Frequency Control value,
which includes short-term phase adjustments and can provide information on the amount of jitter in the
system.
5.3.8.1.5 Cable Signal Quality Estimation
The cable signal quality estimator keeps a simple tracking of results of the DSP and can be used to
generate an approximate Signal-to-Noise Ratio for the 100 Mb receiver. This information is available to
software through the Link Diagnostics Registers - Page 2: Variance Control Register (VAR_CTRL),
address 1Ah and Variance Data Register (VAR_DATA), address 1Bh.
The variance computation times (VAR_TIMER) can be chosen from the set of {2, 4, 6, 8} ms. The 32-bit
variance sum can be read by two consecutive reads of the VAR_DATA register. This sum can be used to
compute an SNR estimate by software using the following equation:
SNR = 10log10((37748736 * VAR_TIMER) / Variance)
5.3.8.2
(1)
Link Quality Monitor
The Link Quality Monitor allows a method to generate an alarm when the DSP adaption strays from a
programmable window. This could occur due to changes in the cable which could indicate a potential
problem. Software can program thresholds for the following DSP parameters to be used to interrupt the
system:
• Digital Equalizer C1 Coefficient (DEQ C1)
• Digital Adaptive Gain Control (DAGC)
• Digital Base-Line Wander Control (DBLW)
• Recovered Clock Long-Term Frequency Offset (FREQ)
• Recovered Clock Frequency Control (FC)
• Signal-to-Noise Ratio (SNR) Variance
Software is expected to read initial adapted values and then program the thresholds based on an
expected valid range. This mechanism takes advantage of the fact that the DSP adaptation should remain
in a relatively small range once a valid link has been established.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
35
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.3.8.2.1 Link Quality Monitor Control and Status
Control of the Link Quality Monitor is done through the Link Quality Monitor Register (LQMR), address
1Dh and the Link Quality Data Register (LQDR), address 1Bh of the Link Diagnostics Registers - Page 2.
The LQMR register includes a global enable to enable the Link Quality Monitor function. In addition, it
provides warning status from both high and low thresholds for each of the monitored parameters except
SNR Variance.. The LQMR2 register provides warning status for the high threshold of SNR Variance
(upper 16 bits); there is no low threshold. Note that individual low or high parameter threshold
comparisons can be disabled by setting to the minimum or maximum values.
To allow the Link Quality Monitor to interrupt the system, the Interrupt must be enabled through the
interrupt control registers, MICR (11h) and MISR (12h).
The Link Quality Monitor may also be used to automatically reset the DSP and restart adaption. Separate
enable bits in LQMR and LQMR2 allow for automatic reset based on each of the parameter values. If
enabled, a violation of one of the thresholds will result in a restart of the DSP adaption. In addition if the
PCSR:SD_OPTION register bit is set to 0, the violation will also result in a drop in Link Status.
5.3.8.2.2 Checking Current Parameter Values
Prior to setting Threshold values, it is recommended that software check current adapted values. The
thresholds may then be set relative to the adapted values. The current adapted values can be read using
the LQDR register by setting the SAMPLE_PARAM bit [13] of LQDR, address (1Eh).
For example, to read the DBLW current value:
1. Write 2400h to LQDR (1Eh) to set the SAMPLE_PARAM bit and set the LQ_PARAM_SEL[2:0] to 010.
2. Read LQDR (1Eh). Current DBLW value is returned in the low 8 bits.
5.3.8.2.3 Threshold Control
The LQDR (1Eh) register also provides a method of programming high and low thresholds for each of the
five parameters that can be monitored. The register implements an indirect read/write mechanism.
Writes are accomplished by writing data, address, and a write strobe to the register. Reads are
accomplished by writing the address to the register, and reading back the value of the selected threshold.
Setting thresholds to the maximum or minimum values will disable the threshold comparison because
values have to exceed the threshold to generate a warning condition.
Warnings are not generated if the parameter is equal to the threshold. By default, all thresholds are
disabled by setting to the minimum or maximum values. Table 5-3 shows the five parameters and range of
values:
Table 5-3. Link Quality Monitor Parameter Ranges
PARAMETER
MINIMUM VALUE
MAXIMUM VALUE
MIN (2-s COMP)
–128
+127
0x80
0x7F
DAGC
0
+255
0x00
0xFF
DBLW
–128
+127
0x80
0x7F
Frequency Offset
–128
+127
0x80
0x7F
Frequency Control
–128
+127
0x80
0x7F
0
+2304
0x0000
0x900
DEQ_C1
SNR Variance
MAX (2-s COMP)
Note that values are signed 2-s complement values except for DAGC and Variance which are always
positive. The maximum SNR Variance is calculated by assuming the worst-case squared error (144) is
accumulated every 8 ns for 8*220 ns (roughly 8 ms or exactly 1,048,576 clock cycles).
36
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
For example, to set the DBLW Low threshold to –38:
1. Write 14DAh to LQDR to set the Write_LQ_Thr bit, select the DBLW Low Threshold, and write data of
–38 (0xDA).
2. Write 8000 to LQMR to enable the Link Quality Monitor (if not already enabled).
5.3.8.3
TDR Cable Diagnostics
The DP83640 implements a Time Domain Reflectometry (TDR) method of cable length measurement and
evaluation which can be used to evaluate a connected twisted pair cable. The TDR implementation
involves sending a pulse out on either the Transmit or Receive conductor pair and observing the results
on either pair. By observing the types and strength of reflections on each pair, software can determine the
following:
• Cable short
• Cable open
• Distance to fault
• Identify which pair has a fault
• Pair skew
The TDR cable diagnostics works best in certain conditions. For example, an unterminated cable provides
a good reflection for measuring cable length, while a cable with an ideal termination to an unpowered
partner may provide no reflection at all.
5.3.8.4
TDR Pulse Generator
The TDR implementation can send two types of TDR pulses. The first option is to send 50-ns or 100-ns
link pulses from the 10-Mb Common Driver. The second option is to send pulses from the 100-Mb
Common Driver in 8-ns increments up to 56 ns in width. The 100-Mb pulses will alternate between positive
and negative pulses. The shorter pulses provide better ability to measure short cable lengths, especially
because they will limit overlap between the transmitted pulse and a reflected pulse. The longer pulses
may provide better measurements of long cable lengths.
In addition, if the pulse width is programmed to 0, no pulse will be sent, but the monitor circuit will still be
activated. This allows sampling of background data to provide a baseline for analysis.
5.3.8.5
TDR Pulse Monitor
The TDR function monitors data from the Analog to Digital Converter (ADC) to detect both peak values
and values above a programmable threshold. It can be programmed to detect maximum or minimum
values. In addition, it records the time, in 8 ns intervals, at which the peak or threshold value first occurs.
The TDR monitor implements a timer that starts when the pulse is transmitted. A window may be enabled
to qualify incoming data to look for response only in a desired range. This is especially useful for
eliminating the transmitted pulse, but also may be used to look for multiple reflections.
5.3.8.6
TDR Control Interface
The TDR Control Interface is implemented in the Link Diagnostics Registers - Page 2 through TDR
Control (TDR_CTRL), address 16h and TDR Window (TDR_WIN), address 17h. The following basic
controls are:
• TDR Enable: Enable bit 15 of TDR_CTRL (16h) to allow the TDR function. This bypasses normal
operation and gives control of the CD10 and CD100 block to the TDR function.
• TDR Send Pulse: Enable bit 11 of TDR_CTRL (16h) to send the TDR pulse and starts the TDR
Monitor
The following transmit mode controls are available:
• Transmit Mode: Enables use of 10 Mb Link pulses from the 10 Mb Common Driver or data pulses
from the 100 Mb Common Driver by enabling TDR_100 Mb, bit 14 of TDR_CRTL (16h).
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
37
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
•
•
www.ti.com
Transmit Pulse Width: Bits [10:8] of TDR_CTRL (16h) allows sending of 0 to 7 clock width pulses.
Actual pulses are dependent on the transmit mode. If the pulse width is set to 0, then no pulse will be
sent.
Transmit Channel Select: The transmitter can send pulses down either the transmit pair or the
receive pair by enabling bit 13 of TDR_CTRL (16h). Default value is to select the transmit pair.
The following receive mode controls are available:
• Min/Max Mode Control: Bit 7 of TDR_CTRL (16h) controls the TDR Monitor operation. In default
mode, the monitor will detect maximum (positive) values. In Min Mode, the monitor will detect minimum
(negative) values.
• Receive Channel Select: The receiver can monitor either the transmit pair or the receive pair by
enabling bit 12 of TDR_CTRL (16h). Default value is to select the transmit pair.
• Receive Window: The receiver can monitor receive data within a programmable window using the
TDR Window Register (TDR_WIN), address 17h. The window is controlled by two register values: TDR
Start Window, bits [15:8] of TDR_WIN (17h) and TDR Stop Window, bits [7:0] of TDR_WIN (17h). The
TDR Start Window indicates the first clock to start sampling. The TDR Stop Window indicates the last
clock to sample. By default, the full window is enabled, with Start set to 0 and Stop set to 255. The
window range is in 8-ns clock increments, so the maximum window size is 2048 ns.
5.3.8.7
TDR Results
The results of a TDR peak and threshold measurement are available in the TDR Peak Measurement
Register (TDR_PEAK), address 18h and TDR Threshold Measurement Register (TDR_THR), address
19h. The threshold measurement may be a more accurate method of measuring the length of longer
cables because it provides a better indication of the start of the received pulse, rather than the peak value.
Software utilizing the TDR function should implement an algorithm to send TDR pulses and evaluate
results. Multiple runs should be used to best qualify any received pulses as multiple reflections could exist.
In addition, when monitoring the transmitting pair, the window feature should be used to disqualify the
transmitted pulse. Multiple runs may also be used to average the values providing more accurate results.
Actual distance measurements are dependent on the velocity of propagation of the cable. The delay value
is typically on the order of 4.6 to 4.9 ns/m.
5.3.9
BIST
The DP83640 incorporates an internal Built-in Self Test (BIST) circuit to accommodate in-circuit testing or
diagnostics. The BIST circuit can be used to test the integrity of the transmit and receive data paths. BIST
testing can be performed with the part in the internal loopback mode or externally looped back using a
loopback cable fixture. BIST testing can also be performed between two directly connected DP83640
devices.
The BIST is implemented with independent transmit and receive paths, with the transmit block generating
a continuous stream of a pseudo random sequence. The user can select a 9 bit or 15 bit pseudo random
sequence from the PSR_15 bit in the PHY Control Register (PHYCR). The received data is compared to
the generated pseudo-random data by the BIST Linear Feedback Shift Register (LFSR) to determine the
BIST pass/fail status.
The pass/fail status of the BIST is stored in the BIST status bit in the PHYCR register. The status bit
defaults to 0 (BIST fail) and will transition on a successful comparison. If an error (mis-compare) occurs,
the status bit is latched and is cleared upon a subsequent write to the Start/Stop bit.
For transmit VOD testing, the Packet BIST Continuous Mode can be used to allow continuous data
transmission by setting the BIST_CONT_MODE, bit 5, of CDCTRL1 (1Bh).
The number of BIST errors can be monitored through the BIST Error Count in the CDCTRL1 (1Bh), bits
[15:8].
38
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
5.4
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
Device Functional Modes
5.4.1
MAC Interface
The DP83640 supports several modes of operation using the MII interface pins. The options are defined in
the following sections and include:
• MII Mode
• RMII Mode
• Single Clock MII Mode (SCMII)
In addition, the DP83640 supports the standard 802.3 MII Serial Management Interface.
The modes of operation can be selected by strap options or register control. For RMII Slave mode, it is
recommended to use the strap option because it requires a 50-MHz clock instead of the normal 25 MHz.
In each of these modes, the IEEE 802.3 serial management interface is operational for device
configuration and status. The serial management interface of the MII allows for the configuration and
control of multiple PHY devices, gathering of status, error information, and the determination of the type
and capabilities of the attached PHY(s).
5.4.2
MII Interface
The DP83640 incorporates the Media Independent Interface (MII) as specified in Clause 22 of the IEEE
802.3 standard. This interface may be used to connect PHY devices to a MAC in 10/100 Mb/s systems.
This section describes the nibble wide MII data interface.
The nibble wide MII data interface consists of a receive bus and a transmit bus each with control signals
to facilitate data transfer between the PHY and the upper layer (MAC).
5.4.2.1
Nibble-Wide MII Data Interface
Clause 22 of the IEEE 802.3 specification defines the Media Independent Interface. This interface includes
a dedicated receive bus and a dedicated transmit bus. These two data buses, along with various control
and status signals, allow for the simultaneous exchange of data between the DP83640 and the upper
layer agent (MAC).
The receive interface consists of a nibble-wide data bus RXD[3:0], a receive error signal RX_ER, a
receive data valid flag RX_DV, and a receive clock RX_CLK for synchronous transfer of the data. The
receive clock operates at either 2.5 MHz to support 10 Mb/s operation modes or at 25 MHz to support 100
Mb/s operational modes.
The transmit interface consists of a nibble-wide data bus TXD[3:0], a transmit enable control signal
TX_EN, and a transmit clock TX_CLK which runs at either 2.5 MHz or 25 MHz.
Additionally, the MII includes the carrier sense signal CRS, as well as a collision detect signal COL. The
CRS signal asserts to indicate the reception of data from the network or as a function of transmit data in
Half-Duplex mode. The COL signal asserts as an indication of a collision which can occur during halfduplex operation when both a transmit and receive operation occur simultaneously.
5.4.2.2
Collision Detect
For Half Duplex, a 10BASE-T or 100BASE-TX collision is detected when the receive and transmit
channels are active simultaneously. Collisions are reported by the COL signal on the MII.
If the DP83640 is transmitting in 10 Mb/s mode when a collision is detected, the collision is not reported
until seven bits have been received while in the collision state. This prevents a collision being reported
incorrectly due to noise on the network. The COL signal remains set for the duration of the collision.
If a collision occurs during a receive operation, it is immediately reported by the COL signal.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
39
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
When heartbeat is enabled (only applicable to 10 Mb/s operation), approximately 1 µs after the
transmission of each packet, a Signal Quality Error (SQE) signal of approximately 10 bit times is
generated (internally) to indicate successful transmission. SQE is reported as a pulse on the COL signal of
the MII.
Collision is not indicated during Full-Duplex operation.
5.4.2.3
Carrier Sense
In 10 Mb/s operation, Carrier Sense (CRS) is asserted due to receive activity once valid data is detected
through the Smart Squelch function. During 100 Mb/s operation CRS is asserted when a valid link (SD)
and two non-contiguous zeros are detected on the line.
For 10- or 100 Mb/s Half-Duplex operation, CRS is asserted during either packet transmission or
reception.
For 10- or 100 Mb/s Full-Duplex operation, CRS is asserted only due to receive activity.
CRS is deasserted following an end of packet.
5.4.3
Reduced MII Interface
The DP83640 incorporates the Reduced Media Independent Interface (RMII) as specified in the RMII
specification (rev 1.2) from the RMII Consortium. This interface may be used to connect PHY devices to a
MAC in 10/100 Mb/s systems using a reduced number of pins. In this mode, data is transferred 2-bits at a
time using the 50-MHz RMII_REF clock for both transmit and receive. The following pins are used in RMII
mode:
• TX_EN
• TXD[1:0]
• RX_ER (optional for MAC)
• CRS/CRS_DV
• RXD[1:0]
• X1 (25 MHz in RMII Master mode, 50 MHz in RMII Slave mode)
• RX_CLK, TX_CLK, CLK_OUT (50-MHz RMII reference clock in RMII Master mode only)
In addition, the RMII mode supplies an RX_DV signal which allows for a simpler method of recovering
receive data without having to separate RX_DV from the CRS_DV indication. This is especially useful for
systems which do not require CRS, such as systems that only support full-duplex operation. This signal is
also useful for diagnostic testing where it may be desirable to loop external Receive RMII data directly to
the transmitter.
The RX_ER output may be used by the MAC to detect error conditions. It is asserted for symbol errors
received during a packet, False Carrier events, and also for FIFO underrun or overrun conditions.
Because the PHY is required to corrupt receive data on an error, a MAC is not required to use RX_ER.
Because the reference clock operates at 10 times the data rate for 10 Mb/s operation, transmit data is
sampled every 10 clocks. Likewise, receive data will be generated every 10th clock so that an attached
device can sample the data every 10 clocks.
RMII Slave mode requires a 50-MHz oscillator to be connected to the device X1 pin. A 50-MHz crystal is
not supported. RMII Master mode can use either a 25-MHz oscillator connected to X1 or a 25-MHz crystal
connected to X1 and X2.
To tolerate potential frequency differences between the 50-MHz reference clock and the recovered receive
clock, the receive RMII function includes a programmable elasticity buffer. The elasticity buffer is
programmable to minimize propagation delay based on expected packet size and clock accuracy. This
allows for supporting a range of packet sizes including jumbo frames.
40
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
The elasticity buffer will force Frame Check Sequence errors for packets which overrun or underrun the
FIFO. Underrun and overrun conditions can be reported in the RMII and Bypass Register (RBR). Table 54 indicates how to program the elasticity buffer FIFO (in 4-bit increments) based on expected maximum
packet size and clock accuracy. It assumes both clocks (RMII Reference clock and far-end Transmitter
clock) have the same accuracy.
Packet lengths can be scaled linearly based on accuracy (±25 ppm would allow packets twice as large). If
the threshold setting must support both 10-Mb and 100-Mb operation, the setting should be made to
support both speeds.
Table 5-4. Supported Packet Sizes at ±50 ppm Frequency Accuracy
START THRESHOLD RBR[1:0]
5.4.3.1
LATENCY TOLERANCE
RECOMMENDED PACKET SIZE at ±50 ppm
100 Mb
10 Mb
100 Mb
10 Mb
01 (default)
2 bits
8 bits
2,400 bytes
9,600 bytes
10
6 bits
4 bits
7,200 bytes
4,800 bytes
11
10 bits
8 bits
12,000 bytes
9,600 bytes
00
14 bits
12 bits
16,800 bytes
14,400 bytes
RMII Master Mode
In RMII Master Mode, the DP83640 uses a 25-MHz crystal on X1/X2 and internally generates the 50-MHz
RMII reference clock for use by the RMII logic. The 50-MHz clock is output on RX_CLK, TX_CLK, and
CLK_OUT for use as the reference clock for an attached MAC. RX_CLK operates at 25 MHz during reset.
5.4.3.2
RMII Slave Mode
In RMII Slave Mode, the DP83640 takes a 50-MHz reference clock input on X1 from an external oscillator
or another DP83640 in RMII Master Mode. The 50 MHz is internally divided down to 25 MHz for use as
the reference clock for non-RMII logic. RX_CLK, TX_CLK, and CLK_OUT should not be used as the RMII
reference clock in this mode but may be used for other system devices.
5.4.4
Single Clock MII Mode
Single Clock MII (SCMII) Mode allows MII operation using a single 25-MHz reference clock. Normal MII
Mode requires three clocks, a reference clock for physical layer functions, a transmit MII clock, and a
receive MII clock. Similar to RMII mode, Single Clock MII mode requires only the reference clock. In
addition to reducing the number of pins required, this mode allows the attached MAC device to use only
the reference clock domain. AC Timing requirements for SCMII operation are similar to the RMII timing
requirements.
For 10 Mb operation, as in RMII mode, data is sampled and driven every 10 clocks because the reference
clock is at 10 times the data rate.
Separate control bits allow enabling the Transmit and Receive Single Clock modes separately, allowing
just transmit or receive to operate in this mode. Control of Single Clock MII mode is through the RBR
register.
Single Clock MII mode incorporates the use of the RMII elasticity buffer, which is required to tolerate
potential frequency differences between the 25-MHz reference clock and the recovered receive clock.
Settings for the elasticity buffer for SCMII mode are detailed in Table 5-5.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
41
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
Table 5-5. Supported SCMII Packet Sizes at ±50 ppm Frequency Accuracy
START THRESHOLD RBR[1:0]
5.4.5
LATENCY TOLERANCE
RECOMMENDED PACKET SIZE at ±50 ppm
100 Mb
10 Mb
100 Mb
10 Mb
01 (default)
4 bits
8 bits
4,000 bytes
9,600 bytes
10
4 bits
8 bits
4,000 bytes
9,600 bytes
11
8 bits
8 bits
9,600 bytes
9,600 bytes
00
8 bits
8 bits
9,600 bytes
9,600 bytes
IEEE 802.3 MII Serial Management Interface
5.4.5.1
Serial Management Register Access
The serial management MII specification defines a set of thirty-two 16-bit status and control registers that
are accessible through the management interface pins MDC and MDIO. The DP83640 implements all the
required MII registers as well as several optional registers. These registers are fully described in
Section 5.6. A description of the serial management access protocol follows.
Table 5-6. Typical MDIO Frame Format
MII MANAGEMENT SERIAL PROTOCOL
Read Operation
Write Operation
5.4.5.2
Serial Management Access Protocol
The serial control interface consists of two pins, Management Data Clock (MDC) and Management Data
Input/Output (MDIO). MDC has a maximum clock rate of 25 MHz and no minimum rate. The MDIO line is
bi-directional and may be shared by up to 32 devices. The MDIO frame format is shown in Table 5-6.
The MDIO pin requires a pullup resistor (1.5 kΩ) which, during IDLE and turnaround, will pull MDIO high.
The DP83640 also includes an option to enable an internal pullup on the MDIO pin, MDIO_PULL_EN bit in
the CDCTRL1 register. In order to initialize the MDIO interface, the station management entity sends a
sequence of 32 contiguous logic ones on MDIO to provide the DP83640 with a sequence that can be used
to establish synchronization. This preamble may be generated either by driving MDIO high for 32
consecutive MDC clock cycles, or by simply allowing the MDIO pullup resistor to pull the MDIO pin high
during which time 32 MDC clock cycles are provided. In addition 32 MDC clock cycles should be used to
re-sync the device if an invalid Start, Opcode, or turnaround bit is detected.
The DP83640 waits until it has received this preamble sequence before responding to any other
transaction. Once the DP83640 serial management port has been initialized no further preamble
sequencing is required until after a power-on/reset, invalid Start, invalid Opcode, or invalid turnaround (TA)
bit has occurred.
The Start code is indicated by a pattern. This assures the MDIO line transitions from the default idle
line state.
Turnaround is defined as an idle bit time inserted between the Register Address field and the Data field.
To avoid contention during a read transaction, no device shall actively drive the MDIO signal during the
first bit of Turnaround. The addressed DP83640 drives the MDIO with a zero for the second bit of
turnaround and follows this with the required data. Figure 5-3 shows the timing relationship between MDC
and the MDIO as driven/received by the Station (STA) and the DP83640 (PHY) for a typical register read
access.
For write transactions, the station management entity writes data to the addressed DP83640 thus
eliminating the requirement for MDIO Turnaround. The Turnaround time is filled by the management entity
by inserting . Figure 5-4 shows the timing relationship for a typical MII register write access.
42
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
MDC
z
MDIO
(STA)
z
z
z
MDIO
(PHY)
z
0
Idle
1
1
0
0
1
1
0
0
0
Start Opcode PHY Address
(Read) (PHY AD = 0Ch)
0
0
0
0 z 0
Register Address
(00h = BCMR)
0
0
1
1
0
0
TA
0
1
0
0
0
0
0
0
0
z
0
Register Data
Idle
Figure 5-3. Typical MDC/MDIO Read Operation
MDC
MDIO
(STA)
z
z
z
Idle
0
1
0
1
0
1
1
0
0
Start Opcode
PHY Address
(Write) (PHY AD = 0Ch)
0
0
0
0
0
Register Address
(00h = BCMR)
1
0
0
0
0
0
0
TA
0
0
0
0
0
Register Data
0
0
0
0
0
0
z
Idle
Figure 5-4. Typical MDC/MDIO Write Operation
5.4.5.3
Serial Management Preamble Suppression
The DP83640 supports a Preamble Suppression mode as indicated by a one in bit 6 of the Basic Mode
Status Register (BMSR, address 01h.) If the station management entity (that is, MAC or other
management controller) determines that all PHYs in the system support Preamble Suppression by
returning a one in this bit, then the station management entity need not generate preamble for each
management transaction.
The DP83640 requires a single initialization sequence of 32 bits of preamble following hardware/software
reset. This requirement is generally met by the mandatory pullup resistor on MDIO in conjunction with a
continuous MDC, or the management access made to determine whether Preamble Suppression is
supported.
While the DP83640 requires an initial preamble sequence of 32 bits for management initialization, it does
not require a full 32-bit sequence between each subsequent transaction. A minimum of one idle bit
between management transactions is required as specified in the IEEE 802.3 specification.
5.4.6
PHY Control Frames
The DP83640 supports a packet-based control mechanism for use in situations where the Serial
Management Interface is not available or does not provide enough throughput. Application software may
build a packet, called a PHY Control Frame (PCF), to be passed to the PHY through the MAC Transmit
Data interface. The PHY will intercept these packets and use them to assert writes to Management
Registers as if they occurred through the Management Interface. Multiple register writes may be
incorporated in a single frame.
The PHY Control Frame may also be used to read a register location. The read value will be returned in a
PHY Status Frame if that function is enabled. Only a single read may be outstanding at any time, so only
one read should be included in a single PHY Control Frame.
The PHY Control Frame block performs the following functions:
• Parse incoming transmit packets to detect PHY Control Frames
• Truncate PHY Control Frames to prevent complete frame from reaching the transmit physical medium
• Buffer up to 15 bytes of the Frame to be intercepted by the PHY with no portion reaching physical
medium
• Detect commands in the PHY Control Frame and pass them to the register block
• Check CRC to detect error conditions
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
43
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
•
www.ti.com
Report CRC and invalid command errors to the system through register status and/or interrupt
PHY Control Frames can be enabled through the PCF_Enable bit in the PHY Control Frames
Configuration Register (PCFCR). PHY Control Frames can also be enabled by using the PCF_EN strap
option. For a more detailed discussion on the use of PHY Control Frames, refer to the Software
Development Guide for the DP83640.
5.4.7
PHY Status Frames
The DP83640 implements a packet-based status mechanism that allows the PHY to queue up events and
pass them to the microcontroller through the receive data interface. The packet, called a PHY Status
Frame, may be used to provide IEEE 1588 status for transmit packet timestamps, receive packet
timestamps, event timestamps, and trigger conditions. In addition the device can generate status
messages indicating packet buffering errors and to return data read using the PHY Control Frame register
access mechanism.
Each PHY Status Frame may include multiple status messages. The packet will be framed such that it will
look like a IEEE 1588 frame to ensure that it will get to the IEEE 1588 software stack. The PHY will
provide buffering of any incoming packet to allow the status packet to be passed to the MAC.
Programmable inter-frame gap and preamble length allow the PHY to recover lost bandwidth in the case
of heavy receive traffic.
In a PHY Status Frame, status messages are not provided in a chronological order. Instead, they are
provided in the following order of priority:
1. PHY Control Frame Read Data
2. Packet Buffer Error
3. Transmit Timestamp
4. Receive Timestamp
5. Trigger Status
6. Event Timestamp
Each of the message types may be individually enabled, allowing options on which functions may be
delivered in a PHY Status Frame.
Timestamps that are delivered through PHY Status Frames will not be reflected in the corresponding
status and timestamp registers nor will they generate an interrupt.
The packet format may be configured to look like a Layer 2 Ethernet frame or a UDP/IPv4 frame.
For a more detailed discussion on the use of PHY Status Frames, refer to the Software Development
Guide for the DP83640.
5.4.8
PHY Address
The five PHY address strapping pins are shared with the RXD[3:0] pins and COL pin as shown in Table 57.
Table 5-7. PHY Address Mapping
44
PIN #
PHYAD FUNCTION
RXD FUNCTION
42
PHYAD0
COL
43
PHYAD1
RXD_3
44
PHYAD2
RXD_2
45
PHYAD3
RXD_1
46
PHYAD4
RXD_0
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
The DP83640 can be set to respond to any of 32 possible PHY addresses through strap pins. The
information is latched into the PHYCR register (address 19h, bits [4:0]) at device power-up and hardware
reset. Each DP83640 or port sharing an MDIO bus in a system must have a unique physical address.
The DP83640 supports PHY Address strapping values 0 () through 31 (). Strapping
PHY Address 0 puts the part into Isolate Mode. It should also be noted that selecting PHY Address 0
through an MDIO write to PHYCR will not put the device in Isolate Mode. See Section 5.6.1.2.6 for more
information.
For further detail relating to the latch-in timing requirements of the PHY Address pins, as well as the other
hardware configuration pins, refer to the Reset summary in Section 5.4.10.
Because the PHYAD[0] pin has weak internal pullup resistor and PHYAD[4:1] pins have weak internal
pulldown resistors, the default setting for the PHY address is 00001 (01h).
PHYAD4 = 0
PHYAD3 = 0
PHYAD2 = 0
COL
RXD_3
RXD_2
RXD_0
RXD_1
Refer to Figure 5-5 for an example of a PHYAD connection to external components. In this example, the
PHYAD strapping results in address 00011 (03h).
PHYAD1 = 1
PHYAD0 = 1
2.2 k:
VCC
Figure 5-5. PHYAD Strapping Example
5.4.8.1
MII Isolate Mode
It is recommended that the user have a basic understanding of Clause 22 of the 802.3 standard.
The DP83640 can be put into MII Isolate Mode by writing a 1 to bit 10 of the BMCR register. Strapping the
PHY Address to 0 will force the device into Isolate Mode when powered up. It should be noted that
selecting Physical Address 0 through an MDIO write to PHYCR will not put the device in the MII isolate
mode.
When in the MII Isolate Mode, the DP83640 does not respond to packet data present at TXD[3:0] and
TX_EN inputs and presents a high impedance on the TX_CLK, RX_CLK, RX_DV, RX_ER, RXD[3:0],
COL, and CRS/CRS_DV outputs. When in Isolate Mode, the DP83640 will continue to respond to all serial
management transactions over the MII.
While in Isolate Mode, the PMD output pair will not transmit packet data but will continue to source
100BASE-TX scrambled idles or 10BASE-T normal link pulses.
The DP83640 can Auto-Negotiate or parallel detect to a specific technology depending on the receive
signal at the PMD input pair. A valid link can be established for the receiver even when the DP83640 is in
Isolate Mode.
5.4.8.2
Broadcast Mode
The DP83640 is also capable of accepting broadcast messages (register writes to PHY address 0x1F).
Setting the BC_WRITE to 1, bit 11 of the PHY Control Register 2 (PHYCR2) at address 0x1C, will
configure the device to accept broadcast messages independent of the local PHY Address value.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
45
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.4.9
www.ti.com
Half Duplex vs. Full Duplex
The DP83640 supports both half- and full-duplex operation at both 10 Mb/s and 100 Mb/s speeds.
Half duplex relies on the CSMA/CD protocol to handle collisions and network access. In Half-Duplex
mode, Carrier Sense (CRS) responds to both transmit and receive activity in order to maintain compliance
with the IEEE 802.3 specification.
Because the DP83640 is designed to support simultaneous transmit and receive activity it is capable of
supporting full-duplex switched applications with a throughput of up to 200 Mb/s when operating in either
100BASE-TX or 100BASE-FX. Because the CSMA/CD protocol does not apply to full-duplex operation,
the DP83640 disables its own internal collision sensing and reporting functions and modifies the behavior
of CRS such that it indicates only receive activity. This allows a full-duplex capable MAC to operate
properly.
All modes of operation (100BASE-TX, 100BASE-FX, 10BASE-T) can run either half duplex or full duplex.
Additionally, other than CRS and collision reporting, all remaining MII signaling remains the same
regardless of the selected duplex mode.
It is important to understand that while Auto-Negotiation with the use of Fast Link Pulse code words can
interpret and configure to full-duplex operation, parallel detection can not recognize the difference between
full and half duplex from a fixed 10 Mb/s or 100 Mb/s link partner over twisted pair. As specified in the
802.3 specification, if a far-end link partner is configured to a forced full-duplex 100BASE-TX ability, the
parallel detection state machine in the partner would be unable to detect the full-duplex capability of the
far-end link partner. This link segment would negotiate to a half-duplex 100BASE-TX configuration (same
scenario for 10 Mb/s).
Auto-Negotiation is not supported in 100BASE-FX operation. Selection of Half or Full-duplex operation is
controlled by bit 8 of the Basic Mode Control Register (BMCR), address 00h. If 100BASE-FX mode is
strapped using the RX_ER pin, the AN0 strap value is used to set the value of bit 8 of the BMCR (00h)
register. Note that the other Auto-Negotiation strap pins (AN_EN and AN1) are ignored in 100BASE-FX
mode.
5.4.10 Reset Operation
The DP83640 includes an internal power-on reset (POR) function and does not need to be explicitly reset
for normal operation after power up. If required during normal operation, the device can be reset by a
hardware or software reset.
5.4.10.1 Hardware Reset
A hardware reset is accomplished by applying a low pulse (TTL level), with a duration of at least 1 μs, to
the RESET_N pin. This will reset the device such that all registers will be reinitialized to default values and
the hardware configuration values will be re-latched into the device (similar to the power-up/reset
operation).
5.4.10.2 Full Software Reset
A full-chip software reset is accomplished by setting the RESET bit (bit 15) of the Basic Mode Control
Register (BMCR). The period from the point in time when the reset bit is set to the point in time when
software reset has concluded is approximately 1 μs.
The software reset will reset the device such that all registers will be reset to default values and the
hardware configuration values will be maintained. Software driver code must wait 3 μs following a software
reset before allowing further serial MII operations with the DP83640.
5.4.10.3 Soft Reset
A partial software reset can be initiated by setting the SOFT_RESET bit (bit 9) in the PHYCR2 Register.
Setting this bit will reset all transmit and receive operations, but will not reset the register space. All
register configurations will be preserved. Register space will remain available following a soft reset.
46
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.4.10.4 PTP Reset
The entire PTP function, including the IEEE 1588 clock, associated logic, and PTP register space (with
two exceptions), can be reset through the PTP_RESET bit in the PTP_CTL register. The PTP_COC and
PTP_CLKSRC registers are not reset in order to preserve the nominal operation of the clock output.
5.5
Programming
5.5.1
Architecture
This section describes the operations within each transceiver module, 100BASE-TX and 10BASE-T. Each
operation consists of several functional blocks and is described in the following:
• 100BASE-TX Transmitter
• 100BASE-TX Receiver
• 100BASE-FX Operation
• 10BASE-T Transceiver Module
5.5.1.1
100BASE-TX Transmitter
The 100BASE-TX transmitter consists of several functional blocks which convert synchronous 4-bit nibble
data, as provided by the MII, to a scrambled MLT-3 125 Mb/s serial data stream. Because the 100BASETX TP-PMD is integrated, the differential output pins, PMD Output Pair, can be directly routed to the
magnetics.
The block diagram in Figure 5-6 provides an overview of each functional block within the 100BASE-TX
transmit section.
The Transmitter section consists of the following functional blocks:
• Code-Group Encoder and Injection block
• Scrambler block (bypass option)
• NRZ to NRZI Encoder block
• Binary to MLT-3 Converter / Common Driver block
The bypass option for the functional blocks within the 100BASE-TX transmitter provides flexibility for
applications where data conversion is not always required. The DP83640 implements the 100BASE-TX
transmit state machine diagram as specified in the IEEE 802.3 Standard, Clause 24.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
47
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
TX_CLK
DIVIDE
BY 5
TXD[3:0]/
TX_EN
4B5B CODEGROUP
ENCODER and
INJECTOR
5B PARALLEL
TO SERIAL
125 MHz CLOCK
SCRAMBLER
MUX
BP_SCR
100BASE-TX
LOOPBACK
MLT[1:0]
NRZ TO NRZI
ENCODER
BINARY
TO MLT-3/
COMMON
DRIVER
PMD OUTPUT PAIR
Figure 5-6. 100BASE-TX Transmit Block Diagram
48
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
Table 5-8. 4B5B Code-Group Encoding/Decoding
NAME
PCS 5B CODE-GROUP
MII 4B NIBBLE CODE
0
11110
0000
1
01001
0001
2
10100
0010
3
10101
0011
4
01010
0100
5
01011
0101
6
01110
0110
7
01111
0111
8
10010
1000
9
10011
1001
A
10110
1010
B
10111
1011
C
11010
1100
D
11011
1101
E
11100
1110
F
11101
1111
DATA CODES
IDLE AND CONTROL CODES
H
00100
HALT code-group - Error code
I
11111
Inter-Packet IDLE - 0000 (1)
J
11000
First Start of Packet - 0101 (1)
K
10001
Second Start of Packet - 0101 (1)
T
01101
First End of Packet - 0000 (1)
R
00111
Second End of Packet - 0000 (1)
INVALID CODES
V
00000
V
00001
V
00010
V
00011
V
00101
V
00110
V
01000
V
01100
V
10000
V
11001
Note 1:
(1)
Control code-groups I, J, K, T and R in data fields will be mapped as invalid codes, together with RX_ER asserted.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
49
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.5.1.1.1 Code-Group Encoding and Injection
The code-group encoder converts 4-bit (4B) nibble data generated by the MAC into 5-bit (5B) code-groups
for transmission. This conversion is required to allow control data to be combined with packet data codegroups. Refer to Table 5-8 for 4B to 5B code-group mapping details.
The code-group encoder substitutes the first 8-bits of the MAC preamble with a J/K code-group pair
(11000 10001) upon transmission. The code-group encoder continues to replace subsequent 4B preamble
and data nibbles with corresponding 5B code-groups. At the end of the transmit packet, upon the
deassertion of Transmit Enable signal from the MAC, the code-group encoder injects the T/R code-group
pair (01101 00111) indicating the end of the frame.
After the T/R code-group pair, the code-group encoder continuously injects IDLEs into the transmit data
stream until the next transmit packet is detected (reassertion of Transmit Enable).
5.5.1.1.2 Scrambler
The scrambler is required to control the radiated emissions at the media connector and on the twisted pair
cable (for 100BASE-TX applications). By scrambling the data, the total energy launched onto the cable is
randomly distributed over a wide frequency range. Without the scrambler, energy levels at the PMD and
on the cable could peak beyond FCC limitations at frequencies related to repeating 5B sequences (that
is,, continuous transmission of IDLEs).
The scrambler is configured as a closed loop linear feedback shift register (LFSR) with an 11-bit
polynomial. The output of the closed loop LFSR is X-ORd with the serial NRZ data from the code-group
encoder. The result is a scrambled data stream with sufficient randomization to decrease radiated
emissions at certain frequencies by as much as 20 dB. The DP83640 uses the PHY_ID (pins PHYAD
[4:0]) to set a unique seed value.
5.5.1.1.3 NRZ to NRZI Encoder
After the transmit data stream has been serialized and scrambled, the data must be NRZI encoded in
order to comply with the TP-PMD standard for 100BASE-TX transmission over Category-5 Unshielded
twisted pair cable. There is no ability to bypass this block within the DP83640. The NRZI data is sent to
the 100-Mb Driver. In addition, this module creates an encoded MLT value for use in 100-Mb Internal
Loopback.
5.5.1.1.4 Binary to MLT-3 Convertor
The Binary to MLT-3 conversion is accomplished by converting the serial binary data stream output from
the NRZI encoder into two binary data streams with alternately phased logic one events. These two binary
streams are then fed to the twisted pair output driver which converts the voltage to current and alternately
drives either side of the transmit transformer primary winding, resulting in a minimal current MLT-3 signal.
The 100BASE-TX MLT-3 signal sourced by the PMD Output Pair common driver is slew rate controlled.
This should be considered when selecting AC coupling magnetics to ensure TP-PMD Standard compliant
transition times (3 ns < Tr < 5 ns).
The 100BASE-TX transmit TP-PMD function within the DP83640 is capable of sourcing only MLT-3
encoded data. Binary output from the PMD Output Pair is not possible in 100 Mb/s mode.
5.5.1.2
100BASE-TX Receiver
The 100BASE-TX receiver consists of several functional blocks which convert the scrambled MLT-3 125
Mb/s serial data stream to synchronous 4-bit nibble data that is provided to the MII. Because the
100BASE-TX TP-PMD is integrated, the differential input pins, RD±, can be directly routed from the AC
coupling magnetics.
See Figure 5-7 for a block diagram of the 100BASE-TX receive function. This provides an overview of
each functional block within the 100BASE-TX receive section.
50
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
The Receive section consists of the following functional blocks:
• Analog Front End
• Input and BLW Compensation
• Signal Detect
• Digital Adaptive Equalization
• MLT-3 to Binary Decoder
• Clock Recovery Module
• NRZI to NRZ Decoder
• Serial to Parallel
• Descrambler (bypass option)
• Code Group Alignment
• 4B/5B Decoder
• Link Integrity Monitor
• Bad SSD Detection
5.5.1.2.1 Analog Front End
In addition to the Digital Equalization and Gain Control, the DP83640 includes Analog Equalization and
Gain Control in the Analog Front End. The Analog Equalization reduces the amount of Digital Equalization
required in the DSP.
5.5.1.2.2 Digital Signal Processor
The Digital Signal Processor includes Base Line Wander Compensation and Adaptive Equalization with
Gain Control.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
51
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
RD +/-
AFE
ANALOG ANALOG
AGC EQUALIZER
FCO
ADC Data
INPUT BLW
COMPENSATION
ANALOG
ADAPTATION
CONTROL
AUTOMATIC GAIN
CONTROL
CLOCK
RECOVERY
(LOOPFILTER)
DIGITAL
ADAPTIVE
EQUALIZATION
MLT-3 TO BINARY
DECODER
CLOCK
RECOVERY
MODULE
SIGNAL DETECT
NRZI TO NRZ
DECODER
CLOCK
DESCRAMBLER
LINK INTEGRITY
MONITOR
BP_SCR
MUX
CODE GROUP
ALIGNMENT
RX_DATA VALID
SSD DETECT
DIVIDE BY 5
SERIAL TO
PARALLEL
4B/5B DECODER
RX_DV/CRS
RX_CLK
RXD[3:0] / RX_ER
Figure 5-7. 100BASE-TX Receive Block Diagram
5.5.1.2.2.1 Base Line Wander Compensation
The DP83640 is completely ANSI TP-PMD compliant and includes Base Line Wander (BLW)
compensation. The BLW compensation block can successfully recover the TP-PMD defined “killer”
pattern.
52
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.5.1.2.2.2 Digital Adaptive Equalization and Gain Control
The DP83640 uses an extremely robust equalization scheme referred as ‘Digital Adaptive Equalization.’
The Digital Equalizer removes ISI (inter-symbol interference) from the receive data stream by continuously
adapting to provide a filter with the inverse frequency response of the channel. Equalization is combined
with an adaptive gain control stage. This enables the receive 'eye pattern' to be opened sufficiently to
allow very reliable data recovery.
5.5.1.2.3 Signal Detect
The signal detect function of the DP83640 is incorporated to meet the specifications mandated by the
ANSI FDDI TP-PMD Standard as well as the IEEE 802.3 100BASE-TX Standard for both voltage
thresholds and timing parameters.
Note that the reception of normal 10BASE-T link pulses and fast link pulses per IEEE 802.3 AutoNegotiation by the 100BASE-TX receiver do not cause the DP83640 to assert signal detect.
5.5.1.2.4 MLT-3 to Binary Decoder
The DP83640 decodes the MLT-3 information from the Digital Adaptive Equalizer block to binary NRZI
data.
5.5.1.2.5 Clock Recovery Module
The Clock Recovery function is implemented as a Phase detector and Loop Filter which accepts data and
error from the receive datapath to detect the phase of the recovered data. This phase information is fed
into the loop filter to determine an 8-bit signed frequency control. The 8-bit signed frequency control is
sent to the FCO in the Analog Front End to derive the receive clock. The extracted and synchronized
clock and data are used as required by the synchronous receive operations as generally depicted in
Figure 5-7.
5.5.1.2.6 NRZI to NRZ Decoder
In a typical application, the NRZI to NRZ decoder is required in order to present NRZ formatted data to the
descrambler (or to the code-group alignment block if the descrambler is bypassed).
5.5.1.2.7 Serial-to-Parallel
The 100BASE-TX receiver includes a Serial-to-Parallel converter which supplies 5-bit wide data symbols
to the PCS Rx state machine.
5.5.1.2.8 Descrambler
A serial descrambler is used to de-scramble the received NRZ data. The descrambler has to generate an
identical data scrambling sequence (N) in order to recover the original unscrambled data (UD) from the
scrambled data (SD) as represented in the equations:
SD = (UD ⊕ N)
UD = (SD ⊕ N)
(2)
(3)
Synchronization of the descrambler to the original scrambling sequence (N) is achieved based on the
knowledge that the incoming scrambled data stream consists of scrambled IDLE data. After the
descrambler has recognized 12 consecutive IDLE code-groups, where an unscrambled IDLE code-group
in 5B NRZ is equal to five consecutive ones (11111), it will synchronize to the receive data stream and
generate unscrambled data in the form of unaligned 5B code-groups.
In order to maintain synchronization, the descrambler must continuously monitor the validity of the
unscrambled data that it generates. To ensure this, a line state monitor and a hold timer are used to
constantly monitor the synchronization status. Upon synchronization of the descrambler, the hold timer
starts a 722-µs countdown. Upon detection of sufficient IDLE code-groups (58 bit times) within the 722-µs
period, the hold timer will reset and begin a new countdown. This monitoring operation will continue
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
53
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
indefinitely given a properly operating network connection with good signal integrity. If the line state
monitor does not recognize sufficient unscrambled IDLE code-groups within the 722-µs period, the entire
descrambler will be forced out of the current state of synchronization and reset in order to re-acquire
synchronization. The DP83604T also provides a bit (DESC_TIME, bit 7) in the PCSR register (0x16) that
increases the descrambler timeout from 722 µs to 2 ms to allow reception of packets up to 9 kB in size
without losing descrambler lock.
5.5.1.2.9 Code-Group Alignment
The code-group alignment module operates on unaligned 5-bit data from the descrambler (or, if the
descrambler is bypassed, directly from the NRZI/NRZ decoder) and converts it into 5B code-group data (5
bits). Code-group alignment occurs after the J/K code-group pair is detected. Once the J/K code-group
pair (11000 10001) is detected, subsequent data is aligned on a fixed boundary.
5.5.1.2.10 4B/5B Decoder
The code-group decoder functions as a look up table that translates incoming 5B code-groups into 4B
nibbles. The code-group decoder first detects the J/K code-group pair preceded by IDLE code-groups and
replaces the J/K with MAC preamble. Specifically, the J/K 10-bit code-group pair is replaced by the nibble
pair (0101 0101). All subsequent 5B code-groups are converted to the corresponding 4B nibbles for the
duration of the entire packet. This conversion ceases upon the detection of the T/R code-group pair
denoting the End-of-Stream Delimiter (ESD) or with the reception of a minimum of two IDLE code-groups.
5.5.1.2.11 100BASE-TX Link Integrity Monitor
The 100BASE-TX link monitor ensures that a valid and stable link is established before enabling both the
Transmit and Receive PCS layer.
Signal detect must be valid for 395 µs to allow the link monitor to enter the 'Link Up' state and enable the
transmit and receive functions.
5.5.1.2.12 Bad SSD Detection
A Bad Start of Stream Delimiter (Bad SSD) is any transition from consecutive idle code-groups to non-idle
code-groups which is not prefixed by the code-group pair /J/K.
If this condition is detected, the DP83640 will assert RX_ER and present RXD[3:0] = 1110 to the MII for
the cycles that correspond to received 5B code-groups until at least two IDLE code-groups are detected.
In addition, the False Carrier Sense Counter register (FCSCR) will be incremented by one.
Once at least two IDLE code-groups are detected, RX_ER and CRS become deasserted.
5.5.1.3
100BASE-FX Operation
The DP83640 provides IEEE 802.3 compliant 100BASE-FX operation. Configuration of FX mode is
through strap option, or through the register interface.
5.5.1.3.1 100BASE-FX Transmit
In 100BASE-FX mode, the device Transmit pins connect to an industry standard Fiber Transceiver with
PECL signaling through a capacitively coupled circuit.
In FX mode, the device bypasses the Scrambler and the MLT3 encoder. This allows for the transmission
of serialized 5B4B encoded NRZI data at 125 MHz.
The only added functionality from 100BASE-TX is the support for Far-End Fault data generation.
54
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.5.1.3.2 100BASE-FX Receive
In 100BASE-FX mode, the device Receive pins connect to an industry standard Fiber Transceiver with
PECL signaling.
In FX mode, the device bypasses the MLT3 Decoder and the Descrambler. This allows for the reception of
serialized 5B4B encoded NRZI data at 125 MHz.
The only added functionality for 100BASE-FX from 100BASE-TX is the support of Far-End Fault detection.
5.5.1.3.3 Far-End Fault
Because 100BASE-FX does not support Auto-Negotiation, a Far-End Fault facility is included which allows
for detection of link failures.
When no signal is being received as determined by the Signal Detect function, the device sends a FarEnd Fault indication to the far-end peer. The Far-End Fault indication is comprised of 3 or more repeating
cycles, each consisting of 84 one’s followed by 1 zero. The pattern is such that it will not satisfy the
100BASE-X carrier sense mechanism, but is easily detected as the Fault indication. The pattern will be
transparent to devices that do not support Far-End Fault.
The Far-End Fault detection process continuously monitors the receive data stream for the Far-End Fault
indication. When detected, the Link Monitor is forced to deassert Link status. This causes the device to
transmit IDLE’s on its transmit path.
5.5.1.4
10BASE-T Transceiver Module
The 10BASE-T Transceiver Module is IEEE 802.3 compliant. It includes the receiver, transmitter, collision,
heartbeat, loopback, jabber, and link integrity functions, as defined in the standard. An external filter is not
required on the 10BASE-T interface because this is integrated inside the DP83640. This section focuses
on the general 10BASE-T system level operation.
5.5.1.4.1 Operational Modes
The DP83640 has two basic 10BASE-T operational modes:
• Half-Duplex mode
• Full-Duplex mode
Half-Duplex Mode
In Half-Duplex mode the DP83640 functions as a standard IEEE 802.3 10BASE-T transceiver supporting
the CSMA/CD protocol.
Full-Duplex Mode
In Full-Duplex mode the DP83640 is capable of simultaneously transmitting and receiving without
asserting the collision signal. The DP83640's 10 Mb/s ENDEC is designed to encode and decode
simultaneously.
5.5.1.4.2 Smart Squelch
The smart squelch is responsible for determining when valid data is present on the differential receive
inputs. The DP83640 implements an intelligent receive squelch to ensure that impulse noise on the
receive inputs will not be mistaken for a valid signal. Smart-squelch operation is independent of the
10BASE-T operational mode.
The squelch circuitry employs a combination of amplitude and timing measurements (as specified in the
IEEE 802.3 10BASE-T standard) to determine the validity of data on the twisted-pair inputs (refer to
Figure 5-8).
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
55
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
The signal at the start of a packet is checked by the smart squelch and any pulses not exceeding the
squelch level (either positive or negative, depending upon polarity) will be rejected. Once this first squelch
level is overcome correctly, the opposite squelch level must then be exceeded within 150 ns. Finally the
signal must again exceed the original squelch level within 150 ns to ensure that the input waveform will
not be rejected. This checking procedure results in the loss of typically three preamble bits at the
beginning of each packet.
Only after all these conditions have been satisfied will a control signal be generated to indicate to the
remainder of the circuitry that valid data is present. At this time, the smart-squelch circuitry is reset.
Valid data is considered to be present until the squelch level has not been generated for a time longer
than 150 ns, indicating the End of Packet. Once good data has been detected, the squelch levels are
reduced to minimize the effect of noise causing premature End-of-Packet detection.
The receive squelch threshold level can be lowered for use in longer cable or STP applications. This is
achieved by configuring the SQUELCH bits (11:9) in the 10BTSCR register (0x1A).
2 ms timer (default)
Var_Timer = 1 => 4 ms timer
Var_Timer = 2 => 6 ms timer
Var_Timer = 3 => 8 ms timer
Time units are actually 217 cycles of an 8 ns clock, or 1.048576 ms.
0
VAR_ENABLE
0, RW
Variance Enable:
Enable Variance computation. Off by default.
5.6.1.4.8 Variance Data Register (VAR_DATA), Page 2
This register contains the 32-bit Variance Sum. The contents of the data are valid only when VAR_RDY is
asserted in the VAR_CTRL register. Upon detection of VAR_RDY asserted, software should set the
VAR_FREEZE bit in the VAR_CTRL register to prevent loading of a new value into the VAR_DATA
register. Because the Variance Data value is 32-bits, two reads of this register are required to get the full
value.
Table 5-43. Variance Data Register (VAR_DATA), Address 0x1B
BIT
BIT NAME
DEFAULT
15:0
VAR_DATA
0000 0000 0000
0000, RO
DESCRIPTION
Variance Data:
Two reads are required to return the full 32-bit Variance Sum value. Following
setting the VAR_FREEZE control, the first read of this register will return the low 16
bits of the Variance data. A second read will return the high 16 bits of Variance data.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
91
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.6.1.4.9 Link Quality Monitor Register (LQMR), Page 2
This register contains the controls for the Link Quality Monitor function. The Link Quality Monitor provides
a mechanism for programming a set of thresholds for DSP parameters. If the thresholds are violated, an
interrupt will be asserted if enabled in the MISR. Monitor control and status are available in this register,
while the LQDR register controls read/write access to threshold values and current parameter values.
Reading the LQMR register clears warning bits and re-arms the interrupt generation. In addition, this
register provides a mechanisms for allowing automatic reset of the 100-Mb link based on the Link Quality
Monitor status.
Table 5-44. Link Quality Monitor Register (LQMR), Address 0x1D
BIT
BIT NAME
DEFAULT
15
LQM_ENABLE
0, RW
Link Quality Monitor Enable:
Enables the Link Quality Monitor. The enable is qualified by having a valid 100-Mb
link. In addition, the individual thresholds can be disabled by setting to the
maximum or minimum values.
DESCRIPTION
14
RESTART_ON_FC
0, RW
Restart on Frequency Control Warning:
Allow automatic reset of DSP and restart of 100 Mb Adaption on detecting a
Frequency Threshold violation. If the SD_Option bit, PCSR[8], is set to 0, the
threshold violation will also result in a drop in Link status.
13
RESTART_ON
_FREQ
0, RW
Restart on Frequency Offset Warning:
Allow automatic reset of DSP and restart of 100 Mb Adaption on detecting a
Frequency Offset Threshold violation. If the SD_Option bit, PCSR[8], is set to 0, the
threshold violation will also result in a drop in Link status.
12
RESTART_ON
_DBLW
0, RW
Restart on DBLW Warning:
Allow automatic reset of DSP and restart of 100 Mb Adaption on detecting a DBLW
Threshold violation. If the SD_Option bit, PCSR[8], is set to 0, the threshold
violation will also result in a drop in Link status.
11
RESTART_ON
_DAGC
0, RW
Restart on DAGC Warning:
Allow automatic reset of DSP and restart of 100 Mb Adaption on detecting a DAGC
Threshold violation. If the SD_Option bit, PCSR[8], is set to 0, the threshold
violation will also result in a drop in Link status.
10
RESTART_ON_C1
0, RW
Restart on C1 Warning:
Allow automatic reset of DSP and restart of 100 Mb Adaption on detecting a C1
Threshold violation. If the SD_Option bit, PCSR[8], is set to 0, the threshold
violation will also result in a drop in Link status.
9
FC_HI_WARN
0, RO/COR
Frequency Control High Warning:
This bit indicates the Frequency Control High Threshold was exceeded. This
register bit will be cleared on read.
8
FC_LO_WARN
0, RO/COR
Frequency Control Low Warning:
This bit indicates the Frequency Control Low Threshold was exceeded. This
register bit will be cleared on read.
7
FREQ_HI_WARN
0, RO/COR
Frequency Offset High Warning:
This bit indicates the Frequency Offset High Threshold was exceeded. This register
bit will be cleared on read.
6
FREQ_LO_WARN
0, RO/COR
Frequency Offset Low Warning:
This bit indicates the Frequency Offset Low Threshold was exceeded. This register
bit will be cleared on read.
5
DBLW_HI_WARN
0, RO/COR
DBLW High Warning:
This bit indicates the DBLW High Threshold was exceeded. This register bit will be
cleared on read.
4
DBLW_LO_WARN
0, RO/COR
DBLW Low Warning:
This bit indicates the DBLW Low Threshold was exceeded. This register bit will be
cleared on read.
3
DAGC_HI_WARN
0, RO/COR
DAGC High Warning:
This bit indicates the DAGC High Threshold was exceeded. This register bit will be
cleared on read.
92
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
Table 5-44. Link Quality Monitor Register (LQMR), Address 0x1D (continued)
BIT
BIT NAME
DEFAULT
2
DAGC_LO_WARN
0, RO/COR
DESCRIPTION
DAGC Low Warning:
This bit indicates the DAGC Low Threshold was exceeded. This register bit will be
cleared on read.
1
C1_HI_WARN
0, RO/COR
C1 High Warning:
This bit indicates the DEQ C1 High Threshold was exceeded. This register bit will
be cleared on read.
0
C1_LO_WARN
0, RO/COR
C1 Low Warning:
This bit indicates the DEQ C1 Low Threshold was exceeded. This register bit will
be cleared on read.
5.6.1.4.10 Link Quality Data Register (LQDR), Page 2
This register provides read/write control of thresholds for the 100 Mb Link Quality Monitor function. The
register also provides a mechanism for reading current adapted parameter values. Threshold values may
not be written if the device is powered-down.
Table 5-45. Link Quality Data Register (LQDR), Address 0x1E
BIT
BIT NAME
DEFAULT
15:14
RESERVED
00, RO
RESERVED: Writes ignored, read as 0.
DESCRIPTION
13
SAMPLE_PARAM
0, RW
Sample DSP Parameter:
Setting this bit to a 1 enables reading of current parameter values and initiates
sampling of the parameter value. The parameter to be read is selected by the
LQ_PARAM_SEL bits.
12
WRITE_LQ_THR
0, RW
Write Link Quality Threshold:
Setting this bit will cause a write to the Threshold register selected by
LQ_PARAM_SEL and LQ_THR_SEL. The data written is contained in
LQ_THR_DATA. This bit will always read back as 0.
11:9
LQ_PARAM_SEL
000, RW
Link Quality Parameter Select:
This 3-bit field selects the Link Quality Parameter. This field is used for sampling
current parameter values as well as for reads/writes to Threshold values. The
following encodings are available:
000: DEQ_C1
001: DAGC
010: DBLW
011: Frequency Offset
100: Frequency Control
101: Variance most significant bits 31:16
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
93
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
Table 5-45. Link Quality Data Register (LQDR), Address 0x1E (continued)
BIT
BIT NAME
DEFAULT
8
LQ_THR_SEL
0, RW
DESCRIPTION
Link Quality Threshold Select:
This bit selects the Link Quality Threshold to be read or written. A 0 selects the
Low threshold, while a 1 selects the high threshold. When combined with the
LQ_PARAM_SEL field, the following encodings are available {LQ_PARAM_SEL,
LQ_THR_SEL}:
000,0: DEQ_C1 Low
000,1: DEQ_C1 High
001,0: DAGC Low
001,1: DAGC High
010,0: DBLW Low
010,1: DBLW High
011,0: Frequency Offset Low
011,1: Frequency Offset High
100,0: Frequency Control Low
100,1: Frequency Control High
101,0: Variance High bits 7:0 (Variance bits 23:16)
101,1: Variance High bits 15:8 (Variance bits 31:24)
7:0
LQ_THR_DATA
1000 0000, RW
Link Quality Threshold Data:
The operation of this field is dependent on the value of the SAMPLE_PARAM bit.
If SAMPLE_PARAM = 0:
On a write, this value contains the data to be written to the selected Link Quality
Threshold register.
On a read, this value contains the current data in the selected Link Quality
Threshold register.
If SAMPLE_PARAM = 1:
On a read, this value contains the sampled parameter value. This value will
remain unchanged until a new read sequence is started.
5.6.1.4.11 Link Quality Monitor Register 2 (LQMR2), Page 2
This register contains additional controls for the Link Quality Monitor function. The Link Quality Monitor
provides a mechanism for programming a set of thresholds for DSP parameters. If the thresholds are
violated, an interrupt will be asserted if enabled in the MISR. Monitor control and status are available in
this register, while the LQDR register controls read/write access to threshold values and current parameter
values. Reading of LQMR2 register clears its warning bits but does NOT re-arm the interrupt generation;
LQMR must be read to re-arm interrupt generation. In addition, this register provides a mechanism for
allowing automatic reset of the 100 Mb link based on the Link Quality Monitor variance status.
Table 5-46. Link Quality Monitor Register 2 (LQMR2), Address 0x1F
BIT
BIT NAME
DEFAULT
15:1
1
RESERVED
0000 0, RO
10
RESTART_ON_VAR
0, RW
9:2
RESERVED
00 0000 00, RO
1
VAR_HI_WARN
0, RO/COR
0
RESERVED
0, RO
94
DESCRIPTION
Reserved: Writes ignored, Read as 0
Restart on Variance Warning:
Allow automatic reset of DSP and restart of 100 Mb Adaption on detecting a
Frequency Offset Threshold violation. If the SD_Option bit, PCSR[8], is set to 0, the
threshold violation will also result in a drop in Link status.
Reserved: Writes ignored, Read as 0
Variance High Warning:
This bit indicates the Variance High Threshold was exceeded. This register bit will
be cleared on read.
Reserved: Writes ignored, Read as 0
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
5.6.1.5
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
PTP 1588 Base Registers - Page 4
Page 4 PTP 1588 Base Registers are accessible by setting bits [2:0] = 100 of PAGESEL (13h).
5.6.1.5.1 PTP Control Register (PTP_CTL), Page 4
This register provides basic control of the PTP 1588 operation.
Table 5-47. PTP Control Register (PTP_CTL), Address 0x14
BIT
BIT NAME
DEFAULT
15:1
3
RESERVED
000, RO
Reserved: Writes ignored, Read as 0
DESCRIPTION
12:1
0
TRIG_SEL
000, RW
PTP Trigger Select:
This field selects the Trigger for loading control information or for enabling the
Trigger.
9
TRIG_DIS
0, RW/SC
Disable PTP Trigger:
Setting this bit will disable the selected Trigger. This bit does not indicate Disable
status for Triggers. The PTP Trigger Status Register should be used to determine
Trigger Status. This bit is self-clearing and will always read back as 0.
Disabling a Trigger will not disconnect it from a GPIO pin. The Trigger value will still
be driven to the GPIO if the Trigger is assigned to a GPIO.
8
TRIG_EN
0, RW/SC
Enable PTP Trigger:
Setting this bit will enable the selected Trigger. This bit does not indicate Enable
status for Triggers. The PTP Trigger Status Register should be used to determine
Trigger Status. This bit is self-clearing and will always read back as 0.
7
TRIG_READ
0, RW/SC
Read PTP Trigger:
Setting this bit will begin the Trigger Read process. The Trigger is selected based on
the setting of the TRIG_SEL bits in this register. Upon setting this bit, subsequent
reads of the PTP_TDR will return the Trigger Control values. Fields are read in the
same order as written.
6
TRIG_LOAD
0, RW/SC
Load PTP Trigger:
Setting this bit will disable the selected Trigger and begin the Trigger load process.
The Trigger is selected based on the setting of the TRIG_SEL bits in this register.
Upon setting this bit, subsequent writes to the PTP_TDR will set the Trigger Control
fields for the selected Trigger. The Trigger Load is completed once all fields have
been written, or the TRIG_EN bit has been set in this register. This bit is selfclearing and will read back as 0 when the Trigger Load is completed either by
writing all Trigger Control fields, or by setting the Trigger Enable.
5
PTP_RD_CLK
0, RW/SC
Read PTP Clock:
Setting this bit will cause the device to sample the PTP Clock time value. The time
value will be made available for reading through the PTP_TDR register. This bit is
self-clearing and will always read back as 0.
4
PTP_LOAD_CLK
0, RW/SC
Load PTP Clock:
Setting this bit will cause the device to load the PTP Clock time value from data
previously written to the PTP_TDR register. This bit is self-clearing and will always
read back as 0.
3
PTP_STEP_CLK
0, RW/SC
Step PTP Clock:
Setting this bit will cause the device to add a value to the PTP Clock. The value to
be added is the value previously written to the PTP_TDR register. This bit is
selfclearing and will always read back as 0.
2
PTP_ENABLE
0, RW
1
PTP_DISABLE
0, RW/SC
Disable PTP Clock:
Setting this bit will disable the PTP Clock. Writing a 0 to this bit will have no effect.
This bit is self-clearing and will always read back as 0.
0
PTP_RESET
0, RW
Reset PTP Clock:
Setting this bit will reset the PTP Clock and associated logic. In addition, the 1588
registers will be reset, with the exception of the PTP_COC and PTP_CLKSRC
registers. Unlike other bits in this register, this bit is not self-clearing and must be
written to 0 to release the clock and logic from reset.
Enable PTP Clock:
Setting this bit will enable the PTP Clock. Reading this bit will return the current
enabled value. Writing a 0 to this bit will have no effect.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
95
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.6.1.5.2 PTP Time Data Register (PTP_TDR), Page 4
This register provides a mechanism for reading and writing the 1588 Time and Trigger Control values. The
function of this register is determined by controls in the PTP_CTL register.
Table 5-48. PTP Time Data Register (PTP_TDR), Address 0x15
BIT
BIT NAME
DEFAULT
15:0
TIME_DATA
XXXX XXXX XXXX
XXXX, RO
XXXX XXXX XXXX
XXXX, WO
DESCRIPTION
Time Data:
On Reads, successively returns 16-bit values of the Clock time or Trigger Control
information as selected by controls in the PTP Control Register. Additional reads
beyond the avaliable fields will always return 0.
On Writes, successively stores the 16-bit values of Clock time or Trigger Control
Information as selected by controls in the PTP Control Register.
5.6.1.5.3 PTP Status Register (PTP_STS), Page 4
This register provides basic status and interrupt control for the PTP 1588 operation.
Table 5-49. PTP Status Register (PTP_STS), Address 0x16
BIT
BIT NAME
DEFAULT
15:1
2
RESERVED
0000, RO
11
TXTS_RDY
0, RO
Transmit Timestamp Ready:
A Transmit Timestamp is available for an outbound PTP Message. This bit will be
cleared upon read of the Transmit Timestamp if no other timestamps are ready.
10
RXTS_RDY
0, RO
Receive Timestamp Ready:
A Receive Timestamp is available for an inbound PTP Message. This bit will be
cleared upon read of the Receive Timestamp if no other timestamps are ready.
9
TRIG_DONE
0, RO/COR
PTP Trigger Done:
A PTP Trigger has occured. This bit will be cleared upon read. This bit will only be
set if Trigger Notification is turned on for the Trigger through the Trigger
Configuration Registers.
8
EVENT_RDY
0, RO
PTP Event Timestamp Ready:
A PTP Event Timestamp is available. This bit will be cleared upon read of the PTP
Event Status Register if no other event timestamps are ready.
7:4
RESERVED
0000, RO
3
TXTS_IE
0, RW
Transmit Timestamp Interrupt Enable:
Enable Interrupt on Transmit Timestamp Ready.
2
RXTS_IE
0, RW
Receive Timestamp Interrupt Enable:
Enable Interrupt on Receive Timestamp Ready.
1
TRIG_IE
0, RW
Trigger Interrupt Enable:
Enable Interrupt on Trigger Completion.
0
EVENT_IE
0, RW
Event Interrupt Enable:
Enable Interrupt on Event Timestamp Ready.
96
DESCRIPTION
Reserved: Writes ignored, Read as 0
Reserved: Writes ignored, Read as 0
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.6.1.5.4 PTP Trigger Status Register (PTP_TSTS), Page 4
This register provides status of the PTP 1588 Triggers. The bits in this register indicate the current status
of each of the Trigger modules. The error bits will be set if the associated notification enable
(TRIGN_NOTIFY) is set in the PTP Trigger Configuration Registers.
Table 5-50. PTP Trigger Status Register (PTP_TSTS), Address 0x17
BIT
BIT NAME
DEFAULT
DESCRIPTION
15
TRIG7_ERROR
0, RO/SC
Trigger 7 Error:
This bit indicates the Trigger was improperly programmed to trigger at a time prior to
the current time. This bit will be cleared when the Trigger is disabled and/ or rearmed.
14
TRIG7_ACTIVE
0, RO/SC
Trigger 7 Active:
This bit indicates the Trigger is enabled and has not completed.
13
TRIG6_ERROR
0, RO/SC
Trigger 6 Error:
This bit indicates the Trigger was improperly programmed to trigger at a time prior to
the current time. This bit will be cleared when the Trigger is disabled and/ or rearmed.
12
TRIG6_ACTIVE
0, RO/SC
Trigger 6 Active:
This bit indicates the Trigger is enabled and has not completed.
11
TRIG5_ERROR
0, RO/SC
Trigger 5 Error:
This bit indicates the Trigger was improperly programmed to trigger at a time prior to
the current time. This bit will be cleared when the Trigger is disabled and/ or rearmed.
10
TRIG5_ACTIVE
0, RO/SC
Trigger 5 Active:
This bit indicates the Trigger is enabled and has not completed.
9
TRIG4_ERROR
0, RO/SC
Trigger 4 Error:
This bit indicates the Trigger was improperly programmed to trigger at a time prior to
the current time. This bit will be cleared when the Trigger is disabled and/ or rearmed.
8
TRIG4_ACTIVE
0, RO/SC
Trigger 4 Active:
This bit indicates the Trigger is enabled and has not completed.
7
TRIG3_ERROR
0, RO/SC
Trigger 3 Error:
This bit indicates the Trigger was improperly programmed to trigger at a time prior to
the current time. This bit will be cleared when the Trigger is disabled and/ or rearmed.
6
TRIG3_ACTIVE
0, RO/SC
Trigger 3 Active:
This bit indicates the Trigger is enabled and has not completed.
5
TRIG2_ERROR
0, RO/SC
Trigger 2 Error:
This bit indicates the Trigger was improperly programmed to trigger at a time prior to
the current time. This bit will be cleared when the Trigger is disabled and/ or rearmed.
4
TRIG2_ACTIVE
0, RO/SC
Trigger 2 Active:
This bit indicates the Trigger is enabled and has not completed.
3
TRIG1_ERROR
0, RO/SC
Trigger 1 Error:
This bit indicates the Trigger was improperly programmed to trigger at a time prior to
the current time. This bit will be cleared when the Trigger is disabled and/ or rearmed.
2
TRIG1_ACTIVE
0, RO/SC
Trigger 1 Active:
This bit indicates the Trigger is enabled and has not completed.
1
TRIG0_ERROR
0, RO/SC
Trigger 0 Error:
This bit indicates the Trigger was improperly programmed to trigger at a time prior to
the current time. This bit will be cleared when the Trigger is disabled and/ or rearmed.
0
TRIG0_ACTIVE
0, RO/SC
Trigger 0 Active:
This bit indicates the Trigger is enabled and has not completed.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
97
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.6.1.5.5 PTP Rate Low Register (PTP_RATEL), Page 4
This register contains the low 16-bits of the PTP Rate control. The PTP Rate Control indicates a positive
or negative adjustment to the reference clock period in units of 2-32 ns. On each reference clock cycle, the
PTP Clock will be adjusted by adding REF_CLK_PERIOD +/- PTP_RATE. The PTP Rate should be
written as PTP_RATEH, followed by PTP_RATEL. The rate will take effect on the write to the
PTP_RATEL register.
Table 5-51. PTP Rate Low Register (PTP_RATEL), Address 0x18
BIT
BIT NAME
DEFAULT
15:0
PTP_RATE_LO
0000 0000 0000
0000, RW
DESCRIPTION
PTP Rate Low 16-bits:
Writing to this register will set the low 16-bits of the Rate Control value. The Rate
Control value is in units of 2-32 ns. Upon writing to this register, the full Rate Control
value will be loaded to the device.
5.6.1.5.6 PTP Rate High Register (PTP_RATEH), Page 4
This register contains the upper bits of the PTP Rate control. In addition, it contains a direction control to
indicate whether the device is operating faster or slower than the reference clock frequency. When setting
the PTP Rate, this register should be written first, followed by a write to the PTP_RATEL register. The rate
will take effect on the write to the PTP_RATEL register.
Table 5-52. PTP Rate High Register (PTP_RATEH), Address 0x19
BIT
BIT NAME
DEFAULT
DESCRIPTION
15
PTP_RATE_DIR
0, RW
PTP Rate Direction:
The setting of this bit controls whether the device will operate at a higher or lower
frequency than the reference clock.
0 : Higher Frequency. The PTP_RATE value will be added to the clock on every
cycle.
1 : Lower Frequency. The PTP_RATE value will be subtracted from the clock on
every cycle.
14
PTP_TMP_RATE
0, RW
PTP Temporary Rate:
Setting this bit will cause the rate to be applied to the clock for the duration set in the
PTP Temporary Rate Duration Register (PTP_TRD).
1 : Temporary Rate
0 : Normal Rate
13:1
0
RESERVED
00 00, RO
9:0
PTP_RATE_HI
00 0000 0000, RW
Reserved: Writes ignored, Read as 0
PTP Rate High 10-bits:
Writing to this register will set the high 10-bits of the Rate Control value. The Rate
Control value is in units of 2-32 ns.
5.6.1.5.7 PTP Read Checksum (PTP_RDCKSUM), Page 4
This register keeps a running one’s complement checksum of 16-bit read data values for valid Page 4
read accesses. Clear the checksum on a read to this register; read data from this register is not
accumulated in the read checksum because the register is cleared on read. However, read data from the
write checksum register is accumulated to allow cross checking. Checksums are not accumulated for PHY
Control Frame register accesses, but are cleared on management or PHY Control Frame reads.
Table 5-53. PTP Read Checksum (PTP_RDCKSUM), Address 0x1A
BIT
BIT NAME
DEFAULT
15:0
RD_CKSUM
XXXX XXXX XXXX
XXXX, RO/ COR
98
DESCRIPTION
PTP Read Checksum.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.6.1.5.8 PTP Write Checksum (PTP_WRCKSUM), Page 4
This register keeps a running one’s complement checksum of 16-bit write data values for Page 4 write
accesses. Clear the checksum on a read. Write data to this register or the read checksum register ARE
accumulated in the write checksum to allow cross checking. Read data from this register is accumulated in
the read checksum to allow cross checking. Checksums are not accumulated for PHY Control Frame
register accesses, but are cleared on management or PHY Control Frame reads.
Table 5-54. PTP Write Checksum (PTP_WRCKSUM), Address 0x1B
BIT
BIT NAME
DEFAULT
15:0
WR_CKSUM
XXXX XXXX XXXX
XXXX, RO/ COR
DESCRIPTION
PTP Write Checksum.
5.6.1.5.9 PTP Transmit Timestamp Register (PTP_TXTS), Page 4
This register provides a mechanism for reading the Transmit Timestamp. The fields are read in the
following order:
• Timestamp_ns [15:0]
• Overflow_cnt[1:0], Timestamp_ns[29:16]
• Timestamp_sec[15:0]
• Timestamp_sec[31:16]
The Overflow_cnt value indicates if timestamps were dropped due to an overflow of the Transmit
Timestamp queue. The overflow counter will stick at a value of three if additional timestamps were missed.
Table 5-55. PTP Transmit Timestamp Register (PTP_TXTS), Address 0x1C
BIT
BIT NAME
DEFAULT
15:0
PTP_TX_TS
0000 0000 0000
0000, RO
DESCRIPTION
PTP Transmit Timestamp:
Reading this register will return the Transmit Timestamp in four 16-bit reads.
5.6.1.5.10 PTP Receive Timestamp Register (PTP_RXTS), Page 4
This register provides a mechanism for reading the Receive Timestamp and identification information. The
fields are read in the following order:
• Timestamp_ns [15:0]
• Overflow_cnt[1:0], Timestamp_ns[29:16]
• Timestamp_sec[15:0]
• Timestamp_sec[31:16]
• sequenceId[15:0]
• messageType[3:0], source_hash[11:0]
The Overflow_cnt value indicates if timestamps were dropped due to an overflow of the Transmit
Timestamp queue. The overflow counter will stick at a value of three if additional timestamps were missed.
Table 5-56. PTP Receive Timestamp Register (PTP_RXTS), Address 0x1D
BIT
BIT NAME
DEFAULT
15:0
PTP_RX_TS
0000 0000 0000
0000, RO
DESCRIPTION
PTP Receive Timestamp:
Reading this register will return the Receive Timestamp in four 16-bit reads.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
99
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.6.1.5.11 PTP Event Status Register (PTP_ESTS), Page 4
This register provides Status for the Event Timestamp unit. Reading this register provides status for the
next Event Timestamp contained in the Event Data Register. If this register is 0, no Event Timestamp is
available in the Event Data Register. Reading this register will automatically move to the next Event in the
queue.
Table 5-57. PTP Event Status Register (PTP_ESTS), Address 0x1E
BIT
BIT NAME
DEFAULT
15:1
1
RESERVED
0000 0, RO
Reserved: Writes ignored, Read as 0
10:8
EVNTS_MISSED
000, RO/SC
Event Missed:
Indicates number of events have been missed prior to this timestamp for the
EVNT_NUM indicated. This count value will stick at 7 if more than 7 events are
missed.
7:6
EVNT_TS_LEN
00, RO/SC
Event Timestamp Length:
Indicates length of the Timestamp field in 16-bit words minus 1. Although all fields
are available, this indicates how many of the fields contain data different from the
previous Event Timestamp. This allows software to avoid reading more significant
fields if they have not changed since the previous timestamp. This field is valid for
both single and multiple events. The following shows the number of least significant
fields which have new data for each setting of TS_LENGTH:
00 : One 16-bit field is new (Timestamp_ns[15:0])
01 : Two 16-bit fields are new
10 : Three 16-bit fields are new
11 : All four 16-bit fields are new
5
EVNT_RF
0, RO/SC
Event Rise/Fall direction:
Indicates whether the event is a rise or falling event. If the MULT_EVNT bit is set to
1, this bit indicates the Rise/Fall direction for the event indicated by EVNT_NUM.
0 = Falling edge detected
1 = Rising edge detected
4:2
EVNT_NUM
000, RO/SC
Event Number:
Indicates Event Timestamp Unit which detected an event. If the MULT_EVNT bit is
set to 0, this indicates the lowest event number captured. If events have been
missed prior to this timestamp, it indicates the lowest event number captured which
had at least one missed event.
1
MULT_EVNT
0, RO/SC
Multiple Event Detect:
Indicates multiple events were detected at the same time. If multiple events are
detected, an extended event status field is available as the first data read from the
Event Data Register.
0 = Single event detected
1 = Multiple events detected
0
EVENT_DET
0, RO/SC
PTP Event Detected:
Indicates an Event has been detected by one of the Event Timestamp Units.
100
DESCRIPTION
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.6.1.5.12 PTP Event Data Register (PTP_EDATA), Page 4
This register provides a mechanism for reading the Event Timestamp and extended event status. If
present, the extended event status is read prior to reading the Event Timestamp. Presence of the
Extended Event Status field is indicated by the MULT_EVNT bit in the PTP Event Status Register. The
timestamp consists of four 16-bit fields. This register contains a valid timestamp if the PTP_ESTS register
indicates an Event Timestamp is available. Not all fields have to be read for each timestamp. For example,
if the EVNT_TS_LEN indicates the seconds field has not changed from the previous event, software may
skip that read. Reading the PTP_ESTS register will cause the device to move to the next available
timestamp.
The fields are read in the following order:
• Extended Event Status[15:0] (only available if PTP_ESTS indicates detection of multiple events)
• Timestamp_ns [15:0]
• Timestamp_ns[29:16] (upper 2 bits are always 0)
• Timestamp_sec[15:0]
• Timestamp_sec[31:16]
For Extended Event Status, the following definition is used for the PTP Event Data Register:
Table 5-58. PTP Event Data Register (PTP_EDATA), Address 0x1F
BIT
BIT NAME
DEFAULT
15
E7_RISE
0, RO/SC
Rise/Fall edge direction for Event 7:
Indicates direction of Event 7
0 = Fall
1 = Rise
DESCRIPTION
14
E7_DET
0, RO/SC
Event 7 detected:
Indicates Event 7 detected a rising or falling edge at the time contained in the
PTP_EDATA register timestamp.
13
E6_RISE
0, RO/SC
Rise/Fall edge direction for Event 6:
Indicates direction of Event 6
0 = Fall
1 = Rise
12
E6_DET
0, RO/SC
Event 6 detected:
Indicates Event 6 detected a rising or falling edge at the time contained in the
PTP_EDATA register timestamp.
11
E5_RISE
0, RO/SC
Rise/Fall edge direction for Event 5:
Indicates direction of Event 5
0 = Fall
1 = Rise
10
E5_DET
0, RO/SC
Event 5 detected:
Indicates Event 5 detected a rising or falling edge at the time contained in the
PTP_EDATA register timestamp.
9
E4_RISE
0, RO/SC
Rise/Fall edge direction for Event 4:
Indicates direction of Event 4
0 = Fall
1 = Rise
8
E4_DET
0, RO/SC
Event 4 detected:
Indicates Event 4 detected a rising or falling edge at the time contained in the
PTP_EDATA register timestamp.
7
E3_RISE
0, RO/SC
Rise/Fall edge direction for Event 3:
Indicates direction of Event 3
0 = Fall
1 = Rise
6
E3_DET
0, RO/SC
Event 3 detected:
Indicates Event 3 detected a rising or falling edge at the time contained in the
PTP_EDATA register timestamp.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
101
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
Table 5-58. PTP Event Data Register (PTP_EDATA), Address 0x1F (continued)
BIT
BIT NAME
DEFAULT
5
E2_RISE
0, RO/SC
Rise/Fall edge direction for Event 2:
Indicates direction of Event 2
0 = Fall
1 = Rise
DESCRIPTION
4
E2_DET
0, RO/SC
Event 2 detected:
Indicates Event 2 detected a rising or falling edge at the time contained in the
PTP_EDATA register timestamp.
3
E1_RISE
0, RO/SC
Rise/Fall edge direction for Event 1:
Indicates direction of Event 1
0 = Fall
1 = Rise
2
E1_DET
0, RO/SC
Event 1 detected:
Indicates Event 1 detected a rising or falling edge at the time contained in the
PTP_EDATA register timestamp.
1
E0_RISE
0, RO/SC
Rise/Fall edge direction for Event 0:
Indicates direction of Event 0
0 = Fall
1 = Rise
0
E0_DET
0, RO/SC
Event 0 detected:
Indicates Event 0 detected a rising or falling edge at the time contained in the
PTP_EDATA register timestamp.
For timestamp fields, the following definition is used for the PTP Event Data Register:
Table 5-59. PTP Event Data Register (PTP_EDATA), Address 0x1F
BIT
BIT NAME
DEFAULT
15:0
PTP_EVNT_TS
XXXX XXXX XXXX
XXXX, RO
5.6.1.6
DESCRIPTION
PTP Event Timestamp:
Reading this register will return 16 bits of the Event Timestamp.
PTP 1588 Configuration Registers - Page 5
Page 5 PTP 1588 Configuration Registers are accessible by setting bits [2:0] = 101 of PAGESEL (13h).
5.6.1.6.1 PTP Trigger Configuration Register (PTP_TRIG), Page 5
This register provides basic configuration for IEEE 1588 Triggers. To write configuration to a Trigger, set
the TRIG_WR bit along with the TRIG_SEL and other control information. To read configuration from a
Trigger, set the TRIG_SEL encoding to the Trigger desired, and set the TRIG_WR bit to 0. The
subsequent read of the PTP_TRIG register will return the configuration information.
Table 5-60. PTP Trigger Configuration Register (PTP_TRIG), Address 0x14
BIT
BIT NAME
DEFAULT
15
TRIG_PULSE
0, RW
Trigger Pulse:
Setting this bit will cause the Trigger to generate a Pulse rather than a single rising
or falling edge.
14
TRIG_PER
0, RW
Trigger Periodic:
Setting this bit will cause the Trigger to generate a periodic signal. If this bit is 0, the
Trigger will generate a single Pulse or Edge depending on the Trigger Control
settings.
13
TRIG_IF_LATE
0, RW
Trigger-if-late Control:
Setting this bit will allow an immediate Trigger in the event the Trigger is
programmed to a time value which is less than the current time. This provides a
mechanism for generating an immediate trigger or to immediately begin generating a
periodic signal. For a periodic signal, no notification be generated if this bit is set
and a Late Trigger occurs.
12
TRIG_NOTIFY
0, RW
Trigger Notification Enable:
Setting this bit will enable Trigger status to be reported on completion of a Trigger or
on an error detection due to late trigger. If Trigger interrupts are enabled, the
notification will also result in an interrupt being generated.
102
DESCRIPTION
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
Table 5-60. PTP Trigger Configuration Register (PTP_TRIG), Address 0x14 (continued)
BIT
BIT NAME
DEFAULT
DESCRIPTION
11:8
TRIG_GPIO
0000, RW
Trigger GPIO Connection:
Setting this field to a non-zero value will connect the Trigger to the associated GPIO
pin. Valid settings for this field are 1 thru 12.
7
TRIG_TOGGLE
0, RW
Trigger Toggle Mode Enable:
Setting this bit will put the trigger into toggle mode. In toggle mode, the initial value
will be ignored and the trigger output will be toggled at the trigger time.
6:4
RESERVED
000, RO
Reserved: Writes ignored, Read as 0
3:1
TRIG_CSEL
000, RW
Trigger Configuration Select:
This field selects the Trigger for configuration read or write.
0
TRIG_WR
0, RW/SC
Trigger Configuration Write:
Setting this bit will generate a Configuration Write to the selected Trigger. This bit
will always read back as 0.
5.6.1.6.2 PTP Event Configuration Register (PTP_EVNT), Page 5
This register provides basic configuration for IEEE 1588 Events. To write configuration to an Event
Timestamp Unit, set the EVNT_WR bit along with the EVNT_SEL and other control information. To read
configuration from an Event Timestamp Unit, set the EVNT_SEL encoding to the Event desired, and set
the EVNT_WR bit to 0. The subsequent read of the PTP_EVNT register will return the configuration
information.
Table 5-61. PTP Event Configuration Register (PTP_EVNT), Address 0x15
BIT
BIT NAME
DEFAULT
DESCRIPTION
15
RESERVED
0, RO
Reserved: Writes ignored, Read as 0
14
EVNT_RISE
0, RW
Event Rise Detect Enable:
Enable Detection of Rising edge on Event input.
13
EVNT_FALL
0, RW
Event Fall Detect Enable:
Enable Detection of Falling edge on Event input.
12
EVNT_SINGLE
0, RW
Single Event Capture: Setting this bit to a 1 will enable single event capture
operation. The EVNT_RISE and EVNT_FALL enables will be cleared upon a valid
event timestamp capture.
11:8
EVNT_GPIO
0000, RW
Event GPIO Connection:
Setting this field to a non-zero value will connect the Event to the associated GPIO
pin. Valid settings for this field are 1 thru 12.
7:4
RESERVED
0000, RO
Reserved: Writes ignored, Read as 0
3:1
EVNT_SEL
000, RW
Event Select:
This field selects the Event Timestamp Unit for configuration read or write.
0
EVNT_WR
0, RW
Event Configuration Write:
Setting this bit will generate a Configuration Write to the selected Event Timestamp
Unit.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
103
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.6.1.6.3 PTP Transmit Configuration Register 0 (PTP_TXCFG0), Page 5
This register provides configuration for IEEE 1588 Transmit Timestamp operation.
Table 5-62. PTP Transmit Configuration Register 0 (PTP_TXCFG0), Address 0x16
BIT
BIT NAME
DEFAULT
15
SYNC_1STEP
0, RW
Sync Message One-Step Enable:
Enable automatic insertion of timestamp into transmit Sync Messages. Device will
automatically parse message and insert the timestamp in the correct location. UPD
checksum and CRC fields will be regenerated.
DESCRIPTION
14
RESERVED
0, RO
Reserved: Writes ignored, Read as 0
13
DR_INSERT
0, RW
Insert Delay_Req Timestamp in Delay_Resp:
If this bit is set to a 1, the device insert the timestamp for transmitted Delay_Req
messages into inbound Delay_Resp messages. The most recent timestamp will be
used for any inbound Delay_Resp message. The receive timestamp insertion logic
must be enabled through the PTP Receive Configuration Registers.
12
NTP_TS_EN
0, RW
Enable Timestamping of NTP Packets:
If this bit is set to 0, the device will check the UDP protocol field for a PTP Event
message (value 319). If this bit is set to 1, the device will check the UDP protocol
field for an NTP message (value 123). This setting applies to the transmit and
receive packet parsing engines.
11
IGNORE_2STEP
0, RW
Ignore Two_Step flag for One-Step operation:
If this bit is set to a 0, the device will not insert a timestamp if the Two_Step bit is set
in the flags field of the PTP header. If this bit is set to 1, the device will insert a
timestamp independent of the setting of the Two_Step flag.
10
CRC_1STEP
0, RW
Disable checking of CRC for One-Step operation:
If this bit is set to a 0, the device will force a CRC error for One-Step operation if the
incoming frame has a CRC error. If this bit is set to a 1, the device will send the
One- Step frame with a valid CRC, even if the incoming CRC is invalid.
9
CHK_1STEP
0, RW
Enable UDP Checksum correction for One-Step Operation:
Enables correction of the UDP checksum for messages which include insertion of
the timestamp. The checksum is corrected by modifying the last two bytes of the
UDP data. The last two bytes must be transmitted by the MAC as 0’s. This control
must be set for proper IPv6/UDP One-Step operation. This control will have no
effect for Layer2 Ethernet messages.
8
IP1588_EN
0, RW
Enable IEEE 1588 defined IP address filter:
Enable filtering of UDP/IP Event messages using the IANA assigned IP Destination
addresses. If this bit is set to 1, packets with IP Destination addresses which do not
match the IANA assigned addresses will not be timestamped. This field affects
operation for both IPv4 and IPv6. If this field is set to 0, IP destination addresses will
be ignored.
7
TX_L2_EN
0, RW
Layer2 Timestamp Enable:
Enables detection of IEEE 802.3/Ethernet encapsulated PTP event messages.
6
TX_IPV6_EN
0, RW
IPv6 Timestamp Enable:
Enables detection of UDP/IPv6 encapsulated PTP event messages.
5
TX_IPV4_EN
0, RW
IPv4 Timestamp Enable:
Enables detection of UDP/IPv4 encapsulated PTP event messages.
4:1
TX_PTP_VER
0 000, RW
0
TX_TS_EN
0, RW
104
PTP Version:
Enable Timestamp capture for a specific version of the IEEE 1588 specification. This
field may be programmed to any value between 1 and 15 and allows support for
future versions of the IEEE 1588 specification. A value of 0 will disable version
checking (not recommended).
Transmit Timestamp Enable:
Enable Timestamp capture for Transmit.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.6.1.6.4 PTP Transmit Configuration Register 1 (PTP_TXCFG1), 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 5-63. PTP Transmit Configuration Register 1 (PTP_TXCFG1), Address 0x17
BIT
BIT NAME
DEFAULT
15:8
BYTE0_MASK
0000 0000, RW
Byte0 Data:
Bit mask to be used for matching Byte0 of the 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.
DESCRIPTION
7:0
BYTE0_DATA
0000 0000, RW
Byte0 Mask:
Data to be used for matching Byte0 of the PTP Message.
5.6.1.6.5 PHY Status Frame Configuration Register 0 (PSF_CFG0), Page 5
This register provides configuration for the PHY Status Frame function.
Table 5-64. PHY Status Frame Configuration Register 0 (PSF_CFG0), Address 0x18
BIT
BIT NAME
DEFAULT
15:1
3
RESERVED
000, RO
Reserved: Writes ignored, Read as 0
DESCRIPTION
12:1
1
MAC_SRC_ADD
0 0, RW
PHY Status Frame Mac Source Address:
Selects source address as follows:
00 : Use Mac Address [08 00 17 0B 6B 0F]
01 : Use Mac Address [08 00 17 00 00 00]
10 : Use Mac Multicast Dest Address
11 : Use Mac Address [00 00 00 00 00 00]
10:8
MIN_PRE
000, RW
PHY Status Frame Minimum Preamble:
Determines the minimum preamble bytes required for sending packets on the MII
interface. It is recommended that this be set to the smallest value the MAC will
tolerate.
7
PSF_ENDIAN
0, RW
PHY Status Frame Endian Control:
For each 16-bit field in a Status Message, the data will normally be presented in
network byte order (Most significant byte first). If this bit is set to a 1, the byte data
fields will be reversed so that the least significant byte is first.
6
PSF_IPV4
0, RW
PHY Status Frame IPv4 Enable:
This bit controls the type of packet used for PHY Status Frames.
0 = Layer2 Ethernet packets
1 = IPv4 packets.
5
PSF_PCF_RD
0, RW
PHY Control Frame Read PHY Status Frame Enable:
Enable PHY Status Frame delivery of PHY Control Frame read data. Data read
through a PHY Control Frame will be returned in a PHY Status Frame.
4
PSF_ERR_EN
0, RW
PSF Error PHY Status Frame Enable:
Enable PHY Status Frame delivery of PHY Status Frame Errors. This bit will not
independently enable PHY Status Frame operation. One of the other enable bits
must be set for PHY Status Frames to be generated.
3
PSF_TXTS_EN
0, RW
Transmit Timestamp PHY Status Frame Enable:
Enable PHY Status Frame delivery of Transmit Timestamps.
2
PSF_RXTS_EN
0, RW
Receive Timestamp PHY Status Frame Enable:
Enable PHY Status Frame delivery of Receive Timestamps.
1
PSF_TRIG_EN
0, RW
Trigger PHY Status Frame Enable:
Enable PHY Status Frame delivery of Trigger Status.
0
PSF_EVNT_EN
0, RW
Event PHY Status Frame Enable:
Enable PHY Status Frame delivery of Event Timestamps.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
105
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.6.1.6.6 PTP Receive Configuration Register 0 (PTP_RXCFG0), Page 5,
This register provides configuration for IEEE 1588 Receive Timestamp operation.
Table 5-65. PTP Receive Configuration Register 0 (PTP_RXCFG0), Address 0x19
BIT
BIT NAME
DEFAULT
DESCRIPTION
15
DOMAIN_EN
0, RW
Domain Match Enable:
If set to 1, the Receive Timestamp unit will require the Domain field to match the
value programmed in the PTP_DOMAIN field of the PTP_RXCFG3 register. If set to
0, the Receive Timestamp will ignore the PTP_DOMAIN field.
14
ALT_MAST_DIS
0, RW
Alternate Master Timestamp Disable:
Disables timestamp generation if the Alternate_Master flag is set:
1 = Do not generate timestamp if Alternate_Master = 1
0 = Ignore Alternate_Master flag
13
USER_IP_SEL
0, RW
IP Address data select:
Selects portion of IP address accessible through the PTP_RXCFG2 register:
0 = Most Significant Octets
1 = Least Significant Octets
12
USER_IP_EN
0, RW
Enable User-programmed IP address filter:
Enable detection of UDP/IP Event messages using a programmable IP addresses.
The IP Address is set using the PTP_RXCFG2 register.
11
RX_SLAVE
0, RW
Receive Slave Only:
By default, the Receive Timestamp Unit will provide Timestamps for event
messages meeting other requirements. Setting this bit to a 1 will prevent Delay_Req
messages from being Timestamped by requiring that the Control Field (offset 32 in
the PTP message) be set to a value other than 1.
10:8
IP1588_EN
000, RW
7
RX_L2_EN
0, RW
Layer2 Timestamp Enable:
Enables detection of IEEE 802.3/Ethernet encapsulated PTP event messages.
6
RX_IPV6_EN
0, RW
IPv6 Timestamp Enable:
Enables detection of UDP/IPv6 encapsulated PTP event messages.
5
RX_IPV4_EN
0, RW
IPv4 Timestamp Enable:
Enables detection of UDP/IPv4 encapsulated PTP event messages.
4:1
RX_PTP_VER
0 000, RW
0
RX_TS_EN
0, RW
Enable IEEE 1588 defined IP address filters:
Enable detection of UDP/IP Event messages using the IANA assigned IP
Destination addresses. This field affects operation for both IPv4 and IPv6. A
Timestamp is captured for the PTP message if the IP destination address matches
the following:
IP1588_EN[0]: Dest IP address = 224.0.1.129
IP1588_EN[1]: Dest IP address = 224.0.1.130-132
IP1588_EN[2]: Dest IP address = 224.0.0.107
PTP Version:
Enable Timestamp capture for a specific version of the IEEE 1588 specification. This
field may be programmed to any value between 1 and 15 and allows support for
future versions of the IEEE 1588 specification. A value of 0 will disable version
checking (not recommended).
Receive Timestamp Enable:
Enable Timestamp capture for Receive.
5.6.1.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 5-66. 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.
106
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.6.1.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. Because 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 5-67. PTP Receive Configuration Register 2 (PTP_RXCFG2), Address 0x1B
BIT
BIT NAME
DEFAULT
DESCRIPTION
15:0
IP_ADDR_DATA
0000 0000 0000
0000, RW
Receive IP Address Data:
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.
5.6.1.6.9 PTP Receive Configuration Register 3 (PTP_RXCFG3), Page 5
This register provides extended configuration for IEEE 1588 Receive Timestamp operation.
Table 5-68. PTP Receive Configuration Register 3 (PTP_RXCFG3), Address 0x1C
BIT
BIT NAME
DEFAULT
15:1
2
TS_MIN_IFG
1100, RW
Minimum Inter-frame Gap:
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.
DESCRIPTION
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.
8
TS_INSERT
0, RW
Enable Timestamp Insertion:
Enables Timestamp insertion into a packet containing a PTP Event Message. If this
bit is set, the Timestamp will not be available through the PTP Receive Timestamp
Register.
7:0
PTP_DOMAIN
0000 0000, RW
PTP Domain:
Value of the PTP Message domainNumber field. If PTP_RXCFG0:DOMAIN_EN is
set to 1, the Receive Timestamp unit will only capture a Timestamp if the
domainNumber in the receive PTP message matches the value in this field. If the
DOMAIN_EN bit is set to 0, the domainNumber field will be ignored.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
107
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.6.1.6.10 PTP Receive Configuration Register 4 (PTP_RXCFG4), Page 5
This register provides extended configuration for IEEE 1588 Receive Timestamp operation.
Table 5-69. PTP Receive Configuration Register 4 (PTP_RXCFG4), Address 0x1D
BIT
BIT NAME
DEFAULT
DESCRIPTION
15
IPV4_UDP_MOD
0, RW
Enable IPV4 UDP Modification:
When timestamp insertion is enabled, this bit controls how UDP checksums are
handled for IPV4 PTP event messages.
If set to a 0, the device will clear the UDP checksum. If a UDP checksum error is
detected the device will force a CRC error.
If set to a 1, the device will not clear the UDP checksum. Instead it will generate a 2byte value to correct the UDP checksum and append this immediately following the
PTP message. If an incoming UDP checksum error is detected, the device will
cause a UDP checksum error in the modified field. This function should only be used
if the incoming packets contain two extra bytes of UDP data following the PTP
message. This should not be enabled for systems using version 1 of the IEEE 1588
specification.
14
TS_SEC_EN
0, RW
Enable Timestamp Seconds:
Setting this bit to a 1 enables inserting a seconds field when Timestamp Insertion is
enabled. If set to 0, only the nanoseconds portion of the Timestamp will be inserted
in the packet. This bit will be ignored if TS_INSERT is 0.
13:1
2
TS_SEC_LEN
00, RW
Inserted Timestamp Seconds Length:
This field indicates the length of the Seconds field to be inserted in the PTP
message. This field will be ignored if TS_INSERT is 0 or if TS_SEC_EN is 0. The
mapping is as follows:
00 : Least Significant Byte only of Seconds field
01 : Two Least Significant Bytes of Seconds field
10 : Three Least Significant Bytes of Seconds field
11 : All four Bytes of Seconds field
11:6
RXTS_NS_OFF
0000 00, RW
Receive Timestamp Nanoseconds offset:
This field provides an offset to the Nanoseconds field when inserting a Timestamp
into a received PTP message. If TS_APPEND is set to 1, the offset indicates an
offset from the end of the PTP message. If TS_APPEND is set to 0, the offset
indicates the byte offset from the beginning of the PTP message. This field will be
ignored if TS_INSERT is 0.
5:0
RXTS_SEC_OFF
00 0000, RW
Receive Timestamp Seconds offset:
This field provides an offset to the Seconds field when inserting a Timestamp into a
received PTP message. If TS_APPEND is set to 1, the offset indicates an offset
from the end of the inserted Nanoseconds field. If TS_APPEND is set to 0, the offset
indicates the byte offset from the beginning of the PTP message. This field will be
ignored if TS_INSERT is 0.
5.6.1.6.11 PTP Temporary Rate Duration Low Register (PTP_TRDL), Page 5
This register contains the low 16 bits of the duration in clock cycles to use the Temporary Rate as
programmed in the PTP_RATEH and PTP_RATEL registers. Because the Temporary Rate takes affect
upon writing the PTP_RATEL register, this register should be programmed before setting the Temporary
Rate. This register does not need to be reprogrammed for each use of the Temporary Rate registers.
Table 5-70. PTP Temporary Rate Duration Low Register (PTP_TRDL), Address 0x1E
BIT
BIT NAME
DEFAULT
15:0
PTP_TR_DURL
0000 0000 0000
0000, RW
108
DESCRIPTION
PTP Temporary Rate Duration Low 16 bits:
This register sets the duration for the Temporary Rate in number of clock cycles.
The actual Time duration is dependent on the value of the Temporary Rate.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.6.1.6.12 PTP Temporary Rate Duration High Register (PTP_TRDH), Page 5
This register contains the high 10 bits of the duration in clock cycles to use the Temporary Rate as
programmed in the PTP_RATEH and PTP_RATEL registers. Because the Temporary Rate takes affect
upon writing the PTP_RATEL register, this register should be programmed before setting the Temporary
Rate. This register does not need to be reprogrammed for each use of the Temporary Rate registers.
Table 5-71. PTP Temporary Rate Duration High Register (PTP_TRDH), Address 0x1F
BIT
BIT NAME
DEFAULT
15:1
0
RESERVED
0000 00, RO
9:0
PTP_TR_DURH
00 0000 0000, RW
5.6.1.7
DESCRIPTION
Reserved: Writes ignored, Read as 0
PTP Temporary Rate Duration High 10 bits:
This register sets the duration for the Temporary Rate in number of clock cycles.
The actual Time duration is dependent on the value of the Temporary Rate.
PTP 1588 Configuration Registers - Page 6
Page 6 PTP 1588 Configuration Registers are accessible by setting bits [2:0] = 110 of PAGESEL (13h).
5.6.1.7.1 PTP Clock Output Control Register (PTP_COC), Page 6
This register provides configuration for the PTP clock-synchronized output divide-by-N clock.
Table 5-72. PTP Clock Output Control Register (PTP_COC), Address 0x14
BIT
BIT NAME
DEFAULT
15
PTP_CLKOUT EN
1, RW
PTP Clock Output Enable:
1 = Enable PTP divide-by-N clock output.
0 = Disable PTP divide-by-N clock output.
DESCRIPTION
14
PTP_CLKOUT SEL
0, RW
PTP Clock Output Source Select:
1 = Select the Phase Generation Module (PGM) as the root clock for generating the
divide-by-N output.
0 = Select the Frequency-Controlled Oscillator (FCO) as the root clock for
generating the divide-by-N output.
For additional information related to the PTP clock output selection, refer to
application note AN–1729(SNLA099).
13
PTP_CLKOUT
SPEEDSEL
0, RW
PTP Clock Output I/O Speed Select:
1 = Enable faster rise/fall time for the divide-by-N clock output pin.
0 = Enable normal rise/fall time for the divide-by-N clock output pin.
12:8
RESERVED
0 0000, RO
7:0
PTP_CLKDIV
0000 1010, RW
Reserved: Writes ignored, Read as 0
PTP Clock Divide-by Value:
This field sets the divide-by value for the output clock. The output clock is divided
from an internal 250 MHz clock. Valid values range from 2 to 255 (0x02 to 0xFF),
giving a nominal output frequency range of 125 MHz down to 980.4 kHz. Divide-by
values of 0 and 1 are not valid and will stop the output clock.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
109
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.6.1.7.2 PHY Status Frame Configuration Register 1 (PSF_CFG1), Page 6
This register provides configuration for the PHY Status Frame function. Specifically, the 16-bit value in this
register is used as the first 16-bits of the PTP Header data for the PHY Status Frame.
Table 5-73. PHY Status Frame Configuration Register 1 (PSF_CFG1), Address 0x15
BIT
BIT NAME
DEFAULT
15:1
2
PTPRESERVED
0000, RW
PTP v2 reserved field:
This field contains the reserved 4-bit field (at offset 1) to be sent in status packets
from the PHY to the local MAC using the MII receive data interface.
DESCRIPTION
11:8
VERSIONPTP
0000, RW
PTP v2 versionPTP field:
This field contains the versionPTP field to be sent in status packets from the PHY to
the local MAC using the MII receive data interface.
7:4
TRANSPORTSPECIFIC
0000, RW
PTP v2 Header transportSpecific field:
This field contains the MESSAGETYPE field to be sent in status packets from the
PHY to the local MAC using the MII receive data interface.
3:0
MESSAGETYPE
0000, RW
PTP v2 messageType field:
This field contains the MESSAGETYPE field to be sent in status packets from the
PHY to the local MAC using the MII receive data interface.
5.6.1.7.3 PHY Status Frame Configuration Register 2 (PSF_CFG2), Page 6
This register provides configuration for the PHY Status Frame function. Specifically, the 16-bit value in this
register is used as the first 16-bits of the IP Source address for an IPv4 PHY Status Frame.
Table 5-74. PHY Status Frame Configuration Register 2 (PSF_CFG2), Address 0x16
BIT
BIT NAME
DEFAULT
15:8
IP_SA_BYTE1
0000 0000, RW
Second byte of IP source address:
This field contains the second byte of the IP source address.
DESCRIPTION
7:0
IP_SA_BYTE0
0000 0000, RW
First byte of IP source address:
This field contains the most significant byte of the IP source address.
5.6.1.7.4 PHY Status Frame Configuration Register 3 (PSF_CFG3), Page 6
This register provides configuration for the PHY Status Frame function. Specifically, the 16-bit value in this
register is used as the second 16-bits of the IP Source address for an IPv4 PHY Status Frame.
Table 5-75. PHY Status Frame Configuration Register 3 (PSF_CFG3), Address 0x17
BIT
BIT NAME
DEFAULT
15:8
IP_SA_BYTE3
0000 0000, RW
Fourth byte of IP source address:
This field contains the fourth byte of the IP source address.
DESCRIPTION
7:0
IP_SA_BYTE2
0000 0000, RW
Third byte of IP source address:
This field contains the third byte of the IP source address.
5.6.1.7.5 PHY Status Frame Configuration Register 4 (PSF_CFG4), Page 6
This register provides configuration for the PHY Status Frame function. Specifically, the 16-bit value in this
register is used to assist in computation of the IP checksum for an IPv4 PHY Status Frame.
Table 5-76. PHY Status Frame Configuration Register 4 (PTP_PKTSTS4), Address 0x18
BIT
BIT NAME
DEFAULT
15:0
IP_CHKSUM
0000 0000 0000
0000, RW
110
DESCRIPTION
IP Checksum:
This field contains a precomputed value ones-complement addition of all fixed
values in the IP Header. The device will add the Total Length and Identification
values to generate the final checksum.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
5.6.1.7.6 PTP SFD Configuration Register (PTP_SFDCFG), Page 6
This register provides configuration to enable outputting the RX and TX Start-of-Frame (SFD) signals on
GPIO pins. Note that GPIO assignments are not exclusive.
Table 5-77. PTP SFD Configuration Register (PTP_SFDCFG), Address 0x19
BIT
BIT NAME
DEFAULT
15:8
RESERVED
0000 0000, RO
DESCRIPTION
7:4
TX_SFD_GPIO
0000, RW
TX SFD GPIO Select:
This field controls the GPIO output to which the TX SFD signal is assigned. Valid
values are 0 (disabled) or 1-12.
3:0
RX_SFD_GPIO
0000, RW
RX SFD GPIO Select:
This field controls the GPIO output to which the RX SFD signal is assigned. Valid
values are 0 (disabled) or 1-12.
Reserved: Writes ignored, Read as 0
5.6.1.7.7 PTP Interrupt Control Register (PTP_INTCTL), Page 6
This register provides configuration for the IEEE 1588 interrupt function, allowing the PTP Interrupt to use
any of the GPIO pins.
Table 5-78. PTP Interrupt Control Register (PTP_INTCTL), Address 0x1A
BIT
BIT NAME
DEFAULT
15:4
RESERVED
0000 0000 0000,
RO
3:0
PTP_INT_GPIO
0000, RW
DESCRIPTION
Reserved: Writes ignored, Read as 0
PTP Interrupt GPIO Select:
To enable interrupts on a GPIO pin, this field should be set to the GPIO number.
Setting this field to 0 will disable interrupts through the GPIO pins.
5.6.1.7.8 PTP Clock Source Register (PTP_CLKSRC), Page 6
This register provides configuration for the reference clock source driving the IEEE 1588 logic. The source
clock period is also used by the 1588 clock nanoseconds adder to add the proper value every reference
clock cycle.
Table 5-79. PTP Clock Source Register (PTP_CLKSRC), Address 0x1B
BIT
BIT NAME
DEFAULT
15:1
4
CLK_SRC
00, RW
DESCRIPTION
13:7
RESERVED
00 0000 0, RO
Reserved: Writes ignored, Read as 0
6:0
CLK_SRC_PER
000 0000, RW
PTP Clock Source Period:
This field configures the PTP clock source period in nanoseconds. Values less than
8 are invalid and cannot be written; attempting to write a value less than 8 will cause
CLK_SRC_PER to be 8. When the clock source selection is the Divide-by-N from
the internal PGM, bits 6:3 are used as the N value; bits 2:0 are ignored in this mode.
PTP Clock Source Select:
Selects among three possible sources for the PTP reference clock:
00 : 125 MHz from internal PGM (default)
01 : Divide-by-N from 125-MHz internal PGM
1x : External reference clock
5.6.1.7.9 PTP Ethernet Type Register (PTP_ETR), Page 6
This register provides the Ethernet Type (Ethertype) field for PTP transport over Ethernet (Layer2).
Table 5-80. PTP Ethernet Type Register (PTP_ETR), Address 0x1C
BIT
BIT NAME
DEFAULT
DESCRIPTION
15:0
PTP_ETYPE
1111 0111 1000
1000, RW
PTP Ethernet Type:
This field contains the Ethernet Type field used to detect PTP messages transported
over Ethernet layer 2.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
111
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
5.6.1.7.10 PTP Offset Register (PTP_OFF), Page 6
This register provides the byte offset to the PTP message in a Layer2 Ethernet frame.
Table 5-81. PTP Offset Register (PTP_OFF), Address 0x1D
BIT
BIT NAME
DEFAULT
15:8
RESERVED
0000 0000, RO
Reserved: Writes ignored, Read as 0
DESCRIPTION
7:0
PTP_OFFSET
0000 0000, RO
PTP Offset:
This field contains the offset in bytes to the PTP Message from the preceding
header. For Layer2, this is the offset from the Ethernet Type Field. For UDP/IP, it is
the offset from the end of the UDP Header.
5.6.1.7.11 PTP GPIO Monitor Register (PTP_GPIOMON), Page 6
This register provides read-only access to the current values on GPIO inputs.
Table 5-82. PTP GPIO Monitor Register (PTP_GPIOMON), Address 0x1E
BIT
BIT NAME
DEFAULT
15:1
2
RESERVED
0000, RO
11:0
PTP_GPIO_IN
0000 0000 0000,
RO
DESCRIPTION
Reserved: Writes ignored, Read as 0
PTP GPIO Inputs:
This field reflects the current values seen on the GPIO inputs. GPIOs 12 through 1
are mapped to bits 11:0 in order.
5.6.1.7.12 PTP Receive Hash Register (PTP_RXHASH), Page 6
This register provides configuration for the source identity hash filter of the PTP receive packet parser. If
enabled, the receive parse logic will deliver a receive timestamp only if the hash function on the ten octet
sourcePortIdentity field correctly matches the programmed value. The source identity hash filter does not
affect timestamp insertion.
Table 5-83. PTP Receive Hash Register (PTP_RXHASH), Address 0x1F
BIT
BIT NAME
DEFAULT
15:1
3
RESERVED
000, RO
12
RX_HASH_EN
0, RW
11:0
PTP_RX_HASH
0000 0000 0000,
RW
112
DESCRIPTION
Reserved: Writes ignored, Read as 0
Receive Hash Enable:
Enables filtering of PTP messages based on the hash function on the ten octet
sourcePortIdentity field.
Receive Hash:
This field contains the expected source identity hash value for incoming PTP event
messages.
Detailed Description
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
6 Application, Implementation, and Layout
NOTE
Information in the following applications sections is not part of the TI component
specification, and TI does not warrant its accuracy or completeness. TI’s customers are
responsible for determining suitability of components for their purposes. Customers should
validate and test their design implementation to confirm system functionality.
6.1
Application Information
The DP83640 provides advanced and flexible support for IEEE 1588 for use in a highly-accurate IEEE
1588 system. It provides a 1588 digital clock implementation, IEEE 1588 Transmit and Receive packet
parsing and Start-of-Frame detection, Transmit and Receive Timestamp units, trigger generation, event
timestamp unit and a Pulse-Per-Second (PPS) generator.
6.1.1
Key IEEE 1588 Features
IEEE 1588 provides a time synchronization protocol, often referred to as the Precision Time Protocol
(PTP), which synchronizes time across an Ethernet network. DP83640 supports IEEE 1588 Real Time
Ethernet applications by providing hardware support for three time-critical elements.
• IEEE 1588 synchronized clock generation
• Packet timestamps for clock synchronization
• Event triggering and timestamping through GPIO
By combining the above capabilities, the DP83640 provides advanced and flexible support for IEEE 1588
for use in a highly-accurate IEEE 1588 system.
The DP83640 provides features for controlling the clock operation in Slave mode. The clock value can be
updated to match the Master clock in several ways. In addition, the clock can be programmed to adjust its
frequency to compensate for drift.
The DP83640 supports real time triggering activities and captures real time events to report to the
microcontroller. Controlled devices can be connected to the DP83640 through the available GPIO.
The IEEE 1588 features are briefly presented below. For a more detailed discussion on configuring the
IEEE 1588 features, refer to the Software Development Guide for the DP83640.
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
113
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
Real TIme Actions
Microcontroller
or Microprocessor
GPIO
Clock
IEEE 1588 Clock
Application Code
IEEE 1588 Code
MDIO
IEEE 1588 Control
OS
MAC
MII
IEEE 1588
Packet Detection
and Processing
PHY
DP83640
LAN
Figure 6-1. DP83640 Example System Application
6.1.1.1
IEEE 1588 Synchronized Clock
The DP83640 provides several mechanisms for updating the IEEE 1588 clock based on the
synchronization protocol required:
• Directly Read/Writable
• Adjustable by Add/Subtract
• Frequency Scalable
• Temporary Frequency Control
The clock consists of the following fields: Seconds (32–bit field), Nanoseconds (30–bit field), and
Fractional Nanoseconds (units of 2-32 ns).
A direct set of the time value can be done by setting a new time value. A step adjustment value in
nanoseconds may be added to the current value. Note that the adjustment value can be positive or
negative.
The clock can be programmed to operate at an adjusted frequency value by programming a rate
adjustment value. The clock can also be programmed to perform a temporary adjusted frequency value by
including a rate adjustment duration. The rate adjustment allows for correction on the order of 2-32 ns per
reference clock cycle. The frequency adjustment will allow the clock to correct the offset over time,
avoiding any potential side-effects caused by a step adjustment in the time value.
The method used to update the clock value may depend on the difference in the values. For example, at
the initial synchronization attempt, the clocks may be very far apart, and therefore require a step
adjustment or a direct time set. Later, when clocks are very close in value, the temporary rate adjustment
method may be the best option.
The clock does not support negative time values. If negative time is required in the system, software will
have to make conversions from the PHY clock time to actual time.
114
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
The clock also does not support the upper 16-bits of the seconds field as defined by the specification
(Version 2 specifies a 48-bit seconds field). If this value is required to be greater than 0, it will have to be
handled by software. Because a rollover of the seconds field only occurs every 136 years, it should not be
a significant burden to software.
6.1.1.1.1 IEEE 1588 Clock Output
The DP83640 provides for a synchronized clock signal for use by external devices. The output clock
signal can be any frequency generated from 250 MHz divided by n, where n is an integer in the range of 2
to 255. This provides nominal frequencies from 125 MHz down to 980.4 kHz. The clock output signal is
controlled by the PTP_COC register. The output clock signal is generated using the rate information in the
PTP_RATE registers and is therefore frequency accurate to the 1588 clock time of the device. In addition,
if clock time adjustments are made using the Temporary Rate capabilities, then all time adjustments will
be tracked by the output clock signal as well. Note that any step adjustment in the 1588 clock time will not
be accurately represented on the 1588 clock output signal.
6.1.1.1.2 IEEE 1588 Clock Input
The IEEE 1588 PTP logic operates on a nominal 125-MHz reference clock generated by an internal
Phase Generation Module (PGM). However, options are available to use a divided-down version of the
PGM clock to reduce power consumption at the expense of precision, or to use an external reference
clock of up to 125 MHz in the event the 1588 clock is tracked externally.
6.1.1.2
Packet Timestamps
6.1.1.2.1 IEEE 1588 Transmit Packet Parser and Timestamp
The IEEE 1588 transmit parser monitors transmit packet data to detect IEEE 1588 Version 1 and Version
2 Event messages. The transmit parser can detect PTP Event messages transported directly in Layer2
Ethernet packets as well as in UDP/IPv4 and UDP/IPv6 packets. Upon detection of a PTP Event
Message, the device will capture the transmit timestamp and provide it to software.
Because software knows the order of packet transmission, only the timestamp is recorded (there is no
need to record sequence number or other information). The device can buffer four timestamps.
If enabled, an interrupt may be generated upon a Transmit Timestamp Ready.
6.1.1.2.1.1 One-Step Operation
In some cases, the transmitter can be set to operate in a One-Step mode. For Sync Messages, a OneStep device can automatically insert timestamp information in the outgoing packet. This eliminates the
need for software to read the timestamp and send a follow up message.
6.1.1.2.2 IEEE 1588 Receive Packet Parser and Timestamp
The IEEE 1588 receive parser monitors receive packet data to detect IEEE 1588 Version 1 and Version 2
Event messages. The receive parser can detect PTP Event messages transported directly in Ethernet
packets as well as in UDP/IPv4 and UDP/IPv6 packets. Upon detection of a PTP Event message, the
device will capture the receive timestamp and provide the timestamp value to software. In addition to the
timestamp, the device will record the 16-bit SequenceId, the 4-bit messageType field, and generate a 12bit hash value for octets 20-29 of the PTP event message. The device can buffer four timestamps.
An interrupt will be generated, if enabled, upon a Receive Timestamp Ready.
6.1.1.2.2.1 Receive Timestamp Insertion
The DP83640 can deliver the timestamp to software by inserting the timestamp in the received packet.
This allows for a simple method to deliver the packet to software without having to match the timestamp to
the correct packet. This also eliminates the need to read the receive timestamp through the Serial
Management Interface.
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
115
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
6.1.1.2.3 NTP Packet Timestamp
The DP83640 may be programmed to timestamp NTP packets instead of PTP packets. This operation is
enabled by setting the NTP_TS_EN control in the PTP_TXCFG0 register. When configured for NTP
timestamps, the DP83640 will timestamp packets with the NTP UDP port number rather than the PTP port
number (note that the device cannot be configured to timestamp both PTP and NTP packets). One-Step
operation is not supported for NTP timestamps, so transmit timestamps cannot be inserted directly into
outgoing NTP packets. Timestamp insertion is available for receive timestamps but must use a single,
fixed location.
6.1.1.3
Event Triggering and Timestamping
6.1.1.3.1 IEEE 1588 Event Triggering
The DP83640 is capable of being programmed to generate a trigger signal on an output pin based on the
IEEE 1588 time value. Each trigger can be programmed to generate a one-time rising or falling edge, a
single pulse of programmable width, or a periodic signal.
For each trigger, the microcontroller specifies the desired GPIO and time that the activity is to occur. The
trigger is generated when the internal IEEE 1588 clock matches the desired activation time.
The device supports up to 8 trigger signals which can be output on any of the GPIO signal pins. Multiple
triggers may be assigned to a single GPIO, allowing generation of more complex waveforms (that is, a
sequence of varying width pulses). The trigger signals are OR’ed together to form a combined signal.
The triggers are configured through the PTP Trigger Configuration Registers. The trigger time and width
settings are controlled through the PTP Control and Time Data registers.
The DP83640 can be programmed to output a Pulse-Per-Second (PPS) signal using the trigger functions.
6.1.1.3.2 IEEE 1588 Event Timestamping
The DP83640 can be programmed to timestamp an event by monitoring an input signal. The event can be
monitored for rising edge, falling edge, or either. The Event Timestamp Unit can monitor up to eight events
which can be set to any of the GPIO signal pins. PTP event timestamps are stored in a queue which
allows storage of up to eight timestamps.
When an event timestamp is available, the device will set the EVENT_RDY bit in the PTP Status Register.
The PTP Event Status Register (PTP_ESTS) provides detailed information on the next available event
timestamp, including information on the event number, rise/fall direction, and indication of events missed
due to overflow of the devices Event queue.
Event timestamp values should be adjusted by 35 ns (3 times period of the IEEE 1588 reference clock
frequency of 125 MHz + 11 ns) to compensate for input path and synchronization delays.
The Event Timestamp Unit is configured through the PTP Event Configuration Register (PTP_EVNT).
6.1.1.4
PTP Interrupts
The PTP module may interrupt the system using the PWRDOWN/INTN pin on the device, shared with
other interrupts from the PHY. As an alternative, the device may be programmed to use a GPIO pin to
generate PTP interrupts separate from other PHY interrupts.
6.1.1.5
GPIO
The DP83640 features 12 IEEE 1588 GPIO pins. These GPIO pins allow for event monitoring, triggering,
interrupts, and a clock output. The LED pins comprise 3 of the 12 GPIO pins. If an LED pin is to be used
as a GPIO, its LED function must be disabled prior to configuring the GPIO function.
116
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
Typical Application
MPU/CPU
IEEE 1588
Captured
Events
DP83640
10/100 Mb/s
Precision PHYTER
MII or RMII
RJ45
Media Access Control
(MAC)
IEEE 1588 clocks, events, triggers
IEEE 1588
Triggered
Events
Magnetics
6.2
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
10BASE-T
100BASE-TX
or
100BASE-FX
Fiber
Transceiver
Clock
Status
LEDs
Figure 6-2. Typical Application Schematic
6.2.1
Design Requirements
The design requirements for DP83640 are:
• ANA33VDD = 3.3 V
• IO_VDD = 3.3 V or 2.5 V
• Clock Input = 25 MHz for MII and 50 MHz for RMII
6.2.1.1
TPI Network Circuit
Figure 6-3 shows the recommended circuit for a 10/100 Mb/s twisted-pair interface.
Below is a partial list of recommended transformers. It is important that the user realize that variations with
PCB and component characteristics requires that the application be tested to ensure that the circuit meets
the requirements of the intended application.
• Pulse H1102
• Pulse H2019
• Pulse J0011D21
• Pulse J0011D21B
Vdd
TPRDM
Vdd
COMMON MODE CHOKES
MAY BE REQUIRED
49.9:
0.1 PF
49.9:
1:1
TDRDP
RD0.1 PF*
RD+
TDTD+
TPTDM
0.1 PF*
Vdd
49.9:
1:1
0.1 PF
49.9:
T1
RJ45
NOTE: CENTER TAP IS PULLED TO VDD
*PLACE CAPACITORS CLOSE TO THE
TRANSFORMER CENTER TAPS
TPTDP
All values are typical and are +/- 1%
PLACE RESISTORS AND
CAPACITORS CLOSE TO
THE DEVICE
Figure 6-3. 10/100 Mb/s Twisted-Pair Interface
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
117
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
6.2.1.2
www.ti.com
Fiber Network Circuit
Figure 6-4 shows the recommended circuit for a 100 Mb/s fiber-pair interface.
Vdd
50:
50:
130:
130:
130:
130:
130:
80:
80:
80:
0.1 PF
FXTDP
FXTDM
Fiber Transceiver
0.1 PF
FXSD
FXRDP
FXRDM
80:
80:
PLACE RESISTORS
CLOSE TO THE FIBER
TRANSCEIVER
PLACE RESISTORS AND
CAPACITORS CLOSE TO
THE DEVICE
All values are typical and are +/- 1%
Figure 6-4. 100 Mb/s Fiber-Pair Interface
6.2.1.3
ESD Protection
Typically, ESD precautions are predominantly in effect when handling the devices or board before being
installed in a system. In those cases, strict handling procedures need be implemented during the
manufacturing process to greatly reduce the occurrences of catastrophic ESD events. After the system is
assembled, internal components are less sensitive from ESD events.
The network interface pins are more susceptible to ESD events.
6.2.1.4
Clock In (X1) Recommendations
The DP83640 supports an external CMOS level oscillator source or a crystal resonator device.
6.2.1.4.1 Oscillator
If an external clock source is used, X1 should be tied to the clock source and X2 should be left floating.
The CMOS 25-MHz oscillator specifications for MII Mode are listed in Table 6-1. For RMII Slave Mode, the
CMOS 50-MHz oscillator specifications are listed in Table 6-2. For RMII Slave mode, it is not
recommended that the system clock out, Pin 24, be used as the reference clock to the MAC without first
verifying the interface timing. See AN-1405 (SNLA076) for more details.
118
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
6.2.1.4.2 Crystal
A 25-MHz, parallel, 20-pF load crystal resonator should be used if a crystal source is desired. Figure 6-5
shows a typical connection for a crystal resonator circuit. The load capacitor values will vary with the
crystal vendors; check with the vendor for the recommended loads.
The oscillator circuit is designed to drive a parallel resonance AT cut crystal with a minimum drive level of
100 µW and a maximum of 500 µW. If a crystal is specified for a lower drive level, a current limiting
resistor should be placed in series between X2 and the crystal.
As a starting point for evaluating an oscillator circuit, if the requirements for the crystal are not known, CL1
and CL2 should be set at 33 pF, and R1 should be set at 0 Ω.
Specification for 25-MHz crystal are listed in Table 6-3.
X1
X2
R1
CL1
CL2
Figure 6-5. Crystal Oscillator Circuit
Table 6-1. 25-MHz Oscillator Specification
PARAMETER
MIN
Frequency
TYP
UNITS
CONDITION
MHz
Frequency Tolerance
±50
ppm
Operational Temperature
Frequency Stability
±50
ppm
1 year aging
Rise / Fall Time
6
nsec
20% - 80%
Short term
Jitter
Jitter
Symmetry
(1)
MAX
25
40%
800
(1)
psec
800
(1)
psec
Long term
60%
Duty Cycle
This limit is provided as a guideline for component selection and not verified by production testing. Refer to AN-1548, PHYTER 100
Base-TX Reference Clock Jitter Tolerance (SNLA091) for details on jitter performance.
Table 6-2. 50-MHz Oscillator Specification
PARAMETER
MIN
Frequency
MAX
UNITS
50
CONDITION
MHz
Frequency Tolerance
±50
ppm
Operational Temperature
Frequency Stability
±50
ppm
Operational Temperature
Rise / Fall Time
6
nsec
20% - 80%
Short term
Jitter
Jitter
Symmetry
(1)
TYP
40%
800
(1)
psec
800
(1)
psec
60%
Long term
Duty Cycle
This limit is provided as a guideline for component selection and not verified by production testing. Refer to AN-1548, PHYTER 100
Base-TX Reference Clock Jitter Tolerance (SNLA091) for details on jitter performance.
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
119
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
Table 6-3. 25-MHz Crystal Specification
PARAMETER
MIN
TYP
Frequency
MAX
UNITS
25
CONDITION
MHz
Frequency Tolerance
±50
ppm
Operational Temperature
Frequency Stability
±50
ppm
1 year aging
40
pF
Range of CL1and CL2
Shunt Capacitance
6.2.1.5
25
Magnetics
The magnetics have a large impact on the PHY performance as well. While several components are listed
below, others may be compatible following the requirements listed in Table 6-4. It is recommended that
the magnetics include both an isolation transformer and an integrated common mode choke to reduce
EMI. When doing the layout, do not run signals under the magnetics. This could cause unwanted noise
crosstalk. Likewise void the planes under discrete magnetics, this will help prevent common mode noise
coupling. To save board space and reduce component count, an RJ-45 with integrated magnetics may be
used.
Table 6-4. Magnetics Requirements
PARAMETER
TYP
UNITS
Turn Ratio
1:1
—
±2%
Insertion Loss
–1
dB
1-100 MHz
–16
dB
1-30 MHz
–12
dB
30-60 MHz
Return Loss
Differential to Common Rejection Ratio
Crosstalk
Isolation
6.2.2
CONDITION
10
dB
60-80 MHz
–30
dB
1-50MHz
–20
dB
50-150 MHz
–35
dB
30 MHz
–30
dB
60 MHz
1,500
dB
HPOT
Detailed Design Procedure
6.2.2.1
MAC Interface (MII/RMII)
The Media Independent Interface (MII) connects the PHYTER component to the Media Access Controller
(MAC). The MAC may in fact be a discrete device, integrated into a microprocessor, CPU or FPGA. On
the MII signals, the IEEE specification states the bus should be 68-Ω impedance. For space critical
designs, the PHYTER family of products also support Reduced MII (RMII). For additional information on
this mode of operation, refer to the AN-1405 DP83848 Single 10/100 Mb/s Ethernet Transceiver Reduced
Media Independent Interface (RMII) Mode Application Report (SNLA076).
6.2.2.1.1 Termination Requirement
To reduce digital signal energy, 50-Ω series termination resistors are recommended for all MII output
signals (including RXCLK, TXCLK, and RX Data signals.)
120
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
6.2.2.1.2 Recommended Maximum Trace Length
Although RMII and MII are synchronous bus architectures, there are a number of factors limiting signal
trace lengths. With a longer trace, the signal becomes more attenuated at the destination and thus more
susceptible to noise interference. Longer traces also act as antennas, and if run on the surface layer, can
increase EMI radiation. If a long trace is running near and adjacent to a noisy signal, the unwanted signals
could be coupled in as cross talk. It is recommended to keep the signal trace lengths as short as possible.
Ideally, keep the traces under 6 inches. Trace length matching, to within 2.0 inches on the MII or RMII bus
is also recommended. Significant differences in the trace lengths can cause data timing issues. As with
any high speed data signal, good design practices dictate that impedance should be maintained and stubs
should be avoided throughout the entire data path.
6.2.2.2
Calculating Impedance
The following equations can be used to calculate the differential impedance of the board. For microstrip
traces, a solid ground plane is needed under the signal traces. The ground plane helps keep the EMI
localized and the trace impedance continuous. Because stripline traces are typically sandwiched between
the ground/supply planes, they have the advantage of lower EMI radiation and less noise coupling. The
trade off of using strip line is lower propagation speed.
6.2.2.2.1 Microstrip Impedance - Single-Ended
87
H
p
Zo = F
G ln l5.98
0.8 W + T
¥Er + (1.41)
(4)
Figure 6-6. Microstrip Impedance - Single-Ended
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
121
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
www.ti.com
6.2.2.2.2 Stripline Impedance – Single-Ended
60
2 ×H+T
pG
Zo = F
G ln F1.98 × l
0.8 × W + T
¥Er
(5)
Figure 6-7. Stripline Impedance – Single-Ended
6.2.2.2.3 Microstrip Impedance - Differential
S
@F0.96 A
H pG
Zdiff = 2 × Zo × F1 F 0.48 le
(6)
Figure 6-8. Microstrip Impedance - Differential
122
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
6.2.2.2.4 Stripline Impedance - Differential
Zdiff = 2 × Zo F1 F 0.347 le
S
@F2.9 A
H pG
(7)
Figure 6-9. Stripline Impedance - Differential
6.2.3
Application Curves
Figure 6-10. Sample 100 Mb/s Waveform (MLT-3)
Figure 6-11. Sample 10 Mb/s Waveform
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
123
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
6.3
www.ti.com
Layout
6.3.1
Layout Guidelines
6.3.1.1
PCB Layout Considerations
Place the 49.9-Ω, 1% resistors, and 0.1-μF decoupling capacitor, near the PHYTER TD± and RD± pins
and via directly to the VDD plane.
Stubs should be avoided on all signal traces, especially the differential signal pairs. See Figure 6-12.
Within the pairs (for example, TD+ and TD-), the trace lengths should be run parallel to each other and
matched in length. Matched lengths minimize delay differences, avoiding an increase in common mode
noise and increased EMI. See Figure 6-12.
Ideally, there should be no crossover or via on the signal paths. Vias present impedance discontinuities
and should be minimized. Route an entire trace pair on a single layer if possible.
PCB trace lengths should be kept as short as possible.
Signal traces should not be run such that they cross a plane split. See Figure 6-13. A signal crossing a
plane split may cause unpredictable return path currents and would likely impact signal quality as well,
potentially creating EMI problems.
Figure 6-12. Avoiding Stubs in a Differential Signal Figure 6-13. Differential Signal Pair-Plane Crossing
Pair
MDI signal traces should have 50 Ω to ground or 100-Ω differential controlled impedance. Many tools are
available online to calculate this.
124
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
6.3.1.2
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
PCB Layer Stacking
To meet signal integrity and performance requirements, at minimum a four-layer PCB is recommended for
implementing PHYTER components in end user systems. The following layer stack-ups are recommended
for four, six, and eight-layer boards, although other options are possible.
xxx
xxx
Legend
Ground
High-speed signal
VDD supply
xxx
xx xxxxx
4-Layer
6-Layer
8-Layer
Figure 6-14. PCB Stripline Layer Stacking
Within a PCB, it may be desirable to run traces using different methods, microstrip vs. stripline, depending
on the location of the signal on the PCB. For example, it may be desirable to change layer stacking where
an isolated chassis ground plane is used. Figure 6-15 illustrates alternative PCB stacking options.
xxx
xxxxxx
xxx
Legend
Chassis ground
High-speed signal
VDD supply
Figure 6-15. Alternative PCB Stripline Layer Stacking
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
125
DP83640
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
6.3.2
www.ti.com
Layout Example
PHY
Component
Transformer
(if not
integrated
in RJ-45)
Termination
components
RJ-45
Connector
Plane
Coupling
Components
Chassis
Ground Plane
System Power/Ground Planes
Figure 6-16. Layout Example
6.4
Power Supply Recommendations
The VDD supply pins of the device should be bypassed with low impedance 0.1-μF surface mount
capacitors. To reduce EMI, the capacitors should be places as close as possible to the component VDD
supply pins, preferably between the supply pins and the vias connecting to the power plane. In some
systems it may be desirable to add 0-Ω resistors in series with supply pins, as the resistor pads provide
flexibility if adding EMI beads becomes necessary to meet system level certification testing requirements
(see Figure 6-17). It is recommended the PCB have at least one solid ground plane and one solid VDD
plane to provide a low impedance power source to the component. This also provides a low impedance
return path for non-differential digital MII and clock signals. A 10.0-μF capacitor should also be placed
near the PHY component for local bulk bypassing between the VDD and ground planes.
VDD
Optional 0-
or Bead
VDD
0.1 PF
GND
PCB vias
Figure 6-17. VDD Bypass Layout
126
Application, Implementation, and Layout
Copyright © 2007–2015, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: DP83640
DP83640
www.ti.com
SNOSAY8F – SEPTEMBER 2007 – REVISED APRIL 2015
7 Device and Documentation Support
7.1
Documentation Support
7.1.1
Related Documentation
•
•
•
•
•
•
•
•
•
•
7.2
Absolute Maximum Ratings for Soldering (SNOA549)
Using RMII Master Mode, AN-1794 (SNLA101)
Semiconductor and IC Package Thermal Metrics (SPRA953)
DP83640 Synchronous Ethernet Mode: Achieving Sub-ns Accuracy in PTP Applications (SNLA100)
Synchronizing a DP83640 PTP Master to a GPS Receiver (SNOA548)
IEEE 1588 Synchronization Over Standard Networks Using the DP83640 (SNLA116)
IEEE 1588 Boundary Clock and Transparent Clock Implementation Using the DP83640 (SNLA104)
DP83640 IEEE 1588 PTP Synchronized Clock Output (SNLA099)
IEEE 1588 Precision Time Protocol Time Synchronization Performance (SNLA098)
DP83640 Software Design Guide and C Software Reference Library (SNLU049)
Trademarks
PHYTER is a trademark of Texas Instruments.
All other trademarks are the property of their respective owners.
7.3
Electrostatic Discharge Caution
This integrated circuit can be damaged by ESD. Texas Instruments recommends that all integrated circuits be handled with
appropriate precautions. Failure to observe proper handling and installation procedures can cause damage.
ESD damage can range from subtle performance degradation to complete device failure. Precision integrated circuits may be more
susceptible to damage because very small parametric changes could cause the device not to meet its published specifications.
7.4
Glossary
SLYZ022 — TI Glossary.
This glossary lists and explains terms, acronyms, and definitions.
8 Mechanical, Packaging, and Orderable Information
The following pages include mechanical, packaging, and orderable information. This information is the
most current data available for the designated devices. This data is subject to change without notice and
revision of this document. For browser-based versions of this data sheet, refer to the left-hand navigation.
Copyright © 2007–2015, Texas Instruments Incorporated
Mechanical, Packaging, and Orderable Information
Submit Documentation Feedback
Product Folder Links: DP83640
127
PACKAGE OPTION ADDENDUM
www.ti.com
30-Sep-2021
PACKAGING INFORMATION
Orderable Device
Status
(1)
Package Type Package Pins Package
Drawing
Qty
Eco Plan
(2)
Lead finish/
Ball material
MSL Peak Temp
Op Temp (°C)
Device Marking
(3)
(4/5)
(6)
DP83640TVV
NRND
LQFP
PT
48
250
Non-RoHS
& Green
Call TI
Level-3-260C-168 HR
-40 to 85
DP83640
TVV
DP83640TVV/NOPB
ACTIVE
LQFP
PT
48
250
RoHS & Green
SN
Level-3-260C-168 HR
-40 to 85
DP83640
TVV
DP83640TVVX/NOPB
ACTIVE
LQFP
PT
48
1000
RoHS & Green
SN
Level-3-260C-168 HR
-40 to 85
DP83640
TVV
(1)
The marketing status values are defined as follows:
ACTIVE: Product device recommended for new designs.
LIFEBUY: TI has announced that the device will be discontinued, and a lifetime-buy period is in effect.
NRND: Not recommended for new designs. Device is in production to support existing customers, but TI does not recommend using this part in a new design.
PREVIEW: Device has been announced but is not in production. Samples may or may not be available.
OBSOLETE: TI has discontinued the production of the device.
(2)
RoHS: TI defines "RoHS" to mean semiconductor products that are compliant with the current EU RoHS requirements for all 10 RoHS substances, including the requirement that RoHS substance
do not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, "RoHS" products are suitable for use in specified lead-free processes. TI may
reference these types of products as "Pb-Free".
RoHS Exempt: TI defines "RoHS Exempt" to mean products that contain lead but are compliant with EU RoHS pursuant to a specific EU RoHS exemption.
Green: TI defines "Green" to mean the content of Chlorine (Cl) and Bromine (Br) based flame retardants meet JS709B low halogen requirements of