On the hardware level, one needs to come up with a solution that permits two parties to send and receive on one wire only. This can all be solved on the software level. For instance, if a master is the one who sends requests or queries to which the slave responds, it is clear who is in the role of a sender at each point of time. But then there should be a strict protocol about which party is allowed to transmit data. If one wants to restrict the communication to only one wire, this is possible. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |