摘要
PIC16系列单片机如何安全使用查表指令避免出现程序飞溢现象是编程的难点之一.本文针对此现象进行了研究,分析了产生程序飞溢的几种原因;归纳了应用中经常遇到的几种表现;结合实例给出了一种安全实用的解决方案,并采用流程图和编程相结合的方式与PCLATH的0~3位预置判别法进行了比较.本方法指令语句简单、可靠性高、易于操作,对初学者和其他技术人员有很大的帮助.经在CDJ-01充电站环境自动监控系统应用,证明具有一定的实用价值.
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.
出处
《现代电子技术》
2005年第14期75-76,79,共3页
Modern Electronics Technique