

communication speed can be set at runtime.įirst, usually asynchronous serial communication is done using two wires.extremely accurate and robust up to 125 kbps,.It satisfies the following three requirements: So, recently I set out to program my own solution that led to the SingleWireSerial library. People had come up with different solutions, but none of them worked for me reliably. One problem seemed to be the serial communication using only one line (the RESET pin of the MCU). BackgroundĮarlier this year, I worked on a hardware debugger making use of the debugWIRE protocol. And contrary to its title, one can even use it in a two-wire setting. By using the input capture feature of the AVR MCUs, it is extremely accurate and supports bitrates up to 250 kbps robustly.

It supports single-wire, half-duplex serial communication. A new Arduino library has seen the light of day: SingleWireSerial.
