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.

TMS570LS1224: DCAN, Request For Sample Code For DCAN Interrupt

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Hi, all.

  I know that there are 3 types of interrupts, Message Object Interrupt, Status Change Interrupt and Error Interrupt. But could anyone provide some code for how to program it, or a logic flow diagram how to access it.

Thank you very much.

  • Hi Joe,

    Have you had a look at the example code included with Halcogen? There is an interrupt based code included. I am not certain if they have these specific types but all interrupts will be vectored to the same vector. Inside the DCAN ISR you would have to then read the interrupt flag register to check the type of interrupt and perform the appropriate handling of the specific type that occurred.

    The example is located at Halcogen--> Help --> Examples -> TMS570LS12x_11x\example_CanIntCommunication.c or directly through an explorer window at the path C:\ti\Hercules\HALCoGen\v04.06.01\examples\TMS570LS12x_11x\exampls_CanIntCommunication.c (assuming you installed in the default location).