差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
rs-232 [2016/12/03 04:06] gongyu 创建 |
rs-232 [2021/02/06 16:27] (当前版本) gongyusu |
||
---|---|---|---|
行 1: | 行 1: | ||
- | A serial interface is a simple way to connect an FPGA to a PC. We just need a transmitter and receiver module. | + | ## RS-232串行接口 |
- | Async transmitter | + | An RS-232 interface has the following characteristics: |
- | It creates a signal "TxD" by serializing the data to transmit. | + | * Uses a 9 pins connector "DB-9" (older PCs use 25 pins "DB-25"). |
+ | * Allows bidirectional full-duplex communication (the PC can send and receive data at the same time). | ||
+ | * Can communicate at a maximum speed of roughly 10KBytes/s. | ||
+ | ### DB-9连接器 | ||
- | Async receiver | + | You probably already saw this connector on the back of your PC. |
+ | {{ :serialconnector.jpg |}} | ||
- | It takes a signal "RxD" from outside the FPGA and "de-serializes" it for easy use inside the FPGA. | + | It has 9 pins, but the 3 important ones are: |
+ | * pin 2: RxD (receive data). | ||
+ | * pin 3: TxD (transmit data). | ||
+ | * pin 5: GND (ground). | ||
+ | Using just 3 wires, you can send and receive data. | ||
- | This project has five parts | + | Data is commonly sent by chunks of 8 bits (we call that a byte) and is "serialized": the LSB (data bit 0) is sent first, then bit 1, ... and the MSB (bit 7) last. |
- | How the RS-232 serial interface works | + | |
- | * Baud generator | + | ### 资源链接 |
- | * Transmitter | + | * 一个简短的[[http://penguin.dcs.bbk.ac.uk/academic/technology/physical-layer/asynchronous/|关于异步通信的页面]] |
- | * Receiver | + | * 一个[[http://www.taltech.com/datacollection/articles/serial_intro|关于RS232串行通信的介绍]] |
- | * Example of use | + |