当前位置:网站首页>0 basic learning C language - interrupt
0 basic learning C language - interrupt
2022-07-06 22:20:00 【If life is just like the first time 645】
List of articles
One 、 The concept of interruption
CPU Dealing with an event A when , Another incident happened B Request to be dealt with quickly ( Interruption occurs )
CPU Temporarily interrupt the current work , Go ahead and deal with the incident B( Interrupt response and interrupt service )
stay CPU Put the event B After processing , Back to the original event A Continue to deal with the event where it was interrupted A( Interrupt return ), This process is called interruption .
Two 、 Interrupt structure

3、 ... and 、 Interrupt request flag
1. Counter / Interrupt flag of timer control register

2. Serial port interrupt flag

Four 、 Interrupt priority
1. priority

2. Interruption principle

3. Interruption conditions

5、 ... and 、 Interrupt the program
1. Turn on interrupt

2. Write interrupt subfunction

6、 ... and 、 timing / The counter is interrupted
1. timing / The structure of the counter


2. timing / How the counter works

3. timing / Control of counter

1. Working mode register TMOD



Example method 1
2. Control register TCON

- One of the top four TF0 and TF1 It is automatically controlled by single chip microcomputer , You don't have to worry about
- TR1

- TR0

4. timing / Counter application
1. Use steps

2. Practical application

边栏推荐
猜你喜欢

ZABBIX proxy server and ZABBIX SNMP monitoring

2500个常用中文字符 + 130常用中英文字符

PVL EDI project case

【MySQL】Online DDL详解

Classic sql50 questions

Memorabilia of domestic database in June 2022 - ink Sky Wheel

GPS from entry to abandonment (XIV), ionospheric delay

Oracle-控制文件及日志文件的管理

LeetCode刷题(十一)——顺序刷题51至55

Shell product written examination related
随机推荐
414. The third largest digital buckle
C # realizes crystal report binding data and printing 4-bar code
重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障
GPS du début à l'abandon (XIII), surveillance autonome de l'intégrité du récepteur (raim)
Unity3d Learning Notes 6 - GPU instantiation (1)
[10:00 public class]: basis and practice of video quality evaluation
Management background --2 Classification list
插入排序与希尔排序
GPS from getting started to giving up (XX), antenna offset
UNI-Admin基础框架怎么关闭创建超级管理员入口?
Force deduction question 500, keyboard line, JS implementation
Embedded common computing artifact excel, welcome to recommend skills to keep the document constantly updated and provide convenience for others
Learn the principle of database kernel from Oracle log parsing
嵌入式常用计算神器EXCEL,欢迎各位推荐技巧,以保持文档持续更新,为其他人提供便利
Problems in the process of opencv300 cmake generating project
第4章:再谈类的加载器
Report on technological progress and development prospects of solid oxide fuel cells in China (2022 Edition)
GPS從入門到放弃(十三)、接收機自主完好性監測(RAIM)
【sdx62】WCN685X将bdwlan.bin和bdwlan.txt相互转化操作方法
HDU 2008 digital statistics