As you requested, I have attached the sample you included in the first post of this thread - with modifications to run on XMEGA.
Thanks for your help.
↧