CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

dsPIC and CAN interrupt

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Honken



Joined: 03 Mar 2004
Posts: 15

View user's profile Send private message

dsPIC and CAN interrupt
PostPosted: Fri Apr 04, 2008 9:50 am     Reply with quote

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: }
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group