⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pic16f87x单片机中断系统应用须关注的问题.htm

📁 一些收集到的PIC文章
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0042)http://www.chipgem.com.cn/refer/yyjq90.htm -->
<HTML><HEAD><TITLE>PIC16F87X单片机中断系统应用须关注的问题</TITLE><!-- InstanceBegin template="/Templates/temp1.dwt.asp" codeOutsideHTMLIsLocked="false" -->
<META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK 
href="<%=webstylefile%>" rel=stylesheet type=text/css>
<META 
content="齐济电子,元器件代理,元器件经销,芯片销售,单片机销售,电子元器件,国外器件,偏冷门器件,存储器,外围器件,运放,模拟转换,电子产品方案,单片机设计方案,MCU,EEPROM, A/D, OP, PWM ,microchip ,ATMEL, HOLTEK ,catalyst, csi ,24wc ,PIC ,24LC ,24C, HT48, HT49 ,HT46, HT7 ,HT16 ,AT ,89C, 87C,P87 ,PCF ,LPC ,25LC, 25C, 红外线 ,感应洁具, 圣洁力, 冲水设备, 感应器, 感应水龙头 ,感应小便 ,感应大便, 给皂器 ,干手机 ,干手器 ,烘手器 ,给皂机,皂液机 ,节水设备, 自动冲水 ,冲洗阀, PIC16C5X,PIC16C7X,PIC16F87X,PIC12C508A , pic16f72,pic16f73,pic16c74b,pic17c44 , pic16f870,pic16f871,pic16f872,pic16f873a , pic16f874a,pic16f876a,pic16f877a,pic18f242 , pic18f252,rfpic12f675,pic18f8720,pic18f6720 , 24lc01,24lc02,24lc16,24lc128 , PIC12C508,pic12c509a,pic16c54c,pic16c505 , pic16c56a,pic16c57c,pic12f629,pic12f675 , pic12c671,pic12c672,pic12ce673,pic16c622a , pic16c62b,pic16c63a,pic16c65b,pic16ce624 , pic16ce625,pic16f627a,pic16f628a,pic16f630 , pic16f676,PIC16C711,PIC16C712,pic16c716 , pic16c717,pic16c72a,pic16c73b,pic16f84a , pic16c77,pic16c,pic16f74,pic16f7x , 24lc256,24lc04,HT48R05A,HT48R06A,HT48R10A,HT48R50A , HT49R50A,HT46R47,HT7033A,HT7044A , HT1621,HT7130A,ht48r30,ht48r50 , ht48r70,ht49r30,ht49r70,ht46r22 , ht46r23,ht46r24,ht46r63,ht46r64 , ht46r65,ht9170,ht9200,ht7050 , ht7150,ht24lc02,ht24lc04,ht24lc16 , ht24lc08,HT1622,  单片机,单片机开发,方案开发,PIC , HOLTEK,microchip,太阳能热水器,太阳能应用 , 感应器,自动感应洁具,自动水龙头,自动冲水器 , MPLAB,开发工具,ic卡燃气表,上海盛扬, 微芯,合泰,电子元器件,太阳能热水器控制器, 芯片,仿真器,烧录器,烧写器, IDE3000,编程器,Holtek代理,Holtek芯片销售,  Microchip代理,Microchip销售,IC,IC销售 , MCU销售,单片机论坛,pic单片机论坛, 感应洁具,感应器,干手器,冲水阀,圣洁力,龙头,感应龙头,皂液器,烘手器,自动洗手器,自动阀,给皂机,干发器,医用洗手器,干肤器,感应小便器,手术室洗手器,冲水设备,小便斗冲水器,智能龙头,医洗,小便冲水器,红外线感应洁具,一体感应龙头,小便斗冲水阀, 感应器,自动感应洁具,自动水龙头,自动冲水器 , 感应洁具,医洗,干手器,冲水阀 , 龙头,感应龙头,皂液器,烘手器 , 自动洗手器,自动阀,干发器,给皂机 , 医用洗手器,干肤器,感应小便器,手术室洗手器 , 冲水设备,小便斗冲水器,智能龙头,小便冲水器 , 一体感应龙头,感应电子洁具,感应式洁具,小便斗冲水阀 , 暖手器,感应式烘手器,烘手器价格,感应冲水器 , 自动冲水,感应卫生洁具,自动皂液器,感应皂液器 , 皂液机,自动洗手机,红外线自动洗手机,给皂器 , 红外线冲水器,一体化水龙头,一体化小便斗,红外线感应洁具,ht7033 ,直流放大,pic16f87x,太阳能热水器,ht48r,pic,pic16f630,sst89c54 在线可编程,spce061a,小功率变压器,高频变压器设计,12c508+编程电压,单片机 论坛,单片机,microchip,ds1302原理图,温度测量,晶闸管触发电路,温度测量,16f628 复位电路,报警电路设计,浮点数运算程序,电话拨号报警器电路,电话拨号报警器电路,QuickStart开发包,aduc812" 
name=keywords>
<META 
content=上海齐济集成电子有限公司的网站是一个专业性的电子咨询类网站,网站分为产品资料中心、应用实例与技巧、资料下载、方案介绍、单片机论坛、网上销售商城六个栏目,我们尽最大努力为单片机使用者与爱好者提供尽可能多的资料及咨询,你可以在我们的单片机论坛畅所欲言,交流各种使用经验,同时在我们的的商城中,可以很方便地采购各种样片及满足你批量生产的需要。 
name=description>
<SCRIPT src="PIC16F87X单片机中断系统应用须关注的问题.files/mystat.htm"></SCRIPT>
<!-- InstanceBeginEditable name="doctitle" --><!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<SCRIPT language="JavaScript ">

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</SCRIPT>

