摘要
针对单片机下载程序时需要重复机械式复位产生的一系列调试繁琐的问题,提出了一种用软件引导代替单片机硬件复位写入ROM的方法。该方法通过检测串口数据流是否合法,来判断是否执行ISP引导程序,从而利用软件方式复位,可以让STC单片机复位后从ISP引导程序处执行,利用该特性可以模拟单片机上电复位状态,实现单片机的不断电下载。
As to download the program for MCU that the mechanical reset need to repeat a series of complicated debugging problem, presented a guide of using software to write the ROM instead of hardware reset method. The method is by testing the legality of the serial data stream to determine whether the ISP boot program execution, which means using software to reset. The MCU can be reset with STC ISP boot program, with the use of this feature to simu- late MCU power-on reset, MCU can get the uninterruptible power download accomplishment.
出处
《电子科技》
2013年第2期76-78,共3页
Electronic Science and Technology
基金
北京市人才强教深化计划--学术创新人才基金资助项目(PHR201006117)