当前位置:网站首页>Clock frequency and baud rate count for serial communication in FPGA
Clock frequency and baud rate count for serial communication in FPGA
2022-08-09 13:44:00 【fpga and matlab】
Table of Contents
3. The relationship between the counter frequency division of the clock frequency and the baud rate
1. What is a waveBit rate
The baud rate bandrate refers to the rate of serial communication, that is, how many binary bits can be transmitted per second during serial communication.For example, 9600 bits can be transmitted per second (the time required to transmit one binary bit is 1/9600 second), and the baud rate is 9600.
The communication baud rate of the serial port cannot be set arbitrarily because:
First, both parties must set the same baud rate in advance so that they can communicate successfully. If the sender and receiver communicate according to different baud rates, they will not receive it at all, so the baud rate is best known to everyone.rather than arbitrarily specified.
Second: The commonly used baud rate has been developed for a long time, and a consensus has been formed. The commonly used baud rate is 9600 or 115200.
2.Serial transmission format
The serial transmission format is generally as follows:

It includes a 1bit start bit + 8bit data bit + 1bit stop bit (no parity bit)
3.The relationship between the counter frequency division of the clock frequency and the baud rate
In FPGA, since the clock frequency is generally fixed at 50MHz, 100MHz, in serial communication, the clock frequency needs to be divided so that the clock frequency is approximately equal to the baud rate.
We assume that the clock frequency of the FPGA hardware board is 100Mhz, if the required baud rate is 9600, then the frequency division process of the clock is as follows:
First, calculate the number of continuous clock cycles corresponding to the transmission of 1 bit:

Approximately equal to 10417.
According to the above serial port transmission structure diagram, a complete serial port frame, assuming that the parity check is not considered, requires 10 bits, so the corresponding counter value is:

So, set the counter frequency division value of the clock to 1042.
边栏推荐
- WebView injects Js code to realize large image adaptive screen click image preview details
- [FPGA Tutorial Case 48] Image Case 8 - Realization of Converting RGB Image to HSV Image Based on FPGA, Assisted Verification by MATLAB
- Periodic sharing of Alibaba Da Tao system model governance
- FPGA-近日工作总结
- ftplib+ tqdm upload and download progress bar
- Use RecyclerView to implement three-level collapsed list
- 5G Unicom Network Management Design Ideas
- CPU-MIPS32指令架构(无内锁流水线微处理器)
- Do you know the difference between comments, keywords, and identifiers?
- 流量焦虑背后是企业对客户关系管理的不足
猜你喜欢
![[HCIP Continuous Update] Principle and Configuration of IS-IS Protocol](/img/4f/035432ac84644c4bd46573aa0ab7cd.png)
[HCIP Continuous Update] Principle and Configuration of IS-IS Protocol

5G China unicom AP:B SMS ASCII Transcoding Requirements

5G China unicom general exception handling

Flutter Getting Started and Advanced Tour (8) Button Widget

GIN Bind模式获取参数和表单验证

用场景定义硬件,英码科技破解“边缘计算”密码

How to reduce the size of desktop icons after the computer is reinstalled

Periodic sharing of Alibaba Da Tao system model governance

5G China unicom 直放站 网管协议 实时性要求

26. Pipeline parameter substitution command xargs
随机推荐
ftplib+ tqdm upload and download progress bar
保存Simulink仿真模型为图片或者PDF的方法
如何求最大公约数?
陈强教授《机器学习及R应用》课程 第十七章作业
5G China unicom 一般性异常处理
Data Mining-05
read stream special attention
Rmarkdown教程
驻波比计算方法
leetcode 20. Valid Parentheses 有效的括号(中等)
glibc 内存管理模型 释放 C库内存缓存
Do you know the difference between comments, keywords, and identifiers?
Flutter Getting Started and Advanced Tour (4) Text Input Widget TextField
SQL Server查询优化 (转载非原创)
WSA toolkit installed app store tip doesn't work how to solve?
流量焦虑背后是企业对客户关系管理的不足
kustomize入门示例及基本语法使用说明
某高校的R语言数据分析期末作业
JVM常用监控工具解释以及使用
陈强教授《机器学习及R应用》课程 第十五章作业