For using the timer for 10 usec (@ 8 MHz CPU frequency) you need to do the following register settings:
TACR2 = 0x08; /* timer clock = fcpu/8 */ TACR1 = 0x40; /* output compare interrupt enabled*/ TAOC1HR = 0x00; TAOC1LR = 0x0a; In ISR routine , increment the TAOC1xR registers by (0x0a) to get the next interrupt after another 10 usec*/ For more explanation, You can refer an application note AN974 downloadable from the same site.
Be that you know the configurations of vectors and segments which are necessary for the programming? My ST7 ignores the interruptions and I do not find the error... Greeting
There is a special assembly instruction to enable the interrupts: RIM that you can include in your C Cosmic file as follows:
asm RIM; For the complete structure (vector.c containing the interrupt vector and their mapping), you have examples in the install path of STVD7, the debugger delivered for free by ST downloadable from this site. It can be used with assembly, C Cosmic or C Metrowerks.
Yes, I use well the interruptions with the programming of the timer. but I found my problem: the vectors of the ST72264 are not the even that for the classic ST7 (because of the bus I2C)