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.

TCAN1145-Q1: Unable to Move to Sleep Mode

Part Number: TCAN1145-Q1

Hello,

I'm trying to move TCAN1145-Q1 into sleep mode by setting the following registers sequentially without any pause, but it's not successfully yet. It appears that the TCAN1145-Q1 is still woken up because the INH is High. Does the procedure need a sequence or a waiting time somewhere between them?

  1. SW_ID1 to SW_ID4
  2. SW_ID_MASK1 to SW_ID_MASK4
  3. SW_ID_MASK_DLC
  4. SW_CONFIG_1 and SW_CONFIG_4

Any hint or suggestion is appreciated.

Best regards,
Shinichi Yokota

  • Hi Shinichi,

    The sequence here looks good for the configuration of the partial networking feature. Please be sure that the last step of this configuration is to set the SWCFG bit in the SW_CONFIG_4 register. It is good practice to also check the interrupt registers before moving to sleep mode to ensure that the SWERR flag has not been set to indicate a problem with the current configuration. 

    Can you please confirm that you writing to the mode control register in order to enter sleep mode? Please share the raw value you are writing the register 10h so that we may check this is consistent with a write to Sleep mode. Please also share the interrupt states (values of registers 50h - 53h) when trying to enter sleep. 

    Regards, 
    Eric Schott 

  • Eric,

    Thanks for your quick feedback. I'd like to ask some questions about the note in the description of the SW_CONFIG_4 register's SWCFG bit.

    Note

    NOTE: Writing to any of these wake configuration
    registers (8'h30-8'h44, 8'h46) clears the SWCFG bit.

    First, is it correct to understand that writing to those registers once reset all the settings of selective wake?

    Second, when the TCAN1145-Q1 receives CAN bus signals under the above circumstances, will the TCAN114-Q1 be woken up by bus wake and go to standby mode?

    Best regards,
    Shinichi Yokota

  • Hi Shinichi,

    When any of the wake configuration registers are written to, only the SWCFG bit in the SW_CONFIG_4 register will be reset. All other configuration bit fields will retain their value unit overwritten via SPI or a POR occurs. 

    When TCAN1145 receives the proper wake-up frame (WUF) while in Sleep mode with SW_EN set, the device will automatically move from Sleep mode to Standby mode. If SW_EN is not set (0), then the device will wake for any WUP (any CAN frame) to Standby mode. 

    Regards, 
    Eric Schott