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.
Dear Sir:
I am using the C2000Ware functions to setup, send and receive CAN messages,but can't read Can Fram Id from IFx registers; It can only display Can data after receiving Can data;Can Id can't display ;How can I deal with it; Can you show me how to read it clearly? THX
your suggestion:
If you are using the C2000Ware functions to setup, send and receive CAN messages then you can monitor all related data from the IFx registers. The examples use IF1 registers for transmit routines and IF2 registers for receive routines. I do not know of any handy function to read the CAN ID ( otherwise referred to as ARBitration ID), but you can certainly read this from CCS if you display the CanRegs frpm the register display window and expand CAN_IF2ARB register as shown below. ID is the ARB ID. Xtd bit indicates if extrended addressing is used (Xtd=1 means 29 bits, Xtd=0 means 11 bits allocated for the ARB ID). Display the register after receiving the CAN data.
Hi,
Is there any update?
Was your issue resolved?
Thanks and Regards
Harshmeet