当前位置:网站首页>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 .
边栏推荐
- Oracle数据库 SQL语句执行计划、语句跟踪与优化实例
- Intelligent home design and development
- Process communication - semaphore
- [CSDN] C1 training problem analysis_ Part II_ Web Foundation
- Successful graduation [2] - student health management system function development...
- Quelle langue choisir pour programmer un micro - ordinateur à puce unique
- Code word in NR
- 【顺利毕业】[1]-游览 [学生管理信息系统]
- 在三线城市、在县城,很难毕业就拿到10K
- Epoll read / write mode in LT and et modes
猜你喜欢
Uniapp realizes global sharing of wechat applet and custom sharing button style
编程思想比任何都重要,不是比谁多会用几个函数而是比程序的理解
Electronic product design
I didn't think so much when I was in the field of single chip microcomputer. I just wanted to earn money to support myself first
Embedded systems are inherently flawed. Compared with the Internet, there are so many holes that it is simply difficult to walk away from
JS基础-原型原型链和宏任务/微任务/事件机制
当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
Programming ideas are more important than anything, not more than who can use several functions, but more than the understanding of the program
Project cost management__ Topic of comprehensive calculation
When you need to use some functions of STM32, but 51 can't realize them, 32 naturally doesn't need to learn
随机推荐
Qt QComboBox QSS样式设置
一个可执行的二进制文件包含的不仅仅是机器指令
Fundamentals of Electronic Technology (III)_ Integrated operational amplifier and its application__ Basic arithmetic circuit
Project scope management__ Scope management plan and scope specification
You need to use MySQL in the opening experiment. How can you forget the basic select statement? Remedy is coming~
STM32 external interrupt experiment
The cyclic shift of PUCCH in NR channel is generated by MATLAB
Matlab reads hexadecimal numbers and converts them into signed short
Which language should I choose to program for single chip microcomputer
Stm32-hal library learning, using cubemx to generate program framework
I didn't think so much when I was in the field of single chip microcomputer. I just wanted to earn money to support myself first
JS基础-原型原型链和宏任务/微任务/事件机制
Project cost management__ Topic of comprehensive calculation
NR technology -- MIMO
CEF下载,编译工程
2020-08-23
[successful graduation] [1] - visit [student management information system]
MYSQL数据库底层基础专栏
要選擇那種語言為單片機編寫程序呢
Project cost management__ Plan value_ Earned value_ Relationship among actual cost and Countermeasures