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: SWE and tSILENCE

Part Number: TCAN1145-Q1


Hello,

There are tSILENCE mentioned in 10.4.6.1 Sleep Mode via Sleep Wake Error. But I cannot understand them:

1. Once in standby mode, the tSILENCE and tINACTIVE timers start.

    Would you please explain how tSILENCE is involved in SWE?

2. When in standby, normal or listen mode and tSILENCE (SWE_DIS=1) or CANSLNT (SWE_DIS=0) persists for tINACTIVE ,the device enters sleep mode.

    Would you please paraphrase the above sentence? I do not think tSILENCE can persist for tINACTIVE.

Thank you.

Regards,

Oguri

  • Hello Oguri,

    1. Once in standby mode, the tSILENCE and tINACTIVE timers start.

        Would you please explain how tSILENCE is involved in SWE?

    I believe this is best explained in 10.4.1 section of the datasheet. 

    When there is no activity on the CAN bus, the SWE timer will begin to count only after a time of tsilence has been met. If activity on the CAN bus begins, the tsilence and SWE timer counters will reset. 

    2. When in standby, normal or listen mode and tSILENCE (SWE_DIS=1) or CANSLNT (SWE_DIS=0) persists for tINACTIVE ,the device enters sleep mode.

        Would you please paraphrase the above sentence? I do not think tSILENCE can persist for tINACTIVE.

    tinactive is a timer that starts after a tsilence. Once tinactive > 3.75 minutes, the device will enter sleep mode given that the SWE timer is enabled.

    Regards,

    Tyler

  • Hi Tyler,

    Thank you for the clarification. Would you please check if my description that follows is true?

    So the appropriate description for the sentence #1 should be “tINACTIVE timer starts after tSILENCE timer expires” instead of “tSILENCE and tINACTIVE timers start”, because they are different timers and do not start at the same time. tINACTIVE timer here is the same as SWE timer, while tSILENCE timer is not a part of SWE.

    I would like to make it clear the explanation of 10.4.1 section, which is also very confusing. There are 2 cases of CANSLNT_SWE_DIS=”0” and “1”. The difference between them should be, in case “0” to stop the timer CANSLNT must be cleared, while in case “1” a bus activity stops the timer. Although different descriptions are applied for the start of SWE timer, they are the same because “CANSLNT interrupt is set” “when no bus activity is present for longer than tSILENCE”. They are the same.

    Now I am getting understanding the sentence #2. It should be, when SWE timer runs for tINACTIVE without stopped by bus activity (CANSLNT_SWE_DIS=1) or clearing CANSLNT (CANSLNT_SWE_DIS=0) the device enters sleep mode. Referring SWE_DIS is wrong.

    Regards,

    Oguri

  • Hi Oguri,

    #1 should be “tINACTIVE timer starts after tSILENCE timer expires” instead of “tSILENCE and tINACTIVE timers start”

    This statement is correct Tinactive and Tsilence are two different timers. We can better see that these are two separate timers by reading section 10.4.6.1 in the datasheet where it says "The device wakes up for a CAN bus WUP or local wake thus entering standby mode. Once in standby mode, the Tsilence and Tinactive timers start." 

    tINACTIVE timer here is the same as SWE timer, while tSILENCE timer is not a part of SWE.

    This is correct. Tinactive is only for the SWE timer. A Tsilence timer needs to be fulfilled before the Tinactive timer begins to count. 

    I would like to make it clear the explanation of 10.4.1 section, which is also very confusing. There are 2 cases of CANSLNT_SWE_DIS=”0” and “1”. The difference between them should be, in case “0” to stop the timer CANSLNT must be cleared, while in case “1” a bus activity stops the timer. Although different descriptions are applied for the start of SWE timer, they are the same because “CANSLNT interrupt is set” “when no bus activity is present for longer than tSILENCE”. They are the same.

    Configuring bit 2 in the SWE_DIS register will determine how the SWE timer is configured, based either on the CANSLNT flag or based only on Tsilence + bus activity. 

    There are basically 2 different ways to configure the SWE timer. 

    Regards,

    Tyler 

  • Hi Tyler,

    Thank you again for the further clarification. I tried to make 10.4.6 section simpler and clearer as shown below. Please again confirm if it is correct. I think the section title of “SWE Timer” is more appropriate instead of “Fail-safe Features”. The descriptions for “Fail-safe Mode” should be placed right after Standby mode.:

     

    10.4.6 SWE Timer

    The sleep wake error (SWE) timer is to make the device transitions to Sleep Mode when there is no expected activity in each functional mode for tINACTIVE (5 minutes max).

    Standby Mode (transition by power up and UVSUP event):

    When rising voltage at VSUP crosses VSUP(PU)R, the device transitions to Standby mode and SWE timer starts. Before SWE timer expires the device should be configured as Normal Mode or Listen Only Mode, or the interrupt registers for the cause of transition (PWRON in INT_2) should be cleared. Otherwise the device transitions to Sleep Mode.

    Standby Mode (transition by wake up events and frame overflow):

    With a wake up event or frame overflow the device transitions to Standby Mode, and SWE timer starts after tSILENCE (1.2s max) of no bus activity. Before SWE timer expires the device should be configured as Normal Mode or Listen Only Mode, or the interrupt registers for the cause of transition (CANINT, LWU, and FRAME_OVF in INT_1) should be cleared. Otherwise the device transitions to Sleep Mode.

    Normal Mode / Listen Only Mode:

    In Normal Mode and Listen Only Mode, SWE timer starts after tSILENCE (1.2s max) of no bus activity. When SWE timer expires without reset by bus activity (CANSLNT_SWE_DIS=1) or clearing CANSLNT (CANSLNT_SWE_DIS=0), the device transitions to sleep mode.

    Fail-safe Mode:

    When the device transitions to Fail-safe Mode, SWE timer starts. A wake event resets SWE timer, but wake events are ignored when the interrupt registers for the cause of transition (UVIO, UVCC, and TSD in INT_2) are not cleared. When SWE timer expires, the device transitions to Sleep Mode.

    The SWE timer can be disabled by setting SWE_DIS; 8'h1C[7] = 1 and FS_DIS at 8'h17[0] = 1. But it cannot be disabled for power up. Figure 10-22 summarizes SWE timer.

     

    10.4.3 Fail-safe Mode

    Fail-safe mode is a low power mode the same as Standby mode the device transitions when TSD, UVCC, or UVIO happens. Wake events are ignored when the interrupt registers for the cause of transition (UVIO, UVCC, and TSD in INT_2) are not cleared. SWE timer starts at the transition. (Following is the same as the datasheet) This mode is default on and can be disabled by setting register 8'h17[0] = 1. A fail-safe mode counter is available that after a set number of events in a row the device performs the programmed action which can include going to sleep and a WUP or LWU event does not wake the device. A power on reset is required. The counter is default disabled and can be enabled at 8'h17[7]. The counter expiration action is at 8'h17[6:4]. The number of events before action is programmed is set at 8'h18[7:4] with a value up to 15 events. 8'h18[3:0] is the running up/down fail-safe event counter that can be read and cleared. If fail-safe mode is entered a global interrupt is issued, 8'h53[5] and the reason for entering fail-safe mode is provided by register 8'h17[3:1].

    Regards,

    Oguri

  • Oguri,

    I don't think section 10.4.6 should be replaced with SWE timer as the section heading as this device implements many fail-safe features other than just the SWE timer. Features like sleep mode via sleep wake error or driver and receiver functionality all fall into this category.

    I am trying to understand your overall motive for this question. Are you suggesting that we alter the wording in our datasheets to make data to the user more clear? 

    Regards,

    Tyler

  • Hi Tyler,

    But it seems only SWE timer and some feature of Fail-safe mode are discussed in 10.4.6.

    I was trying to understand the datasheet to explain how the device works for my customer. It took more than 2 months of hard work and another some hours to make the summary in the last post. I definitely believe the datasheet is impossible to understand. Please confirms if my statements are correct in last post.

    By the way, however, I heard today from the customer the requirement for partial networking is deleted. So, I do not have to understand TCAN1145-Q1 right now.

    Thank you.

    Regards,

    Oguri

  • Oguri,

    Some of your statements make sense but others I feel need more elaboration. I have taken your feedback and mentioned it to our systems team for further discussion. I believe we are already in the process of updating the TCAN114x datasheet, so we will take what you have posted here as feedback. 

    Regards,

    Tyler

  • Hi Tyler,

    OK! Thanks. I would like to add 1 more comment. After UVSUP event, to reset SWE timer PWRON flag should be cleared. Isn't it UVSUP flag instead of PWRON?

    Regards,

    Oguri

  • Hi Oguri,

    UVSUP event occurs when a voltage <UVsup is applied to the supply pin. 

    SWE timer (tinactive) can be reset by clearing the PWRON flag or configuring the device for normal or listen mode before the SWE timer expires. SWE timer can also be disabled by setting SWE_DIS; 8'h1C[7] = 1 and FS_DIS; 8'h17[0] = 1.

    Regards,

    Tyler

  • Is there PWRON flag to clear in UVSUP event? I guess in UVSUP event only UVSUP flag is asserted while PWRON flag is not asserted. Thanks.

    Oguri

  • Oguri,

    I believe after a UVSUP event occurs, only the UVSUP flag is asserted while PWRON flag is asserted after power up of the device. These are two separate flags.  

    Regards,

    Tyler