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

边栏推荐
- MD文档中插入数学公式,Typora中插入数学公式
- Embedded Engineer Interview Question 3 Hardware
- How to manage fixed assets well? Easy to point and move to provide intelligent solutions
- What are the differences between the architecture a, R and m of arm V7, and in which fields are they applied?
- Shell script - array definition and getting array elements
- 【MFC开发(17)】高级列表控件List Control
- 序列化、监听、自定义注解
- Nacos - Configuration Management
- Shell脚本-位置参数(命令行参数)
- 小鸟识别APP
猜你喜欢

Football and basketball game score live broadcast platform source code /app development and construction project

猿人学第20题(题目会不定时更新)

内存大小端

Matlab tips (23) matrix analysis -- simulated annealing

Memory size end

Nacos - service discovery

Installing Oracle EE

Advanced C language pointer (Part 2)

Matlab tips (16) consistency verification of matrix eigenvector eigenvalue solution -- analytic hierarchy process
V79.01 Hongmeng kernel source code analysis (user mode locking) | how to use the fast lock futex (Part 1) | hundreds of blogs analyze the openharmony source code
随机推荐
Jeecg restart alarm 40001
Yidian Yidong helps enterprises to efficiently manage equipment and improve equipment utilization
动态代理
V79.01 Hongmeng kernel source code analysis (user mode locking) | how to use the fast lock futex (Part 1) | hundreds of blogs analyze the openharmony source code
Graduation season, I want to tell you
Understand shallow replication and deep replication through code examples
Shell脚本-while循环详解
Computer tips
Flink面试题
Mysql 优化
Input标签的type设置为number,去掉上下箭头
5mo3 UHI HII HII 17mn4 19Mn6 executive standard
Glitch Free时钟切换技术
Shell脚本-特殊变量:Shell $#、$*、[email protected]、$?、$$
LogBack
基础:2.图像的本质
In depth learning training sample amplification and tag name modification
The fixed assets management system enables enterprises to dynamically master assets
Shell脚本-数组定义以及获取数组元素
Databinding source code analysis