Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

2294 CAN Interrupt Vectors

2004-11-16 by Robert Wood

Hi folks,

Can anyone shed any light on the interrupt vectors for the 2294? (I suspect 
this question would be valid for all devices with CAN on board actually). 

The datasheet, to me, indicates that:

CAN1 and CAN2: 2x(Tx int, Rx int) are assigned to VIC channels 20-23 and
CAN3 and CAN4: 2x(Tx int, Rx int) are assigned to VIC  channels 24-27.

I would have thought that means CAN1 Tx interrupt is on channel 20, its Rx 
interrupt is on channel 21; channel 2 Tx interrupt is channel 22 and so on.

So, I set that up and got no interrupts. (CAN was definitely working because 
polling the appropriate bit showed messages were received.) Looking at some 
of the example files posted on the Yahoo database, the examples seemed to 
indicated Channel 1's Rx VIC channel is 26. So, I changed the appropriate 
values and found the interrupt worked! 

Is the datasheet just wrong (I can't see anything in the errata sheet) or am I 
just reading it [the datasheet] incorrectly?

Cheers,

Rob

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.