interrupt table: IDE version 5.5.1272 microcontroller MC9S12C32

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

interrupt table: IDE version 5.5.1272 microcontroller MC9S12C32

跳至解决方案
2,026 次查看
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. 

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,304 次查看
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 项奖励
回复
2 回复数
1,304 次查看
randy_s_woods
Contributor I

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

0 项奖励
回复
1,305 次查看
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 项奖励
回复