Implementation method for optimizing chip GPIO drive software

A technology for driver software and implementation methods, applied in software engineering design, program code conversion, instruments, etc., can solve problems such as driver complexity and large software code, and achieve the effects of increasing flexibility, reducing complexity, and reducing size

Inactive Publication Date: 2022-03-25
上海宇思微电子有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the deficiencies in the prior art, the present invention provides an implementation method for optimizing chip GPIO driver software, which solves the problems of driver complexity and large software codes

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
  • Implementation method for optimizing chip GPIO drive software
  • Implementation method for optimizing chip GPIO drive software

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0025] like figure 1 As shown, the embodiment of the present invention provides an implementation method for optimizing chip GPIO driver software, comprising the following steps:

[0026] S1. The software reads the definition and description of the pins. The definition and description of the pins includes the dimensions of the actual components, the space they occupy, and the distance between the pins.

[0027] S2. The user selects the corresponding function configuration.

[0028] S3. The software reads the corresponding function configuration and pin definition description selected by the user. The choice of function configuration does not need to know the implementation method of the driver software. The choice of function configuration is based on the description of the pin definition, and the driver software only configures the parameters to In the chip, the driver software is a special program that enables the computer to communicate with the device. The operating syste...

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 provides an implementation method for optimizing chip GPIO (General Purpose Input/Output) driving software. The implementation method based on chip GPIO drive software optimization comprises the following steps that S1, software reads definition description of a pin, S2, a user selects corresponding function configuration, S3, the software reads the corresponding function configuration and the pin definition description selected by the user, S4, the software analyzes the pin definition description and the function configuration in a program S3 through the pin configuration, and S5, the chip GPIO drive software is obtained. And generating pin configuration parameters according to the defined rule. According to the method, traditional driving software is divided into two parts, a function definition part is stripped, the complexity of the driving software is reduced, the flexibility of the software is improved, and the size of a code is reduced, according to the method provided by the invention, initially configured parameters are generated by a tool of a PC (Personal Computer) end, and the driving software only configures the parameters into a chip, so that the cost is reduced; corresponding codes do not need to be contained, and after configuration parameterization, driving software does not need to distinguish application scenes, so that the method is more universal.

Description

technical field [0001] The invention relates to the technical field of chip GPIO pin driver software configuration in an embedded system, in particular to an implementation method for optimizing chip GPIO driver software. Background technique [0002] The GPIO port of the single chip microcomputer has limited driving capability and cannot directly drive higher power loads. If the load power is higher, it is necessary to consider the way of driving power devices, such as transistors, MOS tubes and other dedicated driver chips. The way the single chip microcomputer adopts to improve the driving capability mainly depends on the controlled load. For example, loads such as buzzers and relays are generally driven by triodes, and the single-chip microcomputer can control the triodes. The single-chip microcomputer is programmable, and its appearance makes the function of the product very rich. Compared with pure digital circuits, the realization of software logic is easier than pur...

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): G06F8/41
CPCG06F8/4435G06F8/447
Inventor 梁孔丽聂中平
Owner 上海宇思微电子有限公司
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