Method and microcontroller for driving in-system programming

The embodiment of the invention provides a method for driving in-system programming and a microcontroller. The method comprises the following steps: receiving a group of driving codes; setting an in-system programming flag according to the driving code; after the setting of the system programming fl...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: JANG MOON-SEOK
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a method for driving in-system programming and a microcontroller. The method comprises the following steps: receiving a group of driving codes; setting an in-system programming flag according to the driving code; after the setting of the system programming flag is completed, executing a system reset; after the system is reset, detecting whether an in-system programming flag exists or not; and executing an in-system programming program when the in-system programming flag is detected. According to the method for driving in-system programming and the microcontroller provided by the embodiment of the invention, the starting time is not influenced, an additional circuit is not needed, and an ISP function of user function operation is not influenced. 本发明实施例提供一种用于驱动在系统编程的方法及微控制器,该方法包括:接收一组驱动码;依据驱动码,设置一在系统编程旗标;在在系统编程旗标设置完成后,执行一系统重置;在系统重置完成后,检测是否有在系统编程旗标;以及当检测到在系统编程旗标,执行一在系统编程程序。本发明实施例提供的用于驱动在系统编程的方法及微控制器,不影响开机时间、不需额外电路,也不会影响用户功能操作的ISP功能。