So now CW generates the target frequency 8 MHz / 16MHz / … MHz, the PLL inside of the XMega converts it to 12 MHz (e.g. 16 MHz *3 / 4 = 12 MHz) and outputs it on GPIO pin which is connected to the USB Host controller IC.
Result:
The XMega and the USB Host IC are running from the same clock source as the victim. This is extremely useful to reproduce attacks since everything is accurate down to a clock cycle.
Wow - creative use I hadn’t even thought of doing that myself, will have to add a note somewhere about that.
I’d only worked on the system before usign an external chip to generate a related frequency… there wasn’t enough room in the LX9 to have a second PLL, unless you disable some of the other stuff.