> For the complete documentation index, see [llms.txt](https://byrzhm.gitbook.io/build-a-risc-v-chip-from-scratch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://byrzhm.gitbook.io/build-a-risc-v-chip-from-scratch/interfaces/serial-interface.md).

# Serial Interface

How to connect an FPGA to a PC? For example, I want to send a message from a PC to an FPGA, and expect the FPGA will echo the same message back to PC.

We gonna use serial interfaces to establish the connection. More specifically, we gonna use RS232 interfaces.

<figure><img src="https://www.fpga4fun.com/images/SerialConnector.jpg" alt=""><figcaption><p>RS232 connector</p></figcaption></figure>

{% hint style="info" %}
Are there any other ways to connect an FPGA to a PC?
{% endhint %}

## References

* [fpga4fun serial interface](https://www.fpga4fun.com/SerialInterface.html)
* Alinx's [RS232 tutorial](https://www.bilibili.com/video/BV1JJ411u77d?p=11\&vd_source=571900c3ae9bbfdc988accacb2feb8be)
