1317872 九、發明說明: • 【發明所屬之技術領域】 本發明係關於一種控制電路,尤係一種電腦系統狀態 ‘ 監控(WATCHDOG)電路。 【先前技術】 、電腦系統狀態監控(WATCH DOG)又被稱爲看門狗 或加密狗,有電路和軟體兩種,其主要功能是監控,當某 ,件發生時即執行制定之工作,電腦之系統看門狗能夠在 系統死機時對系統產生重新啓動訊號。首先用戶可以設置 一個看門狗重啓時間,例如15秒,用戶必須每15秒内刷 # 新二次看門狗(用駐留程式實現),如果系統死機,則駐 留程式無法刷新看門狗,於是産生重新啓動訊號,重新啓 動系統。 糸統管理匯流排(System Management Bus,SMBUS) ^準由INTEL公司於1995年發佈,它以PHILIPS公司之 I2C (/Inter-IC)匯流排爲基礎,面向於“不同系統組成晶 片與系統其他部分間之通訊,’ 。SMBUS上僅有兩條訊號 線SMBCLK與SMBDATA,主要是爲了在系統上較慢速之 裝置及電源管理裝置之間之溝通使用,使系統可取得這些 φ 裝置之製造廠商、型號、一些控制資訊、錯誤訊息及狀態, 不同裝置都接在同一 SMBUS上。 在電腦系統運行時,SMBUS會透過該兩條訊號線 與SMBDATA輸出資料訊號,當系統死機時該訊 號就會停止輪出,而此時就需要一電腦系統狀態監控電路 對此做出回應’産生一重新啓動訊號來使系統恢復工作。 【發明内容】 黎於以上内容,有必要提供一種電腦系統狀態監控電 路。 一種電腦系統狀態監控電路,其包括: 6 P17872 轉換晶片’可與一系統管理匯流排連接,以# ^系統管理匯流排輸出之_資料 3 建行串/並轉換,苴中,告辞命HW<多从 並將5亥貝科讯唬 匯流排停止輸出該、資料訊J尚…死機h,该系統管理 接㈣拖ΐΐίϋ轉換晶片及—南橋晶片連接,可 停止刷新時,該計數器將該接收的的資料 行計數’並在計數完成時輸出置數開始進 二時脈發生電路,與該計數器電路-爲 電路提供工作時脈; 為孩计數益 及一第-電源’分別與該資料轉換晶片和計數器連接; —第一電源,與該時脈發生電路連接。 上述電腦系統狀態監控電路可監栌SMmTC 料訊號,在死機時SMBUS停止輪輸出之資 新啓動訊號,使系統重新啓動恢復 Η間後産生-重 【實施方式】 參考第-圖,係本發明電腦系統 2式之電路框圖,該電腦系統狀態監控電佳實 2換晶片10、一計數器12、一時脈發Π匕括一資 電源16及一第二電源is。該資料 、一第 管理匯流排100連接,獲取該系統片10與一系統 ^資料訊號’並將該資料訊號進行串/並棘=i00輪出之 數器12中。該計數n 12爲1 2換,輪出到該計 轉換晶片1〇接收之資料作爲預置公二;將從該資料 脈由時脈發生電路14提供。該ϋ仃$ ’其工作時 轉換晶片10和計數器12連接,二、^別與該資料 發生電路14連接。 °/弟—電源18與該時脈 參考第二圖’係本發明電腦系統狀態監控電路較佳實 7 1317872 施方式之電路圖。該第一電源16爲一 5V電源,該第二電 源18爲一 3.3V電源。 該資料轉換晶片10爲一 PCF8574晶片,其包括兩根 •輸入引腳SCL和SDA、一電源引腳VCC、一接地引腳 GND、三根狀態引腳A0~A2、四根輸出引腳P0〜P3及一 控制引腳P4,該輸入引腳SCL和SDA分別與該系統管理 匯流排100之對應訊號線SMBCLK與SMBDATA連接以 獲取一資料訊號,該電源引腳VCC與該第一電源16連 接,該接地引腳GND接地,該等狀態引腳A0和A1接地, 該狀態引腳A2與該第一電源16連接。 # 該計數器12爲一減法計數器,其包括四根輸入引腳 D0〜D3、一輸出引腳Q3、一狀態控制引腳PE、一電源引 腳VCC、一接地引腳GND、一時脈輸入引腳CP及三根輸 入控制引腳CEP、CET和MR,該等輸入引腳D0-D3分別 與該資料轉換晶片10之輸出引腳P0-P3對應連接,該電 源引腳VCC與該第一電源16連接,該接地引腳GND接 地,該等輸入控制引腳CEP、CET和MR分別與該第一電 源16連接,該狀態控制引腳PE與該資料轉換晶片10之 控制引腳P4連接,以獲取一工作指示訊號,該輸出引腳 _ Q3與南橋晶片連接,以傳輸一重新啓動訊號 RESET一SIGNAL。 該時脈發生電路14包括一施密特觸發器20、一電容 32及兩電阻28和30。該施密特觸發器20包括一輸入引 腳21、一輸出引腳22、一電源引腳24及一接地引腳26, 該輸入引腳21依次透過該等電阻28和30後與該輸出引 腳22連接,該輸入引腳21還透過該電容32與該接地引 腳26連接,該電源引腳24與該第二電源18連接,該接 地引腳26接地,該輸出引腳22與該計數器12之時脈輸 入引腳CP連接。 8 1317872 ,時脈發生電路14産生之時脈周期受電阻28和3〇 縐t谷32之容值、第二電源18電壓值以及施密特 見格等因素影f,在本實财式中該時 =生電路14之電容32之容值C爲1G uF,該電阻28和 9Π „ R1和R2均爲52.2ΚΩ,VtW爲施密特觸發器 變高之輸入門限電壓,vthh爲施密特觸發器2〇 輸人Η限電壓’本實施方式中·施密特觸 一i4106B 晶片’其爲 mv,ν爲 理.施後特觸發③2〇與rc充電回路産生方波之原 i Φ rLn{[(VCC"Vthl)*Vthh]/[(Vcc-Vthh)/Vthl]} ;p± 1+R2 ’ V<X爲3.3V,因此時脈發生電路14産生 之時脈周期T約爲900ms。 电 知計一數器12之最大記數時間約爲 新次料數器12之輸入引腳D0〜D3停止刷 叶12在‘^亥ψδ十數益12將預置數減至零,隨即該 彳數ro 12在s亥輸出引腳Q3産 聰T_SIGNAL至南橋晶片,使系統重新=啓動㈣ "十述電腦糸統狀態監控電路1開始卫作後,隨即開始 皿控系統管理匯流排1〇〇輪出 ^ ° 季统營理m Wmrwi 枓訊#u,當系統死機時 二:’該電腦系統狀 南橋^片,使系統重新啓動恢復工咖-邮隱至 綜上所述,本發明符合發明專利 :請。•,以上所述者僅為本發明之較佳 ,化,皆應涵蓋於以下==作之等辑 【圖式簡單說明】 第一圖係本發明電«統狀態監控電路紐實施方式之電 9 1317872 路框圖。 第二圖係本發明電腦系統狀態監控電路較佳實施方式之電 路圖。1317872 IX. Description of the invention: • Technical field to which the invention pertains The present invention relates to a control circuit, and more particularly to a computer system state ‘monitoring (WATCHDOG) circuit. [Prior Art], computer system status monitoring (WATCH DOG) is also known as watchdog or dongle, there are two kinds of circuits and software, its main function is to monitor, when a certain piece occurs, the work is performed, the computer The system watchdog can generate a restart signal to the system when the system freezes. First, the user can set a watchdog restart time, for example, 15 seconds. The user must brush #new secondary watchdog (implemented by the resident program) every 15 seconds. If the system crashes, the resident program cannot refresh the watchdog. A restart signal is generated and the system is restarted. System Management Bus (SMBUS) was released by INTEL in 1995. It is based on PHILIPS' I2C (/Inter-IC) bus and is designed to "different systems composing wafers and other parts of the system." Inter-communication, '. There are only two signal lines SMBCLK and SMBDATA on the SMBUS, mainly for the communication between the slower devices and the power management device on the system, so that the system can obtain the manufacturers of these φ devices, Model, some control information, error message and status, different devices are connected to the same SMBUS. When the computer system is running, SMBUS will output data signals through the two signal lines and SMBDATA. When the system freezes, the signal will stop. Out, at this time, a computer system state monitoring circuit is required to respond to this 'generating a restart signal to restore the system to work. [Invention content] In the above content, it is necessary to provide a computer system state monitoring circuit. Computer system status monitoring circuit, including: 6 P17872 conversion chip 'can be connected with a system management bus, to # ^System management bus output _ data 3 CCB string / and conversion, 苴中, 告命命HW<Multiple and will be 5 haibeike 唬 唬 停止 输出 该 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 Management connection (4) drag and drop ϋ conversion chip and - south bridge wafer connection, when the refresh can be stopped, the counter counts the received data line 'and outputs the set number into the second clock generation circuit when the counting is completed, and the counter circuit - Providing a working clock for the circuit; connecting to the data conversion chip and the counter for the first-power source respectively; - the first power source is connected to the clock generation circuit. The computer system state monitoring circuit can be monitored SMmTC material signal, the new startup signal of the SMBUS stop wheel output during the crash, so that the system restarts after the recovery period is generated - heavy [implementation] Referring to the figure - is a circuit block diagram of the computer system type 2 of the present invention, The computer system state monitoring electric good 2 exchange wafer 10, a counter 12, a clock transmission includes a power supply 16 and a second power supply is. The data, a management bus 100 is connected, Take the system slice 10 and a system ^ data signal 'and the data signal is serial/parallel=i00 rounded out the number 12. The count n 12 is 1 2, and the round to the conversion chip 1〇 The received data is used as a preset metric; the data is supplied from the clock generation circuit 14. The 转换$' is connected to the counter 12 and the counter 12 is connected to the data generating circuit 14. The first power source 16 is a 5V power supply, and the second power source 18 is a circuit diagram of the computer system state monitoring circuit of the present invention. 3.3V power supply. The data conversion chip 10 is a PCF8574 chip, which includes two input pins SCL and SDA, a power pin VCC, a ground pin GND, three state pins A0~A2, and four output pins P0~P3. And a control pin P4, wherein the input pins SCL and SDA are respectively connected to the corresponding signal lines SMBCLK and SMBDATA of the system management bus 100 to obtain a data signal, and the power pin VCC is connected to the first power source 16, The ground pin GND is grounded, and the state pins A0 and A1 are grounded, and the state pin A2 is connected to the first power source 16. # The counter 12 is a subtraction counter, which includes four input pins D0 to D3, an output pin Q3, a state control pin PE, a power pin VCC, a ground pin GND, and a clock input pin. The CP and three input control pins CEP, CET and MR, and the input pins D0-D3 are respectively connected to the output pins P0-P3 of the data conversion chip 10, and the power pin VCC is connected to the first power source 16. The grounding pin GND is grounded, and the input control pins CEP, CET, and MR are respectively connected to the first power source 16, and the state control pin PE is connected to the control pin P4 of the data conversion chip 10 to obtain a The work indicator signal, the output pin _ Q3 is connected to the south bridge chip to transmit a restart signal RESET_SIGNAL. The clock generation circuit 14 includes a Schmitt trigger 20, a capacitor 32, and two resistors 28 and 30. The Schmitt trigger 20 includes an input pin 21, an output pin 22, a power pin 24, and a ground pin 26, and the input pin 21 sequentially passes through the resistors 28 and 30 and the output pin. 22, the input pin 21 is further connected to the ground pin 26 through the capacitor 32. The power pin 24 is connected to the second power source 18, the ground pin 26 is grounded, and the output pin 22 and the counter 12 are connected. The clock input pin CP is connected. 8 1317872, the clock period generated by the clock generating circuit 14 is affected by the capacitance values of the resistors 28 and 3〇绉t valley 32, the voltage value of the second power source 18, and the Schmidt view, etc., in this real financial formula. At this time, the capacitance C of the capacitor circuit 14 has a capacitance C of 1 G uF, and the resistors 28 and 9 „ R1 and R2 are both 52.2 Ω, VtW is the input threshold voltage at which the Schmitt trigger becomes high, and vthh is Schmidt. Trigger 2 〇 Η Η ' ' ' ' ' ' i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i [(VCC"Vthl)*Vthh]/[(Vcc-Vthh)/Vthl]}; p± 1+R2 'V<X is 3.3V, so the clock generation period T generated by the clock generation circuit 14 is about 900 ms. The maximum count time of the counter 12 is about the input pin D0~D3 of the new counter 12 to stop the brush 12 from reducing the preset number to zero in the case of '^海ψδ十数益12, then the The number of turns ro 12 in the shai output pin Q3 production Cong T_SIGNAL to the South Bridge chip, so that the system re-start (four) " Shishu computer system state monitoring circuit 1 began to work, then began the control system management Flow 1 〇〇 wheel out ^ ° 季统理理 m Wmrwi 枓讯#u, when the system crashes two: 'The computer system-shaped South Bridge ^ piece, so that the system restarts to restore the business coffee - mail hidden to the above The invention conforms to the invention patent: please.•, the above is only the preferred and simplified of the present invention, and should be covered in the following == for the series [simplified description] The first picture is the invention « System state monitoring circuit New Zealand implementation mode 9 1317872 road block diagram. The second figure is a circuit diagram of a preferred embodiment of the computer system state monitoring circuit of the present invention.
【主要元件符號說明】 電腦糸統狀態監控電路 1 系統管理匯流排 100 資料轉換晶片 10 計數器 12 時脈發生電路 14 第一電源 16 第二電源 18 施密特觸發器 20 輸入引腳 21 輸出引腳 22 電源引腳 24 接地引腳 26 電阻 28 >30 電容 32[Main component symbol description] Computer system status monitoring circuit 1 System management bus 100 Data conversion chip 10 Counter 12 Clock generation circuit 14 First power supply 16 Second power supply 18 Schmitt trigger 20 Input pin 21 Output pin 22 Power Pin 24 Ground Pin 26 Resistor 28 > 30 Capacitor 32