2
\$\begingroup\$

I am a little confused by UART protocol. Can we map it to any layer in OSI model? Certainly, it's not physical layer because it doesn't talk about voltage levels. Is it datalink layer?

\$\endgroup\$
  • 1
    \$\begingroup\$ I'm not sure if there exists a formal standard for UART, but surely it must specify somewhere that signal levels are "TTL". Which would be the physical layer. \$\endgroup\$ – Lundin Nov 16 '16 at 8:39
6
\$\begingroup\$

Most interfaces that are integrated on microcontrollers only cover the data link layer, with the physical layer being implemented externally (with some exceptions). In some cases one and the same data link layer might be combined with different physical layer implementations to create different interface standards.


The oldest and still most predominant asynchronous interface is the UART (Universal Asynchronous Receiver Transmitter). Some implementations support both a synchronous and asynchronous mode - then it is a USART (Universal Synchronous Asynchronous Receiver Transmitter). The same thing with just a different name is the Serial Communication Interface (SCI). With reference to the OSI model, a UART implements the data link layer (layer 2). The physical layer (layer1) is covered by several driver standards that all utilize the UART data link layer, among the most popular are RS232C, RS485 and RS422.

Please click the link below if you want the rest of the article.

Asynchronous Interface Overview. UART and LIN Bus

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.