<SCRIPT 
src="D:\Documents and Settings\jb\桌面\PIC文章\PIC16F87X单片机中断系统应用须关注的问题.files\mystat(1).htm"></SCRIPT>
<LINK href="PIC16F87X单片机中断系统应用须关注的问题.files/green.css" rel=stylesheet 
type=text/css>
<META content="MSHTML 5.00.3700.6699" name=GENERATOR></HEAD>
<BODY>
<TABLE align=center border=0 borderColor=#0099ff width=768>
  <TBODY>
  <TR>
    <TD colSpan=3></TD></TR>
  <TR>
    <TD align=middle rowSpan=3 width=120><IMG height=75 
      src="PIC16F87X单片机中断系统应用须关注的问题.files/logo.gif" width=120></TD>
    <TD align=middle rowSpan=3><IMG height=60 
      src="PIC16F87X单片机中断系统应用须关注的问题.files/chipgem.gif"></TD>
    <TD width=25><IMG src="PIC16F87X单片机中断系统应用须关注的问题.files/home.gif"></TD>
    <TD width=60><A href="http://www.chipgem.com.cn/refer/yyjq90.htm#" 
      onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.chipgem.com.cn');">设为主页</A></TD></TR>
  <TR>
    <TD width=25><IMG src="PIC16F87X单片机中断系统应用须关注的问题.files/email.gif"></TD>
    <TD width=60><A 
    href="http://www.chipgem.com.cn/refer/contact.asp">联系我们</A></TD></TR>
  <TR>
    <TD width=25><IMG src="PIC16F87X单片机中断系统应用须关注的问题.files/bookmark.gif"></TD>
    <TD width=60><A href="http://www.chipgem.com.cn/refer/yyjq90.htm#" 
      onclick="javascript:window.external.addFavorite('http://www.chipgem.com.cn','上海齐济电子有限公司')">加入收藏</A></TD></TR>
  <TR>
    <TD colSpan=4>
      <HR align=center class=hr SIZE=1 width="100%">
    </TD></TR></TBODY></TABLE>
<STYLE>.button1 {
	BORDER-BOTTOM: white 1pt; BORDER-LEFT: white 1pt; BORDER-RIGHT: white 1pt; BORDER-TOP: white 1pt; COLOR: menutext; FONT: menu
}
.button2 {
	BORDER-BOTTOM: white 1pt; BORDER-LEFT: white 1pt; BORDER-RIGHT: white 1pt; BORDER-TOP: white 1pt; COLOR: menutext; FONT: menu
}
.button3 {
	BORDER-BOTTOM: white 1pt; BORDER-LEFT: white 1pt; BORDER-RIGHT: white 1pt; BORDER-TOP: white 1pt; COLOR: menutext; FONT: menu
}
</STYLE>

