looks like a nice system. I advise to use 2076 to compile the project and test it.
but i also advise to send the interrupt code to support.
One mistake is to check for a value : if b30 = 30 then Something
It would be better to use : if b30>=30 then Something
regarding xmega : these have incompatible ramp registers compared to normal AVR chips. In Xmega the RAMPZ is part of the pointer and in normal AVR it is only used for code memory pointer. This means that rampZ must be saved/restored in the interrupt routine. That is why it is important you use an up to date bascom version.
↧