CN111064647B - UART communication device with low power consumption - Google Patents

UART communication device with low power consumption Download PDF

Info

Publication number
CN111064647B
CN111064647B CN201911255236.9A CN201911255236A CN111064647B CN 111064647 B CN111064647 B CN 111064647B CN 201911255236 A CN201911255236 A CN 201911255236A CN 111064647 B CN111064647 B CN 111064647B
Authority
CN
China
Prior art keywords
uart
microcontroller
frequency
low
self
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911255236.9A
Other languages
Chinese (zh)
Other versions
CN111064647A (en
Inventor
应英武
马晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Viewshine Intelligent Meter Co Ltd
Original Assignee
Zhejiang Viewshine Intelligent Meter Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Viewshine Intelligent Meter Co Ltd filed Critical Zhejiang Viewshine Intelligent Meter Co Ltd
Priority to CN201911255236.9A priority Critical patent/CN111064647B/en
Publication of CN111064647A publication Critical patent/CN111064647A/en
Application granted granted Critical
Publication of CN111064647B publication Critical patent/CN111064647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40039Details regarding the setting of the power status of a node according to activity on the bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Microcomputers (AREA)
  • Power Sources (AREA)
  • Transceivers (AREA)

Abstract

The invention provides a UART communication method with low power consumption. The method comprises a circuit board and a circuit board, the low-frequency oscillating circuit provides a low-frequency working clock for the microcontroller and an external UART self-nail inside the microcontroller, the external UART self-nail is respectively connected with a UART receiving pin ⒄ and a UART transmitting pin in a vertical manner through the microcontroller and a UART transmitting pin self-acting, and therefore the microcontroller and the UART physical layer of the intelligent module are in communication. The microcontroller core is connected with the external UART self-bearing through an AHB bus and a bus bridging mode, the interrupt controller in the microcontroller core can receive and manage an interrupt signal from the external UART self-bearing, the microcontroller is waken from a dormant state according to the received interrupt signal to start normal work, and a high-frequency working clock is provided by the high-frequency oscillator. The method of the invention can save the electric energy consumption of UART communication, prolong the service life of the battery and generate better social benefit and economic benefit.

Description

UART communication device with low power consumption
Technical Field
The invention relates to a technical scheme of low-power-consumption UART communication application, in particular to UART communication application between circuit boards on battery-powered intelligent terminal equipment or between module circuits on the circuit boards and the module circuits.
Background
At present, the known UART communication application technology generally does not have a low-power consumption communication function, but requires a microcontroller to keep an awake state to transmit or receive serial data of UART communication, and when the content of the transmitted serial data is large, the microcontroller inside the intelligent terminal needs to keep the awake state for a long time to transmit and receive data, but cannot enter a sleep state, which consumes much electric energy. If the battery is used for supplying power and the communication is frequent, the UART communication function has higher requirements on the continuous power supply capacity of the battery, so that the service life of the battery is influenced, and the use experience of a client of an intelligent terminal product is influenced finally.
Disclosure of Invention
Aiming at the problem of the existing high-power UART communication application, the invention provides a low-power UART communication method, which integrates a low-power peripheral UART interface through a microcontroller, and uses the microcontroller as a main control unit to carry out low-power design on UART communication of an intelligent terminal, thereby finally solving the high-power problem in the UART communication process and being suitable for the battery power supply situation.
A low-power-consumption UART communication method comprises a circuit board and a circuit board.
The circuit board comprises a low-frequency crystal oscillator, a bias resistor, a load capacitor and a microcontroller, wherein the microcontroller comprises a UART self-absorption function, a microcontroller core, an inverter, a high-frequency oscillator, a UART sending pin and a UART receiving pin; the low-frequency crystal oscillator sixteenth, the bias resistor and the load capacitor are grounded, the microcontroller and the internal inverter form a low-frequency oscillating circuit, and the low-frequency oscillating function is achieved.
The circuit board two be the communication object of low-power consumption UART, including the intelligent module four that need adopt UART mode communication, intelligent module four include that UART receives pin qi and is showing and UART sends pin ⒄.
The low-frequency oscillating circuit provides a low-frequency working clock for the microcontroller and the internal external UART self-supporting, the external UART self-supporting is respectively connected with the UART receiving pin ⒄ and the UART transmitting pin W of the intelligent module fourth through the microcontroller and the UART transmitting pin self-acting and the UART receiving pin self-acting, and therefore the microcontroller and the UART physical layer communication of the intelligent module fourth are achieved. The microcontroller core is connected with the external UART self-bearing through an AHB bus and a bus bridging mode, the interrupt controller in the microcontroller core can receive and manage an interrupt signal from the external UART self-bearing, the microcontroller is waken from a dormant state according to the received interrupt signal to start normal work, and a high-frequency working clock is provided by the high-frequency oscillator.
The low-frequency crystal oscillator is an external crystal oscillator mounted on a circuit board, and is made of quartz materials with inherent frequency of 32.768 kHz.
The bias resistor-clip is a resistor mounted on a circuit board and provides bias voltage for an inverter, so that the inverter operates in a linear region, and a large gain is obtained.
The load capacitor is a capacitor mounted on a circuit board, two capacitors and the low-frequency crystal oscillator are selected to form a pi-type network band-pass filter, and 180-degree phase shift and required voltage gain are provided for the low-frequency oscillating circuit fifthly at the natural frequency of the quartz crystal of 32.768 kHz.
The external UART self-supporting device is an important functional part for realizing low-power consumption UART communication inside the microcontroller.
The microcontroller core is provided with the content-M0 + of ARM as a core control unit.
The inverter can invert the phase of the input signal by 180 degrees and adopts a CMOS device.
The high-frequency oscillator is a microcontroller, an internal working clock source during waking up, and an RC oscillator is adopted.
The invention has the following beneficial effects:
because the design research and development of the intelligent terminal at present, the microcontroller UART communication is a stock function, and the method is popularized and applied under the condition of battery power supply, so that the electric energy consumption of the UART communication can be saved, the service life of the battery is prolonged, and better social benefit and economic benefit can be generated.
Drawings
Fig. 1 is a circuit block diagram according to an embodiment of the present invention.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
As shown in fig. 1, the low-power UART communication method of the present invention includes a circuit board.
The circuit board comprises a low-frequency crystal oscillator sixteenth, a bias resistor and a load capacitor, and a microcontroller third, wherein the microcontroller third comprises a UART self-absorption outside, a microcontroller core, a reverser, a high-frequency oscillator, a UART transmitting pin self-absorption and a UART receiving pin self-absorption; the low-frequency oscillation circuit comprises a low-frequency crystal oscillator sixteenth, a bias resistor sids, a load capacitor and a microcontroller, and a low-frequency oscillation circuit is formed by an internal inverter so that the low-frequency oscillation function is achieved.
The circuit board is a communication object of the low-power-consumption UART, and comprises an intelligent module needing to communicate in a UART mode, and the intelligent module comprises a UART receiving pin I/O and a UART sending pin ⒄.
The low-frequency oscillating circuit provides a low-frequency working clock for the microcontroller and the internal external UART self-supporting device, the external UART self-supporting device is respectively connected with the UART receiving pin ⒄ and the UART transmitting pin in the intelligent module fourth through the microcontroller and the UART transmitting pin and the UART receiving pin quick-acting device, and therefore communication between the microcontroller and the UART physical layer in the intelligent module fourth is achieved. The microcontroller core is connected with the external UART self-bearing through an AHB bus and a bus bridging mode, the interrupt controller in the microcontroller core can receive and manage an interrupt signal from the external UART self-bearing, the microcontroller is waken from a dormant state according to the received interrupt signal to start normal work, and a high-frequency working clock is provided by the high-frequency oscillator.
The low-frequency crystal oscillator is an external crystal oscillator mounted on a circuit board, and the specification of a quartz material with the inherent frequency of 32.768kHz is selected.
The bias resistor-how is a resistor mounted on the circuit board and provides a bias voltage to the inverter, so that the inverter operates in a linear region, thereby obtaining a large gain.
The load capacitor is a capacitor mounted on the circuit board, two capacitors and the low-frequency crystal oscillator are selected to form a pi-type network band-pass filter, and 180-degree phase shift and required voltage gain are provided for the low-frequency oscillating circuit fifthly at the natural frequency of the quartz crystal of 32.768 kHz.
The UART self-supporting is an important functional component for realizing low-power consumption UART communication inside the microcontroller.
The microcontroller core is provided with the CONTEX-M0+ of ARM as a core control unit.
The inverter may invert the phase of the input signal by 180 degrees, and may employ a CMOS device.
The high-frequency oscillator is a microcontroller, an internal working clock source during waking up, and an RC oscillator is adopted.
The low-frequency crystal oscillator comprises a low-frequency oscillating circuit formed by a low-frequency crystal oscillator sixteenth, a bias resistor fourth, a load capacitor and a microcontroller, a low-frequency operating clock is provided for the microcontroller and an external UART self-acting clock is arranged inside the microcontroller, the external UART self-acting clock is respectively connected with a UART receiving pin ⒄ of the intelligent module fourth and the UART transmitting pin vertically through the UART transmitting pin self-acting of the microcontroller, and therefore the microcontroller is communicated with a UART physical layer of the intelligent module fourth. The microcontroller core is connected with the external UART self-sustaining body in an AHB bus and bus bridging mode, the interrupt controller in the microcontroller core can receive and manage an interrupt signal from the external UART self-sustaining body, according to the interrupt signal, the microcontroller is waken up from a sleep state to start normal work, and a high-frequency working clock is provided by the high-frequency oscillator.
The following explains the low power consumption communication principle of this embodiment from the data transmission and data reception processes in the UART communication process on the circuit board.
In the UART communication process, when a microcontroller on a circuit board needs to send data to an intelligent module, an inner core of the microcontroller normally works at first, a working clock is provided by a high-frequency oscillator, the first byte data to be sent is written into a self-designed UART under the control of a program instruction, after the writing is finished, the microcontroller enters a dormant state, the self-designed UART completes the whole sending process of the data byte under the drive of a low-frequency working clock provided by a low-frequency oscillating circuit, the data byte is completely transmitted from a UART sending pin to a UART receiving pin ⒄ of the intelligent module in a serial mode, after the sending is finished, the external UART sends an interrupt request signal to an interrupt controller in the inner core of the microcontroller at a high speed, the microcontroller wakes up from the dormant state, the microcontroller starts to normally work, and under the drive of the high-frequency working clock provided by the high-frequency oscillator, the microcontroller core processes the UART sending interrupt program under the coordination of the interrupt controller and the reference, writes the next byte to be sent into the external UART self-supporting body, then the microcontroller enters the dormant state, only keeps the external UART self-supporting body working under the driving of the low-frequency clock provided by the low-frequency oscillating circuit and finishes the sending process of the byte, and the steps are repeated in a circulating mode until all data are sent. In summary, in the data sending process, the microcontroller is in the sleep state, and the microcontroller is awakened to work only after each byte is sent, and the work content is only the sending preparation work for processing the next byte in the interrupt program, so that the awakening sending time is saved, and finally the electric energy consumption is saved.
In the UART communication process, when the microcontroller three on the circuit board needs to receive data from the intelligent module four, the inner core of the microcontroller is in a dormant state at first, the external UART is driven by the low-frequency working clock to complete the whole receiving process of the data bytes, the UART sending pin of the intelligent module is completely received after the data transmitted from the UART sending pin to the UART receiving pin is completely received, the UART self-supporting outside sends an interrupt request signal to the microcontroller core, and the interrupt controller in the microcontroller core is selected to wake up the microcontroller from the sleep state, and the microcontroller starts to work normally, under the drive of the high-frequency working clock provided by the high-frequency oscillator, the core of the microcontroller processes the UART receiving interrupt program under the coordination of the selection of the interrupt controller, immediately after the external UART is stored with the received data, the microcontroller immediately enters a dormant state, and the process is repeated in a circulating way until all the data are received. In summary, in the data receiving process, the microcontroller is operated in the sleep state, and the microcontroller is only waken up to operate after receiving each byte, and the work content is only to store the byte data received at the current time in the interrupt program, so that the wakening-up receiving time is saved, and finally the power consumption is saved.
In summary, in the process of transmitting and receiving data of UART communication, the microcontroller is kept in a sleep state, and only when an interrupt service program is transmitted and received, the microcontroller wakes up to work, so that the low power consumption characteristic of the whole UART communication process is ensured, and finally, the power consumption is saved.

Claims (6)

1. A UART communication device with low power consumption is characterized by comprising a circuit board and a circuit board II;
the circuit board comprises a low-frequency crystal oscillator, a bias resistor, a load capacitor and a microcontroller, wherein the microcontroller comprises a UART self-absorption function, a microcontroller core, an inverter, a high-frequency oscillator, a UART sending pin and a UART receiving pin; the low-frequency crystal oscillator sixteenth, the bias resistor and the load capacitor are grounded, the microcontroller and an internal inverter form a low-frequency oscillating circuit, and the low-frequency oscillating function is achieved; the external UART self-supporting device is an important functional part for realizing low-power consumption UART communication inside the microcontroller;
the circuit board is a low-power-consumption UART communication object and comprises an intelligent module needing UART communication, and the intelligent module comprises a UART receiving pin I/O and a UART sending pin ⒄;
the low-frequency oscillating circuit provides a low-frequency working clock for the microcontroller and an internal external UART self-tone, the external UART self-tone is respectively connected with the UART receiving pin ⒄ and the UART transmitting pin of the intelligent module fourth in a transmission and receiving mode through the microcontroller and the UART transmitting pin and the UART receiving pin quick-acting, and therefore communication between the microcontroller and the UART physical layer of the intelligent module fourth is achieved; the microcontroller core is connected with the external UART self-bearing through an AHB bus and a bus bridging mode, the interrupt controller in the microcontroller core can receive and manage an interrupt signal from the external UART self-bearing, the microcontroller is waken from a dormant state according to the received interrupt signal to start normal work, and a high-frequency working clock is provided by the high-frequency oscillator.
2. The UART communication device with low power consumption according to claim 1, wherein the low-frequency crystal oscillator is a quartz material specification with a natural frequency of 32.768kHz, and is an external crystal oscillator mounted on a circuit board.
3. The UART communication device of claim 1, wherein the bias resistor-mangle provides a bias voltage to an inverter for a resistor mounted on a circuit board, so that the inverter operates in a linear region, thereby obtaining a large gain.
4. The UART communication device with low power consumption according to claim 1, wherein the load capacitance is varied, two capacitors and a low-frequency crystal oscillator are selected to form a pi-type network band-pass filter for a capacitor mounted on a circuit board, and 180-degree phase shift and required voltage gain are provided for a low-frequency oscillation circuit at the inherent frequency of a quartz crystal of 32.768 kHz.
5. The UART communicator of claim 1, wherein the microcontroller core is configured to use ARM CONTEX-M0+ as a core control unit; the inverter can invert the phase of the input signal by 180 degrees and adopts a CMOS device; the high-frequency oscillator is a microcontroller, an internal working clock source during waking up, and an RC oscillator is adopted.
6. The UART communicator of claim 1, wherein:
in the UART communication process, when a microcontroller on a circuit board needs to send data to an intelligent module, an inner core of the microcontroller normally works at first, a working clock is provided by a high-frequency oscillator, the first byte data to be sent is written into a self-designed UART under the control of a program instruction, after the writing is finished, the microcontroller enters a dormant state, the self-designed UART completes the whole sending process of the data byte under the drive of a low-frequency working clock provided by a low-frequency oscillating circuit, the data byte is completely transmitted from a UART sending pin to a UART receiving pin ⒄ of the intelligent module in a serial mode, after the sending is finished, the external UART sends an interrupt request signal to an interrupt controller in the inner core of the microcontroller at a high speed, the microcontroller wakes up from the dormant state, the microcontroller starts to normally work, and under the drive of the high-frequency working clock provided by the high-frequency oscillator, the kernel of the microcontroller processes the UART sending interrupt program under the coordination of the kernel of the interrupt controller, writes the next byte to be sent into the external UART self-tone, then the microcontroller enters a dormant state, only keeps the external UART self-tone working under the driving of the low-frequency clock provided by the low-frequency oscillation circuit and finishes the sending process of the byte, and the steps are repeated in a circulating way until all data are sent; in conclusion, in the data sending process, the microcontroller is in a dormant state, the microcontroller is awakened for working only after each byte is sent, and the working content is only the sending preparation work for processing the next byte in the interrupt program, so that the awakening sending time is saved, and the electric energy consumption is finally saved;
in the UART communication process, when the microcontroller three on the circuit board needs to receive data from the intelligent module four, the inner core of the microcontroller is in a dormant state at first, the external UART is driven by the low-frequency working clock to complete the whole receiving process of the data bytes, the UART sending pin of the intelligent module is completely received after the data transmitted from the UART sending pin to the UART receiving pin is completely received, the UART self-supporting outside sends an interrupt request signal to the microcontroller core, and the interrupt controller in the microcontroller core is selected to wake up the microcontroller from the sleep state, and the microcontroller starts to work normally, under the drive of the high-frequency working clock provided by the high-frequency oscillator, the core of the microcontroller processes the UART receiving interrupt program under the coordination of the selection of the interrupt controller, immediately after the external UART is subjected to data storage, the microcontroller immediately enters a dormant state, and the process is repeated in a circulating way until all data are received; in summary, in the data receiving process, the microcontroller is operated in the sleep state, and the microcontroller is only waken up to operate after receiving each byte, and the work content is only to store the byte data received at the current time in the interrupt program, so that the wakening-up receiving time is saved, and finally the power consumption is saved.
CN201911255236.9A 2019-12-09 2019-12-09 UART communication device with low power consumption Active CN111064647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911255236.9A CN111064647B (en) 2019-12-09 2019-12-09 UART communication device with low power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911255236.9A CN111064647B (en) 2019-12-09 2019-12-09 UART communication device with low power consumption

Publications (2)

Publication Number Publication Date
CN111064647A CN111064647A (en) 2020-04-24
CN111064647B true CN111064647B (en) 2021-07-16

Family

ID=70300230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911255236.9A Active CN111064647B (en) 2019-12-09 2019-12-09 UART communication device with low power consumption

Country Status (1)

Country Link
CN (1) CN111064647B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1793301A1 (en) * 2005-11-30 2007-06-06 Thomson Licensing Method and apparatus for providing a stable clock signal
CN108282186A (en) * 2018-03-07 2018-07-13 杭州先锋电子技术股份有限公司 A kind of UART communication systems, method, equipment and computer storage media
DE102018204681A1 (en) * 2017-03-27 2018-09-27 Infineon Technologies Ag Digital sensor system
CN109324680A (en) * 2018-08-01 2019-02-12 北京拜克洛克科技有限公司 Embeded processor and its power consumption optimization method and smart lock

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1793301A1 (en) * 2005-11-30 2007-06-06 Thomson Licensing Method and apparatus for providing a stable clock signal
DE102018204681A1 (en) * 2017-03-27 2018-09-27 Infineon Technologies Ag Digital sensor system
CN108282186A (en) * 2018-03-07 2018-07-13 杭州先锋电子技术股份有限公司 A kind of UART communication systems, method, equipment and computer storage media
CN109324680A (en) * 2018-08-01 2019-02-12 北京拜克洛克科技有限公司 Embeded processor and its power consumption optimization method and smart lock

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于CME-M7的扩展UART在嵌入式系统中的应用;郑强;《中国电子商情(基础电子)》;20151031;正文第30-31页 *

Also Published As

Publication number Publication date
CN111064647A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN100442204C (en) System-on-chip chip and its power consumption control method
CN202758480U (en) Power-saving remote control
CN101498964A (en) Wireless modulation-demodulation apparatus and system, sleeping/waking method and terminal
CN110337139B (en) Low-power-consumption control method based on wireless sensor and wireless sensor
CN201867678U (en) Mainboard of computer capable of reducing power consumption during sleep
CN101387896B (en) Method and device for implementing system-on-chip wake and sleep function in SOC
CN105446916A (en) USB bus state switching method and apparatus
CN113805507A (en) Low-power consumption electronic switch device and equipment control system
CN111352496A (en) Low-power-consumption processing method combining single chip microcomputer and LoRa technology
CN111064647B (en) UART communication device with low power consumption
CN108345376B (en) Low-power chip awakening method and device and low-power chip
CN108551205B (en) Power saving method for ultra-low power consumption industrial Internet of things gateway, gateway and gateway system
CN208924233U (en) A kind of super low-power consumption bluetooth-serial ports transparent transmission conversion module
CN208924395U (en) A kind of super low-power consumption lora- serial ports transparent transmission conversion module
CN220085353U (en) Circuit for waking up low-power consumption microcontroller by serial port
CN103617475A (en) A system and a method of energy efficiency management used for a micro remote tracker
CN204856542U (en) Active radio -frequency card and system with passive awakeing up and dormancy function
CN105094268A (en) Control system for reducing clock current in standby state of system
CN114020138B (en) Micro control unit chip and method for reducing electric quantity consumption
CN113900478B (en) Clock module design method suitable for SoC chip
CN205428176U (en) Wall formula ultra -low power consumption touch radio frequency remote controller
CN204609405U (en) A kind of berth lock based on BLE-SoC
CN110262305B (en) ECU crystal oscillator using method
CN113939001A (en) Ultra-low power consumption communication method between MCU and BLE chip
CN209057212U (en) A kind of super long standby time positioning device based on NB-IOT

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant