MDIO & PHY on AMIC110 April 27, 2017 Garrett Ding.

Slides:



Advertisements
Similar presentations
Serial Communications Interface (SCI) Michael LennardZachary PetersBao Nguyen.
Advertisements

PROGRAMMABLE PERIPHERAL INTERFACE -8255
MC68HC11 System Overview. System block diagram (A8 version)
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
NS Training Hardware. System Controller Module.
1-1 Ethernet Ethernet Controller How do you interface with an Ethernet PHY?
© 1999, Cisco Systems, Inc. 3-1 Chapter 10 Controlling Campus Device Access Chapter 3 Connecting the Switch Block © 1999, Cisco Systems, Inc. 3-1.
Objectives How Microcontroller works
Module 6 – Switch Configuration CCNA 3 Cabrillo College.
Input/OUTPUT [I/O Module structure].
NS Training Hardware.
Basic LAN techniques IN common with all other computer based systems networks require both HARDWARE and SOFTWARE to function. Networks are often explained.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Universal Asynchronous Receiver/Transmitter (UART)
NS Training Hardware.
IO Subsystem IV Ports and peripherals. IO Subsystem (1) All devices connected to the system buses, other than memory and CPU – Input and output ports.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective.
Application Case Study Christmas Lights Controller
Arduino.
© 2003, Cisco Systems, Inc. All rights reserved.
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
Allied Telesyn Power Over Ethernet
Instructor Materials Chapter 2: Point-to-Point Connections
Abbreviated designation
Application Case Study Security Camera Controller
COURSE OUTCOMES OF Microprocessor and programming
80C51 Block Diagram ECE Overview.
Everybody.
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Environment Temperature Monitor
Chapter 11: Inter-Integrated Circuit (I2C) Interface
Refer to Chapter 10 in the reference book
Diagram of microprocessor interface with IO devices
Chapter 5: Switch Configuration
BVM Engineering College Electrical Engineering Department : Microprocessor and Microcontroller Interfacing Interrupts of 8051 Prepared by:
Configuring EtherChannels and Switch Troubleshooting
Dr. Michael Nasief Lecture 2
Chapter 2: Basic Switching Concepts and Configuration
ECE 3551 Microcomputer Systems 1
Chapter 2: Point-to-Point Connections
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Chapter 2: Introduction to Switched Networks
Chapter 2: Introduction to Switched Networks
* * * * * * * 8051 Interrupts Programming.
USB- Universal Serial Bus
Chapter 5: Switch Configuration
Interfacing Memory Interfacing.
Asynchronous Serial Communications
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
UART Serial Port Programming
Serial Communication Interface: Using 8251
Parallel communication interface 8255
Serial Communication Interface
Chapter 5: Switch Configuration
Ethernet: A Multi-access Network
PLC Hardware Components.
IP Forwarding Relates to Lab 3.
Chapter 2: Scaling VLANs
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
RF Local Protection System
"Computer Design" by Sunggu Lee
UNIT-III Pin Diagram Of 8086
EUSART Serial Communication.
CHAPTER 4 I/O PORT PROGRAMMING.
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
PIC Serial Port Interfacing
Chapter 13: I/O Systems.
PIC Serial Port Interfacing
Presentation transcript:

MDIO & PHY on AMIC110 April 27, 2017 Garrett Ding

Outline Overview PRU-ICSS MDIO PHY (TLK10xL, DP8x) Enhanced link detection Data Link (DL) status in EtherCAT

Overview

PRU-ICSS MDIO The MII Management I/F module implements the 802.3 serial management interface to interrogate and control two Ethernet PHYs simultaneously using a shared two-wire bus (MDIO_DATA, MDIO_CLK). Two user access registers to control and monitor up to two PHYs simultaneously. The following tables show the read and write format of the 32-bit MII Management interface frames, respectively.

MDIO Registers PRU_MDIO 0x4a332400

MDIO LINK register

MDIO PHYSEL register

TLK10xL PHY pin

PHY functional block diagram

DP83822 PHY pin

TLK10xL PHY The TLK10xL pins fall into the following interface categories • Serial Management Interface • Reset and Power Down • MAC Data Interface • Bootstrap Configuration Inputs • Clock Interface • 10/100Mbs PMD Interface • LED Interface • Special Connect Pins • Power and Ground pins

PHY Bootstrap Configuration Bootstrap configuration is a convenient way to configure the TLK10xL into specific modes of operation.

PHY Address The 5 PHY address inputs pins are shared with the RXD[3:0] pins and COL pin. Each TLK10x or port sharing an MDIO bus in a system must have a unique physical address. With 5 address input pins, the TLK10x can support PHY Address values 0 (<00000>) through 31 (<11111>). The address-pin states are latched into an internal register at device power-up and hardware reset. Because all the PHYAD[4:0] pins have weak internal pull-down/up resistors, the default setting for the PHY address is 00001 (0x01h).

