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.

DP83TG720S-Q1: Local and Remote sleep

Part Number: DP83TG720S-Q1

Hi all,

As mentioned in datasheet, remote sleep is supported by DP83TG720S-Q1

Actually, I am little confused about how to know that remote sleep is required without any signals from the link partner.

Is there any other signals or interrupts that the link partner sends to indicate that the PHY will go to sleep remotely by other PHY so that i can write a code to set the registers according to the Remote sleep entry?

Thanks in advance,

Best Regards,

Ahmed.

  • Hi Ahmed,

    For remote sleep entry, step-1,2 should be programmed on the DUT after the link-up.

    Whenever link partner wants to put the DUT in sleep, link partner should immediately stop transmitting. The DUT will then go to sleep.

    --
    Regards,
    Gokul.

  • Hi Gokul,

    As you mentioned steps 1,2 should be done after Link-up, So i have some questions about the DUT while performing these steps:

    1- for remote sleep in master and slave modes after setting step1, will the device be in normal mode and the link status will be up?

    2- for remote sleep master node the first step is writing bit[8] = 'b1 of register [0x018B], after this step will the device be able to go to sleep locally after performing the steps mentioned in local sleep section or the bit[8] of register [0x018B] should be reverted to b0 first?

    3- for remote sleep in master and slave modes after the second step ' Make "wake" pin low ', will the DUT be in normal or low power mode?

    Regards,

    Ahmed.

  • Hi Ahmed,

    For questions 1 and 3, answer is yes. DUT will be in normal mode with link status up unless there is a loss of energy.

    For question 2, You are correct, if you want to change from remote sleep to local sleep, you need to flip register 0x018B[8].

    --
    Regards,
    Gokul.

  • Hi Gokul,

    For questions 1 and 3, i understood your answer and thanks for your efforts.

    For question 2, i just need to check

    • In order to change from remote sleep to local sleep, register 0x018B[8] should be reverted to 0 for both master and slave nodes or just the slave nodes? ( As it is not mentioned clearly for master mode to put register 0x018B[8] to 0)
    • In case of Remote sleep for slave nodes, it is not mentioned clearly if register 0x018B[8] should be 0 or 1?

    Regards,

    Ahmed.

  • Hi Ahmed,

    For local sleep following the register writes mentioned in datasheet section 7.4.6.3 should be sufficient (independent of what is there for remote sleep mode).

    --

    Regards,

    Vikram

  • Hi Vikram,

    Actually, the register writes mentioned in datasheet section 7.4.6.3 didn't clearly mentioned what to do with register0x018B bit[8] in case of Local sleep in master node and remote sleep in slave mode that's why i am asking what is the state of register 0x018B bit[8] in these two cases?

    Also Gokul said that" if you want to change from remote sleep to local sleep, you need to flip register 0x018B[8]." witch means that the configuration of registers in local sleep mode would be affected by what was done after link up if register 0x018B[8] was set to 1 for remote sleep.

    Regards,

    Ahmed. 

  • Hello Ahmed,

    I think there is a confusion regarding remote sleep and local sleep as different states. I will let Gokul continue the discussion with you for further explaination. He is away returning back in a week's time.

    --

    Regards,

    Vikram 

  • Hi Vikram,

    Ok i will wait for the answer as my only remaining question is what is the state of register 0x018B bit[8] in these two cases:

    • remote sleep in slave mode 
    • Local sleep in master node

    As it is not mentioned in datasheet and i think this bit is affected by whether local or remote sleep is needed and either master or slave mode is used.

    Sorry for pushing but the customer is pushing me as well.

    Regards,

    Ahmed.

  • Hi Ahmed,

    Sorry for the confusion I have caused.

    Initialization Settings after link-up: Program both devices to support remote sleep for master and slave as shown below (Steps-1,2)


    This is how you can switch from remote sleep to local after the above initialization.

    If you want to switch Master to Local sleep:

    1. Make Wake low to high on Master
    2. After toggling Wake, program 0x018B[8] = 0 for Master PHY
    3. Follow Steps-1,2,3 as shown below
    4. After this, Master goes to sleep.
    5. Slave also eventually goes to sleep as we have enabled Remote Sleep entry already.

    Instead if you want to switch Slave to Local sleep:

    1. Make Wake low to high on Slave.
    2. Follow Steps-1,2,3 as shown below
    3. After this, Slave goes to sleep.
    4. Master also eventually goes to sleep as we have enabled Remote Sleep entry already.

    Please let me know if you need more details.

    --
    Regards,
    Gokul.

  • Hi Gokul,

    Thanks a lot for your explanation, everything is clear now.

    Only last question is about The case for Remote sleep for slave node which will be made after link up as you mentioned 

    • Should register 0x018B[8] be 1 to enable energy detection as done in master node or should it be 0 as its default value?

    Regards,

    Ahmed.

  • Hi Ahmed,

    0x018B[8] should be 1 for remote sleep on both master and slave. It should be 0 on both master and slave for remote sleep.

    --
    Regards,
    Gokul. 

  • Hi Gokul,

     Thanks for your support.

     Thanks also for Vikram for help.


    I just suggest to edit this section in datasheet if it is possible to make it more clear especially for

    1. 0x018B[8] state in both cases:
      1. Master mode with local sleep.
      2. slave mode for remote sleep.
    2. More explanation about steps 1,2 in remote sleep like:
      1. being set after link up.
      2. they will not affect the mode as the device will be in normal mode after these steps.

    That's only my opinion, the decision is yours.

    Best regards,

    Ahmed 

  • Hi Ahmed,

    Your suggestion makes complete sense. We will consider this for update of the datasheet when it is due.

    --
    Regards,
    Gokul.