I dont anderstand how to make an external interrupt with the input P8.7 with a pulse. I need to have an Interrupt from a pulse at the front egde. I have write this part of code, but this code dont work. In the main subroutine i have write this: CCM5 = 0x1000; CC23IC = 0x0064 CC23IE = 1; IEN = 1 and write the subroutine interrupt code: void myint (void) interrupt CC23INT = 55 { ..... } What i must write more at the main subroutine to this external interrupt work well? Thanks very much to answer me.
I forget to write that it is C167 Microcontroler
I tested the following:
#include <intrins.h> #include <REG167.H> void main (void) { CCM5 = 0x1000; CC23IC = 0x0064; CC23IE = 1; IEN = 1; while (1); } void myint (void) interrupt CC23INT = 55 { _nop_(); }
I have testing with external pulse connected at the pin P8.7, the pulse width is 2ms I use the C167 Minimodul hardware from Phytec. When i trigger, i dont go to the interrupt subroutine, i dont know why. I will try again to see.