Philip Asare
unread,Dec 5, 2010, 10:55:28 PM12/5/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)