当前位置:网站首页>(4) UART application design and simulation verification 2 - TX module design (stateless machine)
(4) UART application design and simulation verification 2 - TX module design (stateless machine)
2022-07-05 23:10:00 【Shaoqing is not in Dali Temple】
Preface : Looking back on this small project again, it has been a few months , In the follow-up study , The new teacher is constantly emphasizing , Try to use less state machines in practical work , When sorting out the article, I forgot what he said at that time . So I try to rewrite it myself UART, Organize a version without a state machine .
Here are a few basic logical points to review again :
1) The complete one frame data format contains : Start bit , Valid data bits , Check bit , Stop bit ;
2) Calculation sheet bit Data transmission time : utilize baoud( Baud rate ) and clk( The system clock ), Baud rate unit bit per second, The clock Hz Company time per second , So the clock divided by the baud rate is time per bit, That is, every bit Corresponding to how many clock cycles ;
3) Reference signal : Transmission signal baoud_cnt_half, Every time bit Half way through the count , To transfer data ; Switch the counting signal baoud_cnt_end, Every time bit When the count is finished , Enter the next counting cycle ; Bit count bit_cnt, Calculate the number of bits transferred in a frame of data ; Transmission process flag signal start_flag, Throughout every data transmission .
Code up :
//date:2022.6.30
//edgar.yao
//uart_tx block
module uart_tx(
input clk,
input rst_n,
input[7:0] cmd_data,
input data_valid,
output tx,
output tx_read边栏推荐
- 透彻理解JVM类加载子系统
- 查看网页最后修改时间方法以及原理简介
- Nangou Gili hard Kai font TTF Download with installation tutorial
- 3:第一章:认识JVM规范2:JVM规范,简介;
- Hainan Nuanshen tea recruits warmhearted people: recruitment of the product experience recommender of Nuanshen multi bubble honey orchid single cluster
- Common model making instructions
- 判斷二叉樹是否為完全二叉樹
- Expectation, variance and covariance
- 2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank
- February 13, 2022-4-symmetric binary tree
猜你喜欢

Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?

Vcomp110.dll download -vcomp110 What if DLL is lost

The method and principle of viewing the last modification time of the web page

Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d

TypeError: this. getOptions is not a function

透彻理解JVM类加载子系统

Element operation and element waiting in Web Automation

SPSS analysis of employment problems of college graduates

一文搞定垃圾回收器

Common model making instructions
随机推荐
Negative sampling
利用LNMP实现wordpress站点搭建
Global and Chinese markets of tantalum heat exchangers 2022-2028: Research Report on technology, participants, trends, market size and share
Roman numeral to integer
Marginal probability and conditional probability
Spectrum analysis of ADC sampling sequence based on stm32
LeetCode102. Sequence traversal of binary tree (output by layer and unified output)
Three.js-01 入门
Metasploit(msf)利用ms17_010(永恒之蓝)出现Encoding::UndefinedConversionError问题
LabVIEW打开PNG 图像正常而 Photoshop打开得到全黑的图像
Hj16 shopping list
Fix the memory structure of JVM in one article
Leetcode weekly The 280 game of the week is still difficult for the special game of the week's beauty team ~ simple simulation + hash parity count + sorting simulation traversal
Douban scoring applet Part-2
3D reconstruction of point cloud
Registration and skills of hoisting machinery command examination in 2022
判断二叉树是否为完全二叉树
Summary of binary tree recursive routines
数学公式截图识别神器Mathpix无限使用教程
Multi sensor fusion of imu/ optical mouse / wheel encoder (nonlinear Kalman filter)