# RS232 UART frame/data overrun error handling

**URL:** <https://forum.arduino.cc/t/rs232-uart-frame-data-overrun-error-handling/193266>\
**Category:** Programming\
**Created:** [November 11, 2013, 3:15am UTC](https://forum.arduino.cc/t/rs232-uart-frame-data-overrun-error-handling/193266 "2013-11-11T03:15:35Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![dan333](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dan333](https://forum.arduino.cc/u/dan333)\
**Post date:** [November 12, 2013, 4:42am UTC](https://forum.arduino.cc/t/rs232-uart-frame-data-overrun-error-handling/193266/12 "2013-11-12T04:42:50Z")

</div>

Wired-AND diode ckt:

> **[Wired logic connection](https://en.wikipedia.org/wiki/Wired_logic_connection)**
>
> A wired logic connection is a logic gate that implements boolean algebra (logic) using only passive components such as diodes and resistors. A wired logic connection can create an AND or an OR gate. Limitations include the inability to create a NOT gate, the lack of amplification to provide level restoration, and its constant ohmic heating for most logic (particularly more than CMOS) which indirectly limits density of components and speed.
> Wired logic works by exploiting the high impedance of op...

DTL NAND gate - wired-AND with inverter:

> **[Diode–transistor logic](https://en.wikipedia.org/wiki/Diode%E2%80%93transistor_logic)**
>
> Diode–transistor logic (DTL) is a class of digital circuits that is the direct ancestor of transistor–transistor logic. It is called so because the logic gating functions AND and OR are performed by diode logic, while logical inversion (NOT) and amplification (providing signal restoration) is performed by a transistor (in contrast with RTL and TTL).
> The DTL circuit shown in the first picture consists of three stages: an input diode logic stage (D1, D2 and R1), an intermediate level shifting stag...

TTL NAND gate, upgrade on DTL NAND:

> **[TTL NAND and AND gates | Logic Gates | Electronics Textbook](https://www.allaboutcircuits.com/textbook/digital/chpt-3/ttl-nand-and-gates/)**
>
> Read about TTL NAND and AND gates (Logic Gates ) in our free Electronics Textbook

> To protect them from a short-circuit?

The reason for using wired-AND is because, for RS232 UARTs, the idle state is high, and the active state is low, and only 1 signal goes low at a time, and the diodes isolate the inputs from each other. This is negative-logic, a wired-OR would be used for positive-logic.

I'm using diodes initially, but also bought a few 74HC logic gates last week, just in case.

---

_[View the full topic](https://forum.arduino.cc/t/rs232-uart-frame-data-overrun-error-handling/193266)._