PHY Address An example of a PHYAD connection to external components. In this example, the PHYAD configuration results in address 00011 (0x03h).

Auto-Negotiation The TLK10x device auto-negotiates to operate in 10Base-T or 100Base-TX. With Auto-Negotiation enabled, the TLK10x negotiates with the link partner to determine the speed and duplex mode. Auto-Negotiation advertises ANEN, 100BT by default. Full-Duplex or Half- Duplex configuration is available through the AN_0 bit. Internal register access configures the device for a specific mode.

Auto-MDIX The TLK10x device automatically determines whether or not it needs to cross over between pairs, eliminating the requirement for an external crossover cable. If the TLK10x interoperates with a device that implements MDI/MDIX crossover, a random algorithm as described in IEEE 802.3 determines which device performs the crossover.

LED Interface By default, the TLK10xL supports one light emitting diode (LED) - LINK_LED, pin 17. In addition, the TLK10xL supports by register access a multi-configurable LED (MLED). The MLED is not activated by default, but by register access it can be routed through either pin 17 (allowing more configuration options for pin 17), or pin 29 supporting two simultaneous LEDs (LED_LINK on pin 17 & MLED on pin 29). When MLED is routed to the COL pin (pin 29) the COL functionality is disabled. By default the TLK10xL is pin compatible to the TLK105, and the default LED output is LED_LINk on pin 17. The LED can be controlled by configuration pin and internal register bits. Bit 5 of the PHY Control register (PHYCR) selects the LED mode as described in Table 7-4.

Link Down Functionality The TLK10xL includes advanced link-down capabilities that support various real-time applications. The link-down mechanism of the TLK10xL is configurable and includes enhanced modes that allow extremely fast reaction times to link-drops. the TLK10xL link loss mechanism is based on a time window search period, in which the signal behavior is monitored. The T1 window is set by default to reduce typical link-drops to less than 1ms. The TLK10xL supports enhanced modes that shorten the window called Fast Link Down mode. In this mode, which can be configured in Control Register 3 (CR3), address 0x000B, bits 3:0, the T1 window is shortened significantly, in most cases less than 10μs. In this period of time there are several criteria allowed to generate link loss event and drop the link.

Basic Mode Control Register (BMCR)

Basic Mode Control Register (BMCR)

LED Control Register (LEDCR)

PHYCR register

Multi LED Control register (MLEDCR)

LED on TLK10x vs. DP8x LedConfig PHYCR_REG 0x19 set to 0 or one PHYCR (1u<<5) LED_0 only LedBlinkConfig LEDCR_REG 0x18 blink number LEDCR LED_0 only blink and polarity LEDCFG1 0x0460 LED_1 functions IOCTRL 0x0462 LED_1 control LEDCFG2 0x0469 LED_1 config

DP8x LED

LED_0, LED_1 on DP8x

Enhanced link detection MDIOLINK Register is updated after a read of the Generic Status Register of a PHY. Typically the bit is set if the PHY with the corresponding address has link and the PHY acknowledges the read transaction. The bit is reset if the PHY indicates it does not have link or fails to acknowledge the read transaction. Writes to the register have no effect. In addition, the status of the two PHYs specified in the MDIOUSERPHYSELn registers can be determined using the MLINK input pins. This is determined by the LINKSEL bit in the MDIOUSERPHYSELn register. The LINKSEL (Link status determination select) bit in MDIOUSERPHYSELn register determines link status using the MLINK pin by setting to 1. Default value is 0 which implies that the link status is determined by the MDIO state machine.

Enhanced link detection pr1_mii0_rxlink/pr1_mii1_rxlink pin of PRU-ICSS, which connects to PHY LED_LINK/LED_SPEED pin is connected as MLINK signal to MDIO and in enhanced link detection mode MDIO directly uses MLINK signal to detect the link status from PHY. MDIO state machine based detection is very slow - slow serial link for messaging from MDIO controller to PHYs - this typically takes around 200-250us for PHYs. MLINK/mii_rxlink detection as fast as PHY can toggle this link – with special settings TI PHYs can detect link within 10us, depending on the PHY strap settings link polarity will be different for different boards and needs to adjusted per board by reading MDIOLINK register, also insure to set PHY LED_LINK/LED_SPEED mode as 'LINK_OK' in stead of 'RX/TX Activity' to prevent link detection failure from RX/TX activity.

DL status in EtherCAT http://processors.wiki.ti.com/index.php/PRU_ICSS_EtherCAT_Slave_Controller _Register_List ESC DL status (0x4a31_0110)