当前位置:网站首页>Working mode of 80C51 Serial Port
Working mode of 80C51 Serial Port
2022-07-03 09:56:00 【Yiao】
One , The way 0 The way 0 when , Input mode of serial port synchronous shift register . It is mainly used to expand the input and output of the parallel port . data RXD Pin input or output , The synchronous shift pulse is generated by TXD Pin out . Both sending and receiving are 8 For data , Low first , High position behind . The baud rate is fixed to fosc/12. The way 0 Output
The way 0 Input
Two , The way 1 The way 1 yes 10 Bit data asynchronous communication port .TXD Send pin for data ,RXD Accept feet for data , The format of transmission data is shown in the figure .
The way 1 Output :
The way 1 Input
Set... With software REN by 1 when , Receiver to select baud rate 16 Multiple rate sampling RXD Pin level , detected RXD When there is a negative jump in the input level of the pin , Then the start bit is valid , Input its shift into the shift register , And start receiving the remaining bits of this frame information ,. During reception , Data is moved from the right side of the shift register , When the start bit moves to the leftmost side of the input register , The control circuit performs the last shift . When RI=0, And SM2=0 when , Will receive 9 The first bit of data 8 Bit data loading and receiving SBUF, Ninth entry RB8,b Juxtaposition RB8=1, towards CPU Request interrupt . Set... With software REN by 1 when , The receiver operates at the selected baud rate 16 Multiple rate sampling RXD Pin level , detected RXD When there is a negative jump in the input level of the pin , Then the start bit is valid , Move it into the input shift register , And start receiving the remaining bits of this frame information . During reception , Data is moved from the right side of the input shift register into , When the initial shift reaches the leftmost side of the input shift register , The control circuit performs the last shift . When RI=0, And SM2=0( Or the received stop bit is 1) when , Will receive 9 The first bit of data 8 Bit data loading and receiving SBUF, The first 9 position ( Stop bit ) Get into RB8, Juxtaposition RI=1, towards CPU Request interrupt .
边栏推荐
- 应用最广泛的8位单片机当然也是初学者们最容易上手学习的单片机
- Eight working modes of stm32gpio and chip naming rules
- Qt QComboBox QSS样式设置
- 学历是一张通行证,门票,你有了它,可以踏入更高层次的环境里
- There is no specific definition of embedded system
- Project cost management__ Topic of comprehensive calculation
- 2.Elment Ui 日期选择器 格式化问题
- Stm32-hal library learning, using cubemx to generate program framework
- [keil5 debugging] warning:enumerated type mixed with other type
- Runtime.getRuntime().gc() 和 Runtime.getRuntime().runFinalization() 的区别
猜你喜欢
UCI and data multiplexing are transmitted on Pusch - determine the bit number of harqack, csi1 and csi2 (Part II)
[Li Kou brush question notes (II)] special skills, module breakthroughs, classification and summary of 45 classic questions, and refinement in continuous consolidation
Embedded systems are inherently flawed. Compared with the Internet, there are so many holes that it is simply difficult to walk away from
[22 graduation season] I'm a graduate yo~
嵌入式系统没有特别明确的定义
Of course, the most widely used 8-bit single chip microcomputer is also the single chip microcomputer that beginners are most easy to learn
开学实验里要用到mysql,忘记基本的select语句怎么玩啦?补救来啦~
Successful graduation [2] - student health management system function development...
03 FastJson 解决循环引用
[combinatorics] Introduction to Combinatorics (combinatorial thought 2: mathematical induction | mathematical induction promotion | multiple induction thought)
随机推荐
C language enumeration type
MYSQL数据库底层基础专栏
UCI and data multiplexing are transmitted on Pusch - determine the bit number of harqack, csi1 and csi2 (Part II)
Synchronization control between tasks
Uniapp realizes global sharing of wechat applet and custom sharing button style
2020-08-23
Mobile phones are a kind of MCU, but the hardware it uses is not 51 chip
01仿B站项目业务架构
Windows下MySQL的安装和删除
UCI and data multiplexing are transmitted on Pusch (Part 4) --small block lengths
单片机职业发展:能做下去的都成牛人了,熬不动就辞职或者改行了
There is no specific definition of embedded system
IDEA远程断点调试jar包项目
当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
学习开发没有捷径,也几乎不存在带路会学的快一些的情况
SCM career development: those who can continue to do it have become great people. If they can't endure it, they will resign or change their careers
2021-01-03
[CSDN] C1 training problem analysis_ Part IV_ Advanced web
UCI and data multiplexing are transmitted on Pusch - Part I
CEF下载,编译工程