<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=768>
  <TBODY>
  <TR>
    <TD align=middle class=button2 onmousedown="this.className='button3'" 
    onmouseout="this.className='button2'" onmouseover="this.className='button1'" 
    onmouseup="this.className='button1'" vAlign=center><A 
      href="http://www.chipgem.com.cn/refer/index.asp" 
    target=""><B>本站首页</B></A></TD>
    <TD align=middle class=button2 onmousedown="this.className='button3'" 
    onmouseout="this.className='button2'" onmouseover="this.className='button1'" 
    onmouseup="this.className='button1'" vAlign=center><A 
      href="http://www.chipgem.com.cn/refer/company.asp" 
      target=""><B>企业资讯</B></A></TD>
    <TD align=middle class=button2 onmousedown="this.className='button3'" 
    onmouseout="this.className='button2'" onmouseover="this.className='button1'" 
    onmouseup="this.className='button1'" vAlign=center><A 
      href="http://www.chipgem.com.cn/refer/product.asp" 
      target=""><B>产品信息</B></A></TD>
    <TD align=middle class=button2 onmousedown="this.className='button3'" 
    onmouseout="this.className='button2'" onmouseover="this.className='button1'" 
    onmouseup="this.className='button1'" vAlign=center><A 
      href="http://www.chipgem.com.cn/refer/project.asp" 
      target=""><B>方案介绍</B></A></TD>
    <TD align=middle class=button2 onmousedown="this.className='button3'" 
    onmouseout="this.className='button2'" onmouseover="this.className='button1'" 
    onmouseup="this.className='button1'" vAlign=center><A 
      href="http://www.chipgem.com.cn/refer/application.asp" 
      target=""><B>应用技巧与实例</B></A></TD>
    <TD align=middle class=button2 onmousedown="this.className='button3'" 
    onmouseout="this.className='button2'" onmouseover="this.className='button1'" 
    onmouseup="this.className='button1'" vAlign=center><A 
      href="http://www.chipgem.com.cn/refer/download.asp" 
      target=""><B>资料下载中心</B></A></TD>
    <TD align=middle class=button2 onmousedown="this.className='button3'" 
    onmouseout="this.className='button2'" onmouseover="this.className='button1'" 
    onmouseup="this.className='button1'" vAlign=center><A 
      href="http://www.chipgem.com.cn/refer/bbs.asp" 
    target=""><B>单片机论坛</B></A></TD>
    <TD align=middle class=button2 onmousedown="this.className='button3'" 
    onmouseout="this.className='button2'" onmouseover="this.className='button1'" 
    onmouseup="this.className='button1'" vAlign=center><A 
      href="http://www.chipgem.com.cn/refer/sale.asp" 
    target=""><B>在线销售</B></A></TD></TR></TBODY></TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=768>
  <TBODY>
  <TR>
    <TD>
      <HR align=center class=hr SIZE=1 width="100%">
    </TD></TR></TBODY></TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=768>
  <TBODY>
  <TR>
    <TD><!-- InstanceBeginEditable name="EditRegion3" -->
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="99%"><!-- 正文区-->
        <TBODY></TBODY></TABLE><!-- InstanceEndEditable --></TD></TR>
  <DIV align=center>
  <DIV align=center><B><BR>PIC16F87X单片机中断系统应用须关注的问题</B></DIV></DIV>
  <DIV align=center><BR><B>作者:</B>河北省邮电学校 李学海 </DIV></TD></TR>
  <TR bgColor=#fdffff>
    <TD background="" height=395>
      <TABLE align=right border=0 cellPadding=0 cellSpacing=0 height=100 
      width="100%">
        <TBODY>
        <TR bgColor=#fdffff vAlign=top>
          <TD background="">
            <BLOCKQUOTE>
              <P 
              align=left><BR><B>摘要:</B>美国微芯公司研制的PIC系列单片机,其硬件结构和指令系统采用了与众不同的设计手法。在架构上和概念上对传统单片机进行了一些突破性的变革,但也给这类单片机的应用带来了一些特殊问题。本文针对PIC16F87X系列单片机中断的特点,及其在应用过程中应该注意的几个问题进行必要的说明。内容包括中断源、中断逻辑、中断相关的寄存器、中断的延时、中断的现场保护以及注意事项等。 
              </P>
              <P align=left><B>关键词:</B>单片机 PIC16F87X 中断系统 中断源 </P>
              <P 
              align=left><BR>  目前在世界一些著名的单片机产品系列中,PIC16F87X系列单片机是芯片内部包含有外围设备模块数量最多的单片机品种之一。PIC16F874和PIC16F877单片机的芯片内部集成了15个外围设备模块;PIC16F873和PIC16F876单片机的芯片内部集成了12个外围设备模块。在最近推出的该系列的新型号中, 
              PIC16F870单片机的芯片内部集成了10个外围设备模块;PIC16F871单片机的芯片内部集成了13个外围设备模块;PIC16F872单片机的芯片内部也集成了10个外围设备模块(比PIC16F870多了1个USART模块,少了1个SSP模块)。 
              <BR>  这些外围设备模块在启用时以及在工作过程中,都或多或少地需要CPU参与控制、协调或交换数据等各种服务工作。由于CPU的运行速度非常高,而各个外围设备模块的工作速度却非常低,况且这些外围设备模块也不是频繁地要求CPU对其服务。因此,通常采取一种让众多外围设备模块共享1个CPU,并且能够及时得到CPU服务的调度方法——中断。 
              </P>
              <P align=center><B>一、 PIC16F87X的中断源</B></P>
              <P 
              align=left>  PIC系列单片机是当今世界上很有影响力的精简指令集(RISC)微控制器,具有丰富的中断功能。其中功能强大的中、高挡型号的中断源有18种之多。在PIC单片机家族中,排位属于中上水平的PIC16F87X子系列单片机具备的中断源多达14种。其中,单片机的型号不同,中断源的种类、个数也不同,如表1所列。其不足之处是:中断矢量只有1个,并且各个中断源之间也没有优先级别之分,不具备非屏蔽中断。 
              </P>
              <DIV align=center><B>表1 PIC16F87X单片机的中断源及其数量</B> </DIV>
              <TABLE align=center border=1 cellPadding=0 cellSpacing=0 
              width="90%">
                <TBODY>
                <TR>
                  <TD width="25%">中断源种类</TD>
                  <TD width="16%">中断源志位</TD>
                  <TD width="14%">中断源蔽位</TD>
                  <TD width="8%">873/ 876</TD>
                  <TD width="7%">874/ 877</TD>
                  <TD width="8%">870</TD>
                  <TD width="9%">871</TD>
                  <TD width="13%">872</TD></TR>
                <TR>
                  <TD width="25%">外部触发中断INT</TD>
                  <TD width="16%">INTF</TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -