Part Number: TM4C1294NCPDT
Dear all,
Using the following settings, I am able to get only messages from ID 2, But I need opposite. I need to reject ID 2 and receive all other messages in 11 bit configuration.
Please help me with the settings
/ Setup obj 2 as rx with acceptance filter
ptr->IF1CMSK = B7 | B6 | B5 | B4 | B1 | B0;
// Enable the use of XTD and DIR for acceptance filtering by setting UMASK
ptr->IF1MCTL |= B12;
// Set the filter mask for the lower 11 bits of the 11-bit standard ID in CANIFnMSK2
ptr->IF1MSK2 = B14 | B12 | B11 | B10 | B9 | B8 | B7 | B6 | B5 | B4 | B3 | B2;
// Set the expected ID to the ID you want to reject in CANIFnARB2
ptr->IF1ARB2 = ((0x2) << 2) | B15; // Set direction and valid bit for ID 2
// Enable rx interrupts
ptr->IF1MCTL = B12 | B10 | B7 | B6; // Set UMASK to enable mask for acceptance filtering