TW202326354A - Control device and operation method thereof - Google Patents

Control device and operation method thereof Download PDF

Info

Publication number
TW202326354A
TW202326354A TW110149384A TW110149384A TW202326354A TW 202326354 A TW202326354 A TW 202326354A TW 110149384 A TW110149384 A TW 110149384A TW 110149384 A TW110149384 A TW 110149384A TW 202326354 A TW202326354 A TW 202326354A
Authority
TW
Taiwan
Prior art keywords
signal
control
unit
control device
overvoltage
Prior art date
Application number
TW110149384A
Other languages
Chinese (zh)
Other versions
TWI789190B (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 TW110149384A priority Critical patent/TWI789190B/en
Priority to CN202210497327.9A priority patent/CN116414058A/en
Application granted granted Critical
Publication of TWI789190B publication Critical patent/TWI789190B/en
Publication of TW202326354A publication Critical patent/TW202326354A/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21137Analog to digital conversion, ADC, DAC

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Protection Of Static Devices (AREA)
  • Vehicle Body Suspensions (AREA)

Abstract

A control device includes a detecting unit, a control unit, a storage unit, a clock source unit and a plurality of signal transmission units. The detecting unit detects a voltage signal to generate a detecting signal. The control unit is coupled to the detecting unit, receives the detecting signal, and generates at least one of an indication flag, voltage information, a first control signal and a plurality of second control signals. The storage unit is coupled to the control unit, and receives and stores the indication flag and the voltage information. The clock source unit is coupled to the control unit, receives the first control signal, and generates a first clock signal or a second clock signal according to the first control signal. The signal transmission units are coupled to the control unit, receive the second control signals, and transmit or do not transmit a plurality of function signals according to the second control signals.

Description

控制裝置及其操作方法Control device and method of operation thereof

本發明關於一種控制裝置,特別是關於一種具有過電壓保護的控制裝置及其操作方法。The present invention relates to a control device, in particular to a control device with overvoltage protection and its operating method.

一般來說,控制裝置(例如微控制器)大都是設計在一預定電壓範圍(例如1.8V~5.5V)進行運作,亦即控制裝置之內部元件可以在上述預定電壓範圍進行正常運作。然而,若控制裝置有突然的高電壓(例如大於5.5V或以上)產生且可能持續一段時間,如此會造成控制裝置之內部元件損壞、不正常工作或漏電的現象產生。Generally speaking, control devices (such as microcontrollers) are mostly designed to operate within a predetermined voltage range (such as 1.8V~5.5V), that is, the internal components of the control device can normally operate within the above predetermined voltage range. However, if the control device has a sudden high voltage (such as greater than 5.5V or above) and it may last for a period of time, it will cause damage, abnormal operation or leakage of the internal components of the control device.

因此,如何有效地設計控制裝置具有過電壓保護機制是當前重要的課題。Therefore, how to effectively design a control device with an overvoltage protection mechanism is an important issue at present.

本發明提供一種控制裝置及其操作方法,藉以有效地記錄過電壓狀態的發生情況、增加工作元件於過電壓狀態的可靠度、避免過電壓狀態產生時發生當機的情況,以增加使用上的便利性。The present invention provides a control device and its operation method, so as to effectively record the occurrence of the over-voltage state, increase the reliability of the working element in the over-voltage state, and avoid the occurrence of a crash when the over-voltage state occurs, so as to increase the safety in use. convenience.

本發明提供一種控制裝置,包括偵測單元、控制單元、儲存單元、時鐘源單元與多個信號傳輸單元。偵測單元偵測電壓信號,以產生偵測信號。控制單元耦接偵測單元,接收偵測信號,並依據偵測信號,產生指示旗標、電壓資訊、第一控制信號與多個第二控制信號至少其一。儲存單元耦接控制單元,接收並儲存指示旗標與電壓資訊。時鐘源單元耦接控制單元,接收第一控制信號,並依據第一控制信號,產生第一時鐘信號或第二時鐘信號。信號傳輸單元耦接控制單元,接收第二控制信號,並依據第二控制信號,傳輸或不傳輸多個功能信號。The invention provides a control device, which includes a detection unit, a control unit, a storage unit, a clock source unit and a plurality of signal transmission units. The detection unit detects the voltage signal to generate a detection signal. The control unit is coupled to the detection unit, receives the detection signal, and generates at least one of an indication flag, voltage information, a first control signal, and a plurality of second control signals according to the detection signal. The storage unit is coupled to the control unit, and receives and stores indication flags and voltage information. The clock source unit is coupled to the control unit, receives the first control signal, and generates the first clock signal or the second clock signal according to the first control signal. The signal transmission unit is coupled to the control unit, receives the second control signal, and transmits or not transmits a plurality of function signals according to the second control signal.

本發明提供一種控制裝置的操作方法,包括下列步驟。透過偵測單元,偵測電壓信號,以產生偵測信號。透過控制單元,接收偵測信號,並依據偵測信號,產生指示旗標、電壓資訊、第一控制信號與多個第二控制信號。透過儲存單元,接收並儲存指示旗標與電壓資訊。透過時鐘源單元,接收第一控制信號,並依據第一控制信號,產生第一時鐘信號或第二時鐘信號。透過多個信號傳輸單元,接收第二控制信號,並依據第二控制信號,傳輸或不傳輸多個功能信號。The invention provides an operation method of a control device, which includes the following steps. Through the detection unit, the voltage signal is detected to generate a detection signal. The detection signal is received through the control unit, and an indication flag, voltage information, a first control signal and a plurality of second control signals are generated according to the detection signal. The indication flag and voltage information are received and stored through the storage unit. The first control signal is received through the clock source unit, and the first clock signal or the second clock signal is generated according to the first control signal. The second control signal is received through a plurality of signal transmission units, and a plurality of function signals are transmitted or not transmitted according to the second control signal.

本發明所揭露之控制裝置及其操作方法,透過偵測單元偵測電壓信號,以產生偵測信號,控制單元接收偵測信號,並依據偵測信號,產生指示旗標、電壓資訊、第一控制信號與多個第二控制信號至少其一,儲存單元接收並儲存指示旗標與電壓資訊,時鐘源單元接收第一控制信號,並依據第一控制信號,產生第一時鐘信號或第二時鐘信號,信號傳輸單元接收第二控制信號,並依據第二控制信號,傳輸或不傳輸多個功能信號。如此一來,可以有效地記錄過電壓狀態的發生情況、增加工作元件於過電壓狀態的可靠度、避免過電壓狀態產生時發生當機的情況,以增加使用上的便利性。The control device and its operation method disclosed in the present invention detect the voltage signal through the detection unit to generate a detection signal. The control unit receives the detection signal and generates an indication flag, voltage information, first The control signal and at least one of a plurality of second control signals, the storage unit receives and stores the indication flag and voltage information, the clock source unit receives the first control signal, and generates the first clock signal or the second clock according to the first control signal The signal, the signal transmission unit receives the second control signal, and transmits or not transmits a plurality of function signals according to the second control signal. In this way, the occurrence of the overvoltage state can be effectively recorded, the reliability of the working element in the overvoltage state can be increased, and the shutdown situation can be avoided when the overvoltage state occurs, so as to increase the convenience of use.

在以下所列舉的各實施例中,將以相同的標號代表相同或相似的元件或組件。In the various embodiments listed below, the same or similar elements or components will be denoted by the same reference numerals.

第1圖為依據本發明之一實施例之控制裝置的示意圖。在本實施例中,控制裝置100可以是微控制器(micro controller unit, MCU)或其他合適的控制器,但本發明實施例不限於此。請參考第1圖,控制裝置100可以包括偵測單元110、控制單元120、儲存單元130、時鐘源單元140與多個信號傳輸單元150_1~150_N,其中N為大於1的正整數。Fig. 1 is a schematic diagram of a control device according to an embodiment of the present invention. In this embodiment, the control device 100 may be a microcontroller (micro controller unit, MCU) or other suitable controllers, but the embodiment of the present invention is not limited thereto. Please refer to FIG. 1 , the control device 100 may include a detection unit 110 , a control unit 120 , a storage unit 130 , a clock source unit 140 and a plurality of signal transmission units 150_1 - 150_N, where N is a positive integer greater than 1.

偵測單元110偵測電壓信號,以產生偵測信號。也就是說,偵測單元110可以偵測電壓信號,並產生對應上述電壓信號之電壓值的偵測信號。在本實施例中,上述電壓信號可以是工作電壓,但本發明實施例不限於此。The detection unit 110 detects the voltage signal to generate a detection signal. That is to say, the detection unit 110 can detect the voltage signal and generate a detection signal corresponding to the voltage value of the voltage signal. In this embodiment, the above-mentioned voltage signal may be an operating voltage, but this embodiment of the present invention is not limited thereto.

控制單元120耦接偵測單元110。控制單元120可以接收偵測單元110所產生的偵測信號,並依據偵測信號,產生指示旗標、電壓資訊、第一控制信號與多個第二控制信號至少其一。The control unit 120 is coupled to the detection unit 110 . The control unit 120 can receive the detection signal generated by the detection unit 110, and generate at least one of an indication flag, voltage information, a first control signal, and a plurality of second control signals according to the detection signal.

舉例來說,當控制單元120接收到偵測單元110所產生的偵測信號時,控制單元120可以將偵測信號的電壓值與一預設電壓值進行比較,以判斷偵測信號的電壓值是否大於預設電壓值,進而確定控制裝置100是否處於過電壓狀態。在本實施例中,上述預設電壓值例如為8V、9V、15V等,但本發明實施例不限於此。使用者可視其需求調整預設電壓值的大小,都可達到相同的技術效果。For example, when the control unit 120 receives the detection signal generated by the detection unit 110, the control unit 120 can compare the voltage value of the detection signal with a preset voltage value to determine the voltage value of the detection signal Whether it is greater than the preset voltage value, and then determine whether the control device 100 is in an overvoltage state. In this embodiment, the preset voltage value is, for example, 8V, 9V, 15V, etc., but the embodiment of the present invention is not limited thereto. Users can adjust the preset voltage value according to their needs, and the same technical effect can be achieved.

進一步來說,當控制單元120判斷偵測信號的電壓值未大於預設電壓值(例如偵測信號的電壓值小於8V、9V、15V)時,控制單元120可以確定控制裝置100未發生過電壓的情況,則控制單元120會產生例如低邏輯準位的指示旗標、低邏輯準位的第一控制信號與低邏輯準位的多個第二控制信號至少其一,且不會產生電壓資訊。接著,控制單元120會持續接收偵測信號,以判斷偵測信號的電壓值是否大於預設電壓值,進而確定控制裝置100是否處於過電壓狀態。Further, when the control unit 120 judges that the voltage value of the detection signal is not greater than the preset voltage value (for example, the voltage value of the detection signal is less than 8V, 9V, 15V), the control unit 120 can determine that the control device 100 does not have an overvoltage case, the control unit 120 will generate at least one of, for example, an indication flag of a low logic level, a first control signal of a low logic level, and a plurality of second control signals of a low logic level, and will not generate voltage information . Next, the control unit 120 will continue to receive the detection signal to determine whether the voltage value of the detection signal is greater than a preset voltage value, and then determine whether the control device 100 is in an overvoltage state.

當控制單元120判斷偵測信號的電壓值大於預設電壓值(例如偵測信號的電壓值大於8V、9V、15V)時,控制單元120可以確定控制裝置100處於過電壓狀態,則控制單元120會產生例如高邏輯準位的指示旗標、電壓資訊、高邏輯準位的第一控制信號與高邏輯準位的多個第二控制信號至少其一,以便進行後續的操作。When the control unit 120 judges that the voltage value of the detection signal is greater than the preset voltage value (for example, the voltage value of the detection signal is greater than 8V, 9V, 15V), the control unit 120 can determine that the control device 100 is in an overvoltage state, and the control unit 120 For example, at least one of a high logic level indication flag, voltage information, a high logic level first control signal, and a plurality of high logic level second control signals is generated for subsequent operations.

在本實施例中,上述指示旗標可以指示控制裝置100是否處於過電壓狀態。舉例來說,當指示旗標為高邏輯準位時,表示控制裝置100處於過電壓狀態;當指示旗標為低邏輯準位時,表示控制裝置100未處於過電壓狀態。另外,上述電壓資訊可以至少包括過電壓的起始時間、過電壓的電壓值、過電壓的產生次數。此外,上述過電壓的產生次數可以對應指示旗標為高邏輯準位時的次數。也就是說,控制單元120可以對每一次所產生之高邏輯準位的指示旗標進行累加,並設置於電壓資訊中,以便記錄過電壓的產生次數。In this embodiment, the above indication flag may indicate whether the control device 100 is in an overvoltage state. For example, when the indicating flag is at a high logic level, it means that the control device 100 is in an overvoltage state; when the indicating flag is at a low logic level, it means that the control device 100 is not in an overvoltage state. In addition, the above voltage information may at least include the start time of the overvoltage, the voltage value of the overvoltage, and the generation times of the overvoltage. In addition, the number of occurrences of the above-mentioned overvoltage may correspond to the number of times when the indication flag is at a high logic level. That is to say, the control unit 120 can accumulate the indication flag of the high logic level every time it is generated, and set it in the voltage information, so as to record the generation times of the overvoltage.

儲存單元130耦接控制單元120。儲存單元130可以接收並儲存指示旗標與電壓資訊。也就是說,控制單元120所產生的指示旗標與電壓資訊可以傳送並儲存至儲存單元130。在本實施例中,儲存單元130例如為暫存器(register)、隨機存取記憶體(random access memory, RAM)或快閃記憶體(flash memory)等,但本發明實施例不限於此。如此一來,使用者可以透過取得儲存單元130所儲存之電壓資訊,以得知控制裝置100是否處於過電壓狀態(亦即控制裝置100在過電壓狀態下使用過),而無須將控制裝置100送回原廠進行檢測是否發生過過電壓現象,以增加使用上的便利性。The storage unit 130 is coupled to the control unit 120 . The storage unit 130 can receive and store the indication flag and voltage information. That is to say, the indication flag and voltage information generated by the control unit 120 can be transmitted and stored in the storage unit 130 . In this embodiment, the storage unit 130 is, for example, a register, a random access memory (random access memory, RAM), or a flash memory (flash memory), but the embodiment of the present invention is not limited thereto. In this way, the user can know whether the control device 100 is in an overvoltage state (that is, the control device 100 has been used in an overvoltage state) by obtaining the voltage information stored in the storage unit 130, without having to use the control device 100 Send it back to the original factory to check whether there is any overvoltage phenomenon, so as to increase the convenience of use.

時鐘源單元140耦接控制單元120。時鐘源單元140可以接收第一控制信號,並依據第一控制信號,產生第一時鐘信號或第二時鐘信號。舉例來說,當時鐘源單元140接收到例如低邏輯準位的第一控制信號,表示控制裝置100未處於過電壓狀態,時鐘源單元140會例如提供第一時鐘信號。當時鐘源單元140接收到例如高邏輯準位的第二控制信號,表示控制裝置100處於過電壓狀態,時鐘源單元140會例如提供第二時鐘信號。The clock source unit 140 is coupled to the control unit 120 . The clock source unit 140 can receive the first control signal, and generate the first clock signal or the second clock signal according to the first control signal. For example, when the clock source unit 140 receives a first control signal such as a low logic level, indicating that the control device 100 is not in an overvoltage state, the clock source unit 140 will, for example, provide a first clock signal. When the clock source unit 140 receives the second control signal such as a high logic level, indicating that the control device 100 is in an overvoltage state, the clock source unit 140 will, for example, provide a second clock signal.

在本實施例中,第一時鐘信號與第二時鐘信號的頻率不同。舉例來說,第一時鐘信號例如為控制裝置100正常運作時的時鐘信號,第二時鐘信號例如為控制裝置100處於過電壓狀態(即耐高壓)的時鐘信號。如此一來,當控制裝置100處於過電壓狀態時,控制裝置100仍可在過電壓狀態下持續工作,而不會導致裝置裝置100當機的情況發生,以增加使用上的便利性。另外,時鐘源單元140可以是一振盪電路,例如RC振盪電路、晶體振盪電路等,但本發明實施例不限於此。In this embodiment, the frequencies of the first clock signal and the second clock signal are different. For example, the first clock signal is, for example, a clock signal when the control device 100 is operating normally, and the second clock signal is, for example, a clock signal when the control device 100 is in an overvoltage state (ie, withstands high voltage). In this way, when the control device 100 is in the overvoltage state, the control device 100 can continue to work in the overvoltage state without causing the device 100 to crash, thereby increasing the convenience in use. In addition, the clock source unit 140 may be an oscillating circuit, such as an RC oscillating circuit, a crystal oscillating circuit, etc., but the embodiment of the present invention is not limited thereto.

信號傳輸單元150_1~150_N耦接控制單元120。信號傳輸單元150_1~150_N可以接收第二控制信號,並依據第二控制信號,傳輸或不傳輸多個功能信號。舉例來說,當信號傳輸單元150_1~150_N接收到例如低邏輯準位的第二控制信號,表示控制裝置100未處於過電壓狀態,信號傳輸單元150_1~150_N例如會傳輸上述功能信號。當信號傳輸單元150_1~150_N接收到例如高邏輯準位的第二控制信號,表示控制裝置100處於過電壓狀態,信號傳輸單元150_1~150_N例如不會提供功能信號,亦即信號傳輸單元150_1~150_N停止運作。The signal transmission units 150_1 - 150_N are coupled to the control unit 120 . The signal transmission units 150_1 - 150_N can receive the second control signal, and transmit or not transmit a plurality of function signals according to the second control signal. For example, when the signal transmission units 150_1 - 150_N receive the second control signal of eg low logic level, indicating that the control device 100 is not in the overvoltage state, the signal transmission units 150_1 - 150_N, for example, transmit the above function signal. When the signal transmission units 150_1~150_N receive the second control signal of eg a high logic level, indicating that the control device 100 is in an overvoltage state, the signal transmission units 150_1~150_N, for example, will not provide functional signals, that is, the signal transmission units 150_1~150_N stop working.

在本實施例中,上述信號傳輸單元150_1~150_N例如為不能耐高壓的工作元件。透過控制單元120於控制裝置100處於過電壓狀態時停止信號傳輸單元150_1~150_N的運作,可以提高工作元件(即信號傳輸單元150_1~150_N)的可靠度。舉例來說,假設上述工作元件可以在過電壓下持續30秒才會故障,並且於控制裝置100處於過電壓狀態時停止工作元件的運作,使得工作元件耐受高壓的時間例如為0.1秒。如此一來,可以使得工作元件之耐受高壓的次數為300次,且工作元件沒有連續地耐受高壓,以便提高工作元件的可靠度。In this embodiment, the signal transmission units 150_1 - 150_N are, for example, working elements that cannot withstand high voltage. Through the control unit 120 stopping the operation of the signal transmission units 150_1 - 150_N when the control device 100 is in the overvoltage state, the reliability of the working elements (ie, the signal transmission units 150_1 - 150_N) can be improved. For example, it is assumed that the above-mentioned working element can last 30 seconds under the overvoltage before failure, and the operation of the working element is stopped when the control device 100 is in the overvoltage state, so that the time for the working element to withstand high voltage is, for example, 0.1 second. In this way, the number of times the working element can withstand high voltage is 300 times, and the working element does not withstand high voltage continuously, so as to improve the reliability of the working element.

進一步來說,信號傳輸單元150_1~150_N可以是類比數位轉換器(analog-to-digital converter, ADC)、數位類比轉換器(digital -to-analog converter, DAC)、放大器(operational amplifier, OPA)等,並且上述功能信號可以包括類比轉數位功能信號、數位轉類比功能信號、放大功能信號等,但本發明實施例不限於此。Further, the signal transmission units 150_1~150_N may be analog-to-digital converters (analog-to-digital converter, ADC), digital-to-analog converters (digital-to-analog converter, DAC), amplifiers (operational amplifier, OPA), etc. , and the above-mentioned function signal may include an analog-to-digital function signal, a digital-to-analog function signal, an amplification function signal, etc., but the embodiment of the present invention is not limited thereto.

在一些實施例中,在控制單元120產生高邏輯準位的指示旗標、電壓資訊至儲存單元130後,表示控制單元120確定控制裝置100處於過電壓狀態,則控制單元120可以再次接收偵測單元110的偵測信號,並判斷偵測信號的電壓值是否大於預設電壓值。In some embodiments, after the control unit 120 generates an indication flag of a high logic level and the voltage information to the storage unit 130, indicating that the control unit 120 determines that the control device 100 is in an overvoltage state, the control unit 120 can receive the detection again. The detection signal of the unit 110 is used to determine whether the voltage value of the detection signal is greater than a preset voltage value.

當控制單元120判斷偵測信號的電壓值大於預設電壓值時,表示控制裝置100仍處於過電壓狀態,則控制單元120會持續接收偵測單元110的偵測信號,並判斷偵測信號的電壓值是否大於預設電壓值,直到控制單元120判斷偵測信號的電壓值未大於預設電壓值為止。When the control unit 120 judges that the voltage value of the detection signal is greater than the preset voltage value, it means that the control device 100 is still in the overvoltage state, and the control unit 120 will continue to receive the detection signal from the detection unit 110, and judge the detection signal. Whether the voltage value is greater than the preset voltage value, until the control unit 120 determines that the voltage value of the detection signal is not greater than the preset voltage value.

另外,當控制單元120判斷偵測信號的電壓值未大於預設電壓值時,表示控制裝置100回復到未處於過電壓狀態,則控制單元120可以產生低邏輯準位的指示旗標至儲存單元130,以將高邏輯準位的指示旗標清除,進而指示控制裝置100未處於過電壓狀態。另外,控制單元120也可以產生例如包括過電壓的結束時間的電壓資訊至儲存單元130,以便記錄過電壓的結束時間。In addition, when the control unit 120 judges that the voltage value of the detection signal is not greater than the preset voltage value, it means that the control device 100 is not in the overvoltage state, and the control unit 120 can generate an indication flag of a low logic level to the storage unit. 130 , to clear the indication flag of the high logic level, thereby indicating that the control device 100 is not in the overvoltage state. In addition, the control unit 120 may also generate, for example, voltage information including the end time of the overvoltage to the storage unit 130 so as to record the end time of the overvoltage.

在一些實施例中,在控制單元120產生高邏輯準位的第一控制信號至時鐘源單元140,使得時鐘源單元140產生第二時鐘信號後,表示控制單元120確定控制裝置100處於過電壓狀態,則控制單元120可以再次接收偵測單元110的偵測信號,並判斷偵測信號的電壓值是否大於預設電壓值。In some embodiments, after the control unit 120 generates the first control signal of a high logic level to the clock source unit 140, so that the clock source unit 140 generates the second clock signal, it means that the control unit 120 determines that the control device 100 is in an overvoltage state , the control unit 120 may receive the detection signal from the detection unit 110 again, and determine whether the voltage value of the detection signal is greater than a preset voltage value.

當控制單元120判斷偵測信號的電壓值大於預設電壓值時,表示控制裝置100仍處於過電壓狀態,則控制單元120會持續接收偵測單元110的偵測信號,並判斷偵測信號的電壓值是否大於預設電壓值,直到控制單元120判斷偵測信號的電壓值未大於預設電壓值為止。When the control unit 120 judges that the voltage value of the detection signal is greater than the preset voltage value, it means that the control device 100 is still in the overvoltage state, and the control unit 120 will continue to receive the detection signal from the detection unit 110, and judge the detection signal. Whether the voltage value is greater than the preset voltage value, until the control unit 120 determines that the voltage value of the detection signal is not greater than the preset voltage value.

另外,當控制單元120判斷偵測信號的電壓值未大於預設電壓值時,表示控制裝置100回復到未處於過電壓狀態,則控制單元120可以產生低邏輯準位的第一控制信號至時鐘源單元140,使得時鐘源單元140恢復提供第一時鐘信號,以便控制裝置100恢復正常運作。In addition, when the control unit 120 judges that the voltage value of the detection signal is not greater than the preset voltage value, it means that the control device 100 returns to the overvoltage state, and the control unit 120 can generate a first control signal with a low logic level to the clock The source unit 140 enables the clock source unit 140 to resume providing the first clock signal, so that the control device 100 resumes normal operation.

在一些實施例中,在控制單元120產生高邏輯準位的第一控制信號至信號傳輸單元150_1~150_N,使得信號傳輸單元150_1~150_N不傳輸功能信號(即信號傳輸單元150_1~150_N停止運作)後,表示控制單元120確定控制裝置100處於過電壓狀態,則控制單元120可以再次接收偵測單元110的偵測信號,並判斷偵測信號的電壓值是否大於預設電壓值。In some embodiments, the control unit 120 generates a first control signal with a high logic level to the signal transmission units 150_1~150_N, so that the signal transmission units 150_1~150_N do not transmit function signals (ie, the signal transmission units 150_1~150_N stop operating) Afterwards, it means that the control unit 120 determines that the control device 100 is in the overvoltage state, then the control unit 120 can receive the detection signal from the detection unit 110 again, and judge whether the voltage value of the detection signal is greater than the preset voltage value.

當控制單元120判斷偵測信號的電壓值大於預設電壓值時,表示控制裝置100仍處於過電壓狀態,則控制單元120會持續接收偵測單元110的偵測信號,並判斷偵測信號的電壓值是否大於預設電壓值,直到控制單元120判斷偵測信號的電壓值未大於預設電壓值為止。When the control unit 120 judges that the voltage value of the detection signal is greater than the preset voltage value, it means that the control device 100 is still in the overvoltage state, and the control unit 120 will continue to receive the detection signal from the detection unit 110, and judge the detection signal. Whether the voltage value is greater than the preset voltage value, until the control unit 120 determines that the voltage value of the detection signal is not greater than the preset voltage value.

另外,當控制單元120判斷偵測信號的電壓值未大於預設電壓值時,表示控制裝置100回復到未處於過電壓狀態,則控制單元120可以產生低邏輯準位的第二控制信號至信號傳輸單元150_1~150_N,使得信號傳輸單元150_1~150_N恢復傳輸功能信號,以便控制裝置100恢復正常運作。In addition, when the control unit 120 judges that the voltage value of the detection signal is not greater than the preset voltage value, it means that the control device 100 is not in the overvoltage state, and the control unit 120 can generate a second control signal with a low logic level to signal The transmission units 150_1 - 150_N enable the signal transmission units 150_1 - 150_N to restore the transmission function signal, so that the control device 100 resumes normal operation.

第2圖為依據本發明之一實施例之控制裝置的操作方法的流程圖。在步驟S202中,透過偵測單元,偵測電壓信號,以產生偵測信號。在步驟S204中,透過控制單元,接收偵測信號,並依據偵測信號,產生指示旗標、電壓資訊、第一控制信號與多個第二控制信號至少其一。FIG. 2 is a flow chart of the operation method of the control device according to an embodiment of the present invention. In step S202, the voltage signal is detected through the detection unit to generate a detection signal. In step S204, the detection signal is received by the control unit, and at least one of an indication flag, voltage information, a first control signal and a plurality of second control signals is generated according to the detection signal.

在步驟S206中,透過儲存單元,接收並儲存指示旗標與電壓資訊。在步驟S208中,透過時鐘源單元,接收第一控制信號,並依據第一控制信號,產生第一時鐘信號或第二時鐘信號。在步驟S210中,透過多個信號傳輸單元,接收第二控制信號,並依據第二控制信號,傳輸或不傳輸多個功能信號。In step S206, the indication flag and voltage information are received and stored through the storage unit. In step S208, the first control signal is received through the clock source unit, and a first clock signal or a second clock signal is generated according to the first control signal. In step S210, a second control signal is received through a plurality of signal transmission units, and a plurality of function signals are transmitted or not transmitted according to the second control signal.

在本實施例中,上述指示旗標例如為過電壓指示旗標。另外,上述電壓資訊例如包括過電壓的起始時間、過電壓的電壓值、過電壓的產生次數與過電壓的結束時間。在本實施例中,上述功能信號例如包括類比轉數位功能信號、數位轉類比功能信號、放大功能信號。再者,上述第一時鐘信號例如與上述第二時鐘信號不同。In this embodiment, the above indication flag is, for example, an overvoltage indication flag. In addition, the above voltage information includes, for example, the start time of the overvoltage, the voltage value of the overvoltage, the number of occurrences of the overvoltage, and the end time of the overvoltage. In this embodiment, the above-mentioned function signal includes, for example, an analog-to-digital function signal, a digital-to-analog function signal, and an amplification function signal. Furthermore, the above-mentioned first clock signal is different from the above-mentioned second clock signal, for example.

綜上所述,本發明所揭露之控制裝置及其操作方法,透過偵測單元偵測電壓信號,以產生偵測信號,控制單元接收偵測信號,並依據偵測信號,產生指示旗標、電壓資訊、第一控制信號與多個第二控制信號至少其一,儲存單元接收並儲存指示旗標與電壓資訊,時鐘源單元接收第一控制信號,並依據第一控制信號,產生第一時鐘信號或第二時鐘信號,信號傳輸單元接收第二控制信號,並依據第二控制信號,傳輸或不傳輸多個功能信號。如此一來,可以有效地記錄過電壓狀態的發生情況、增加工作元件於過電壓狀態的可靠度、避免過電壓狀態產生時發生當機的情況,以增加使用上的便利性。To sum up, the control device and its operation method disclosed in the present invention use the detection unit to detect the voltage signal to generate a detection signal. The control unit receives the detection signal and generates an indication flag, The voltage information, the first control signal and at least one of a plurality of second control signals, the storage unit receives and stores the indication flag and the voltage information, the clock source unit receives the first control signal, and generates a first clock according to the first control signal signal or the second clock signal, the signal transmission unit receives the second control signal, and transmits or not transmits multiple function signals according to the second control signal. In this way, the occurrence of the overvoltage state can be effectively recorded, the reliability of the working element in the overvoltage state can be increased, and the shutdown situation can be avoided when the overvoltage state occurs, so as to increase the convenience of use.

本發明雖以實施例揭露如上,然其並非用以限定本發明的範圍,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可做些許的更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed above with the embodiments, it is not intended to limit the scope of the present invention. Anyone with ordinary knowledge in the technical field may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the scope of the appended patent application.

100:控制裝置 110:偵測單元 120:控制單元 130:儲存單元 140:時鐘源單元 150_1~150_N:信號傳輸單元 S202~S210:步驟 100: Control device 110: Detection unit 120: Control unit 130: storage unit 140: clock source unit 150_1~150_N: Signal transmission unit S202~S210: steps

第1圖為依據本發明之一實施例之控制裝置的示意圖。 第2圖為依據本發明之一實施例之控制裝置的操作方法的流程圖。 Fig. 1 is a schematic diagram of a control device according to an embodiment of the present invention. FIG. 2 is a flow chart of the operation method of the control device according to an embodiment of the present invention.

100:控制裝置 100: Control device

110:偵測單元 110: Detection unit

120:控制單元 120: Control unit

130:儲存單元 130: storage unit

140:時鐘單元 140: clock unit

150_1~150_N:信號傳輸單元 150_1~150_N: Signal transmission unit

Claims (10)

一種控制裝置,包括: 一偵測單元,偵測一電壓信號,以產生一偵測信號; 一控制單元,耦接該偵測單元,接收該偵測信號,並依據該偵測信號,產生一指示旗標、一電壓資訊、一第一控制信號與多個第二控制信號至少其一; 一儲存單元,耦接該控制單元,接收並儲存該指示旗標與該電壓資訊; 一時鐘源單元,耦接該控制單元,接收該第一控制信號,並依據該第一控制信號,產生一第一時鐘信號或一第二時鐘信號;以及 多個信號傳輸單元,耦接該控制單元,接收該些第二控制信號;並依據該些第二控制信號,傳輸或不傳輸多個功能信號。 A control device comprising: a detection unit, detecting a voltage signal to generate a detection signal; A control unit, coupled to the detection unit, receives the detection signal, and generates at least one of an indication flag, a voltage information, a first control signal and a plurality of second control signals according to the detection signal; a storage unit, coupled to the control unit, receives and stores the indication flag and the voltage information; A clock source unit, coupled to the control unit, receives the first control signal, and generates a first clock signal or a second clock signal according to the first control signal; and A plurality of signal transmission units, coupled to the control unit, receive the second control signals; and transmit or not transmit a plurality of function signals according to the second control signals. 如請求項1之控制裝置,其中該指示旗標指示該控制裝置是否處於過電壓狀態。The control device according to claim 1, wherein the indication flag indicates whether the control device is in an overvoltage state. 如請求項1之控制裝置,其中該電壓資訊包括一過電壓的起始時間、一過電壓的電壓值、一過電壓的產生次數與一過電壓的結束時間。The control device according to claim 1, wherein the voltage information includes an overvoltage start time, an overvoltage voltage value, an overvoltage generation number, and an overvoltage end time. 如請求項1之控制裝置,其中該些功能信號包括一類比轉數位功能信號、一數位轉類比功能信號、一放大功能信號。The control device according to claim 1, wherein the functional signals include an analog-to-digital function signal, a digital-to-analog function signal, and an amplification function signal. 如請求項1之控制裝置,其中該第一時鐘信號的頻率與該第二時鐘信號的頻率不同。The control device according to claim 1, wherein the frequency of the first clock signal is different from the frequency of the second clock signal. 一種控制裝置的操作方法,包括: 透過一偵測單元,偵測一電壓信號,以產生一偵測信號; 透過一控制單元,接收該偵測信號,並依據該偵測信號,產生一指示旗標、一電壓資訊、一第一控制信號與多個第二控制信號至少其一; 透過一儲存單元,接收並儲存該指示旗標與該電壓資訊; 透過一時鐘源單元,接收該第一控制信號,並依據該第一控制信號,產生一第一時鐘信號或一第二時鐘信號;以及 透過多個信號傳輸單元,接收該些第二控制信號,並依據該些第二控制信號,傳輸或不傳輸多個功能信號。 A method of operating a control device, comprising: Detecting a voltage signal through a detection unit to generate a detection signal; receiving the detection signal through a control unit, and generating at least one of an indication flag, a voltage information, a first control signal and a plurality of second control signals according to the detection signal; receiving and storing the indication flag and the voltage information through a storage unit; receiving the first control signal through a clock source unit, and generating a first clock signal or a second clock signal according to the first control signal; and The second control signals are received through a plurality of signal transmission units, and a plurality of function signals are transmitted or not transmitted according to the second control signals. 如請求項6之控制裝置的操作方法,其中該指示旗標指示該控制裝置是否處於過電壓狀態。The operating method of the control device according to claim 6, wherein the indication flag indicates whether the control device is in an overvoltage state. 如請求項6之控制裝置的操作方法,其中該電壓資訊包括一過電壓的起始時間、一過電壓的電壓值、一過電壓的產生次數與一過電壓的結束時間。The operating method of the control device according to claim 6, wherein the voltage information includes an overvoltage start time, an overvoltage voltage value, an overvoltage generation number, and an overvoltage end time. 如請求項6之控制裝置的操作方法,其中該些功能信號包括一類比轉數位功能信號、一數位轉類比功能信號、一放大功能信號。The operating method of the control device as claimed in item 6, wherein the function signals include an analog-to-digital function signal, a digital-to-analog function signal, and an amplification function signal. 如請求項6之控制裝置的操作方法,其中該第一時鐘信號的頻率與該第二時鐘信號的頻率不同。The operating method of the control device according to claim 6, wherein the frequency of the first clock signal is different from the frequency of the second clock signal.
TW110149384A 2021-12-29 2021-12-29 Control device and operation method thereof TWI789190B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW110149384A TWI789190B (en) 2021-12-29 2021-12-29 Control device and operation method thereof
CN202210497327.9A CN116414058A (en) 2021-12-29 2022-05-09 Control device and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110149384A TWI789190B (en) 2021-12-29 2021-12-29 Control device and operation method thereof

Publications (2)

Publication Number Publication Date
TWI789190B TWI789190B (en) 2023-01-01
TW202326354A true TW202326354A (en) 2023-07-01

Family

ID=86669979

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110149384A TWI789190B (en) 2021-12-29 2021-12-29 Control device and operation method thereof

Country Status (2)

Country Link
CN (1) CN116414058A (en)
TW (1) TWI789190B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201011514A (en) * 2008-09-12 2010-03-16 Lite On Technology Corp Discharging control device for adjusting output current
TWI534598B (en) * 2014-08-26 2016-05-21 新唐科技股份有限公司 Controlling device, reset system and control method thereof
US10466765B2 (en) * 2017-08-22 2019-11-05 Microchip Technology Incorporated Systems and methods for managing power consumed by a microcontroller in an inactive mode
TWI640784B (en) * 2018-04-24 2018-11-11 新唐科技股份有限公司 Voltage detection circuit
TWI678043B (en) * 2018-06-26 2019-11-21 新唐科技股份有限公司 Microcontroller unit and protection method for eft events
JP7228389B2 (en) * 2019-01-23 2023-02-24 ルネサスエレクトロニクス株式会社 Semiconductor equipment and semiconductor systems

Also Published As

Publication number Publication date
CN116414058A (en) 2023-07-11
TWI789190B (en) 2023-01-01

Similar Documents

Publication Publication Date Title
US9453881B2 (en) Oscillation circuit, integrated circuit, and abnormality detection method
JPS6245572B2 (en)
CN110658903A (en) Method and apparatus for power resource protection
US20080263409A1 (en) Self-Test System
CN109032318B (en) Power supply monitoring system and storage server system
CN101506675A (en) Real time clock monitoring method and system
TWI789190B (en) Control device and operation method thereof
US7873769B2 (en) Micro controller unit (MCU) capable of increasing data retention time and method of driving the MCU
JP2012022533A (en) Power-on-control circuit
US20180069470A1 (en) Control circuit for stopping voltage booster and electronic device using the same
CN110673691B (en) Electronic system, sensing circuit and sensing method
CN109739710B (en) Undervoltage detection circuit and undervoltage detection method
US11646568B2 (en) Over-voltage protection method and device cross-references to related application
TWI717965B (en) Display module, display driver integrated circuit and restarting method for display driver integrated circuit when abnormal voltage occurs
CN107910034B (en) Power-down protection circuit of Flash memory
US11764771B2 (en) Event detection control device and method for circuit system controlled by pulse wave modulation signal
TWI385397B (en) Short-circuit detecting device for a power supply device
US20220414269A1 (en) Microcontroller, protection circuit, and protection method capable of avoiding interference from sudden events
JP2020089218A (en) Protection relay device
JP2019052990A (en) Power shutdown detector
TWI519938B (en) Power supply system
US20170138989A1 (en) Inrush current recording module
CN113096595B (en) Panel module, display driving integrated circuit and method for restarting abnormal voltage of display driving integrated circuit
MXPA02011874A (en) Watchdog arrangement.
TWI489458B (en) Operation system and control method thereof