引用本文:刘子胥,陈金辉,姚振静.用优先权编码器扩展PIC的外部中断源[J].电力自动化设备,2007,27(4):115-117
.Expanding outer interrupt requests of PIC16F 877 single chip with priority encoder 74LS 148[J].Electric Power Automation Equipment,2007,27(4):115-117
【打印本页】   【HTML】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 3745次   下载 1424 本文二维码信息
码上扫一扫!
用优先权编码器扩展PIC的外部中断源
刘子胥,陈金辉,姚振静
作者单位
摘要:
由于PIC16F 877单片机没有设置外部的中断优先级,提出了一种用74LS148优先权编码器来扩展PIC16F 877单片机的外部中断源。当PIC16F 877单片机外部有多个中断源中断请求时,74LS148优先权编码器首先对这些中断源进行优先级排序,把优先级别高的中断送入单片机中断入口,让单片机响应中断级别高的中断请求,处理完这一中断后返回,等待下一轮中断请求。给出了PIC16F 877和74LS148的硬件连接图和中断服务子程序。
关键词:  优先权编码器,外部中断源,中断服务子程序
DOI:
分类号:TP368.1
基金项目:
Expanding outer interrupt requests of PIC16F 877 single chip with priority encoder 74LS 148
LIU Zi-xu  CHEN Jin-hui  YAO Zhen-jing
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.
Key words:  priority encoder,outer interrupt request,interrupt service subroutine

用微信扫一扫

用微信扫一扫