当前位置:网站首页>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 .
边栏推荐
- PRACH --- originator
- 新系列单片机还延续了STM32产品家族的低电压和节能两大优势
- Idea remote breakpoint debugging jar package project
- Fundamentals of Electronic Technology (III)__ Chapter 6 combinational logic circuit
- STM32 general timer 1s delay to realize LED flashing
- Mobile phones are a kind of MCU, but the hardware it uses is not 51 chip
- JMX、MBean、MXBean、MBeanServer 入门
- Development of fire power monitoring system
- A lottery like scissors, stone and cloth (C language)
- Stm32-hal library learning, using cubemx to generate program framework
猜你喜欢

Quelle langue choisir pour programmer un micro - ordinateur à puce unique

2.Elment Ui 日期选择器 格式化问题

Runtime. getRuntime(). GC () and runtime getRuntime(). The difference between runfinalization()

Blue Bridge Cup for migrant workers majoring in electronic information engineering

一个可执行的二进制文件包含的不仅仅是机器指令

万字手撕七大排序(代码+动图演示)

Comment la base de données mémoire joue - t - elle l'avantage de la mémoire?

Development of fire evacuation system

Project cost management__ Topic of comprehensive calculation

The cyclic shift of PUCCH in NR channel is generated by MATLAB
随机推荐
STM32 serial communication principle
Characteristics of PUCCH formats
C language enumeration type
Successful graduation [2] - student health management system function development...
STM32 general timer 1s delay to realize LED flashing
How does the memory database give full play to the advantages of memory?
Assignment to '*' form incompatible pointer type 'linkstack' {aka '*'} problem solving
UCI and data multiplexing are transmitted on Pusch - determine the bit number of harqack, csi1 and csi2 (Part II)
要选择那种语言为单片机编写程序呢
Getting started with JMX, MBean, mxbean, mbeanserver
Vector processor 9_ Basic multilevel interconnection network
Quelle langue choisir pour programmer un micro - ordinateur à puce unique
【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
Learn the contents of 5g toolbox supporting NR through the NR resources provided by MATLAB
Shell logic case
开学实验里要用到mysql,忘记基本的select语句怎么玩啦?补救来啦~
编程思想比任何都重要,不是比谁多会用几个函数而是比程序的理解
当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
【男保姆式】教你打开第一个微信小程序
IDEA远程断点调试jar包项目