当前位置:网站首页>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

边栏推荐
- Dynamic proxy
- 如何一站式高效管理固定资产?
- Shell脚本-while循环详解
- 嵌入式工程师面试题3-硬件
- "Analysis of 43 cases of MATLAB neural network": Chapter 30 design of combined classifier based on random forest idea - breast cancer diagnosis
- Redis source code learning (29), compressed list learning, ziplist C (II)
- Shell script -for loop and for int loop
- Football and basketball game score live broadcast platform source code /app development and construction project
- The meaning of yolov5 training visualization index
- Brief introduction to AES
猜你喜欢

How to solve the problem of fixed assets management and inventory?

FreeRTOS learning easy notes
![[untitled]](/img/40/560c597d53d27eff860644cd7c3030.png)
[untitled]

How to manage fixed assets efficiently in one stop?

Personal decoration notes

1. Connection between Jetson and camera

Dynamic proxy

Nacos - 服务发现

如何做好固定资产管理?易点易动提供智能化方案

What are the differences between the architecture a, R and m of arm V7, and in which fields are they applied?
随机推荐
Shell script case in statement
JCL 和 SLF4J
Shell脚本-echo命令 转义符
Shell脚本-case in 和正则表达式
AVL树的理解和实现
Shell script echo command escape character
Differences among tasks, threads and processes
Bimianhongfu queren()
Programming with C language: calculate with formula: e ≈ 1+1/1+ 1/2! …+ 1/n!, Accuracy is 10-6
嵌入式工程师常见面试题2-MCU_STM32
[MFC development (17)] advanced list control list control
Serialization, listening, custom annotation
Input标签的type设置为number,去掉上下箭头
Centos7 shell script one click installation of JDK, Mongo, Kafka, FTP, PostgreSQL, PostGIS, pgrouting
电脑小技巧
Interrupt sharing variables with other functions and protection of critical resources
Databinding source code analysis
FreeRTOS learning easy notes
1. Connection between Jetson and camera
序列化、监听、自定义注解