当前位置:网站首页>Interruption system of 51 single chip microcomputer
Interruption system of 51 single chip microcomputer
2022-07-03 09:55:00 【Yiao】
One · structure
1.(P3.2) May by IT0 Select whether it is active at low level or active at falling edge . When CPU detected P3.2 When a valid interrupt signal appears on the pin , Interrupt flag IE0 Set up 1, towards CPU Application interruption .
2. (P3.3) May by IT1 Select whether it is active at low level or active at falling edge . When CPU detected P3.3 When a valid interrupt signal appears on the pin , Interrupt flag IE1 Set up 1, towards CPU Application interruption .
3. TF0, MCU internal timer / Counter T0 Overflow interrupt request flag bit . Timer / Counter T0 In case of spillage , Set as TF0, And to CPU Application interruption .
4.TF1, Timer in MCU / Counter T1 Overflow interrupt request flag bit . Timer / Counter T1 In case of spillage , Set up TF1, And to CPU Application interruption .
5.RI or TI, Serial port interrupt request flag . Set when the serial port receives a frame of serial data RI Or set when the serial port sends a frame of serial data TI, towards CPU Application interruption .
Two . Interrupt allowed control bit
IT0, External interrupt 0 Trigger mode bit .(IT0=1, Falling edge trigger ;IT0=0, Low level trigger ) IE0, External interrupt 0 Interrupt request flag bit . IT1, External interrupt 1 Trigger mode control bit . IE1, External interrupt 1 Interrupt request flag bit . TF0, timing / Counter T0 Overflow interrupt request flag bit . TF1, timing / Counter T1 Overflow interrupt request flag bit .
3、 ... and , Interrupt source
Four , Interrupt response condition 1· Interrupt source has interrupt request ; 2· The interrupt allowed bit of this interrupt source is 1; 3·CPU General interruption (EA=1). With external interrupt 0 For example EA=1; // Open total interrupt EX0=1; // Open external interrupt 0 IT0=0/1; // Set the external interrupt trigger mode Interrupt service function
void int0 () interrupt 0
{
do anything that you want
}
边栏推荐
- Epoll read / write mode in LT and et modes
- Basic knowledge of MySQL database (an introduction to systematization)
- The cyclic shift of PUCCH in NR channel is generated by MATLAB
- [combinatorics] Introduction to Combinatorics (combinatorial thought 2: mathematical induction | mathematical induction promotion | multiple induction thought)
- JMX、MBean、MXBean、MBeanServer 入门
- How does the nr-prach receiver detect the relationship between prembleid and Ta
- 【順利畢業】[1]-遊覽 [學生管理信息系統]
- 01仿B站项目业务架构
- Simple use of MySQL (addition, deletion, modification and query)
- The third paper of information system project manager in soft examination
猜你喜欢
How does the nr-prach receiver detect the relationship between prembleid and Ta
[CSDN] C1 training problem analysis_ Part IV_ Advanced web
Project cost management__ Cost management technology__ Article 6 prediction
学习开发没有捷径,也几乎不存在带路会学的快一些的情况
SSB Introduction (PbCH and DMRs need to be supplemented)
Getting started with JMX, MBean, mxbean, mbeanserver
PRACH --- originator
Project cost management__ Topic of comprehensive calculation
NR technology -- MIMO
对于新入行的同学,如果你完全没有接触单片机,建议51单片机入门
随机推荐
STM32 port multiplexing and remapping
MySQL data manipulation language DML common commands
学历是一张通行证,门票,你有了它,可以踏入更高层次的环境里
Chromium Embedded Framework (CEF) 介绍
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 3 --blinker_ MIOT_ Light (lighting technology app control + Xiaoai classmate control)
03 FastJson 解决循环引用
SCM career development: those who can continue to do it have become great people. If they can't endure it, they will resign or change their careers
內存數據庫究竟是如何發揮內存優勢的?
Mysql database underlying foundation column
手机都算是单片机的一种,只不过它用的硬件不是51的芯片
uniapp 实现微信小程序全局分享及自定义分享按钮样式
Fundamentals of Electronic Technology (III)__ Fundamentals of circuit analysis__ Basic amplifier operating principle
UCI and data multiplexing are transmitted on Pusch - placement of data and UCI positions (Part III)
[CSDN]C1訓練題解析_第三部分_JS基礎
Do you understand automatic packing and unpacking? What is the principle?
Qt QComboBox QSS样式设置
Epoll read / write mode in LT and et modes
2020-08-23
Nr-prach:prach format and time-frequency domain
SSB Introduction (PbCH and DMRs need to be supplemented)