Hell, I want to that the timer interrupt is called every 10-100ms and have a code where everything works fine on a C167CR-LM. Now I want the same thing for the target XC167CI. But after initializing and starting the timer it gets called just one time, right after the initialsation of the timer. My progam looks something like this.
#define T0 CC1_T0 #define T0REL CC1_T0REL #define T0IC CC1_T0IC #define T01CON CC1_T01CON void timer0(void) interrupt 0x20 { /* for example */ printf("\nthinking\n"); } void main() { INT16S reloadVal = 0x5000; IEN = 0; T0REL = reloadVal T0 = reloadVal; T01CON |= 0x0040; T0IC = 0x007F; IEN = 1; while(1) { printf("TALKING"); } }