当前位置:网站首页>(4)UART应用设计及仿真验证2 —— RX模块设计(无状态机)
(4)UART应用设计及仿真验证2 —— RX模块设计(无状态机)
2022-07-05 22:54:00 【少卿不在大理寺】
去除了状态机的RX模块要怎么设计呢?先梳理一下要完成哪些模块
1)判断什么时候收到数据?即检测帧数据中的start位,通过检测出现下降沿从而判定开始接收数据。—— negedge_detect
2)判断接收单帧数据的时间段?从检测到start位开始,到最后的停止位传完。总共跨越11个bit位,然后再第12个bit位的中途就可以关闭。——start_recieve_flag
3)每bit计数clk,进入数据接收区域了再开始算,脱离这个区域就清零。——baud_cnt
4)计算bit数,1bit起始位+8bit有效数据位+1bit校验位+2bit停止位。—— bit_cnt
5)数据传输,有效数据位的数据接收,bit_cnt>=1,bit_cnt<=8——rx_data
6)数据校验,check_mode_bit,^{rx_data,check_mode_bit} == CHECKMODE
//2022.6.30
//edgar.yao
//uart rx blaock
module uart_rx(
input clk,
input rst_n,
input rx,
output[7:0] rx_data,
output rx_data_valid
);
parameter CHECKMODE = 1;
parameter BAUD_NUM = 50_000_000/115200;
//(1)define all
边栏推荐
- [screen recording] how to record in the OBS area
- 判断二叉树是否为完全二叉树
- CorelDRAW plug-in -- GMS plug-in development -- new project -- macro recording -- VBA editing -- debugging skills -- CDR plug-in (2)
- 媒体查询:引入资源
- Alibaba Tianchi SQL training camp task4 learning notes
- Codeforces Global Round 19
- Finally understand what dynamic planning is
- Methods modified by static
- 一文搞定JVM的内存结构
- One article deals with the microstructure and instructions of class
猜你喜欢
并查集实践
Use of metadata in golang grpc
Hainan Nuanshen tea recruits warmhearted people: recruitment of the product experience recommender of Nuanshen multi bubble honey orchid single cluster
CorelDRAW plug-in -- GMS plug-in development -- new project -- macro recording -- VBA editing -- debugging skills -- CDR plug-in (2)
【Note17】PECI(Platform Environment Control Interface)
【Note17】PECI(Platform Environment Control Interface)
Arduino 测量交流电流
Three. JS VR house viewing
Unity Max and min constraint adjustment
Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
随机推荐
基于STM32的ADC采样序列频谱分析
Error when LabVIEW opens Ni instance finder
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?
第十七周作业
513. Find the value in the lower left corner of the tree
Hainan Nuanshen tea recruits warmhearted people: recruitment of the product experience recommender of Nuanshen multi bubble honey orchid single cluster
Leetcode daily question 1189 The maximum number of "balloons" simple simulation questions~
Multi sensor fusion of imu/ optical mouse / wheel encoder (nonlinear Kalman filter)
基于脉冲神经网络的物体检测
【Note17】PECI(Platform Environment Control Interface)
Use of shell:for loop
Openresty ngx Lua regular expression
One article deals with the microstructure and instructions of class
Event trigger requirements of the function called by the event trigger
Tensor attribute statistics
Alibaba Tianchi SQL training camp task4 learning notes
2022.02.13 - SX10-30. Home raiding II
VOT toolkit environment configuration and use
2:第一章:认识JVM规范1:JVM简介;
SPSS analysis of employment problems of college graduates