Email to listserve (Interrupts and Real-time interrupts for HCS12)

1 view
Skip to first unread message

Philip Asare

unread,
Dec 5, 2010, 10:55:28 PM12/5/10
to ese519upe...@googlegroups.com
Hey guys,

I am sending the email below to the listserve. Hopefully, someone knows how to fix this. Let me know if it sounds okay.

Philip

----

Hey All,

Does, anyone know how to work the interrupts in the HCS12. What we need is pin generated interrupts and the real-time interrupt.

For the real-time interrupt, we keep getting an "Exception: vector 7" message in the debugger. It seems like the interrupt gets triggered, but the ISR we defined does not get called. Our general code is

void RTI_ISR(){
    //clear flag
    // do something
}

void main(){
   //setup appropriate registers (TSCR1, CRGINT, RTICTL)
   //enable interrupts RTI
   //enter infinite loop
}

I'm thinking we aren't assigning our ISR to the interrupt vector? When we try to do that by setting up the ISR as "void interrupt 7 RTI_ISR()" we get a linker error.

Some help would me much appreciated,

Philip (on behalf of Group 2)
Reply all
Reply to author
Forward
0 new messages