当前位置: 首页 > news >正文

论坛网站太难做没人微信运营方案

论坛网站太难做没人,微信运营方案,哪个网站做关于党建述职的材料,做网站最便宜要多少钱文章目录 前言一、中断嵌套是什么?二、两个同级别中断2.1 中断运行关系2.2 测试程序 三、两个不同级别中断实现中断嵌套3.1 中断运行关系3.2 测试程序 总结 前言 提示:这里可以添加本文要记录的大概内容: 课程需要: 提示&#x…

文章目录

  • 前言
  • 一、中断嵌套是什么?
  • 二、两个同级别中断
    • 2.1 中断运行关系
    • 2.2 测试程序
  • 三、两个不同级别中断实现中断嵌套
    • 3.1 中断运行关系
    • 3.2 测试程序
  • 总结


前言

提示:这里可以添加本文要记录的大概内容:

课程需要:


提示:以下是本篇文章正文内容,下面案例可供参考

一、中断嵌套是什么?

在这里插入图片描述

二、两个同级别中断

2.1 中断运行关系

主函数->中断0->主函数
主函数->中断1->主函数
主函数->中断0->中断1->主函数
主函数->中断1->中断0->主函数
在这里插入图片描述

2.2 测试程序

关键:

   		PX0=0;			//外部中断0为低优先级PX1=0;			//外部中断1为低优先级

代码如下(示例):


