interrupt table: IDE version 5.5.1272 microcontroller MC9S12C32

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

interrupt table: IDE version 5.5.1272 microcontroller MC9S12C32

Jump to solution
2,031 Views
randy_s_woods
Contributor I

I am attempting to setup the port p interrupt on a MC9S12C32 process (NanoCore from technological arts) as shown below.  I am trying to use the interrupt to read in a 1 Hz signal from a Real Time Clock therefore, I set Port P up as an input and enabled the interrupt inside the PIEP register (although just to write the declaration I should not even need to do this).

 

interrupt 56 void 1Hz_handler(void) // port P5
// ENABLED:
// PURPOSE:
{
    
}

I keep getting an error stating that this is an invalid number.  I have counted up in the vector table several times and I keep getting Vportp to be 56.  Has anybody used the port p vectors? 

 

When I looked in the Device user guide (MC9S12C32) it shows up as interrupt 37 when the reserved interrupts are removed from the counting.  I attempted to use 37 as the interrupt and this gives the same error "C2704: Illegal number".  When I looked at the code warrior file mc9s12c32.inc the interrupt would be 56. 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,309 Views
bigmac
Specialist III
Hello,
 
I notice that you have cross-posted the same query in the 16-bit forum, as well as this one.  Please do not do this.  Each query must be posted in a single forum only.  In this instance, the current forum would be the correct one.
 
Regards,
Mac
 

View solution in original post

0 Kudos
Reply
2 Replies
1,309 Views
randy_s_woods
Contributor I

Woops! 1Hz_handler is not a valid name.....

0 Kudos
Reply
1,310 Views
bigmac
Specialist III
Hello,
 
I notice that you have cross-posted the same query in the 16-bit forum, as well as this one.  Please do not do this.  Each query must be posted in a single forum only.  In this instance, the current forum would be the correct one.
 
Regards,
Mac
 
0 Kudos
Reply