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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


