Hey,
I'm using TCAN1146 on a project that requires to wake up MCU with a classic CAN bus frame. So far, I was able to follow SLLA521B Application Note and get the selective wake-up working, meaning I can get the TCAN1146 from sleep mode to standby mode and CANINT triggering with WUF with the configuration shown below.
SW_CONFIG_4 = 0x00;
// Setup nINT
SDO_CONFIG=0x01
PIN_CONFIG= 0x18 // nINT configuration selection : 11b = Wake Request
// Clear and configure interrupt masks
INT_1=0xFF
INT_2=0xDF
INT_3=0xA1
INT_ENABLE_1=0x40
INT_ENABLE_2=0x00
INT_ENABLE_3=0x00
INT_ENABLE_CANBUS=0x00
//------Selective Wake Config--------------------------------------
//Write desired WUF ID
SW_ID1 = 0x00;
SW_ID2 = 0x00;
SW_ID3 = 0x04;
SW_ID4 = 0x8C;
//Write ID mask
SW_ID_MASK1=0x00
SW_ID_MASK2=0x00
SW_ID_MASK3=0x00
SW_ID_MASK4=0x00
SW_ID_MASK_DLC=0x00
SW_CONFIG_1=0xD0
SW_CONFIG_3 = 0xFE
SW_CONFIG_4 = 0x80
MODE_CNTRL= 0x81
I need help with configuring nINT pin to get a low pulse on interrupt to wake the MCU. So far I have made the above configuration and still, I can't see the interrupt pulse on nINT. Also, I noticed that the SDO/nINT line is low when the nCS pin is high.
below i'm sharing the before and after WUF detection states of a few registers.
INT_GLOBAL Register before WUF
INT_GLOBAL Register after WUF
INT_1 Register after WUF
MODE_CNTRL Register before WUF
MODE_CNTRL Register after WUF
I really appreciate it if anyone could help me with this.
Thanks.