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

一种基于PIC16系列单片机的防程序飞溢编程方法
引用本文:张光,李学仁. 一种基于PIC16系列单片机的防程序飞溢编程方法[J]. 现代电子技术, 2005, 28(14): 75-76,79
作者姓名:张光  李学仁
作者单位:空军工程大学,工程学院,陕西,西安,710038
摘    要:PIC16系列单片机如何安全使用查表指令避免出现程序飞溢现象是编程的难点之一。本文针对此现象进行了研究,分析了产生程序飞溢的几种原因;归纳了应用中经常遇到的几种表现;结合实例给出了一种安全实用的解决方案,并采用流程图和编程相结合的方式与PCLATH的0~3位预置判别法进行了比较。本方法指令语句简单、可靠性高、易于操作,对初学者和其他技术人员有很大的帮助。经在CDJ-01充电站环境自动监控系统应用,证明具有一定的实用价值。

关 键 词:PIC16 查表 飞溢 编程 CDJ-01
文章编号:1004-373X(2005)14-075-02

Programming Method of an Avoidance Overflowing Based on PIC16 Series Single Chip
ZHANG Guang,LI Xueren. Programming Method of an Avoidance Overflowing Based on PIC16 Series Single Chip[J]. Modern Electronic Technique, 2005, 28(14): 75-76,79
Authors:ZHANG Guang  LI Xueren
Abstract:How to use lookup order safely to avoid overflowing condition of PIC16 series single chip is one of the difficulties in programming.In this paper, overflowing phenomena of PIC series single chip is discussed, several reasons and practice expressions met frequently in actucal practice are analyzed and concluded, and in analyzing some concrete examples, an useful and safe method is proposed ,and the manner of flow chart and programming compare with PCLATH setup discriminance is used.This method has simple sentences, high reliably and easy manipulating.It may be a great help for beginner and other technical man.In application of CDJ01 system of charge station environment automatic monitor, the method proves to be has utility value.
Keywords:PIC16  look up list  overflowing  programming  CDJ-01
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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