occasional transmission errors with 16.5MHz RC oscillator
We calibrate on every USB reset anyway.
It seems I don't fully understand how this works yet. How will a USB reset be initiated? Does this happen on first connection only? Can the host also initiate a USB reset?
Exactly on what condition and from where will calibrateOscillator be called?
Thanks for helping me understand.
Regards, Thomas
USB RESET is when D+ and D- are both 0 for more than a couple of bits. The host sends USB RESET after connecting or when it sees other reasons for a reset (e.g. timeout during enumeration).
AVR-USB detects a RESET in usbPoll(). If it sees a RESET, it runs the hook macro when the reset status begins and when it ends.
AVR-USB detects a RESET in usbPoll(). If it sees a RESET, it runs the hook macro when the reset status begins and when it ends.