AnsweredAssumed Answered

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

Question asked by Henrique Dalavale Fabretti on Apr 8, 2014
Latest reply on Apr 9, 2014 by Henrique Dalavale Fabretti

#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();

   

  }

}

Outcomes