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

边栏推荐
- Promise asynchronous programming
- 1. Connection between Jetson and camera
- TV size and viewing distance
- The fixed assets management system enables enterprises to dynamically master assets
- 目标检测的yolov3、4、5、6总结
- Flink面试题
- Input标签的type设置为number,去掉上下箭头
- 动态代理
- Jetson nano installs tensorflow GPU and problem solving
- 【MFC开发(17)】高级列表控件List Control
猜你喜欢

Nacos - service discovery

Only in China! Alicloud container service enters the Forrester leader quadrant

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

集团公司固定资产管理的痛点和解决方案

FreeRTOS learning easy notes

Nacos - 配置管理

Glitch free clock switching technology

Installing Oracle EE

factory type_ Id:: create process resolution

足球篮球体育比赛比分直播平台源码/app开发建设项目
随机推荐
Shell脚本-字符串
Phishing identification app
Screenshot tips
Advanced C language pointer (Part 2)
FreeRTOS learning easy notes
pcl_viewer命令
TV size and viewing distance
如何解决固定资产管理和盘点的难题?
[MFC development (16)] tree control
Jetson nano installs tensorflow GPU and problem solving
pcl_ Viewer command
大型工厂设备管理痛点和解决方案
Shell script case in statement
Jetson Nano 安装TensorFlow GPU及问题解决
Graduation season, I want to tell you
C语言指针的进阶(上篇)
美团2022年机试
Bimianhongfu queren()
Flink interview questions
安装Oracle EE