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.

TCAN2845-Q1: CAN Wake

Part Number: TCAN2845-Q1

Hi Team,

Q1. Can we determine which signal triggered the wakeup using CANINT1 (bit 6) and LWU (bit 5) in the INT1 register (address 51h)?
Q2. If so, when LWU triggers a wakeup first and then a wake signal arrives via CAN, will both of the above bits become 1? (The same applies to the reverse pattern)

Best

Yusuke

  • Hi Yusuke,

    Q1: Yes. The CANINT1 and INT1 registers are both interrupt registers that point back to the INT_GLOBAL register. Whenever an interrupt is thrown, the INT_GLOBAL register will point to which interrupt register(s) is throwing the interrupt. 

  • Hi Matt,

    Could you also answer Q2?

    How should they judge CAN wake or Local wake when LWU triggers a wakeup first and then a wake signal arrives via CAN?

    Best Regards,

    Yusuke

  • Hi Yusuke, 

    Sorry it looks like the second half of my response got cut off for some reason. 

    Q2: Yes, the LWU and CANINT1 interrupt bits can be high at the same time if both wake events happen. To reset the interrupt bits, they must be cleared manually via a SPI command. If you want to know which wakeup event happened first, I would monitor the nINT pin which goes low when an interrupt happens. Once it goes low, do a SPI read from the interrupt registers to see which bit is high to determine what type of wake event happened. 

    Regards,

    Matt