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.

TMS320C28346: Questions about eCAN

Part Number: TMS320C28346

Hello.

I have questions.

1. Are there way to receive all message in the specified mailbox?

    If answer is YES, please tell me how to do this.

2.When AMI = 1, Even though I do not care about the number of bits of ID to be compared,

 will the number of bits to be compared adjusted automatically according to the format (standard format or extended format) sent?

I confilmed sprueu4 document, but I couldn't understand.

Regards,

uchida-k

  • Hi,

    Uchida-K said:

    1. Are there way to receive all message in the specified mailbox?

        If answer is YES, please tell me how to do this.

    Yes, you can very well do this. You need to first configure the Mailbox as Receive with 'x' message id. All the data sent to this mailbox need to have 'x' msgid. If you want to receive messages with different message ids into single mailbox, you can use the Masking feature : CAN-LAM to mask the receive mailbox msg id.

    Uchida-K said:

    2.When AMI = 1, Even though I do not care about the number of bits of ID to be compared,

     will the number of bits to be compared adjusted automatically according to the format (standard format or extended format) sent?

    Yes, your understanding is correct.

    Regards,

    Gautam

  • Hi Gautam,

    Thank you for your reply.

    Yes, you can very well do this.

    ->Can I set this if AMI = 0 ?

    Yes, your understanding is correct.


    ->How does C28346 check received messages is whether standard frame or extended frame?

     I think C28346 can't read message unless ID maches.

    Regards,

    uchida-k

  • Uchida-K said:


    ->How does C28346 check received messages is whether standard frame or extended frame?

     I think C28346 can't read message unless ID maches.

    Yes, the msg id has to match to receive the data.

  • Hi Gautam,

    Thank you for your reply.
    I under stand.

    Regards,

    uchida-k
  • Could you tell me something advices about following question?

    1.Can I set to receive all message in the specified mailbox using CAN-LAM if AMI = 0 ?
    2.How does C28346 check whether received messages is standard frame or extended frame?

    Regards,

    uchida-k
  • 1.Can I set to receive all message in the specified mailbox using CAN-LAM if AMI = 0 ?

    Answer: AMI bit is in CANGAM, not in CAN-LAM. The AMI (or LAMI) bit determines the reception of Extended and Standard frames. If the AMI bit is "0", then the IDE bit in the mailbox determines what type of frames would be received. If you want to receive both Standard and Extended frames, you need to set AMI=1. Furthermore, if  you want to receive all messages, you need to make GAM[28:0] bits to "1". The description for the GAM[28:0] bits is messed up in the Reference guide. (The description is not wrong, but the formatting is messed up). I will fix it in the next revision. It should read:

    Global-acceptance mask. These bits allow any identifier bits of an incoming message to be masked.

     

    1 - Accept a 0 or a 1 (don't care) for the corresponding bit of the received identifier.

    0 – Received identifier bit value must match the corresponding identifier bit of the MSGID register.

     
    2.How does C28346 check whether received messages is standard frame or extended frame?

    Answer: Please read the above answer carefully and let me know if it is not clear. Also refer to this post:

     

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/574818