TMS320F28P650DK: How to use sysconfig to design my CAN function

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: SYSCONFIG

I want to implement two functions :

1. when recieved message identifier is 0x522, generate CAN rx interrupt

2. send DLC = 2~7 can messages,message identifier is 0x521.

3. bit rate is 1Mbps

how to config the CAN module by sysconfig?

when I config the CAN module, I have some doubts:

1. I just use CAN line 0 interrupt, why must I set both CAN interrupt 0 and CAN interrupt 1?

2. What do the options of Flags for Message Object mean? (Enable Transmit interrupts, use filtering base on the Message ID ...) 

3. My TX message's length has several different length, should I set several message objects, for example  I want send messages length are  2,3,4,5, need I create message object 2,3,4,5 for these different length messages?

  • 感谢您对TI产品的关注!
    关于你的咨询,我们正在确认你的问题,稍后回复您。

  • 1. I just use CAN line 0 interrupt, why must I set both CAN interrupt 0 and CAN interrupt 1?

    No, you don't have to enable both interrupt lines. You can select either line 0 or line 1 or both from sysconfig. 

    2. What do the options of Flags for Message Object mean? (Enable Transmit interrupts, use filtering base on the Message ID ...) 

    Those parameters are used to set the bit fields of the following config registers:

    1. IFx Mask Register: 

    2. IFx ID register:

    3. and IFx message control register:

    3. My TX message's length has several different length, should I set several message objects, for example  I want send messages length are  2,3,4,5, need I create message object 2,3,4,5 for these different length messages?

    You can use separate message objects with different configuration for example different msg length. If you use the same message object, you have to reconfig the message length.