I'm facing some difficulties with eCan Masks...
1) At the IDE bit description (p.61 of SPRUEU1) is said that the characteristics of the IDE bit changes according to the value of the AMI bit (CANGAM).
But I understand that the AMI bit only works when GAM also works - which is only when the module is in SCC Mode + the AME (MSGID) bit of the respective mailbox is set - . And when the module is in full eCAN mode the functionality of AMI and GAM bits is replaced by LAMI and LAM bits...
So can I consider that the statements at p. 61 relating IDE and AMI applies only when the module is on SCC mode (CANGAM is used) and when the module is in eCAN mode (CANLAM is used) the LAMI bit takes the place of AMI, regarding the effects on the IDE bit ??
2) I understand that If the module is in SCC mode, the AME[n] bit enables the function of LAM(0) + LAMI(0) for MB 0,1 & 2 ; LAM(3) + LAMI(3) for MB 3, 4 & 5 and GAM + AMI for MB 6 to 15.
If the module is in eCAN mode, GAM & AMI are not used and AME[n] enables the usage of LAM[n] + LAMI[n] for the mailboxes n (0 to 31).
Is this correct?
3) At p. 61 (MSGID Field Descriptions) is said that AME is only used for receive mailboxes. So, I deduce that we cannot apply masks for send mailboxes. Ok...Understandable.
But at 2.9.1, is said that "If a remote Frame is received, the CAN module compares the identifier of the mailboxes using the appropriate masks starting at the highest mailbox (...)"
Normally, Remote Frames are received by send mailboxes. So It created some confusion for me...
May I assume that the above statement must be interpreted this way:
If a remote Frame is received, the CAN module compares the identifier of the mailboxes using the appropriate masks for receive mailboxes with AME[n] set and compares the identifier always without masks for send mailboxes.
?
Thanks in advanced