Why isn't CW 10.5 accepting this part of my code (KBI vector interrupt)

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

Why isn't CW 10.5 accepting this part of my code (KBI vector interrupt)

798件の閲覧回数
henriquef
Contributor I

#include <hidef.h> /* for EnableInterrupts macro */

#include "derivative.h" /* include peripheral declarations */

 

 

#define LED PTCD_PTCD4

 

void interrupt 18 Keyboard (void){               //This part is not being accepted

    LED = !LED;  

}

 

void main(void) {

  EnableInterrupts;

  KBI2SC_KBIE = 0;

  KBI2ES_KBEDG3 = 0;

  KBI2PE_KBIPE3 = 1;      //Pagina 170, Table 6.5

  KBI2SC_KBACK = 1;

  KBI2SC_KBIE = 1;

 

  PTCDD_PTCDD4 = 1;

  LED = 1;

 

  for(;;) {

    __RESET_WATCHDOG();

   

  }

}

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

608件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

what chip do you work with?

can you please upload your demo project in zip format to us?

thanks!

BR,

ZhangJun

0 件の賞賛
返信

608件の閲覧回数
henriquef
Contributor I

I'm using the MC9S08QE128 (demoqe128).

The problem is on the function, he isn't accepting this : void interrupt 18 Keyboard (void){}

I've uploaded the code.

Thanks!

0 件の賞賛
返信