the sound statement also uses a loop.
why some times? that is a good question. maybe some logic in your code becomes active?
you should use an more up to date version.
and you should post your interrupt code.
The wait loads some registers. If these registers are trashed the loop will not end.
↧