当前位置:网站首页>Principle and application of single chip microcomputer timer, serial communication and interrupt system
Principle and application of single chip microcomputer timer, serial communication and interrupt system
2022-07-01 08:57:00 【Waves ~】
List of articles
One 、 parallel IO Mouth use
51 SCM has 4 Group IO mouth , It can be done to IO Port for parallel input and parallel output 8 Bit data , And IO The mouth can be used in a bitwise manner .
keil The software programming and debugging window is as follows :
Two 、 Working principle and mode of timer counter
51 There are... Inside the single chip microcomputer T0 and T1 Two timers , It is also an addition counter .
Mode register TMOD, Control the working mode of the timer 

Each timer has 16 Bit data ,
The way 2 yes 8 Bit auto set counter , The upper eight bits can automatically load the initial value ;
The way 3 Only timing / Counter T0 Only then .
3、 ... and 、 Timer / Counter programming
1、 Use query to process

2、 Interrupt mode is adopted

SCM timer can be timed at most 65536us, You can use the set software counting and timer to achieve greater than 65536us The timing of ;
Four 、 Serial communication
According to the direction of information transmission : Simplex 、 Half duplex and full duplex
It is divided into serial communication and parallel communication ; It is divided into synchronous communication and asynchronous communication
High speed serial communication generally adopts synchronous communication ;
51 SCM is a standard digital circuit chip , Its input and output pins conform to TTL Level rule ( The high level is 3-5V, The low level is 0-1V)
To improve the reliability of serial communication , Various new communication level standards have been defined , To form the RS422、RS232 and RS484 Three asynchronous serial communication level protocols .

5、 ... and 、 Interrupt the system

边栏推荐
- Bird recognition app
- Shell脚本-case in语句
- AVL树的理解和实现
- Advanced C language pointer (Part 2)
- Shell script - definition, assignment and deletion of variables
- Shell script -read command: read data entered from the keyboard
- Bimianhongfu queren()
- Shell脚本-变量的定义、赋值和删除
- How to manage fixed assets well? Easy to point and move to provide intelligent solutions
- Brief introduction to AES
猜你喜欢

Redis -- lattice connects to redis cluster

Mysql 优化
![[untitled]](/img/40/560c597d53d27eff860644cd7c3030.png)
[untitled]

【MFC开发(16)】树形控件Tree Control

Performance improvement 2-3 times! The second generation Kunlun core server of Baidu AI Cloud was launched

Public network cluster intercom +gps visual tracking | help the logistics industry with intelligent management and scheduling

Nacos - 服务发现

Vsync+ triple cache mechanism +choreographer

VSYNC+三重缓存机制+Choreographer

Jetson Nano 安装TensorFlow GPU及问题解决
随机推荐
嵌入式工程师面试-常问问题集
Personal decoration notes
Glitch Free时钟切换技术
中考体育项目满分标准(深圳、安徽、湖北)
"Analysis of 43 cases of MATLAB neural network": Chapter 30 design of combined classifier based on random forest idea - breast cancer diagnosis
Nacos - service discovery
Shell脚本-数组定义以及获取数组元素
Databinding source code analysis
Phishing identification app
FreeRTOS learning easy notes
C语言学生信息管理系统
Yolov3, 4, 5 and 6 Summary of target detection
电视机尺寸与观看距离
Input标签的type设置为number,去掉上下箭头
Configuration and startup of Chang'an chain synchronization node
[untitled]
MySQL optimization
Glitch free clock switching technology
电脑小技巧
factory type_ Id:: create process resolution