I am trying to determine if a PWM timer would be in perfect sync with a pin change operation.
I need to set up a timer to change a pin at exactly the same time that an out instruction occurs. It is critical that I change 9 bits at exactly the same time, with no more than a 2 nanosecond margin of error.
I will not be able to experiment on real hardware for a while, so if someone knows where I can find this info, that would be great.
My only other option would be the addition of a pair of 74HC373 latches tied to the clock to latch my 9 bits back into sync, but I would prefer an AVR only solution.
logically, I would assume that everything happens internally on a clock transition inside the XMega, but I have found this not to be true in other respects.