MC9S12C32 - interrupt table

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9S12C32 - interrupt table

1,918 次查看
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? 

--
Alban Edit: Part number in subject line

Message Edited by Alban on 2007-03-21 03:33 PM

标签 (1)
0 项奖励
回复
2 回复数

967 次查看
randy_s_woods
Contributor I
Just a little more clarification.  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 interrpt and this gives the same error "C2704: Illegal number".  When I looked at the code warrior file mc9s12c32.inc the interrupt would be 57. 
0 项奖励
回复

967 次查看
randy_s_woods
Contributor I

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

0 项奖励
回复