must be executed inside the ISR of a timer (that is, to clear the status bit set by hardware indicating that the counter equals the output compare register). If you don't, your CPU will crack... However, this is specified in the user manual for the STR7!