首页 | 本学科首页   官方微博 | 高级检索  
     

用优先权编码器扩展PIC的外部中断源
引用本文:刘子胥,陈金辉,姚振静.用优先权编码器扩展PIC的外部中断源[J].电力自动化设备,2007,27(4):115-117.
作者姓名:刘子胥  陈金辉  姚振静
作者单位:河北工业大学,电气与自动化学院,天津,300130
摘    要:由于PIC16F 877单片机没有设置外部的中断优先级,提出了一种用74LS148优先权编码器来扩展PIC16F 877单片机的外部中断源。当PIC16F 877单片机外部有多个中断源中断请求时,74LS148优先权编码器首先对这些中断源进行优先级排序,把优先级别高的中断送入单片机中断入口,让单片机响应中断级别高的中断请求,处理完这一中断后返回,等待下一轮中断请求。给出了PIC16F 877和74LS148的硬件连接图和中断服务子程序。

关 键 词:优先权编码器  外部中断源  中断服务子程序
文章编号:1006-6047(2007)04-0115-03
收稿时间:2006-03-15
修稿时间:2006-03-152006-11-15

Expanding outer interrupt requests of PIC16F 877 single chip with priority encoder 74LS 148
LIU Zi-xu,CHEN Jin-hui,YAO Zhen-jing.Expanding outer interrupt requests of PIC16F 877 single chip with priority encoder 74LS 148[J].Electric Power Automation Equipment,2007,27(4):115-117.
Authors:LIU Zi-xu  CHEN Jin-hui  YAO Zhen-jing
Affiliation:Hebei University of Technology,Tianjin 300130,China
Abstract:As PIC16F877 has no priority of outer interruption requests,a method of using priority encoder 74LS148 to expand its outer interruption requests is proposed.When there are several outer interruption requests,74LS 148 sorts them according to their priorities first,the request with higher priority is then sent to the interruption input of PIC16F877.When the interruption is processed completely,PIC16F 877 waits for next interruption request.The hardware connections between PIC168F 877 and 74LS 148,as well as the interruption service subroutine,are provided.
Keywords:priority encoder  outer interrupt request  interrupt service subroutine
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《电力自动化设备》浏览原始摘要信息
点击此处可从《电力自动化设备》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号