1 Star 2 Fork 0

0x大乔 / 基于图像处理的非接触式人体心率测量系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
uart_top.v 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
0x大乔 提交于 2021-11-03 12:46 . code
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2018/11/20 00:01:12
// Design Name:
// Module Name: uart_top
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module uart_top(
input clk_in1,
input rst,
input [10:0]HR_1,
input HR_valid_1,
output RS_232_TX,
input RS_232_RX,
output RX_done
);
wire TX_done;
wire send_en;
wire[7:0]data_tx;
//串口发送 ,波特率9600,8位,无校验
uart_tx uart_tx_inst(
.clk(clk_in1),
.rst(rst),
.bps_D(14'd10416),
.send_en(send_en),
.data_in(data_tx),
.RS_232_TX(RS_232_TX),
.TX_done(TX_done)
// .uart_state(uart_state)
);
//串口发送循环,1s发一次,一次发4个字节,包含一次的心率值
tx_cycle tx_cycle_inst (
.clk(clk_in1),
.rst(rst),
.clk_1hz(HR_valid_1),
.TX_done(TX_done),
.data_buf({8'd22,1'd0,HR_1[10:4]}),
.data_tx(data_tx),
.send_en(send_en)
);
uart_rx uart_rx_inst(
.clk(clk_in1),
.rst(rst),
.bps_D(14'd10416),
.RS_232_RX(RS_232_RX),
// .uart_state_rx(uart_state_rx),
// .data_byte(data_byte),
.RX_done(RX_done)
);
endmodule
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yyq_0xDQ/FPGA_project.git
git@gitee.com:yyq_0xDQ/FPGA_project.git
yyq_0xDQ
FPGA_project
基于图像处理的非接触式人体心率测量系统
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891