| Honken 
 
 
 Joined: 03 Mar 2004
 Posts: 15
 
 
 
			    
 
 | 
			
				| dsPIC and CAN interrupt |  
				|  Posted: Fri Apr 04, 2008 9:50 am |   |  
				| 
 |  
				| Hi, 
 I have a working driver for the CAN module in dsPIC30F.
 
 But I don't get the interrupt to fire for CAN1 or CAN2.
 
 this is a piece from the list file, the reset vectors.
 Does any one know if it point to the correct address for my CAN1 isr function?
 
 
 00000  0417F0     goto 0x0017f0
 0003E  0003B6     nop
 00040  000402     nop
 0004A  0002EC     nop
 00050  000308     nop
 00052  000346     nop
 0005C  000384     nop
 0005E  0003D0     nop
 
 212:               #int_CAN1
 213:               CAN1_isr()
 214:               {
 002EC  F80036     push.w 0x0036
 002EE  781F80     mov.w 0x0000,[0x001e++]
 002F0  200020     mov.w #0x2,0x0000
 002F2  09000C     repeat #12
 002F4  781FB0     mov.w [0x0000++],[0x001e++]
 215:               	output_toggle(STATUS_LED);
 002F6  A962D2     bclr.b 0x02d2,#3
 002F8  AA62D6     btg.b 0x02d6,#3
 216:               }
 |  |