interrupt table: IDE version 5.5.1272 microcontroller MC9S12C32

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

interrupt table: IDE version 5.5.1272 microcontroller MC9S12C32

ソリューションへジャンプ
2,027件の閲覧回数
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,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 件の賞賛
返信
2 返答(返信)
1,305件の閲覧回数
randy_s_woods
Contributor I

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

0 件の賞賛
返信
1,306件の閲覧回数
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 件の賞賛
返信