Method and device for executing single-chip microcomputer program

An execution method and single-chip microcomputer technology, applied in the computer field, can solve problems such as low execution efficiency of single-chip microcomputer programs, and achieve the effect of improving execution efficiency

CN109471663BActive Publication Date: 2022-04-05ZHUHAI GREE INTELLIGENT EQUIP CO LTD +1
22 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2022-04-05

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The present invention provides a method and device for executing a single-chip program. The method includes: when starting the operation of the single-chip microcomputer, starting a timer in the single-chip microcomputer to time the target time of the delay program included in the single-chip microcomputer, wherein the delay The program is a program that is set to delay the operation of the above-mentioned target time; when the timing time reaches the target time, the identification information corresponding to the delay program stored in the timer is converted from the first identification to the second identification; In the case of the delay program, it is detected whether the identification information stored in the timer is the second identification; if it is detected that the identification information is the second identification, the delay program is executed. The invention solves the problem of low execution efficiency of the single-chip computer program in the related art, and further achieves the effect of improving the execution efficiency of the single-chip computer program.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computers, in particular to a method and device for executing a single-chip microcomputer program. Background technique

[0002] In the programming of single-chip microcomputer, it is often necessary to use delay to process some programs. Generally, a loop is often used to produce a delay effect. This method is suitable for simple program design, but other programs cannot be executed during the cycle delay. During the running of the program, it will cause a serious waste of the performance of the single-chip microcomputer. And with the increase of functions, the single-chip microcomputer program becomes more complicated, and the program operation efficiency becomes lower.

[0003] For the above problems, no effective solution has been proposed yet. Contents of the invention

[0004] Embodiments of the present invention provide a method and device for executing a single-chip computer program, so as to at least...

Examples

Embodiment Construction

[0021] Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0022] It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.

[0023] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, figure 1 It is a block diagram of the hardware structure of the mobile terminal according to the execution method of the single-chip microcomputer program in the embodiment of the present invention. Such as figure 1 As shown, the m...