Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for simulating special communication port and microcontroller

A communication port and port technology, applied in the field of devices and microcontrollers, a method of simulating dedicated communication ports, can solve the problems of inability to meet modular design requirements, insufficient number of communication ports, etc., to meet the modular design requirements, The effect of improving use flexibility and reducing use restrictions

Pending Publication Date: 2021-12-17
NINGBO AUX ELECTRIC
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The problem solved by the present invention is that the number of existing communication ports is insufficient, resulting in the problem that the modular design requirements cannot be met

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
  • Method and device for simulating special communication port and microcontroller
  • Method and device for simulating special communication port and microcontroller
  • Method and device for simulating special communication port and microcontroller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the above objects, features and advantages of the present invention more comprehensible, specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0029] The embodiment of the present invention uses a simple and feasible algorithm to simulate a professional communication port by using a timer + an external interrupt port to solve practical problems and meet the modular design requirements of the product.

[0030] figure 1 It is a schematic flow chart of a method for simulating a dedicated communication port in an embodiment of the present invention, the method includes:

[0031] S102, setting the interrupt trigger mode of the port.

[0032] Specifically, the interrupt trigger mode may be a low-level trigger or a high-level trigger, and the port is an external interrupt port or a general-purpose input / output port (General-purpose input / output, GPIO). If it is a low-level trigger, th...

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 a method and a device for simulating a special communication port and a microcontroller. The method comprises the following steps: setting an interrupt triggering mode of the port; if it is detected that the port receives the correct interrupt trigger level, detecting whether the start bit of the current byte is correct; if the start bit is correct, controlling the port continues to receive the level signal until the data bit of the current byte is received; and if the end bit of the current byte is detected to be correct, continuing to receive the next byte until the data receiving is finished. According to the invention, other ports can simulate special communication ports, so that the use limitation of the microprocessor caused by insufficient special communication ports is reduced, the use flexibility of the microprocessor is improved, and the modular design requirement can be met.

Description

technical field [0001] The invention relates to the technical field of microcontroller communication, in particular to a method, device and microcontroller for simulating a dedicated communication port. Background technique [0002] With the multi-functional and intelligent trend of home appliances, in order to meet the differentiated needs of different users, electronic products mostly adopt modular design. When a certain function needs to be added, the functional module of this function is plugged in. Therefore, the demand for the number of communication ports of the MCU (Microcontroller Unit, microcontroller) used on it is greater, and the number of communication ports is limited, resulting in inability to Meet the modular design requirements. Contents of the invention [0003] The problem solved by the invention is that the number of existing communication ports is insufficient, which leads to the problem that the requirement of modular design cannot be met. [0004]...

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): G06F13/24
CPCG06F13/24
Inventor 张磊
Owner NINGBO AUX ELECTRIC