how can I initlize MPC 5604 CAN 1 ,i wanna routine program about how to initialize CAN module 1 to send and receive message through can bus
Solved! Go to Solution.
thank you for your document,i still have question about Msg buffer,for CAN 1, we have 64 buffers,but how can we assign to transmitter and receiver ?
0-54 for receiver and 55-64 for transmitter?
still how i can get the head file MPC5604B_0M27V_0102.h ?
thank you for your document,i still have question about Msg buffer,for CAN 1, we have 64 buffers,but how can we assign to transmitter and receiver ?
0-54 for receiver and 55-64 for transmitter?
still how i can get the head file MPC5604B_0M27V_0102.h ?
Hi,
it is up to user, each MB can be used for RX or TX operation.
For the device header file; use the one which is part of project generated in CodeWarrior or S32 Design Studio
BR, Petr
for can 1 , I have 64 MB ,everytime I only use 1 MB to receive message from CAN receive interrupt;how could I efficiently use the 64 MB,I mean how could I use 2 or more MBs to receive message,the document only tells use 1 MB to do the work
Hi,
obviously more RX MBs are used if receiving different IDs, each MB receive its own message. Also you can receive messages for some ID range into single message configuring mask registers accordingly. If you are receiving single ID you can use just single MB and read it each time message comes. But you can also prepare more MBs for the same ID and create so called RX queue, so you would not need to read MBs so often. Refer to chapters Receive and Matching process of the RM for more info.
BR, Petr