期刊文献+

C51与汇编语言混合编程在单片机IAP中的应用 被引量:4

Application of C51 and Assembler′s Program in IAP for Microcontroller
下载PDF
导出
摘要 单片机在应用中编程IAP(InApplicationProgramming)是单片机应用的新技术,可以实现用户应用程序对FLASH存储器编程、擦除和读存储器等功能,但是,使用单片机高级语言C51编程开发应用程序时不容易直接调用IAP功能。介绍了P89C51RD2单片机闪存的操作特点及其IAP功能实现原理。结合C51调用汇编语言子程序时的参数传递规律,分析应用C51与汇编语言混合编程向特定寄存器中写入相应参数调用IAP功能子程序的方法。通过实例,给出了向IAP子程序传递参数的C51程序及相应的汇编程序,实现了IAP功能。在KeilμVision2下仿真和实验,该方法切实可行。 In-Application Programming(lAP) is developed as the newest technique in design or development for microcontroller application system. User program can erase Flash program memory block ,program byte and verify byte. However ,it is difficult to call the lAP routines directly in application developed with microcontroller's high level language C51. The basic principle of lAP in P89C51RD2 microcontroller is introduced,as well as the characteristics of Flash program memory with lAP. The method for lAP by C51 and assembler program is analysed,which achieves the aim for communicating with the lAP routines by delivering parameters to special registers based on the regulation of parameters delivers. This paper demonstrates the application instance which is developed by C51 and corresponding assembler program,realizs the IAP function. The simulation and test result show that the scheme is correct and effective.
机构地区 陕西理工学院
出处 《现代电子技术》 2005年第23期106-108,共3页 Modern Electronics Technique
关键词 IAP C51 P89C51RD2单片机 汇编程序 IAP C51 P89C51RD2 single chip assembler program
  • 相关文献

参考文献4

  • 1梁合庆.P89C51RX+/RX2单片机及其ISP/IAP技术[J].单片机与嵌入式系统应用,2001(2):42-50. 被引量:5
  • 2Circuit and In -Application Programming of the 89C51Rx+/Rx2/66x Microcontrollers [EB/OL] .http://www.semiconductors. philips. com/pip/p89c51rb2hba.
  • 3P89C51RB2/P89C51RC2/P89C51RD2-80C51 8-bit FLASH Microcontroller Family. Philips Semiconductor,2001.
  • 4李建忠.单片机原理及应用[M].西安:西安电子科技大学出版社,2003..

共引文献4

同被引文献20

引证文献4

二级引证文献9

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部