ST10F276 CAN interrupt
Company  
ST Home | Microcontrollers

Index  »  CAN  »  ST10F276 CAN interrupt
     
   ST10F276 CAN interrupt
 Moderated by :   »  Jatin

Author
beginning argument    ( No reply )
geokey_jiang   Posted 22-04-2008 at 05:06   



Registered on :
03-19-2009

Messages : 3

 OFF-Line

I want to receive a message by interrupt!
I have set the SIE and IE bit in CAN1CR register!
void CAN_Interrupt_Config( void )
{
XP0IC = 0x74;//Configure the CAN1 Interrupt using XP0IC
XIR0SEL = 0x0100;//Setthe XIR0SEL.8 to enable the CAN1 Interrupt
}
the object 1 is set to receive the register!
the RXIE bit of object 1 is set to 1!
the interrupt service routine!
interrupt (0x40 ) void CAN1_Interrupt ( void )
when a CAN message is coming!
the register CAN1IP1 is 0X0001! the register CAN1IR is 0x8000!
but the interrupt service routine is never run!
Could some one tell me why!
thanks!





 Profile   Quote  
On Top

Search in the forums
 
Jump To