Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Control method and device based on MCU (Microprogrammed Control Unit) serial port communication

A serial port communication and control method technology, applied in the field of communication, can solve the problems of large system consumption and slow transmission of communication data, and achieve the effects of reducing system power consumption, solving large system consumption, and solving slow transmission

Active Publication Date: 2018-11-30
深圳市沃特沃德信息有限公司
View PDF11 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a control method and device based on MCU serial port communication, aiming to solve the problems of slow communication data transmission and large system consumption

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
  • Control method and device based on MCU (Microprogrammed Control Unit) serial port communication
  • Control method and device based on MCU (Microprogrammed Control Unit) serial port communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0025] refer to figure 1 , the embodiment of the present invention proposes a control method based on MCU serial port communication, comprising the following steps:

[0026] Step S11, configure the first timing period of the first timer of MCU-A.

[0027] In step S11, the system automatically configures the first timing period of the first timer according to the parameters set in advance, and uses the timer to control the system to automatically close the serial port, avoiding frequent switching of the serial port power supply.

[0028] The first timing period of the first timer is set according to the amount of data actually transmitted by the project and the transmission frequency. The preferred setting time is 1000ms. The first timing period is the parameter value set after initialization, and the parameter value ...

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 control method and device based on MCU (Microprogrammed Control Unit) serial port communication. The method comprises the following steps: configuring a first timing period of a first timing device of an MUC-A; when the first timing period of the first timing device exceeds the time limit, pulling up a GPIO-A of the MUC-A to send a first external part interrupt signal toan MUC-B; starting a second timing period of the first timing device; judging whether the MUC-A receives a second external part interrupt signal which is sent by pulling up a GPIO-B via the MUC-B or not within the second timing period; if the MUC-A receives the second external part interrupt signal, switching off a serial port power supply of the MUC-A; if the MUC-A does not receive the second external part interrupt signal, switching off the serial port power supply of the MUC-A after the second timing period exceeds the time limit. According to the control method based on the MCU serial portcommunication, disclosed by the invention, a data receiving / transmitting request can be rapidly responded; when no data exchange exists, serial ports of double parties are switched off, so that the power consumption of a system can be effectively reduced and the cruising duration of the system is improved.

Description

technical field [0001] The present invention relates to the communication field, in particular to a control method and device based on MCU serial port communication. Background technique [0002] In current wearable devices, many of them use two chips to process different logics respectively. For example, one chip is responsible for peripheral data acquisition, and the other is responsible for user logic and data display. When one of the chips collects enough data, it must be transmitted to another chip for storage and display. [0003] Since the two chips need to transmit data to each other at any time, it is obviously unreasonable to use interfaces such as I2C and SPI, and the memory cannot be shared between the two chips, so the hardware design can meet the communication requirements between the two chips. The only way is the serial port. [0004] For general design, it is often to keep the serial port between the two chips in the power-on and normally open state, so th...

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
IPC IPC(8): G06F13/42G06F13/24
CPCG06F13/24G06F13/4282Y02D10/00
Inventor 雷发禹黄丰凯赵广钟惠娟陆小琪
Owner 深圳市沃特沃德信息有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products