TW202242358A - Circuit system and method for reading temperature value in circuit - Google Patents

Circuit system and method for reading temperature value in circuit Download PDF

Info

Publication number
TW202242358A
TW202242358A TW110114073A TW110114073A TW202242358A TW 202242358 A TW202242358 A TW 202242358A TW 110114073 A TW110114073 A TW 110114073A TW 110114073 A TW110114073 A TW 110114073A TW 202242358 A TW202242358 A TW 202242358A
Authority
TW
Taiwan
Prior art keywords
circuit
temperature
value
temperature value
latch
Prior art date
Application number
TW110114073A
Other languages
Chinese (zh)
Other versions
TWI806035B (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 TW110114073A priority Critical patent/TWI806035B/en
Publication of TW202242358A publication Critical patent/TW202242358A/en
Application granted granted Critical
Publication of TWI806035B publication Critical patent/TWI806035B/en

Links

Images

Landscapes

  • Measuring Temperature Or Quantity Of Heat (AREA)
  • Control Of Temperature (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

A circuit system and a method for reading temperature value in circuit are provided. A latch circuit is incorporated in the circuit system for operating the method for reading temperature value in circuit. After the circuit system is powered on, a control right is transferred to a power-on controller. The power-on controller firstly resets a thermal meter of the circuit system, and issues a latch trigger signal to the latch circuit once an initiation process for the later circuit is completed. The latch circuit latches an initial temperature in response to the latch trigger signal. The initial temperature is recorded to a register and can be accessed at any time. The initial temperature acts as a reference for the temperature meter's calibration.

Description

電路系統與電路內讀取溫度值的方法Circuit system and method for reading temperature value in circuit

說明書提出一種電路內讀取溫度值的方法,特別是指在電路系統中設置一閂鎖電路以記錄電路系統之初始溫度值的電路內讀取溫度值的方法。The specification proposes a method for reading temperature values in a circuit, especially a method for reading temperature values in a circuit in which a latch circuit is set in the circuit system to record the initial temperature value of the circuit system.

一般在大功耗的晶片中會內建有溫度計(thermal meter),用來得知晶片內部溫度,而晶片外部即設有一散熱系統,如一風扇或冷卻系統,可依據晶片內的溫度計量測的溫度值來調節散熱機制。Generally, a thermal meter is built in a chip with high power consumption to know the internal temperature of the chip, and a heat dissipation system is installed outside the chip, such as a fan or a cooling system, which can measure the temperature according to the temperature inside the chip value to adjust the cooling mechanism.

舉例來說,在大型的網路交換器系統中,會有許多大功耗的晶片,這些大功耗晶片通常都帶有溫度計的功能,讓系統得知當下的晶片內部溫度,於是外部散熱系統即根據溫度計讀值執行溫度調節,例如啟動風扇並控制轉速等。因此晶片中的溫度計是相當重要的元件。For example, in a large-scale network switch system, there will be many chips with high power consumption. These chips with high power consumption usually have a thermometer function to let the system know the current internal temperature of the chip, so the external heat dissipation system That is, temperature adjustments are performed based on thermometer readings, such as starting fans and controlling the speed, etc. Therefore, the thermometer in the chip is a very important element.

進一步地,晶片中的溫度計於啟用前需先校正溫度,藉以提升溫度計的精準度,而準確的溫度校正必須能精確地找到溫度計的讀值與環境溫度的相對應關係。例如,通常溫度計都是在啟動電源後經由軟體讀取溫度計當下的溫度值,但此時溫度計得到的溫度值已經過了電源啟動時溫度量測的時間點,因此並不具有即時性。Furthermore, the temperature of the thermometer in the chip needs to be calibrated before being used to improve the accuracy of the thermometer, and accurate temperature calibration must be able to accurately find the corresponding relationship between the reading value of the thermometer and the ambient temperature. For example, usually the thermometer reads the current temperature value of the thermometer through software after the power is turned on, but the temperature value obtained by the thermometer at this time has passed the time point of temperature measurement when the power is turned on, so it is not instant.

特別的是,功耗大的晶片一旦啟動後,晶片溫度上升非常快,由於無法於第一時間得到溫度計的溫度值,因此溫度計的溫度校正會有所偏差。加上實際運作時,若僅以軟體做動態讀取溫度值,無法由晶片自動記錄某段期間的最高與最低溫度點的功能,也無法由晶片準確地主動發出中斷(interrupt)信息。In particular, once the chip with high power consumption is started, the temperature of the chip rises very quickly. Since the temperature value of the thermometer cannot be obtained immediately, the temperature correction of the thermometer will be biased. In addition, in actual operation, if only the software is used to dynamically read the temperature value, the function of automatically recording the highest and lowest temperature points during a certain period of time cannot be automatically recorded by the chip, nor can the chip accurately and actively send interrupt information.

有鑑於習知技術採用軟體方法取得晶片(積體電路)或特定電路內溫度計讀值缺乏即時性的問題,提出一種電路內讀取溫度值的方法以及相關電路,其目的之一是在改善電路內部溫度計讀值的即時性,解決由軟體介入讀取數值的時間點太晚的問題。In view of the lack of immediacy of the reading value of the thermometer in the chip (integrated circuit) or a specific circuit by using a software method in the conventional technology, a method for reading the temperature value in the circuit and related circuits are proposed. One of the purposes is to improve the circuit The immediacy of the reading value of the internal thermometer solves the problem that the time point of reading the value by the software is too late.

根據實施例,在電路內讀取溫度值的方法中,於一電路系統啟動後,啟動一閂鎖電路,以閂鎖住一溫度量測電路產生的初始溫度值,並記錄於一暫存器中。所提出以硬體電路閂鎖初始溫度值的方式可以即時而準確地記錄電路的初始溫度值,使得記錄於暫存器中的初始溫度值可作為電路系統中溫度量測電路量測溫度的一校正基礎。According to an embodiment, in the method for reading a temperature value in a circuit, after a circuit system is started, a latch circuit is activated to latch an initial temperature value generated by a temperature measurement circuit and record it in a temporary register middle. The proposed method of latching the initial temperature value of the hardware circuit can record the initial temperature value of the circuit in real time and accurately, so that the initial temperature value recorded in the temporary register can be used as a part of the temperature measurement circuit in the circuit system. Calibration basis.

進一步地,所述溫度量測電路可連續或定時量測電路的溫度,並還通過一數值儲存電路閂鎖一段時間內的最高溫度值與最低溫度值,並分別記錄至最大值暫存器與最小值暫存器中,如此,可改善習知採用軟體方法讀取溫度值無法立即讀取溫度值的問題,目的之一是能夠讓使用者知道電路系統工作的最高值與最低值。Further, the temperature measurement circuit can measure the temperature of the circuit continuously or periodically, and also latch the highest temperature value and the lowest temperature value within a certain period of time through a value storage circuit, and record them respectively in the maximum value register and In the minimum value register, this can improve the conventional problem that the temperature value cannot be read immediately by using the software method, and one of the purposes is to let the user know the highest value and the lowest value of the circuit system.

進一步地,電路系統中還設有一中斷電路,可根據溫度量測電路所輸出的溫度值比對一高門檻值與一低門檻值,以決定發出一高中斷信號或一低中斷信號。在一實施方案中,當中斷電路發出高中斷信號或低中斷信號至外部電路時,外部電路可依據接收的中斷信號執行溫度調節。Furthermore, an interrupt circuit is also provided in the circuit system, which can compare a high threshold value and a low threshold value according to the temperature value output by the temperature measuring circuit to determine whether to send a high interrupt signal or a low interrupt signal. In one embodiment, when the interrupt circuit sends a high interrupt signal or a low interrupt signal to the external circuit, the external circuit can perform temperature regulation according to the received interrupt signal.

優選地,所述電路系統如積體電路,其主要設有上述實施例提出的啟動控制電路、溫度量測電路與閂鎖電路,以能運行電路內讀取溫度值的方法。其中,於電路系統啟動後,啟動閂鎖電路,以閂鎖住溫度量測電路產生的初始溫度值,並記錄於暫存器中。在另一方案中,或以一數值儲存電路閂鎖一段時間內的最高溫度值與最低溫度值。Preferably, the circuit system is such as an integrated circuit, which is mainly provided with the start-up control circuit, temperature measurement circuit and latch circuit proposed in the above embodiments, so as to be able to operate the method of reading the temperature value in the circuit. Wherein, after the circuit system is activated, the latch circuit is activated to latch the initial temperature value generated by the temperature measurement circuit and record it in the register. In another solution, the highest temperature value and the lowest temperature value within a certain period of time when the circuit latch is locked may be stored as a value.

為使能更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與圖式,然而所提供的圖式僅用於提供參考與說明,並非用來對本發明加以限制。In order to further understand the features and technical content of the present invention, please refer to the following detailed description and drawings related to the present invention. However, the provided drawings are only for reference and description, and are not intended to limit the present invention.

以下是通過特定的具體實施例來說明本發明的實施方式,本領域技術人員可由本說明書所公開的內容瞭解本發明的優點與效果。本發明可通過其他不同的具體實施例加以施行或應用,本說明書中的各項細節也可基於不同觀點與應用,在不悖離本發明的構思下進行各種修改與變更。另外,本發明的附圖僅為簡單示意說明,並非依實際尺寸的描繪,事先聲明。以下的實施方式將進一步詳細說明本發明的相關技術內容,但所公開的內容並非用以限制本發明的保護範圍。The implementation of the present invention is described below through specific specific examples, and those skilled in the art can understand the advantages and effects of the present invention from the content disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and various modifications and changes can be made to the details in this specification based on different viewpoints and applications without departing from the concept of the present invention. In addition, the drawings of the present invention are only for simple illustration, and are not drawn according to the actual size, which is stated in advance. The following embodiments will further describe the relevant technical content of the present invention in detail, but the disclosed content is not intended to limit the protection scope of the present invention.

應當可以理解的是,雖然本文中可能會使用到“第一”、“第二”、“第三”等術語來描述各種元件或者信號,但這些元件或者信號不應受這些術語的限制。這些術語主要是用以區分一元件與另一元件,或者一信號與另一信號。另外,本文中所使用的術語“或”,應視實際情況可能包括相關聯的列出項目中的任一個或者多個的組合。It should be understood that although terms such as "first", "second", and "third" may be used herein to describe various elements or signals, these elements or signals should not be limited by these terms. These terms are mainly used to distinguish one element from another element, or one signal from another signal. In addition, the term "or" used herein may include any one or a combination of more of the associated listed items depending on the actual situation.

揭露書提出一種電路系統以及在電路內讀取溫度值的方法,其目的之一是在改善電路系統(如積體電路(IC))內部溫度計讀值的即時性,解決由軟體介入讀取數值的時間點太晚的問題,以能即時且正確地得出溫度值。根據所述方法,可由電路系統內一閂鎖電路讀取溫度計所量測的溫度值,取代習知由軟體讀取溫度數值的方法。The disclosure book proposes a circuit system and a method for reading temperature values in the circuit. One of its purposes is to improve the real-time reading of thermometers inside the circuit system (such as integrated circuits (IC)) and solve the problem of reading values by software intervention. The time point is too late, so that the temperature value can be obtained immediately and correctly. According to the method, the temperature value measured by the thermometer can be read by a latch circuit in the circuit system, replacing the conventional method of reading the temperature value by software.

在此一提的是,電路系統中的溫度量測電路於啟用前需先做溫度校正,藉以提升量測溫度的精準度,而準確的溫度校正必須能精確地找到溫度量測電路的讀值與環境溫度的相對應關係,因此,為了改善習知以軟體方法取得溫度讀數會有延遲的問題,例如讀取溫度量測電路的溫度值時已經過了電路系統啟動當下的時間點,不具有即時性,所提出的電路內讀取溫度值的方法提出可以即時取得校正溫度量測電路的參考依據。It should be mentioned here that the temperature measurement circuit in the circuit system needs to be calibrated before it is used to improve the accuracy of temperature measurement, and accurate temperature calibration must be able to accurately find the reading value of the temperature measurement circuit The corresponding relationship with the ambient temperature. Therefore, in order to improve the conventional problem of delay in obtaining temperature readings by software methods, for example, when reading the temperature value of the temperature measurement circuit, the time point at which the circuit system is started has passed, and there is no Immediateness, the proposed method for reading the temperature value in the circuit proposes that the reference basis for calibrating the temperature measurement circuit can be obtained in real time.

根據電路內讀取溫度值的方法的實施例,通過電路系統中設置閂鎖電路(latch circuit)即時而準確地取得電路系統的初始溫度值,如圖1所示的實施例流程圖。應用電路內讀取溫度值的方法的電路系統如一系統中的積體電路(IC),特別是對溫度調整有需求的大功耗電路。According to the embodiment of the method for reading the temperature value in the circuit, the initial temperature value of the circuit system is obtained instantly and accurately by setting a latch circuit in the circuit system, as shown in the flow chart of the embodiment in FIG. 1 . The circuit system that uses the method of reading the temperature value in the circuit is like an integrated circuit (IC) in a system, especially a circuit with large power consumption that requires temperature adjustment.

在此流程實施例中,當啟動電路系統(步驟S101)時,這時的溫度值可用於日後提供溫度量測電路校準的用途。在此實施例中,通過其中的啟動控制電路(power-on controller)發出一閂鎖觸發信號至閂鎖電路,使得觸發閂鎖電路閂鎖住這時溫度量測電路輸出的一初始溫度值(步驟S103),並儲存於一暫存器中。如此,儲存於此暫存器中的初始溫度值因為採用硬體電路的運作而具有即時性,可作為溫度量測電路量測電路的工作溫度的校正基礎。In this process embodiment, when the circuit system is started (step S101 ), the temperature value at this time can be used for future calibration of the temperature measurement circuit. In this embodiment, a latch trigger signal is sent to the latch circuit through the power-on controller therein, so that the trigger latch circuit latches an initial temperature value output by the temperature measurement circuit at this time (step S103), and store in a register. In this way, the initial temperature value stored in the temporary register is real-time due to the operation of the hardware circuit, and can be used as a calibration basis for the temperature measurement circuit to measure the working temperature of the circuit.

在電路系統運作過程中,溫度量測電路可隨時輸出溫度值,可以通過數值儲存電路系統記錄最高溫度值與最低溫度值(步驟S105),一旦能準確地得到電路系統運作過程中的最高溫度與最低溫度,即可以即時地根據溫度值執行溫度調節(步驟S107)。During the operation of the circuit system, the temperature measurement circuit can output temperature values at any time, and the maximum temperature value and the minimum temperature value can be recorded through the numerical storage circuit system (step S105). Once the maximum temperature and the minimum temperature value during the operation of the circuit system can be accurately obtained The lowest temperature, that is, the temperature adjustment can be performed immediately according to the temperature value (step S107 ).

在此一提的是,以大功耗電路為例,這類電路系統通常溫度上升非常快,若無法於第一時間得到溫度量測電路的溫度值,例如可能會錯過電路系統啟動時的初始溫度值,可能或錯過產生最高溫度值或最低溫度值的時間點,也因此可能錯過電路系統發出中斷(interrupt)信號的時間點,也會使得溫度校正會有所偏差,也就可能誤判電路系統的最高與最低溫度值,影響後續溫度調節的措施。What is mentioned here is that, taking a circuit with high power consumption as an example, the temperature of this type of circuit system usually rises very quickly. If the temperature value of the temperature measurement circuit cannot be obtained at the first time, for example, the initial temperature of the circuit system may be missed. The temperature value may miss the time point when the highest temperature value or the lowest temperature value is generated, and therefore may miss the time point when the circuit system sends an interrupt signal, which will also cause a deviation in temperature correction, and may misjudge the circuit system The maximum and minimum temperature values of , affect the subsequent temperature adjustment measures.

圖2顯示實現所述電路內讀取溫度值的方法的電路系統實施例圖。Fig. 2 shows a diagram of an embodiment of a circuit system for realizing the method for reading a temperature value in the circuit.

應用所述方法的電路系統如積體電路,圖中所示電路可為溫度值讀取的相關電路,主要電路包括啟動控制電路20,其電性連接其他電路,包括溫度量測電路22與閂鎖電路201。溫度量測電路22受控於啟動控制電路20,通過控制權轉移可以執行重置(reset)溫度量測電路22、初始化溫度量測電路22。其中通過閂鎖電路以閂鎖住初始溫度,並可包括最高溫度值與最低溫度值,接著在完成閂鎖溫度值後,將控制權交還給相關系統。The circuit system applying the method is such as an integrated circuit. The circuit shown in the figure can be a related circuit for temperature value reading. The main circuit includes a start-up control circuit 20, which is electrically connected to other circuits, including a temperature measurement circuit 22 and a latch. Lock circuit 201. The temperature measurement circuit 22 is controlled by the startup control circuit 20 , and the temperature measurement circuit 22 can be reset and initialized through the transfer of the control right. The initial temperature is latched by a latch circuit, which may include a maximum temperature value and a minimum temperature value, and then the control right is returned to the relevant system after the temperature value is latched.

運作時,閂鎖電路201根據啟動控制電路20產生的指令閂鎖溫度量測電路22通過同步資料處理電路24輸出的溫度值,並可將溫度值記錄於電路系統中的暫存器中。在此實施例中,提出了硬體電路的解決方案,相關電路包括閂鎖電路201以及對應的暫存器207、數值儲存電路203以及其中用於記錄最高溫度值的最大值暫存器208以及記錄最低溫度值的最小值暫存器209,以及能夠根據溫度值變化即時發出中斷信號的中斷電路205。During operation, the latch circuit 201 latches the temperature value output by the temperature measurement circuit 22 through the synchronous data processing circuit 24 according to the command generated by the start-up control circuit 20, and can record the temperature value in the temporary register in the circuit system. In this embodiment, a hardware circuit solution is proposed, and the relevant circuit includes a latch circuit 201 and a corresponding temporary register 207, a value storage circuit 203, and a maximum value register 208 for recording the highest temperature value and The minimum value register 209 records the minimum temperature value, and the interrupt circuit 205 can send an interrupt signal immediately according to the change of the temperature value.

舉例來說,當電路系統啟動後,將控制權轉移至啟動控制電路20,啟動控制電路20除了重置溫度量測電路22,還通過發出一閂鎖觸發信號211觸發而啟動閂鎖電路201,以即時閂鎖住溫度量測電路22產生的一初始溫度值,並記錄於暫存器207中,記錄於此暫存器207中的初始溫度值可以被其他電路隨時存取,包括作為溫度量測電路22量測電路系統的溫度的校正基礎。根據其中之一實施方式,閂鎖電路201的運作可以一數位電路中的非同步時序邏輯電路(asynchronous sequential logic circuit)實現,可用來記錄狀態資訊(1或0),一個閂鎖(latch)可以儲存一位元的資訊,多個閂鎖即可記錄一個完整的資訊,如儲存至暫存器207的溫度值。For example, when the circuit system is started, the control right is transferred to the start control circuit 20, and the start control circuit 20 not only resets the temperature measurement circuit 22, but also triggers and starts the latch circuit 201 by sending a latch trigger signal 211, An initial temperature value generated by the temperature measurement circuit 22 is latched in real time and recorded in the temporary register 207. The initial temperature value recorded in the temporary register 207 can be accessed by other circuits at any time, including as a temperature value. The measurement circuit 22 is the basis for correcting the temperature of the measurement circuit system. According to one of the implementations, the operation of the latch circuit 201 can be realized by an asynchronous sequential logic circuit (asynchronous sequential logic circuit) in a digital circuit, which can be used to record state information (1 or 0), and a latch (latch) can By storing one bit of information, multiple latches can record a complete information, such as the temperature value stored in the temporary register 207 .

進一步地,電路系統中還設有利用閂鎖技術記錄最高溫度值與最低溫度值的數值儲存電路203,溫度量測電路22連續不間斷地量測電路系統的溫度,還通過數值儲存電路203通過同步資料處理電路24取得溫度量測電路22輸出的溫度值(溫度信號212),以能閂鎖一段時間內的最高溫度值與最低溫度值,並分別記錄至暫存器中,如圖示的最大值暫存器208與最小值暫存器209,而最高溫度值與最低溫度值會隨著持續量測電路系統的溫度而動態更新。Furthermore, the circuit system is also provided with a value storage circuit 203 that uses latch technology to record the highest temperature value and the minimum temperature value. The temperature measurement circuit 22 continuously measures the temperature of the circuit system, and also passes through the value storage circuit 203 The synchronous data processing circuit 24 obtains the temperature value (temperature signal 212) output by the temperature measurement circuit 22, so as to be able to latch the highest temperature value and the lowest temperature value within a period of time, and record them respectively in the register, as shown in the figure The maximum value register 208 and the minimum value register 209, and the maximum temperature value and the minimum temperature value will be updated dynamically as the temperature of the circuit system is continuously measured.

通過所述電路系統中數值儲存電路203主動紀錄某時間內最高與最低的溫度值,並存放於暫存器中,可供使用者得知此電路系統運作時最即時且完整的溫度變化。舉例來說,當電路系統受測時,在溫度測試項目中,可以通過數值儲存電路203所記錄的溫度值取得電路系統在各種溫度下的運作情況。The value storage circuit 203 in the circuit system actively records the highest and lowest temperature values within a certain period of time and stores them in the temporary register, so that the user can know the most immediate and complete temperature change when the circuit system is in operation. For example, when the circuit system is tested, in the temperature test item, the operation conditions of the circuit system at various temperatures can be obtained through the temperature value recorded by the value storage circuit 203 .

進一步地,電路系統還設有中斷電路205,實施例可為一比較器,能夠以高低門檻213(如設有一高門檻值與一低門檻值)比對自溫度量測電路22取得連續量測電路系統的即時溫度,中斷電路205即根據比對結果決定發出一高中斷信號215或一低中斷信號217。Furthermore, the circuit system is also provided with an interrupt circuit 205, which can be a comparator in an embodiment, and can obtain continuous measurements from the temperature measurement circuit 22 by comparing the high and low thresholds 213 (for example, a high threshold and a low threshold) The interrupt circuit 205 decides to send a high interrupt signal 215 or a low interrupt signal 217 according to the comparison result of the real-time temperature of the circuit system.

在中斷電路205中,可以根據即時量測到的溫度值主動發出中斷信號。例如,當溫度量測電路22輸出的溫度值(溫度信號212)高於設定的高門檻值,即發出高中斷信號215至一外部電路26;於判斷出溫度值低於低門檻值,發出低中斷信號217至外部電路26。如此,外部電路26可以根據所接收的中斷信號(高中斷信號215或低中斷信號217)執行後續措施,例如溫度調節。In the interrupt circuit 205, an interrupt signal can be actively sent out according to the temperature value measured immediately. For example, when the temperature value (temperature signal 212) output by the temperature measurement circuit 22 is higher than the set high threshold value, a high interrupt signal 215 is sent to an external circuit 26; when the temperature value is judged to be lower than the low threshold value, a low signal is sent. Interrupt signal 217 to external circuit 26 . In this way, the external circuit 26 can perform subsequent measures, such as temperature regulation, according to the received interrupt signal (high interrupt signal 215 or low interrupt signal 217 ).

根據所述電路內讀取溫度值的方法,可進一步參考圖3所示的實施例流程圖。According to the method for reading the temperature value in the circuit, further reference may be made to the flow chart of the embodiment shown in FIG. 3 .

電路系統經啟動後(步驟S301),通過啟動控制電路控制其中量測溫度相關電路的運作,包括先重置溫度量測電路(即電路系統中溫度計)(步驟S303),接著溫度量測電路開始進行初始化(步驟S305)。當溫度量測電路完成初始化並開始量測溫度時,啟動控制電路向閂鎖電路發出閂鎖觸發信號,使得觸發閂鎖電路以閂鎖初始溫度值(步驟S307)。After the circuit system is started (step S301), the operation of the circuit related to temperature measurement is controlled by starting the control circuit, including first resetting the temperature measurement circuit (that is, the thermometer in the circuit system) (step S303), and then the temperature measurement circuit starts Perform initialization (step S305). When the temperature measurement circuit completes the initialization and starts to measure the temperature, the startup control circuit sends a latch trigger signal to the latch circuit, so that the latch circuit is triggered to latch the initial temperature value (step S307 ).

之後,溫度量測電路持續運作,連續輸出溫度值(步驟S309),在電路系統中,還能閂鎖一段時間內的最高溫度值與最低溫度值(步驟S311),並且隨著電路系統與溫度量測電路持續運作,通過暫存器記錄的最高溫度值與最低溫度值可動態地更新到最新的狀態。Afterwards, the temperature measurement circuit continues to operate and continuously outputs temperature values (step S309). In the circuit system, the highest temperature value and the lowest temperature value within a period of time can also be latched (step S311). The measurement circuit operates continuously, and the maximum and minimum temperature values recorded in the register can be dynamically updated to the latest state.

在持續取得溫度值的過程中,中斷電路可以比對即時得到的溫度值與預設的高低門檻值(包括高門檻值與低門檻值)判斷是否發出中斷信息(步驟S313)。在步驟S315,即判斷即時溫度是否超過門檻值。若尚未達到門檻值(否),流程回到步驟S309,持續取得溫度值,並比對高低門檻值,做出後續判斷;若已經達到門檻值(是),例如即時溫度高於高門檻值或低於低門檻值,即採取調節溫度的措施(步驟S317)。In the process of continuously obtaining the temperature value, the interrupt circuit can compare the immediately obtained temperature value with the preset high and low thresholds (including the high threshold and the low threshold) to determine whether to send an interrupt message (step S313 ). In step S315, it is judged whether the instant temperature exceeds the threshold value. If the threshold value has not been reached (No), the process returns to step S309 to continuously obtain the temperature value and compare the high and low threshold values to make a subsequent judgment; if the threshold value has been reached (Yes), for example, the immediate temperature is higher than the high threshold value or If the temperature is lower than the low threshold value, measures to adjust the temperature are taken (step S317).

舉例來說,當即時溫度超過門檻值,即達到發出中斷信號的門檻,通過電路系統中的中斷電路發出中斷信號至外部電路。所述外部電路例如是一中央處理器(CPU)或特定控制電路,能根據中斷信號執行後續措施。以調節溫度為例,可以加速風扇轉速、減低風扇轉速,降頻或升頻等方式調節溫度。For example, when the real-time temperature exceeds the threshold, that is, the threshold for sending an interrupt signal is reached, the interrupt circuit in the circuit system sends an interrupt signal to the external circuit. The external circuit is, for example, a central processing unit (CPU) or a specific control circuit, which can execute follow-up measures according to the interrupt signal. Take adjusting the temperature as an example, you can speed up the fan speed, reduce the fan speed, reduce or increase the frequency, etc. to adjust the temperature.

綜上所述,根據以上描述的電路系統與電路內讀取溫度值的方法的實施例,方法適用於具有溫度量測電路與功耗較大的電路中,在電路中額外設置一個閂鎖電路,並可包括用來閂鎖最高溫度值與最低溫度值的電路,與中斷電路。當電路系統可以準確地取得初始溫度值時,表示相關溫度量測電路可以據此進行校正,以能準確量測電路系統的溫度,做出即時而正確的反應,如調節溫度,加上,所閂鎖的最高與最低溫度值可以動態地修正讀數並更新暫存器,其目的之一是能讓使用者知道電路系統工作的最高值與最低值,有利於電路系統在高低溫循環測試。更者,準確的溫度值可以讓電路系統準確地產生中斷信號,並正確地採取後續措施,如散熱措施。In summary, according to the above-described embodiment of the circuit system and the method for reading the temperature value in the circuit, the method is suitable for a circuit with a temperature measurement circuit and a large power consumption, and an additional latch circuit is provided in the circuit , and may include a circuit for latching the highest temperature value and the lowest temperature value, and an interrupt circuit. When the circuit system can accurately obtain the initial temperature value, it means that the relevant temperature measurement circuit can be corrected accordingly, so as to accurately measure the temperature of the circuit system and make an immediate and correct response, such as adjusting the temperature. The maximum and minimum temperature values of the latch can dynamically correct the reading and update the temporary register. One of the purposes is to let the user know the maximum and minimum values of the circuit system, which is beneficial to the circuit system in high and low temperature cycle testing. What's more, an accurate temperature value allows the circuit system to accurately generate an interrupt signal and take subsequent measures, such as heat dissipation measures, correctly.

以上所公開的內容僅為本發明的優選可行實施例,並非因此侷限本發明的申請專利範圍,所以凡是運用本發明說明書及圖式內容所做的等效技術變化,均包含於本發明的申請專利範圍內。The content disclosed above is only a preferred feasible embodiment of the present invention, and does not therefore limit the scope of the patent application of the present invention. Therefore, all equivalent technical changes made by using the description and drawings of the present invention are included in the application of the present invention. within the scope of the patent.

20:啟動控制電路 22:溫度量測電路 24:同步資料處理電路 26:外部電路 215:高中斷信號 217:低中斷信號 211:閂鎖觸發信號 212:溫度信號 201:閂鎖電路 207:暫存器 203:數值儲存電路 208:最大值暫存器 209:最小值暫存器 205:中斷電路 213:高低門檻 S101~S107步驟:電路內讀取溫度值的方法流程 S301~S317步驟:電路內讀取溫度值的方法流程 20: Start the control circuit 22: Temperature measurement circuit 24: Synchronous data processing circuit 26: External circuit 215: High interrupt signal 217: Low interrupt signal 211: Latch trigger signal 212: temperature signal 201: Latch circuit 207: Temporary register 203: Value storage circuit 208: Maximum value temporary register 209: minimum register 205: interrupt circuit 213: High and low threshold S101~S107 steps: the method flow of reading temperature value in the circuit S301~S317 steps: the method flow of reading temperature value in the circuit

圖1顯示電路系統內讀取溫度值的方法的實施例流程圖;Fig. 1 shows the embodiment flowchart of the method for reading temperature value in circuit system;

圖2顯示實現所述電路內讀取溫度值的方法的電路系統實施例圖;以及Fig. 2 shows the circuit system embodiment diagram that realizes the method for reading temperature value in the circuit; And

圖3顯示電路內讀取溫度值的方法的實施例流程圖。FIG. 3 shows a flowchart of an embodiment of a method for reading a temperature value within a circuit.

20:啟動控制電路 20: Start the control circuit

22:溫度量測電路 22: Temperature measurement circuit

24:同步資料處理電路 24: Synchronous data processing circuit

26:外部電路 26: External circuit

215:高中斷信號 215: High interrupt signal

217:低中斷信號 217: Low interrupt signal

211:閂鎖觸發信號 211: Latch trigger signal

212:溫度信號 212: temperature signal

201:閂鎖電路 201: Latch circuit

207:暫存器 207: Temporary register

203:數值儲存電路 203: Value storage circuit

208:最大值暫存器 208: Maximum value register

209:最小值暫存器 209: minimum register

205:中斷電路 205: interrupt circuit

213:高低門檻 213: High and low threshold

Claims (10)

一種電路內讀取溫度值的方法,包括: 於一電路啟動後,啟動一閂鎖電路;以及 通過該閂鎖電路閂鎖住一溫度量測電路產生的一初始溫度值,並記錄於一暫存器中; 其中,記錄於該暫存器中的該初始溫度值作為該溫度量測電路量測該電路的溫度的一校正基礎。 A method of reading a temperature value within a circuit, comprising: activating a latch circuit after activation of a circuit; and An initial temperature value generated by a temperature measurement circuit is latched by the latch circuit and recorded in a register; Wherein, the initial temperature value recorded in the register is used as a correction basis for the temperature measuring circuit to measure the temperature of the circuit. 如請求項1所述的電路內讀取溫度值的方法,其中通過該溫度量測電路連續量測該電路的溫度,還通過一數值儲存電路閂鎖一段時間內的一最高溫度值與一最低溫度值,並分別記錄至一最大值暫存器與一最小值暫存器,其中分別記錄於該最大值暫存器與該最小值暫存器的該最高溫度值與該最低溫度值隨著持續量測該電路的溫度而動態更新。The method for reading a temperature value in a circuit as described in Claim 1, wherein the temperature of the circuit is continuously measured through the temperature measurement circuit, and a maximum temperature value and a minimum temperature value within a certain period of time are also latched by a value storage circuit The temperature value is recorded into a maximum value temporary register and a minimum value temporary register respectively, wherein the maximum temperature value and the minimum temperature value respectively recorded in the maximum value temporary register and the minimum value temporary register follow with The temperature of the circuit is continuously measured and dynamically updated. 如請求項1所述的電路內讀取溫度值的方法,其中通過該溫度量測電路連續量測該電路的溫度,該電路中還設有一中斷電路,根據該溫度量測電路所輸出的一溫度值比對一高門檻值與一低門檻值,以決定發出一高中斷信號或一低中斷信號;其中該中斷電路判斷出該溫度值高於該高門檻值,發出該高中斷信號至一外部電路;於判斷出該溫度值低於該低門檻值,發出該低中斷信號至該外部電路。The method for reading a temperature value in a circuit as described in claim 1, wherein the temperature of the circuit is continuously measured through the temperature measurement circuit, and an interrupt circuit is also provided in the circuit, according to a signal output by the temperature measurement circuit The temperature value is compared with a high threshold value and a low threshold value to determine whether to send a high interrupt signal or a low interrupt signal; wherein the interrupt circuit judges that the temperature value is higher than the high threshold value, and sends the high interrupt signal to a An external circuit; when it is determined that the temperature value is lower than the low threshold value, the low interrupt signal is sent to the external circuit. 如請求項3所述的電路內讀取溫度值的方法,其中該外部電路根據該中斷電路發出的該高中斷信號或該低中斷信號執行溫度調節。The method for reading a temperature value in a circuit according to claim 3, wherein the external circuit performs temperature adjustment according to the high interrupt signal or the low interrupt signal sent by the interrupt circuit. 如請求項1至4中任一項所述的電路內讀取溫度值的方法,其中該電路設有一啟動控制電路,於該電路啟動後發出一閂鎖觸發信號至該閂鎖電路以觸發該閂鎖電路閂鎖住該初始溫度值。The method for reading a temperature value in a circuit as described in any one of claims 1 to 4, wherein the circuit is provided with a startup control circuit, and after the circuit is started, a latch trigger signal is sent to the latch circuit to trigger the latch circuit A latch circuit latches the initial temperature value. 如請求項5所述的電路內讀取溫度值的方法,其中該啟動控制電路於該電路啟動後,重置該溫度量測電路,並於該溫度量測電路初始化後,發出該閂鎖觸發信號。The method for reading a temperature value in a circuit as described in Claim 5, wherein the startup control circuit resets the temperature measurement circuit after the circuit is started, and sends the latch trigger after the temperature measurement circuit is initialized Signal. 一電路系統,其中運行一電路內讀取溫度值的方法,包括: 一啟動控制電路; 一溫度量測電路,受控於該啟動控制電路,連續量測該電路的溫度; 一閂鎖電路,電性連接該啟動控制電路,根據該啟動控制電路產生的指令閂鎖該溫度量測電路輸出的一溫度值,並記錄於一暫存器中; 其中,於該電路啟動後,發出一閂鎖觸發信號至該閂鎖電路,以觸發該閂鎖電路以閂鎖住該溫度量測電路產生的一初始溫度值,並記錄於該暫存器中;記錄於該暫存器中的該初始溫度值作為該溫度量測電路量測該電路的溫度的一校正基礎。 A circuit system in which a method of reading a temperature value within a circuit operates, comprising: - start the control circuit; A temperature measurement circuit, controlled by the start-up control circuit, continuously measures the temperature of the circuit; A latch circuit, electrically connected to the start control circuit, latches a temperature value output by the temperature measurement circuit according to an instruction generated by the start control circuit, and records it in a temporary register; Wherein, after the circuit is started, a latch trigger signal is sent to the latch circuit to trigger the latch circuit to latch an initial temperature value generated by the temperature measurement circuit, and record it in the register ; The initial temperature value recorded in the register is used as a correction basis for the temperature measurement circuit to measure the temperature of the circuit. 如請求項7所述的電路系統,還包括一數值儲存電路,接收該溫度量測電路輸出的溫度值,用以閂鎖一段時間內的一最高溫度值與一最低溫度值,並分別記錄至一最大值暫存器與一最小值暫存器,其中分別記錄於該最大值暫存器與該最小值暫存器的該最高溫度值與該最低溫度值隨著持續量測該電路的溫度而動態更新。The circuit system as described in claim item 7, further includes a value storage circuit, which receives the temperature value output by the temperature measurement circuit, and is used to latch a maximum temperature value and a minimum temperature value within a period of time, and record them respectively to a maximum value register and a minimum value register, wherein the maximum temperature value and the minimum temperature value respectively recorded in the maximum value register and the minimum value register are continuously measured as the temperature of the circuit And dynamic updates. 如請求項7所述的電路系統,還設有一中斷電路,根據該溫度量測電路所輸出的該溫度值比對一高門檻值與一低門檻值,以決定發出一高中斷信號或一低中斷信號。In the circuit system described in claim 7, an interrupt circuit is also provided, and a high threshold value and a low threshold value are compared according to the temperature value output by the temperature measurement circuit to determine whether to send a high interrupt signal or a low interrupt signal. 如請求項9所述的電路系統,其中該中斷電路判斷出該溫度值高於該高門檻值,發出該高中斷信號至一外部電路;於判斷出該溫度值低於該低門檻值,發出該低中斷信號至該外部電路;其中該外部電路根據該中斷電路發出的該高中斷信號或該低中斷信號執行溫度調節。The circuit system as described in claim 9, wherein the interrupt circuit judges that the temperature value is higher than the high threshold value, and sends the high interrupt signal to an external circuit; when it judges that the temperature value is lower than the low threshold value, sends The low interrupt signal is sent to the external circuit; wherein the external circuit performs temperature regulation according to the high interrupt signal or the low interrupt signal sent by the interrupt circuit.
TW110114073A 2021-04-20 2021-04-20 Circuit system and method for reading temperature value in circuit TWI806035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110114073A TWI806035B (en) 2021-04-20 2021-04-20 Circuit system and method for reading temperature value in circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110114073A TWI806035B (en) 2021-04-20 2021-04-20 Circuit system and method for reading temperature value in circuit

Publications (2)

Publication Number Publication Date
TW202242358A true TW202242358A (en) 2022-11-01
TWI806035B TWI806035B (en) 2023-06-21

Family

ID=85793254

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110114073A TWI806035B (en) 2021-04-20 2021-04-20 Circuit system and method for reading temperature value in circuit

Country Status (1)

Country Link
TW (1) TWI806035B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6789037B2 (en) * 1999-03-30 2004-09-07 Intel Corporation Methods and apparatus for thermal management of an integrated circuit die
KR100532445B1 (en) * 2003-07-04 2005-11-30 삼성전자주식회사 Temperature sensing circuit and method thereof
US7138820B2 (en) * 2004-04-30 2006-11-21 Xilinx, Inc. System monitor in a programmable logic device
US7149645B2 (en) * 2004-12-30 2006-12-12 Intel Corporation Method and apparatus for accurate on-die temperature measurement
US8734006B2 (en) * 2011-03-02 2014-05-27 International Business Machines Corporation Calibration of an on-die thermal sensor
KR101885857B1 (en) * 2012-01-04 2018-08-06 삼성전자주식회사 Temperature management unit, system on chip including the same and method of managing temperature in a system on chip

Also Published As

Publication number Publication date
TWI806035B (en) 2023-06-21

Similar Documents

Publication Publication Date Title
TWI463119B (en) Method, integrated circuit and system for temperature sensing and calibration
TWI330367B (en) Semiconductor memory and refresh cycle control method
US7117114B2 (en) On-die temperature control data for communicating to a thermal actuator
CN101142541B (en) Device and method for on-die temperature measurement
JP5254224B2 (en) Die-unit temperature programming for thermally efficient integrated circuit (IC) operation
JP2005004600A (en) Information processor, set temperature correction method, program, and recording medium
JP7332406B2 (en) memory system
US20080317086A1 (en) Self-calibrating digital thermal sensors
TW581948B (en) System and method for delaying a strobe signal
US8444316B2 (en) Temperature measuring device and method
US9484930B2 (en) Initializing components of an integrated circuit
US9442025B2 (en) System and method for calibrating temperatures sensor for integrated circuits
TWI806035B (en) Circuit system and method for reading temperature value in circuit
US9146597B2 (en) Minimizing aggregate cooling and leakage power with fast convergence
US6879928B2 (en) Method and apparatus to dynamically recalibrate VLSI chip thermal sensors through software control
EP3514960A1 (en) Systems and methods for on-chip temperature stabilization for temperature-sensitive components of integrated circuits
JP2006010677A (en) Temperature sensor device for information processor
US9696219B2 (en) Method for calibrating a measuring device in a mobile terminal
JP6897104B2 (en) Thermocouple temperature measuring device
TW201831903A (en) Memory device
US20240111327A1 (en) System and method to maintain clock stability in a complex computing platform
TWI633286B (en) Temperature-sensing circuit and correction method therefor
KR20180120377A (en) Apparatus and method for measuring body temperature in consideration of thermal conductivity
JP5800519B2 (en) Semiconductor system, its startup method, and program
WO2023272700A1 (en) Temperature control apparatus and method