This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TLK110: when tlk110 work under rmii mode, is pin 6(TXD_3) must have an external 2.2kohm pulldown resistor

Part Number: TLK110

Hi all:

    The attached file is the schematic diagram, can anybody help me to check the file.

    Tlk110 is working in rmii mode. My question is pin 6(TXD_3) must have an external 2.2kohm pulldown resistor, according to sllu155.pdf (http://www.ti.com/lit/ug/sllu155/sllu155.pdf). 

       

    After some days debuging, I can read and write all the registers in tlk110, but I can not connect to ethernet. The register 0x02 is always 0x7849. The following talbe is the values dump from the tlk110.

0x00

0x3100

0x01

0x7849

 

0x03

0x2000

 

0x03

0xA211

 

0x04

0x01E1

 

0x05

0x0000

 

0x06

0x04

 

0x07

0x2991

 

0x08

0x0000

 

0x09

0x7C00

 

0x0A

0x0104

 

0x0B

0x0000

 

0x0D

0x0000

 

0x0E

0x0000

 

0x10

0x1002

 

0x11

0X0108

 

0x12

0x0000

 

0x13

0x0A00

 

0x14

0x0000

 

0x15

0x0000

 

0x16

0x0100

 

0x17

0x0001

 

0x18

0x0400

 

0x19

0x8021

 

0x1A

0x0010

 

0x1B

0x007D

 

0x1C

0x05EE

 

0x1E

0x0102

 

0x42

0x2000

 

0xAE

0x0000

 

0xD0

0x0002

 

0x155

0x0000

 

0x170

0x0002

 

0x171

0x0108

  • Hi user,

    I would suggest building a loopback cable to see if the TLK110 can connect to itself.

    If it can, then you have an issue with either your register settings or your reference clock.

    I do not see a problem with your registers at the moment. Please build an RJ45 loopback cable and see if your TLK110 design can link up in loopback mode.

    www.juniper.net/.../fe-ge-loopback-plug-rj-45.html

    Best Regards,
  • Hi Rodrigues:
    Thanks for you suggestion. Here is a problem about the ETH_RMII_REF_CLK, when using RMII mode, this clock should be 50MHz. But this clock is about 4.3MHz. The XI pin (34) clock is from MCO2, which is coming out from stm32f429 and the clock is 50MHz. Where is this bug from?
    My initialization sequence is:
    1. Reset the 29 pin. This pin can controlled by MCU.
    2. wait for 10ms.
    3. write register 0x00 with 0x8000
    4. write register 0x1F with 0x0800
    5. wait for 10ms.
    6. read register 0x01, waiting bit 2 indicate a valid link established.
    7. write register 0x00 with 0x1000 to enable auto-negotiation.
    8. read register 0x01, waiting bit 5 indicate auto-negotiation complete.
    9. read register 0x10 to get the status.
    but step 6 is wrong, the register 0x01 is always 0x7849, which indicate non-valid link established. Is my initialization sequence OK?
    Thanks.
  • Hi Rodrigues
    Another question, Is the RMII_REF_CLK coming from the tlk110 and send to MCU? Thanks.
  • Dear Rob:
            Using an RJ45 loopback cable, I can get a valid link and ETH_RMII_REF_CLK is 50MHz. But using a real cable whether if this cable is MDIX or MDI, tlk110 can not make a valid link and ETH_RMII_REF_CLK is about 4.3MHz. I also try to write register 0x09 to value 0x7C61 and set register 0x19 bit 15, but it is useless. The phy sch is below:


    So what is the wrong? Thanks.

          I also have a design under tlk110 datasheet page23 figure 4-2, the phy sch is below:

        In this mode, using an RJ45 loopback cable, I can not get a valid link.

    Thanks.

  • Hi,

    You said above that the reference clock is 4.3MHz. This PHY requires a 50MHz clock as specified in the datasheet.
    Please supply the PHY a valid reference clock.
  • Dear Ross
    The PHY reference clock is 50MHz. using an RJ45 loopback cable, I can establish a valid link and the ETH_RMII_REF_CLK is 50MHz. But using a real cable, I can not establish a valid link and ETH_RMII_REF_CLK is about 4.3MHz.
    Where is the problem.
    Thanks.
  • Dear Rose:

    According to tlk110 datasheet page8 pin 39(RX_DV),

    I add a pull-up resistor, the whole tlk110 sch like bleow

    In this mode. RJ45 loopback cable, real RJ45 cable both can establish a valid link. But a very strange thing happens, tlk110 pin 38(RX_CLK) is 25MHz. In RMII mode, the pin 38(RX_CLK) shold be 50MHz

    So what is the problem? and using RMII mode, tlk110 pin 39 must have a pull-up resistor?

    Thanks.

  • Hi,

    It sounds like there is an issue with the processor.
    The PHY does not control the external clock source.

    RX_CLK will output a 25MHz clock in 100Mbps operation and a 2.5MHz clock in 10Mbps operation.
  • For RMII operation, the PHY must be bootstrapped into RMII using the MII_MODE strap.
    Yes, please have an external pull-up.
  • Dear Ross
    You mention MII_MODE strap, is this write register 0x17 bit 5?
    Thanks.
  • Yes, but if the PHY initializes to MII, even if you change that bit for RMII the PHY will not go into RMII operation.
    You must boot the PHY into RMII operation using the MII_MODE strap.
  • Dear all:
    I have fixed this problem. It is a hardware fault, the pin39 must have a pullup resistor to indicate RMII mode. Using RMII mode can not config by register.
    Thanks for the help.