I'm using ATmega128 with WINAVR all is o.k. !!
I have only one software problem
in file one.c
in file two.c
if I eliminate bug() the program loops in the while istruction forever
also if alm.allarme becomes TRUE (in timer)
if I put bug() in file one.c and I write it into the while the same loop
what a strange thing !!!