Using analog comparator
Posted: Thu Oct 30, 2008 3:49 pm
What about using the built-in analog comparator of ATtiny and ATmega controllers for detecting true differential signals on D+ and D- wires?
Of course, this will introduce using additional cycles for detecting single-ended states (so, 12 MHz is not sufficient) and another interrupt pin (or the new edge-interrupt on ATmegaX8) for detecting SOF pulses.
This approach should enhance USB standard compliance.
Note that the analog comparator interrupt can be used for detecting the start of transmission, same as D+ routed to INT0 in earlier designs.
What clock frequency is necessary to check the CRC while receiving?
Of course, this will introduce using additional cycles for detecting single-ended states (so, 12 MHz is not sufficient) and another interrupt pin (or the new edge-interrupt on ATmegaX8) for detecting SOF pulses.
This approach should enhance USB standard compliance.
Note that the analog comparator interrupt can be used for detecting the start of transmission, same as D+ routed to INT0 in earlier designs.
What clock frequency is necessary to check the CRC while receiving?