1 / 3
文档名称:

FPGA串口通信例程.docx

格式:docx   大小:11KB   页数:3页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

FPGA串口通信例程.docx

上传人:hh思密达 2022/6/8 文件大小:11 KB

下载得到文件列表

FPGA串口通信例程.docx

文档介绍

文档介绍:FPGA串口通信例程
`timescale 1ns / 1ps
/////////////////////////////////////////////////////////////////////////////FPGA串口通信例程
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date:
// Design Name:
// Module Name: my_uart_top
// Project Name:
// Target Device:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module my_uart_top(
clk,rst_n,
rs232_rx,rs232_tx
);
input clk; // 25MHz主时钟
input rst_n; //低电平复位信号
input rs232_rx; // RS232接收数据信号
output rs232_tx; // RS232发送数据信号
wire bps_start1,bps_start2; //接收到数据后,波特率时钟启动信号置位
wire clk_bps1,clk_bps2; // clk_bps_r高电平为接收数