Microcontroller operation method and terminal

A technology of microcontroller and operation method, applied in the direction of program control design, program control device, instrument, etc., can solve other problems such as unsupported, large space, and inapplicability of large-scale operating systems, so as to improve the application rate and reduce the file size Effect

Pending Publication Date: 2021-09-17
SHENZHEN INHEMETER
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the ROM (Read-Only Memory, read-only memory) and RAM (Random Access Memory, random access memory) space required to run a large-scale operating system are very large, and the controller itself needs to have an MMU (Memory Management Unit, memory management unit) function to realize the conversion between virtual addresses and physical addresses, and prevent applications from running in the same or overlapping space. Due to the limitations of the above conditions, the program structure of large operating systems is not suitable for microcontrollers
[0004] Therefore, small real-time operating systems tailored for microcontrollers have appeared, such as free-rtos, rt-thread, ucos, uclinux, etc., but currently in the application field of microcontrollers, in addition to uclinux, operating system programs can be implemented. , device drivers, and application independence, others do not support this method
Moreover, although uclinux can implement this method, it needs the support of the file system, so that the minimum consumed ROM space needs to be hundreds of KB, which cannot meet the requirements of many microcontrollers.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Microcontroller operation method and terminal
  • Microcontroller operation method and terminal
  • Microcontroller operation method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0069] Please refer to figure 1 , a method for operating a microcontroller, comprising the steps of:

[0070] S1. Receive a space allocation request, and allocate a corresponding independent storage space for the kernel program, application program, and device driver of the microcontroller according to the space allocation request;

[0071] Specifically, in this embodiment, the program structure of the microcontroller includes a kernel program, an application program, and a device driver, wherein the kernel program is developed based on the real-time operating system kernel, and realizes the creation, startup, scheduling, and upgrade of the application program and other operations, and provide communication interfaces for each application program; application program is an indispensable part of software design, and it is one or more programs that realize functional requirements, and it contains one or more tasks inside; device driver program is for The external devices of the...

Embodiment 2

[0093] The difference between this embodiment and Embodiment 1 is that it further defines how to manage all application programs through the kernel program:

[0094] Specifically, all application programs are scheduled through the scheduler of the kernel program;

[0095] Upgrade all the application programs by executing the upgrade program in the kernel program;

[0096] Please refer to image 3 , in this embodiment, the scheduler of the kernel program schedules and executes all application programs, and includes an upgrade task in the main program of the kernel program, and judges whether there is an application program that needs to be upgraded through the upgrade task, and if so, restricts other applications The program accesses all resources of the application program to be upgraded, stops the application program to be upgraded, and then upgrades and starts the application program to be upgraded, thereby realizing the management of the application program through the kerne...

Embodiment 3

[0098] Please refer to figure 2 , an operating terminal of a microcontroller, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the first embodiment or the first embodiment when executing the computer program Second, the various steps of the method of operating the microcontroller.

[0099] In summary, the operating method and terminal of a microcontroller provided by the present invention can allocate corresponding independent ROM and RAM storage spaces for the kernel program, application program and device driver of the microcontroller according to the space allocation request, and can It avoids the fact that each program runs in the same or overlapping space because there is no memory management unit; when starting the kernel program, it includes the initialization of the kernel program and the establishment of a synchronization mechanism to facilitate subsequent management of the applic...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a microcontroller operation method and terminal. The method comprises the following steps: allocating corresponding independent storage spaces for a kernel program, an application program and an equipment driving program of a microcontroller according to a space allocation request, so that the situation that due to the fact that no memory management unit exists, all the programs run in the same or overlapped space can be avoided; and using the kernel program to obtain creation information of the application program and the equipment driving program, and creating and starting the application program and the equipment driving program, so that data of the application program and the equipment driving program in the storage spaces are directly called through the kernel program, and a file system does not need to be introduced to manage memory. Therefore, the file size of the microcontroller is greatly reduced, the storage space of the kernel program, the storage space of the application program and the storage space of the equipment driving program can be independent of one another, and the application rate of the microcontroller is increased.

Description

technical field [0001] The present invention relates to the technical field of controllers, in particular to a microcontroller operating method and a terminal. Background technique [0002] With the increasing living standards, people have more and more demands on the functions of electronic products, which makes the program design more and more complicated. If the program structure is not well designed, the program will be complicated, which is not conducive to the development and maintenance of product programs. And transplantation, so large-scale operating systems for high-end controllers, such as windows, linux, android, and ios, have emerged as the times require, all of which can realize the independence of operating system programs, device drivers, and application programs, making the program structure clear. [0003] However, the ROM (Read-Only Memory, read-only memory) and RAM (Random Access Memory, random access memory) space required to run a large-scale operating ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F9/50
CPCG06F9/44578G06F9/5016
Inventor 李小亚王占颍
Owner SHENZHEN INHEMETER
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products