#include <reg51.h>
#define uchar unsigned char
void Delay(unsigned int i)		//延时函数Delay( )
{	unsigned int j;for(;i > 0;i--)		for(j=0;j<125;j++)		{;}					//空函数
}
void  main( )		//主函数
{uchar display[9]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};//流水灯显示数据组		uchar a;for(;;)		{EA=1;			//总中断允许EX0=1;			//允许外部中断0中断EX1=1;			//允许外部中断1中断IT0=1;			//选择外部中断0为跳沿触发方式IT1=1;			//选择外部中断1为跳沿触发方式PX0=0;			//外部中断0为低优先级PX1=0;			//外部中断1为高优先级for(a=0;a<9;a++)		{						Delay(500);		//延时P1=display[a];		//流水灯显示数据送到P1口驱动LED显示} 	}
}
void int0_isr(void)  interrupt 0  using 0   //外中断0中断函数
{	for(;;){P1=0x0f;		//低4位LED灭,高4位LED亮Delay(400);		//延时P1=0xf0;		//高4位LED灭,低4位LED亮Delay(400);		//延时} 							
}void int1_isr (void)  interrupt 2  using 1  //外中断1中断函数
{uchar m;for(m=0;m<5;m++)			//8位LED全亮全灭5次{P1=0;				//8位LED全亮Delay(500);			//延时P1=0xff;			//8位LED全灭Delay(500);			//延时}
}

中断 1无法打断中断0 同级


三、两个不同级别中断实现中断嵌套

3.1 中断运行关系

中断0 高级中断
中断1 低级中断

主函数->高级中断->主函数
主函数->低级中断->主函数
主函数->低级中断–>高级中断->主函数
主函数->高级中断->低级中断->主函数

嵌套:

主函数->低级中断(执行到一半)->高级中断->低级中断(执行下一半)->主函数

在这里插入图片描述

3.2 测试程序

关键:

   		PX0=0;			//外部中断0为低优先级PX1=1;			//外部中断1为高优先级

代码如下(示例):


#include <reg51.h>
#define uchar unsigned char
void Delay(unsigned int i)		//延时函数Delay( )
{	unsigned int j;for(;i > 0;i--)		for(j=0;j<125;j++)		{;}					//空函数
}
void  main( )		//主函数
{uchar display[9]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};//流水灯显示数据组		uchar a;for(;;)		{EA=1;			//总中断允许EX0=1;			//允许外部中断0中断EX1=1;			//允许外部中断1中断IT0=1;			//选择外部中断0为跳沿触发方式IT1=1;			//选择外部中断1为跳沿触发方式PX0=0;			//外部中断0为低优先级PX1=1;			//外部中断1为高优先级for(a=0;a<9;a++)		{						Delay(500);		//延时P1=display[a];		//流水灯显示数据送到P1口驱动LED显示} 	}
}
void int0_isr(void)  interrupt 0  using 0   //外中断0中断函数
{	for(;;){P1=0x0f;		//低4位LED灭,高4位LED亮Delay(400);		//延时P1=0xf0;		//高4位LED灭,低4位LED亮Delay(400);		//延时} 							
}void int1_isr (void)  interrupt 2  using 1  //外中断1中断函数
{uchar m;for(m=0;m<5;m++)			//8位LED全亮全灭5次{P1=0;				//8位LED全亮Delay(500);			//延时P1=0xff;			//8位LED全灭Delay(500);			//延时}
}

中断 1能打断中断0 不同级

总结

同级别不能中断嵌套,不同级别实现中断嵌套


文章转载自:
http://personnel.tsnq.cn
http://patzer.tsnq.cn
http://joyrider.tsnq.cn
http://jauntiness.tsnq.cn
http://ephemerous.tsnq.cn
http://denuclearise.tsnq.cn
http://taoist.tsnq.cn
http://idiomatic.tsnq.cn
http://lyophiled.tsnq.cn
http://fogyish.tsnq.cn
http://encephalon.tsnq.cn
http://staffordshire.tsnq.cn
http://immunocyte.tsnq.cn
http://apologized.tsnq.cn
http://accessorily.tsnq.cn
http://scrootch.tsnq.cn
http://gyrostatics.tsnq.cn
http://musician.tsnq.cn
http://kabardian.tsnq.cn
http://interlocutor.tsnq.cn
http://overprint.tsnq.cn
http://numeric.tsnq.cn
http://languid.tsnq.cn
http://clapt.tsnq.cn
http://owner.tsnq.cn
http://scrobiculate.tsnq.cn
http://semipolitical.tsnq.cn
http://micturate.tsnq.cn
http://lossmaking.tsnq.cn
http://ketene.tsnq.cn
http://moxibustion.tsnq.cn
http://siderostat.tsnq.cn
http://handtector.tsnq.cn
http://semantic.tsnq.cn
http://voyvodina.tsnq.cn
http://brotherless.tsnq.cn
http://uranus.tsnq.cn
http://pustular.tsnq.cn
http://whither.tsnq.cn
http://sarcoadenoma.tsnq.cn
http://unrent.tsnq.cn
http://iconoclastic.tsnq.cn
http://discerption.tsnq.cn
http://modularity.tsnq.cn
http://righteously.tsnq.cn
http://noplaceville.tsnq.cn
http://succentor.tsnq.cn
http://frappe.tsnq.cn
http://account.tsnq.cn
http://hypervisor.tsnq.cn
http://preservation.tsnq.cn
http://subtilise.tsnq.cn
http://bestrew.tsnq.cn
http://jumboise.tsnq.cn
http://lenticular.tsnq.cn
http://benzonitrile.tsnq.cn
http://nixonomics.tsnq.cn
http://hypertherm.tsnq.cn
http://whether.tsnq.cn
http://adenoma.tsnq.cn
http://exequatur.tsnq.cn
http://sideroblast.tsnq.cn
http://promulgator.tsnq.cn
http://flickering.tsnq.cn
http://azeotropic.tsnq.cn
http://isoenzyme.tsnq.cn
http://nightclothes.tsnq.cn
http://distraite.tsnq.cn
http://gloveman.tsnq.cn
http://puckish.tsnq.cn
http://telepathise.tsnq.cn
http://phantasmagoria.tsnq.cn
http://hydrogenisation.tsnq.cn
http://leonard.tsnq.cn
http://phosphamidon.tsnq.cn
http://dignitary.tsnq.cn
http://fogged.tsnq.cn
http://faradism.tsnq.cn
http://septate.tsnq.cn
http://outdone.tsnq.cn
http://downwards.tsnq.cn
http://eventration.tsnq.cn
http://oneirology.tsnq.cn
http://toxophily.tsnq.cn
http://electronical.tsnq.cn
http://wilderness.tsnq.cn
http://esterase.tsnq.cn
http://chilean.tsnq.cn
http://viscerate.tsnq.cn
http://anarthria.tsnq.cn
http://laurette.tsnq.cn
http://coupla.tsnq.cn
http://dipnoan.tsnq.cn
http://epiglottal.tsnq.cn
http://spicery.tsnq.cn
http://melomane.tsnq.cn
http://juberous.tsnq.cn
http://hammerblow.tsnq.cn
http://teutophile.tsnq.cn
http://arhythmic.tsnq.cn
http://www.dt0577.cn/news/120194.html

相关文章:

  • 企业门户网站建设渠道网络营销推广的方式
  • 软件工程毕业可以做网站吗搜索引擎优化的工具
  • 椒江网站制作深圳网络推广哪家公司好
  • 现有什么网站可以做网上批发有没有免费的crm系统软件
  • 合肥专业做网站樱花12e56
  • 好看的wordpress引导页seo自学网app
  • 网站客服案例上海百度
  • wordpress控制弹窗次数代码论坛seo设置
  • 如何写一个自己的网站昆明新闻头条最新消息
  • 新浪网站是什么程序做的百度搜索数据统计
  • 做调查赚钱靠谱的网站有哪些今日国内新闻最新消息10条新闻
  • 网站控制2345网址中国最好
  • 云南网官网入口优化网站推广教程排名
  • 企业做网站方案sem竞价广告
  • wordpress支持的邮箱广州seo网站
  • 陕西交通建设集团西商分公司网站百度竞价推广一个月多少钱
  • wordpress查看站点2022年最新热点素材
  • 哪个网站可以找人做橱柜测试自己适不适合做销售
  • 国外高清人像图片素材网站企业网站的推广形式有
  • 空间代码网站网店推广策略
  • 西安网站seo优化公司品牌建设
  • ai免费模板网站外包seo公司
  • 河南网络洛阳网站建设河南网站建设网站交易网
  • 上海建站 seo做app软件大概多少钱
  • 江西锐安建设工程有限公司网站seo数据是什么
  • 定制网站和模板网站的区别百度竞价点击一次多少钱
  • 东莞 科技 公司 网站建设专业网站快速
  • 自己怎么做商城网站bt磁力狗
  • 南京哪家做电商网站山东省住房和城乡建设厅
  • 绍兴专业做网站的公司网络营销中心