UART: Difference between revisions

From datarecoverywiki.com
Jump to navigation Jump to search
No edit summary
No edit summary
Line 166: Line 166:
</br>
</br>
<ul>
<ul>
<li>None</li> nothing used
<li>None- nothing used </li>
<li>Even</li> parity bit is set to make all the 1's even
<li>Even</li> parity bit is set to make all the 1's even
<li>odd</li> parity bit is set to make all the 1's odd
<li>odd</li> parity bit is set to make all the 1's odd

Revision as of 08:26, 27 January 2025

Data Recovery Resources

Background information

This page will cover Universal asynchronous receiver/transmitter (UART) protocol, how it functions, how to communicate with a device over it, and where to find ports that allow access.
UART or Universal asynchronous receiver/transmitter is often used as a low level protocol to comicate with devices, such as HDD controllers, It is asynchronous meaning it does not have a clock(clk) line
there for relies on an external clock.(this will be covered later in the Baud Rate section)
The UART protocol runs off two data lines plus ground(three in total), these are
2.0 connections

  • Transmit(TX)
  • Receive(RX)
  • Ground(GND)


The lines are typically connected to its opposite(e.g. TX to RX, RX to TX, GND to GND)


3.0 Protocol configation
There are five main aspects to communicating over UART, with two additional (Break condition, idle state) conditions.
1. Baud Rate
Due to UART being Asynchronous and lacking a clock(clk) signal, A baud rate measured in bits per second(BPS) must be set for data to be transmitted at the same speed by both devices
otherwise data will not be transmitted correctly Both sides of the commication must be operating at the same speed otherwise commination will not be successful.
the most commonly used bod rates are, 9600,19200,38400,57600,115200.
2. Data bits
As the name suggests data bits is the size of the data packets that are being sent with the most common size being 8 data bits per package however other sizes are possible.
Logically the bigger the data bits the more data they can carry but the slower the transfer rate due to the increased size.
3. Parity
Parity also know as error checking is a optional(typically not used) but useful bit within the commication packet as it can aid in the dectection of packet corruption
Note the use of the word aid as like most systems it is not perfect so data corruption may still occur.
  • None- nothing used
  • Even
  • parity bit is set to make all the 1's even
  • odd
  • parity bit is set to make all the 1's odd

    What tools you will need

    Items are not listed in any particular order

    Required

    • Test

    Optional but useful

    • Test

    Uses of this skill

    • 1.test
    • 2.test
    • 3.test
    • Step-by-step guide with images

      Insert step-by-step walkthrough with images and summary text here

      Flow chart of order of operations

      Insert a flow chart of steps and actions for each task (create using diagram)

      Troubleshooting/tips and tricks

      Fixes to any common issues that were encountered or could be easily encountered

      Related Topics

      Topics such as desoldering to chip off or firmware dumping for disk PCB repairs

      Further reading

      External references in wiki references can just be cited through the keyword link

      1. Reference 1: UART basic's guide
      2. Reference 2: UART specification