当前位置:网站首页>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
边栏推荐
- 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
- 基础:3.opencv快速入门图像和视频
- How to effectively align team cognition
- Shell script - positional parameters (command line parameters)
- Shell script - special variables: shell $, $*, [email protected], $$$
- 集团公司固定资产管理的痛点和解决方案
- Shell script -while loop explanation
- 如何高效拉齐团队认知
- Computer tips
- [MFC development (16)] tree control
猜你喜欢
Computer tips
1.jetson与摄像头的对接
Dynamic proxy
How to solve the problem of fixed assets management and inventory?
Matlab tips (23) matrix analysis -- simulated annealing
Nacos - Configuration Management
What is the material of 16mo3 steel plate? What is the difference between 16mo3 and Q345R?
Phishing identification app
大型工厂设备管理痛点和解决方案
Glitch Free时钟切换技术
随机推荐
LogBack
Is it safe to dig up money and make new shares
软件工程师面试刷题网站、经验方法
美团2022年机试
Matlab tips (23) matrix analysis -- simulated annealing
Shell脚本-read命令:读取从键盘输入的数据
集团公司固定资产管理的痛点和解决方案
【MFC开发(17)】高级列表控件List Control
Public network cluster intercom +gps visual tracking | help the logistics industry with intelligent management and scheduling
Pain points and solutions of fixed assets management of group companies
Shell script - array definition and getting array elements
毕业季,我想对你说
固定资产管理系统让企业动态掌握资产情况
Football and basketball game score live broadcast platform source code /app development and construction project
IT 技术电子书 收藏
5mo3 UHI HII HII 17mn4 19Mn6 executive standard
C语言指针的进阶(下)
Promise asynchronous programming
Shell script -for loop and for int loop
Programming with C language: calculate with formula: e ≈ 1+1/1+ 1/2! …+ 1/n!, Accuracy is 10-6