Hello, I need some help with the interrupt handling on a C-167 controller. In this case, the timer T3 is started (in Timer Mode) and works. The period time is about 1s, in this cycle comes the reset from the watchdog.. So, there is no access to the interrupt routine. See someone my mistake or the missing thing? Dietmar .... /* set Timer und Interrupt Register */ DP3_3 = 1; T3IC = 0x44; T3 = 0x0; IEN = 1; T3CON = 0x0646; /* start */ .... #include <reg167.h> /* special function register 80C167 */ void timer(void) interrupt 0x23 { P3_2 = !P3_2; }
Again, a reply from a non-167 person. The code snippet has ABSOLUTELY no relation to the watchdog, unless the ISR (...) run for more than 1 sec in which case the watchdog is not the problem, but you are misusing an interrupt. The only thing that makes the dog bite is that it did not get kicked. Erik