当前位置:网站首页>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.
边栏推荐
- 5G China unicom AP:B SMS ASCII Transcoding Requirements
- Standing wave ratio calculation method
- 基于 R 语言的判别分析介绍与实践 LDA和QDA
- 阿里大淘系模型治理阶段性分享
- 26. Pipeline parameter substitution command xargs
- Compensation transaction and idempotency guarantee based on CAP components
- 第六届“强网杯”全国网络安全挑战赛
- [HCIP Continuous Update] Principle and Configuration of IS-IS Protocol
- Flutter Getting Started and Advanced Tour (8) Button Widget
- MySQL5.6到8.0的账号迁移
猜你喜欢
用场景定义硬件,英码科技破解“边缘计算”密码
某高校的R语言数据分析期末作业
在“Extend the Omniverse”比赛中构建用于 3D 世界的工具
5G China unicom 一般性异常处理
Flutter入门进阶之旅(八)Button Widget
5G China unicom AP:B SMS ASCII Transcoding Requirements
[HCIP Continuous Update] Principle and Configuration of IS-IS Protocol
Flutter入门进阶之旅(七)GestureDetector
ViewPager fragments of nested data blank page abnormal problem analysis
绘制混合密度函数图以及添加分位数线
随机推荐
Flutter入门进阶之旅(六)Layout Widget
在已打开图片上加水印(文字)
Periodic sharing of Alibaba Da Tao system model governance
用plot_hist_numeric()实现画直方图
The new features of ABP 6.0.0 - rc. 1
Do you know the difference between comments, keywords, and identifiers?
使用注解将EventBus封装抽取到基类
read stream special attention
5G China unicom AP:B SMS ASCII Transcoding Requirements
二维数组&指针
LnReader编译
FFmpeg compiles and installs on win10 (configure libx264)
数据挖掘-06
腾讯发布第二代四足机器人Max,梅花桩上完成跳跃、空翻
5G Unicom Network Management Design Ideas
Say goodbye to the AI era of hand looms
uni-app - uview Swiper 轮播图组件点击跳转链接(点击后拿到 item 行数据, 取出数据做操作)
kustomize入门示例及基本语法使用说明
随机快排时间复杂度是N平方?
电脑重装系统后桌面图标如何调小尺寸