US 10,890,616 B2
Self-check system and method thereof
Chih-Kai Huang, Zhubei (TW); Ping-Ying Chu, Hsinchu (TW); and Chih-Shien Yang, Hsinchu (TW)
Assigned to Nuvoton Technology Corporation, Hsinchu (TW)
Filed by NUVOTON TECHNOLOGY CORPORATION, Hsinchu (TW)
Filed on Apr. 4, 2019, as Appl. No. 16/375,097.
Claims priority of application No. 107135449 A (TW), filed on Oct. 8, 2018.
Prior Publication US 2020/0110130 A1, Apr. 9, 2020
Int. Cl. G01R 31/28 (2006.01); H03K 7/08 (2006.01); H03M 1/12 (2006.01)
CPC G01R 31/2827 (2013.01) [G01R 31/281 (2013.01); G01R 31/2803 (2013.01); H03K 7/08 (2013.01); H03M 1/12 (2013.01)] 11 Claims
OG exemplary drawing
 
1. A self-check system, adapted to a chip system comprising at least one to-be-checked circuit and a reset circuit, and the self-check system comprising:
a memory configured to store a first safety check program, a main application and a preset checksum data, wherein the first safety check program comprises a circuit check program, a watchdog circuit reset program and a checksum check program, and the main application comprises an interrupt call, and the preset checksum data corresponds to the first safety check program;
a watchdog circuit comprising a counting value, wherein after the watchdog circuit is activated, the watchdog circuit starts counting the counting value, and when the counting value overflows, the watchdog circuit triggers the reset circuit to reset the chip system;
a processing unit, wherein after the chip system is powered on, the processing unit executes the main application and executes the interrupt call to generate an interrupt, so as to execute the first safety check program;
wherein when the processing unit executes the first safety check program, the processing unit executes the circuit check program to check the to-be-checked circuit;
wherein when the processing unit executes the first safety check program, the processing unit executes the watchdog circuit reset program, to reset the counting value of the watchdog circuit;
wherein when the processing unit executes the first safety check program, the processing unit executes the checksum check program to calculate checksum data of the first safety check program, when the calculated checksum data is not equal to the preset checksum data, the processing unit triggers the reset circuit to reset the chip system or notifies the main application.