[go: up one dir, main page]

TWI870205B - Power consumption control method for microcontroller unit and microcontroller unit system using the same - Google Patents

Power consumption control method for microcontroller unit and microcontroller unit system using the same Download PDF

Info

Publication number
TWI870205B
TWI870205B TW113101501A TW113101501A TWI870205B TW I870205 B TWI870205 B TW I870205B TW 113101501 A TW113101501 A TW 113101501A TW 113101501 A TW113101501 A TW 113101501A TW I870205 B TWI870205 B TW I870205B
Authority
TW
Taiwan
Prior art keywords
analog
signal output
output state
monitoring system
power consumption
Prior art date
Application number
TW113101501A
Other languages
Chinese (zh)
Other versions
TW202530930A (en
Inventor
潘彥霖
Original Assignee
新唐科技股份有限公司
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 新唐科技股份有限公司 filed Critical 新唐科技股份有限公司
Priority to TW113101501A priority Critical patent/TWI870205B/en
Priority to CN202410208309.3A priority patent/CN120315569A/en
Application granted granted Critical
Publication of TWI870205B publication Critical patent/TWI870205B/en
Publication of TW202530930A publication Critical patent/TW202530930A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Microcomputers (AREA)

Abstract

A microcontroller unit system is provided. The microcontroller unit system includes: at least one analog component; and a monitoring system, electrically connected to the at least one analog component, for: detecting at least one signal output state of the at least one analog component; determining whether the at least one signal output state of the at least one analog component changes; when it is determined that signal output state of an analog component of the at least one analog component has changed, controlling the analog component to operate in a non-low power consumption state mode; and when it is determined that the signal output state of the analog component has not changed, controlling the analog component to operate in a low power consumption mode, wherein the signal output state includes at least one of current state, voltage state, and bandwidth state.

Description

用於微控制器單元的功耗控制方法及應用其之微控制器 單元系統 Power consumption control method for microcontroller unit and microcontroller using the same Unit system

本發明是有關於一種功耗控制技術,且特別是有關於一種用於微控制器單元的功耗控制方法及應用其之微控制器單元系統。 The present invention relates to a power consumption control technology, and in particular to a power consumption control method for a microcontroller unit and a microcontroller unit system using the same.

由於物聯網(internet of thing,IoT)的應用日益廣泛,各種包含感測器及嵌入式裝置的電子裝置陸續問世。除了輕薄短小且需兼具高效能的特性,為了延長使用壽命,電子裝置及其所包含的微控制器單元(microcontroller unit,MCU)必需盡可能省電。 As the Internet of Things (IoT) is increasingly used, various electronic devices including sensors and embedded devices are coming out one after another. In addition to being thin, light, and compact, they also need to have high performance. In order to extend their service life, electronic devices and the microcontroller units (MCUs) they contain must save power as much as possible.

感測器資料的感測運作及資料通常是由微控制器單元中的類比訊號處理單元(亦稱為類比智慧財產(intellectual property,IP),以下簡稱為類比元件)處理。為了達到高效能的資料分析,類比元件會運轉在高速運轉狀態,導致較耗電的問題。然而,若使類比元件運作於低功耗狀態,會降低類比元件的訊號處理單元特性/能力,進而影響訊號及分析。 The sensing operation and data of the sensor data are usually processed by the analog signal processing unit (also known as analog intellectual property (IP), hereinafter referred to as analog device) in the microcontroller unit. In order to achieve high-performance data analysis, the analog device will operate at a high speed, resulting in a high power consumption problem. However, if the analog device is operated in a low power state, the characteristics/capability of the signal processing unit of the analog device will be reduced, thereby affecting the signal and analysis.

因此,如何降低微控制器單元的功耗且兼具有效的訊號處理能力,是值得研究的重要議題。 Therefore, how to reduce the power consumption of microcontroller units while maintaining effective signal processing capabilities is an important issue worthy of study.

為了解決上述技術問題,本揭露提出一種用於微控制器單元(microcontroller unit,MCU)的功耗控制方法及應用其之微控制器單元系統,以降低功耗。 In order to solve the above technical problems, the present disclosure proposes a power consumption control method for a microcontroller unit (MCU) and a microcontroller unit system using the method to reduce power consumption.

本揭露的實施例提供一種微控制器單元系統,包含:至少一類比元件;以及監控系統,電性連接該至少一類比元件,用於:偵測該至少一類比元件的至少一訊號輸出狀態;判斷該至少一類比元件的該至少一訊號輸出狀態是否改變;當判斷該至少一類比元件中類比元件的一訊號輸出狀態改變時,控制該類比元件運作於非低功耗模式;以及當判斷該類比元件的該訊號輸出狀態未改變時,控制該類比元件運作於低功耗模式,其中該訊號輸出狀態包含一電流狀態、一電壓狀態及一頻寬狀態中至少一者。 The disclosed embodiment provides a microcontroller unit system, comprising: at least one analog element; and a monitoring system electrically connected to the at least one analog element, for: detecting at least one signal output state of the at least one analog element; determining whether the at least one signal output state of the at least one analog element has changed; when determining that a signal output state of the at least one analog element has changed, controlling the analog element to operate in a non-low power mode; and when determining that the signal output state of the analog element has not changed, controlling the analog element to operate in a low power mode, wherein the signal output state includes at least one of a current state, a voltage state, and a bandwidth state.

可選地,該至少一類比元件的數量為複數,以及該監控系統根據複數個類比元件的複數個優先級(priority)依序地偵測該複數個類比元件的複數個訊號輸出狀態及依序地判斷該複數個類比元件的該複數個訊號輸出狀態是否改變。 Optionally, the number of the at least one analog element is plural, and the monitoring system sequentially detects the multiple signal output states of the multiple analog elements according to the multiple priorities of the multiple analog elements and sequentially determines whether the multiple signal output states of the multiple analog elements have changed.

可選地,該監控系統包含硬體計數器(counter)或計時器(timer),用於產生週期訊號,以及該監控系統根據該週期訊號偵測該至少一類比元件的該至少一訊號輸出狀態及判斷該至少一類比元件的該至少一訊號輸出狀態是否改變。 Optionally, the monitoring system includes a hardware counter or timer for generating a periodic signal, and the monitoring system detects the at least one signal output state of the at least one analog component according to the periodic signal and determines whether the at least one signal output state of the at least one analog component changes.

可選地,該監控系統包含硬體感測電路及暫存器(register)中至少一者,以及該監控系統根據該硬體感測電路或該暫存器的旗標(flag)偵測該類比元件的該訊號輸出狀態及判斷該類比元件的該訊號輸出狀態是否改變。 Optionally, the monitoring system includes at least one of a hardware sensing circuit and a register, and the monitoring system detects the signal output state of the analog component and determines whether the signal output state of the analog component changes according to a flag of the hardware sensing circuit or the register.

可選地,該類比元件為數位類比轉換器(digital-to-analog converter,DAC)、類比數位轉換器(analog-to-digital converter,ADC)、類比比較器(analog comparator,ACMP)及運算放大器(operation amplifier,OPA)中一者。 Optionally, the analog component is one of a digital-to-analog converter (DAC), an analog-to-digital converter (ADC), an analog comparator (ACMP) and an operational amplifier (OPA).

本揭露的實施例另提供一種用於微控制器單元的功耗控制方法,該微控制器單元包含至少一類比元件,該功耗控制方法包含:透過監控系統偵測該至少一類比元件的至少一訊號輸出狀態;透過該監控系統判斷該至少一類比元件的非至少一訊號輸出狀態是否改變;當判斷該至少一類比元件中類比元件的訊號輸出狀態改變時,透過該監控系統控制該類比元件運作於非低功耗模式;以及當判斷該類比元件的該訊號輸出狀態未改變時,透過該監控系統控制該類比元件運作於低功耗模式,其中該訊號輸出狀態包含一電流狀態、一電壓狀態及一頻寬狀態中至少一者。 The disclosed embodiment further provides a power consumption control method for a microcontroller unit, the microcontroller unit includes at least one analog element, the power consumption control method includes: detecting at least one signal output state of the at least one analog element through a monitoring system; judging whether the non-at least one signal output state of the at least one analog element has changed through the monitoring system; when judging that the signal output state of the analog element in the at least one analog element has changed, controlling the analog element to operate in a non-low power consumption mode through the monitoring system; and when judging that the signal output state of the analog element has not changed, controlling the analog element to operate in a low power consumption mode through the monitoring system, wherein the signal output state includes at least one of a current state, a voltage state, and a bandwidth state.

基於上述,本揭露的用於微控制器單元的功耗控制方法及應用其之微控制器單元系統可達成降低微控制器單元的功耗且兼具有效的訊號處理能力。 Based on the above, the power consumption control method for a microcontroller unit and the microcontroller unit system using the method disclosed herein can reduce the power consumption of the microcontroller unit and have effective signal processing capabilities.

100:微控制器單元系統 100: Microcontroller unit system

110:類比元件 110: Analog components

120:監控系統 120: Monitoring system

200:微控制器單元系統 200: Microcontroller unit system

210、212、214:類比元件 210, 212, 214: Analog components

220:監控系統 220: Monitoring system

300:監控系統 300: Monitoring system

310:計時器 310:Timer

320:偵測器 320: Detector

S402、S404、S406、S408、S410、S412、S414、S416、S418、S420、S422、S424、S426、S428、S430、S432、S434:步驟 S402, S404, S406, S408, S410, S412, S414, S416, S418, S420, S422, S424, S426, S428, S430, S432, S434: Steps

提供的附圖用以使本發明所屬技術領域具有通常知識者可以進一步理解本發明,並且被併入與構成本發明之說明書的一部分。附圖示出了本發明的示範實施例,並且用以與本發明之說明書一起用於解釋本發明的原理。 The attached figures are provided to enable a person having ordinary knowledge in the technical field to which the present invention belongs to further understand the present invention, and are incorporated into and constitute a part of the specification of the present invention. The attached figures show exemplary embodiments of the present invention, and are used together with the specification of the present invention to explain the principles of the present invention.

圖1為本揭露一實施例的微控制器單元(microcontroller unit,MCU)系統的方塊示意圖;圖2為本揭露一實施例的微控制器單元系統的方塊示意圖;圖3為本揭露一實施例的監控系統的方塊示意圖;以及圖4為本揭露一實施例的用於微控制器單元的功耗控制方法的流程示意圖。 FIG. 1 is a block diagram of a microcontroller unit (MCU) system according to an embodiment of the present disclosure; FIG. 2 is a block diagram of a microcontroller unit system according to an embodiment of the present disclosure; FIG. 3 is a block diagram of a monitoring system according to an embodiment of the present disclosure; and FIG. 4 is a flow diagram of a power consumption control method for a microcontroller unit according to an embodiment of the present disclosure.

本揭露提出了一種用於微控制器單元(microcontroller unit,MCU)的功耗控制方法及應用其之微控制器單元系統,以解決背景技術中提到的問題。為使本揭露的特徵和優點能夠更明顯易懂,下面結合附圖對本發明的具體實施例做詳細的說明。以下敘述含有與本揭露中的示例性實施例相關的特定資訊。本揭露中的附圖和其隨附的詳細敘述僅為示例性實施例。然而,本揭露並不局限於此些示例性實施例。本領域技術人員將會想到本揭露的其它變化與實施例。除非另有說明,否則附圖中的相同或對應的元件可由相同或對應的附圖標號指示。此外,本揭露中的附圖與例示通常不是按比例繪製的,且非旨在與實際的相對尺寸相對應。 The present disclosure proposes a power consumption control method for a microcontroller unit (MCU) and a microcontroller unit system using the same to solve the problems mentioned in the background technology. In order to make the features and advantages of the present disclosure more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. The following description contains specific information related to the exemplary embodiments in the present disclosure. The accompanying drawings and the detailed descriptions attached thereto in the present disclosure are only exemplary embodiments. However, the present disclosure is not limited to these exemplary embodiments. Those skilled in the art will think of other variations and embodiments of the present disclosure. Unless otherwise specified, the same or corresponding elements in the accompanying drawings may be indicated by the same or corresponding figure numbers. Furthermore, the drawings and illustrations in this disclosure are generally not drawn to scale and are not intended to correspond to actual relative sizes.

圖1為本揭露一實施例的微控制器單元系統的方塊示意圖。如圖1所示,微控制器單元系統100包括類比元件110及監控系統120。該類比元件110可支援低功耗模式(例如省電模式)及非低功耗模式(例如正常模式或高功耗模式)。監控系統120電性連接該類比元件110。 FIG1 is a block diagram of a microcontroller unit system of an embodiment of the present disclosure. As shown in FIG1 , the microcontroller unit system 100 includes an analog component 110 and a monitoring system 120. The analog component 110 can support a low power consumption mode (e.g., a power saving mode) and a non-low power consumption mode (e.g., a normal mode or a high power consumption mode). The monitoring system 120 is electrically connected to the analog component 110.

監控系統120用於偵測(例如讀取、獲得)該類比元件110的訊號輸出狀態。監控系統120用於判斷該類比元件110的該訊號輸出狀態是否改變。該訊號輸出狀態可包含電流狀態、電壓狀態及頻寬狀態(例如從8M變化至2M)中至少一者,但本揭露不以此為限。當判斷該類比元件110的訊號輸出狀態改變時,監控系統120用於控制該類比元件運作於非低功耗模式(例如正常模式或高功耗模式);以及當判斷該類比元件的該訊號輸出狀態未改變時,監控系統120用於控制該類比元件運作於低功耗模式(例如省電模式)。 The monitoring system 120 is used to detect (e.g., read, obtain) the signal output state of the analog element 110. The monitoring system 120 is used to determine whether the signal output state of the analog element 110 has changed. The signal output state may include at least one of a current state, a voltage state, and a bandwidth state (e.g., a change from 8M to 2M), but the present disclosure is not limited thereto. When it is determined that the signal output state of the analog element 110 has changed, the monitoring system 120 is used to control the analog element to operate in a non-low power mode (e.g., a normal mode or a high power mode); and when it is determined that the signal output state of the analog element has not changed, the monitoring system 120 is used to control the analog element to operate in a low power mode (e.g., a power saving mode).

也就是說,監控系統120可有效地控制該類比元件110的運作狀態,以降低功耗。 In other words, the monitoring system 120 can effectively control the operating state of the analog component 110 to reduce power consumption.

舉例來說,當類比元件原本運作於該非低功耗模式以及該訊號輸出狀態改變時,監控系統120可控制該類比元件維持在該非低功耗模式。當類比元件原本運作於該非低功耗模式以及該訊號輸出狀態未改變時,監控系統120可控制該類比元件從該非該低功耗模式切換至該低功耗模式。當類比元件原本運作於該低功耗模式以及該訊號輸出狀態改變時,監控系統120可控制該類比元件從該低功耗模式切換至該非低功耗模式。當類比元件原本運作於該低功耗模式以及該訊號輸出狀態未改變時,監控系統120可控制該類比元件維持在該低功耗模式。 For example, when the analog component originally operates in the non-low power mode and the signal output state changes, the monitoring system 120 can control the analog component to remain in the non-low power mode. When the analog component originally operates in the non-low power mode and the signal output state does not change, the monitoring system 120 can control the analog component to switch from the non-low power mode to the low power mode. When the analog component originally operates in the low power mode and the signal output state changes, the monitoring system 120 can control the analog component to switch from the low power mode to the non-low power mode. When the analog component originally operates in the low power mode and the signal output state does not change, the monitoring system 120 can control the analog component to remain in the low power mode.

圖2為本揭露一實施例的微控制器單元系統的方塊示意圖。如圖2所示,微控制器單元系統200包括複數個類比元件210、212及214及監控系統220。該複數個類比元件210、212及214中每一者可支援低功耗模式(例如省電模式)及非低功耗模式(例如正常模式或高功耗模式)。監控系統220電性連接該複數個類比元件210、212及214。 FIG2 is a block diagram of a microcontroller unit system of an embodiment of the present disclosure. As shown in FIG2, the microcontroller unit system 200 includes a plurality of analog components 210, 212, and 214 and a monitoring system 220. Each of the plurality of analog components 210, 212, and 214 can support a low power consumption mode (e.g., a power saving mode) and a non-low power consumption mode (e.g., a normal mode or a high power consumption mode). The monitoring system 220 is electrically connected to the plurality of analog components 210, 212, and 214.

監控系統220用於(例如不同時/依序地)偵測(例如讀取、獲得)該複數個類比元件210、212及214的複數個訊號輸出狀態。監控系統220用於(例如不同時/依序地)判斷該複數個類比元件210、212及214的該複數個訊號輸出狀態是否改變。詳細來說,監控系統220用於偵測該複數個類比元件210、212及214中每一者的訊號輸出狀態。該訊號輸出狀態可包含電流狀態、電壓狀態及頻寬狀態(例如從8M變化至2M)中至少一者,但本揭露不以此為限。當判斷該複數個類比元件中類比元件(例如類比元件214)的訊號輸出狀態改變時,監控系統220用於控制該類比元件(例如類比元件214)運作於非低功耗模式(例如正常模式或高功耗模式);以及當判斷該類比元件的該訊號輸出狀態未改變時,監控系統220用於控制該類比元件運作於低功耗模式(例如省電模式)。 The monitoring system 220 is used to detect (e.g., read, obtain) a plurality of signal output states of the plurality of analog components 210, 212, and 214 (e.g., not simultaneously/sequentially). The monitoring system 220 is used to determine (e.g., not simultaneously/sequentially) whether the plurality of signal output states of the plurality of analog components 210, 212, and 214 have changed. Specifically, the monitoring system 220 is used to detect the signal output state of each of the plurality of analog components 210, 212, and 214. The signal output state may include at least one of a current state, a voltage state, and a bandwidth state (e.g., a change from 8M to 2M), but the present disclosure is not limited thereto. When it is determined that the signal output state of an analog element (such as analog element 214) among the plurality of analog elements has changed, the monitoring system 220 is used to control the analog element (such as analog element 214) to operate in a non-low power mode (such as a normal mode or a high power mode); and when it is determined that the signal output state of the analog element has not changed, the monitoring system 220 is used to control the analog element to operate in a low power mode (such as a power saving mode).

也就是說,監控系統220可有效地控制該複數個類比元件210中每一者的個別運作狀態。 That is, the monitoring system 220 can effectively control the individual operating status of each of the plurality of analog components 210.

舉例來說,當類比元件原本運作於該非低功耗模式以及該訊號輸出狀態改變時,監控系統220可控制該類比元件維持在該非低功耗模式。當類比元件原本運作於該非低功耗模式以及該訊號輸出狀態未改變時,監控系統220可控制該類比元件從該非該低功耗模式切換至該低功耗 模式。當類比元件原本運作於該低功耗模式以及該訊號輸出狀態改變時,監控系統220可控制該類比元件從該低功耗模式切換至該非低功耗模式。當類比元件原本運作於該低功耗模式以及該訊號輸出狀態未改變時,監控系統220可控制該類比元件維持在該低功耗模式。 For example, when the analog component originally operates in the non-low power mode and the signal output state changes, the monitoring system 220 can control the analog component to remain in the non-low power mode. When the analog component originally operates in the non-low power mode and the signal output state does not change, the monitoring system 220 can control the analog component to switch from the non-low power mode to the low power mode. When the analog component originally operates in the low power mode and the signal output state changes, the monitoring system 220 can control the analog component to switch from the low power mode to the non-low power mode. When the analog component originally operates in the low power mode and the signal output state does not change, the monitoring system 220 can control the analog component to remain in the low power mode.

在一些實施例中,根據該複數個類比元件210、212及214的複數個優先級(priority),該監控系統220可依序/分時(例如輪詢(poll))地偵測該複數個類比元件210、212及214的該複數個訊號輸出狀態。在一些實施例中,類比元件的優先級可取決於類比元件的類型(例如類比數位轉換器(analog-to-digital converter,ADC)或類比比較器(analog comparator,ACMP)等)。舉例來說,當類比比較器的優先級高於類比數位轉換器時,該監控系統220可先偵測類比比較器,再偵測類比數位轉換器。在一些實施例中,較常發生訊號輸出狀態改變的類比元件可具有(例如被配置)較高的優先級,以及較少發生訊號輸出狀態改變的類比元件可具有(例如被配置)較低的優先級。 In some embodiments, the monitoring system 220 may detect the plurality of signal output states of the plurality of analog components 210, 212, and 214 in sequence/time sharing (e.g., polling) according to the plurality of priorities of the plurality of analog components 210, 212, and 214. In some embodiments, the priority of the analog components may depend on the type of the analog components (e.g., analog-to-digital converter (ADC) or analog comparator (ACMP), etc.). For example, when the priority of the analog comparator is higher than that of the analog-to-digital converter, the monitoring system 220 may detect the analog comparator first and then the analog-to-digital converter. In some embodiments, analog components that change their signal output states more frequently may have (e.g., be configured to have) a higher priority, and analog components that change their signal output states less frequently may have (e.g., be configured to have) a lower priority.

圖3為本揭露一實施例的監控系統的方塊示意圖。監控系統300包含(韌體)計時器(timer)(或硬體計數器(counter))310。計時器310可用於產生週期訊號(例如指示)。監控系統300可例如是監控系統120或監控系統220。舉例來說,該監控系統(例如監控系統120)可根據該週期訊號週期性地偵測該類比元件110的該訊號輸出狀態及判斷該類比元件110的該訊號輸出狀態是否改變。該監控系統(例如監控系統220)可根據該週期訊號週期性且依序地(例如輪詢)偵測該複數個類比元 件210、212及214的該複數個訊號輸出狀態及判斷該複數個類比元件210、212及214的該複數個訊號輸出狀態是否改變。 FIG3 is a block diagram of a monitoring system according to an embodiment of the present disclosure. The monitoring system 300 includes a (firmware) timer (or hardware counter) 310. The timer 310 can be used to generate a periodic signal (e.g., an indication). The monitoring system 300 can be, for example, the monitoring system 120 or the monitoring system 220. For example, the monitoring system (e.g., the monitoring system 120) can periodically detect the signal output state of the analog element 110 and determine whether the signal output state of the analog element 110 has changed based on the periodic signal. The monitoring system (e.g., monitoring system 220) can periodically and sequentially (e.g., polling) detect the multiple signal output states of the multiple analog components 210, 212, and 214 according to the periodic signal and determine whether the multiple signal output states of the multiple analog components 210, 212, and 214 have changed.

請參考圖3,該監控系統300包含偵測器(或偵測單元)320。偵測器320可包含硬體感測電路及(軟體)暫存器(register)中至少一者。該監控系統300可根據該硬體感測電路或該暫存器的旗標(flag)偵測該類比元件的該訊號輸出狀態及判斷該類比元件的該訊號輸出狀態是否改變。 Referring to FIG. 3 , the monitoring system 300 includes a detector (or a detection unit) 320. The detector 320 may include at least one of a hardware sensing circuit and a (software) register. The monitoring system 300 may detect the signal output state of the analog component and determine whether the signal output state of the analog component has changed based on the flag of the hardware sensing circuit or the register.

在一些實施例中,該類比元件可為數位類比轉換器(digital-to-analog converter,DAC)、類比數位轉換器、類比比較器及運算放大器(operation amplifier,OPA)中一者,但本揭露不以此為限。 In some embodiments, the analog element may be one of a digital-to-analog converter (DAC), an analog-to-digital converter, an analog comparator, and an operational amplifier (OPA), but the present disclosure is not limited thereto.

在一些實施例中,當該訊號輸出狀態的改變(幅度)不小於特定閥值或特定比例時,監控系統(例如監控系統120或監控系統220)可判斷該類比元件的該訊號輸出狀態改變。當該訊號輸出狀態的改變小於特定閥值或特定比例時,監控系統可判斷該類比元件的該訊號輸出狀態未改變。 In some embodiments, when the change (amplitude) of the signal output state is not less than a specific valve value or a specific ratio, the monitoring system (e.g., monitoring system 120 or monitoring system 220) can determine that the signal output state of the analog element has changed. When the change of the signal output state is less than a specific valve value or a specific ratio, the monitoring system can determine that the signal output state of the analog element has not changed.

在一些實施例中,低功耗模式可表示降低時脈(clock)頻率或停止產生時脈訊號、停用核心運算單元(例如中央處理單元(central processing unit,CPU))等,但本揭露不以此為限。 In some embodiments, the low power consumption mode may mean reducing the clock frequency or stopping the generation of clock signals, disabling the core computing unit (such as the central processing unit (CPU)), etc., but the present disclosure is not limited thereto.

值得注意的是,當該類比元件被控制改變運作模式時,該類比元件可維持提供/輸出相同的供應電壓。 It is worth noting that when the analog device is controlled to change the operation mode, the analog device can maintain providing/outputting the same supply voltage.

根據上述實施例,可以獲得(例如歸納成)以下用於微控制器單元的功耗控制方法。圖4為本揭露一實施例的用於微控制器單元的功耗控制方法的流程示意圖。如圖4所示,此方法包括下列步驟: According to the above embodiments, the following power consumption control method for a microcontroller unit can be obtained (for example, summarized into). FIG4 is a flow chart of a power consumption control method for a microcontroller unit according to an embodiment of the present disclosure. As shown in FIG4, the method includes the following steps:

在步驟S402中,類比元件(圖4中簡稱為IP)開啟。 In step S402, the analog component (abbreviated as IP in FIG. 4 ) is turned on.

在步驟S404中,判斷IP是否開啟自動省電模式。當判斷IP未開啟自動省電模式/低功耗模式時,執行步驟S406。當判斷IP開啟自動省電模式時,執行步驟S408。 In step S404, determine whether the IP is in automatic power saving mode. When it is determined that the IP is not in automatic power saving mode/low power consumption mode, execute step S406. When it is determined that the IP is in automatic power saving mode, execute step S408.

在步驟S406中,IP運作於非低功耗模式(以下簡稱為一般模式)。 In step S406, the IP operates in a non-low power mode (hereinafter referred to as the normal mode).

在步驟S408中,IP運作於自動省電模式。判斷IP的數量為單一或複數。當判斷IP的數量非複數(例如單一類比元件110)時,執行步驟S410。當判斷IP的數量為複數(例如類比元件210、212、214)時,執行步驟S418。 In step S408, the IP operates in automatic power saving mode. Determine whether the number of IPs is single or multiple. When it is determined that the number of IPs is not multiple (e.g., a single analog component 110), execute step S410. When it is determined that the number of IPs is multiple (e.g., analog components 210, 212, 214), execute step S418.

在步驟S410中,透過監控系統啟動輪詢偵測模式,以偵測IP(例如單一類比元件110)。 In step S410, the polling detection mode is activated by the monitoring system to detect the IP (e.g., a single analog component 110).

在步驟S412中,透過監控系統判斷IP的訊號輸出狀態是否改變。當判斷IP的訊號輸出狀態未改變時,執行步驟S414。當判斷IP的訊號輸出狀態改變時,執行步驟S416。在完成/結束偵測及控制IP後,重新執行步驟S412。 In step S412, the monitoring system determines whether the signal output status of the IP has changed. When it is determined that the signal output status of the IP has not changed, step S414 is executed. When it is determined that the signal output status of the IP has changed, step S416 is executed. After completing/ending the detection and control of the IP, step S412 is re-executed.

在步驟S414中,透過監控系統控制IP運作於低功耗模式。 In step S414, the IP is controlled to operate in low power consumption mode through the monitoring system.

在步驟S416中,透過監控系統控制IP運作於一般模式。在完成/結束偵測及控制IP後,重新執行步驟S412。 In step S416, the IP is controlled to operate in normal mode through the monitoring system. After completing/ending the detection and control of the IP, re-execute step S412.

在步驟S418中,透過監控系統啟動分時輪尋偵測模式,以分時偵測IP_1(例如類比元件210)~IP_N(例如類比元件214)。 In step S418, the monitoring system starts the time-sharing round-robin detection mode to detect IP_1 (e.g., analog component 210) ~ IP_N (e.g., analog component 214) in a time-sharing manner.

在步驟S420中,透過監控系統判斷IP_1的訊號輸出狀態是否改變。當判斷IP_1的訊號輸出狀態未改變時,執行步驟S422。當判斷IP_1的訊號輸出狀態改變時,執行步驟S424。 In step S420, the monitoring system determines whether the signal output state of IP_1 has changed. When it is determined that the signal output state of IP_1 has not changed, step S422 is executed. When it is determined that the signal output state of IP_1 has changed, step S424 is executed.

在步驟S422中,透過監控系統控制IP_1運作於低功耗模式。 In step S422, IP_1 is controlled to operate in low power consumption mode through the monitoring system.

在步驟S424中,透過監控系統控制IP_1運作於一般模式。 In step S424, IP_1 is controlled to operate in normal mode through the monitoring system.

在步驟S426中,完成/結束輪詢偵測IP_1。接著,透過監控系統依序地偵測IP_2(例如類比元件212)~IP_N(例如類比元件214)。 In step S426, the polling detection of IP_1 is completed/ended. Then, IP_2 (e.g., analog component 212) ~ IP_N (e.g., analog component 214) are detected sequentially through the monitoring system.

在步驟S428中,透過監控系統判斷IP_N的訊號輸出狀態是否改變。當判斷IP_N的訊號輸出狀態未改變時,執行步驟S430。當判斷IP_N的訊號輸出狀態改變時,執行步驟S432。 In step S428, the monitoring system determines whether the signal output status of IP_N has changed. When it is determined that the signal output status of IP_N has not changed, step S430 is executed. When it is determined that the signal output status of IP_N has changed, step S432 is executed.

在步驟S430中,透過監控系統控制IP_N運作於低功耗模式。 In step S430, the monitoring system controls IP_N to operate in low power consumption mode.

在步驟S432中,透過監控系統控制IP_N運作於一般模式。 In step S432, IP_N is controlled to operate in normal mode through the monitoring system.

在步驟S434中,完成/結束輪詢偵測IP_N,重新執行步驟S418。 In step S434, the polling detection of IP_N is completed/ended, and step S418 is re-executed.

綜上所述,本揭露的用於微控制器單元的功耗控制方法及應用其之微控制器單元系統可達成降低微控制器單元的功耗且兼具有效的訊號處理能力。 In summary, the power consumption control method for a microcontroller unit and the microcontroller unit system using the method disclosed herein can reduce the power consumption of the microcontroller unit and have effective signal processing capabilities.

雖然本申請已利用上述實施例揭示,然其並非用以限定本揭露,任何本領域通常知識者在不脫離本揭露的精神和範圍之內,對上述實施例進行各種更動與修改仍屬本揭露所保護的技術範疇,因此本揭露的保護範圍當視申請專利範圍所界定者為準。 Although this application has been disclosed using the above embodiments, they are not used to limit this disclosure. Any person skilled in the art can make various changes and modifications to the above embodiments within the spirit and scope of this disclosure, which still fall within the technical scope protected by this disclosure. Therefore, the protection scope of this disclosure shall be subject to the scope defined by the patent application.

100:微控制器單元系統 100: Microcontroller unit system

110:至少一類比元件 110: At least one analog component

120:監控系統 120: Monitoring system

Claims (8)

一種微控制器單元系統,包含:至少一類比元件;以及一監控系統,電性連接該至少一類比元件,用於:偵測該至少一類比元件的至少一訊號輸出狀態;判斷該至少一類比元件的該至少一訊號輸出狀態是否改變;當判斷該至少一類比元件中一類比元件的一訊號輸出狀態改變時,控制該類比元件運作於一非低功耗模式;以及當判斷該類比元件的該訊號輸出狀態未改變時,控制該類比元件運作於一低功耗模式,其中該訊號輸出狀態包含一電流狀態、一電壓狀態及一頻寬狀態中至少一者;其中,該至少一類比元件的數量為複數,以及該監控系統根據複數個類比元件的複數個優先級依序地偵測該複數個類比元件的複數個訊號輸出狀態及依序地判斷該複數個類比元件的該複數個訊號輸出狀態是否改變。 A microcontroller unit system includes: at least one analog component; and a monitoring system electrically connected to the at least one analog component, for: detecting at least one signal output state of the at least one analog component; determining whether the at least one signal output state of the at least one analog component has changed; when determining that a signal output state of an analog component of the at least one analog component has changed, controlling the analog component to operate in a non-low power consumption mode; and when determining that the signal output state of the analog component has changed, controlling the analog component to operate in a non-low power consumption mode. When the output state does not change, the analog element is controlled to operate in a low power consumption mode, wherein the signal output state includes at least one of a current state, a voltage state, and a bandwidth state; wherein the at least one analog element is plural in number, and the monitoring system sequentially detects the multiple signal output states of the multiple analog elements according to the multiple priorities of the multiple analog elements and sequentially determines whether the multiple signal output states of the multiple analog elements have changed. 如請求項1所述之微控制器單元系統,其中該監控系統包含一硬體計數器或一計時器,用於產生一週期訊號,以及該監控系統根據該週期訊號偵測該至少一類比元件的該至少一訊號輸出狀態及判斷該至少一類比元件的該至少一訊號輸出狀態是否改變。 A microcontroller unit system as described in claim 1, wherein the monitoring system includes a hardware counter or a timer for generating a cycle signal, and the monitoring system detects the at least one signal output state of the at least one analog element according to the cycle signal and determines whether the at least one signal output state of the at least one analog element changes. 如請求項1所述之微控制器單元系統,其中該監控系統包含一硬體感測電路及一暫存器中至少一者,以及該監控系統根據該硬體感測電路或該暫存器的一旗標偵測該類比元件的該訊號輸出狀態及判斷該類比元件的該訊號輸出狀態是否改變。 A microcontroller unit system as described in claim 1, wherein the monitoring system includes at least one of a hardware sensing circuit and a register, and the monitoring system detects the signal output state of the analog element and determines whether the signal output state of the analog element changes according to a flag of the hardware sensing circuit or the register. 如請求項1所述之微控制器單元系統,其中該類比元件為一數位類比轉換器、一類比數位轉換器、一類比比較器及一運算放大器中一者。 A microcontroller unit system as described in claim 1, wherein the analog element is one of a digital-to-analog converter, an analog-to-digital converter, an analog comparator, and an operational amplifier. 一種用於微控制器單元的功耗控制方法,該微控制器單元包含至少一類比元件,該功耗控制方法包含:透過一監控系統偵測該至少一類比元件的至少一訊號輸出狀態;透過該監控系統判斷該至少一類比元件的非至少一訊號輸出狀態是否改變;當判斷該至少一類比元件中一類比元件的一訊號輸出狀態改變時,透過該監控系統控制該類比元件運作於一非低功耗模式;以及當判斷該類比元件的該訊號輸出狀態未改變時,透過該監控系統控制該類比元件運作於一低功耗模式,其中該訊號輸出狀態包含一電流狀態、一電壓狀態及一頻寬狀態中至少一者;其中,該至少一類比元件的數量為複數,以及透過該監控系統根據複數個類比元件的複數個優先級依序地偵測該複數個類比元件的複數個訊號輸出狀態及依序地判斷該複數個類比元件的該複數個訊號輸出狀態是否改變。 A power consumption control method for a microcontroller unit, the microcontroller unit comprising at least one analog element, the power consumption control method comprising: detecting at least one signal output state of the at least one analog element through a monitoring system; determining whether the non-at least one signal output state of the at least one analog element has changed through the monitoring system; when determining that a signal output state of an analog element of the at least one analog element has changed, controlling the analog element to operate in a non-low power consumption mode through the monitoring system; and when determining that the analog element has changed When the signal output state of the analog component does not change, the monitoring system controls the analog component to operate in a low power consumption mode, wherein the signal output state includes at least one of a current state, a voltage state and a bandwidth state; wherein the at least one analog component is plural in number, and the monitoring system sequentially detects the signal output states of the multiple analog components according to the multiple priorities of the multiple analog components and sequentially determines whether the signal output states of the multiple analog components have changed. 如請求項5所述之功耗控制方法,其中透過該監控系統根據一週期訊號偵測該至少一類比元件的該至少一訊號輸出狀態及判斷該至少一類比元件的該至少一訊號輸出狀態是否改變,其中該週期訊號由一硬體計數器或一計時器產生。 The power consumption control method as described in claim 5, wherein the monitoring system detects the at least one signal output state of the at least one analog element according to a cycle signal and determines whether the at least one signal output state of the at least one analog element changes, wherein the cycle signal is generated by a hardware counter or a timer. 如請求項5所述之功耗控制方法,其中透過該監控系統根據一硬體感測電路或一暫存器的一旗標偵測該類比元件的該訊號輸出狀態及判斷該類比元件的該訊號輸出狀態是否改變。 The power consumption control method as described in claim 5, wherein the monitoring system detects the signal output state of the analog component according to a hardware sensing circuit or a flag of a register and determines whether the signal output state of the analog component changes. 如請求項5所述之功耗控制方法,其中該類比元件為一數位類比轉換器、一類比數位轉換器、一類比比較器及一運算放大器中一者。 The power consumption control method as described in claim 5, wherein the analog element is one of a digital-to-analog converter, an analog-to-digital converter, an analog comparator and an operational amplifier.
TW113101501A 2024-01-15 2024-01-15 Power consumption control method for microcontroller unit and microcontroller unit system using the same TWI870205B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW113101501A TWI870205B (en) 2024-01-15 2024-01-15 Power consumption control method for microcontroller unit and microcontroller unit system using the same
CN202410208309.3A CN120315569A (en) 2024-01-15 2024-02-26 Power consumption control method for microcontroller unit and microcontroller unit system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW113101501A TWI870205B (en) 2024-01-15 2024-01-15 Power consumption control method for microcontroller unit and microcontroller unit system using the same

Publications (2)

Publication Number Publication Date
TWI870205B true TWI870205B (en) 2025-01-11
TW202530930A TW202530930A (en) 2025-08-01

Family

ID=95151754

Family Applications (1)

Application Number Title Priority Date Filing Date
TW113101501A TWI870205B (en) 2024-01-15 2024-01-15 Power consumption control method for microcontroller unit and microcontroller unit system using the same

Country Status (2)

Country Link
CN (1) CN120315569A (en)
TW (1) TWI870205B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100280774A1 (en) * 2009-03-04 2010-11-04 Server Technology, Inc. Monitoring power-related parameters in a power distribution unit
CN111929493A (en) * 2020-08-24 2020-11-13 通号(北京)轨道工业集团有限公司轨道交通技术研究院 Current acquisition equipment and circuit monitoring system
CN113962183A (en) * 2021-12-22 2022-01-21 杭州万高科技股份有限公司 Electric energy metering chip interface circuit design method and interface circuit thereof
CN117325790A (en) * 2023-11-07 2024-01-02 北斗星通智联科技有限责任公司 Vehicle wake-up control method and device, vehicle and storage medium
US20240012464A1 (en) * 2017-09-12 2024-01-11 Ambiq Micro, Inc. Very Low Power Microcontroller System

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100280774A1 (en) * 2009-03-04 2010-11-04 Server Technology, Inc. Monitoring power-related parameters in a power distribution unit
US20240012464A1 (en) * 2017-09-12 2024-01-11 Ambiq Micro, Inc. Very Low Power Microcontroller System
CN111929493A (en) * 2020-08-24 2020-11-13 通号(北京)轨道工业集团有限公司轨道交通技术研究院 Current acquisition equipment and circuit monitoring system
CN113962183A (en) * 2021-12-22 2022-01-21 杭州万高科技股份有限公司 Electric energy metering chip interface circuit design method and interface circuit thereof
CN117325790A (en) * 2023-11-07 2024-01-02 北斗星通智联科技有限责任公司 Vehicle wake-up control method and device, vehicle and storage medium

Also Published As

Publication number Publication date
CN120315569A (en) 2025-07-15
TW202530930A (en) 2025-08-01

Similar Documents

Publication Publication Date Title
CN111488083B (en) Capacitive touch detection device with self-calibration function
KR20100081130A (en) System on chip and driving method thereof
US9733952B2 (en) Microprocessor, and method of managing reset events therefor
CN101689132B (en) Monitoring device
US20110010567A1 (en) Automatically determining operating parameters of a power management device
US20110018558A1 (en) Electrostatic sensor
US8903678B2 (en) Sensing device and electronic apparatus
KR20130048786A (en) Coordinating device and application break events for platform power saving
JP2001109729A (en) Device and method for controlling power consumption in multiprocessor system
TWI870205B (en) Power consumption control method for microcontroller unit and microcontroller unit system using the same
US9021324B2 (en) Calibration arrangement
CN103201687A (en) Low energy sensor interface
US20240213987A1 (en) Ip frequency adaptive same-cycle clock gating
US8990594B2 (en) Apparatus for measuring a remaining power of a battery includes a first memory for storing a routine code and a second memory for storing an exception code
TWI899903B (en) Circuit and method for battery detection
US20050060593A1 (en) Inquiring apparatus and method thereof
CN101303653B (en) Method for judging whether computer system executes reboot and computer system thereof
US12498826B2 (en) Capacitive sensor
US7183869B2 (en) Circuit and method for temperature compensation
CN119070671A (en) A method, device and electronic device for detecting the rotor position of a brushless DC motor
JP2019134410A (en) Semiconductor device, power supply management circuit and electronic apparatus
WO2019198169A1 (en) Computer system and computer program
JP7139823B2 (en) Seismic sensor and sensor control method
JP4116414B2 (en) Fingerprint data generator, program
JP2637849B2 (en) Microcomputer