PERIODIC ERROR DETECTION METHOD AND PERIODIC ERROR DETECTION CIRCUIT
First Claim
1. A method for detecting a periodic error, the method detecting a periodic processing error of a module, execution of processing of the module being controlled by a processor, the processor controlling a periodic processing by booting a peripheral module, the peripheral module outputting periodic triggers with a predetermined interval, comprising:
- storing a first count value in a resister included in a capture timer, the first count value being acquired from a counter included in the capture timer by outputting the periodic triggers as a first capture trigger into the capture timer, the counter performing an up-count operation with free-run;
storing a second count value in the resister, the second count value being acquired from the counter by outputting a second capture trigger into the capture timer when the processing of the module is started;
storing a third count value in the resister, the third count value being acquired from the counter by outputting a third capture trigger into the capture timer when the processing of the module is completed;
reading out the first count value, the second count value and the third count value from the resister when the processor is received a complete notice from the module;
calculating a processing time on a basis of the first count value, the second count value and the third count value; and
comparing the processing time with the predetermined interval to determine whether the periodic processing error occurs.
1 Assignment
0 Petitions
Accused Products
Abstract
According to one embodiment, a method for detecting a periodic error, the method detecting a periodic processing error of a module controlled by a processor, the processor controlling a periodic processing by booting a peripheral module, the peripheral module outputting periodic triggers with a predetermined interval includes storing a first count value acquired from a counter, a second count value when the processing is started, and a third count value when the processing is completed, calculating a processing time on a basis of the three count values, and comparing the processing time with the predetermined interval to determine whether the periodic processing error occurs.
-
Citations
14 Claims
-
1. A method for detecting a periodic error, the method detecting a periodic processing error of a module, execution of processing of the module being controlled by a processor, the processor controlling a periodic processing by booting a peripheral module, the peripheral module outputting periodic triggers with a predetermined interval, comprising:
-
storing a first count value in a resister included in a capture timer, the first count value being acquired from a counter included in the capture timer by outputting the periodic triggers as a first capture trigger into the capture timer, the counter performing an up-count operation with free-run; storing a second count value in the resister, the second count value being acquired from the counter by outputting a second capture trigger into the capture timer when the processing of the module is started; storing a third count value in the resister, the third count value being acquired from the counter by outputting a third capture trigger into the capture timer when the processing of the module is completed; reading out the first count value, the second count value and the third count value from the resister when the processor is received a complete notice from the module; calculating a processing time on a basis of the first count value, the second count value and the third count value; and comparing the processing time with the predetermined interval to determine whether the periodic processing error occurs. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A periodic error detection circuit, comprising:
-
a peripheral module outputting periodic triggers with an predetermined interval; a processor controlling periodic processing by booting the peripheral module; a module, execution of processing of the module being controlled by the processor; a capture timer including a counter and a resister, the counter performing an up-count operation with free-run, the resister storing a first count value, the first count value being acquired from the counter by outputting the periodic triggers as a first capture trigger, storing a second count value, the second count value being acquired from the counter by outputting a second capture trigger when the processing of the module is started, and storing a third count value, the third count value being acquired from the counter by outputting a third capture trigger when the processing of the module is completed; and a determination circuit connected between the processor and the capture timer, the determination circuit calculating a processing time on a basis of the first count value, the second count value and the third count value stored in the resister, comparing the processing time with the predetermined interval to determine whether the periodic processing error occurs, and outputting a determination result into the processor on request from the processor. - View Dependent Claims (8, 9, 10)
-
-
11. A periodic error detection circuit, comprising:
-
a peripheral module outputting periodic triggers with an predetermined interval; a processor controlling periodic processing by booting a peripheral module and executes a periodic error detection program to determine whether the periodic processing error occurs; a module, execution of processing of the module being controlled by the processor; a capture timer including a counter and a resister, the counter performing an up-count operation with free-run, the resister storing a first count value, the first count value being acquired from the counter by outputting the periodic triggers as a first capture trigger, storing a second count value, the second count value being acquired from the counter by outputting a second capture trigger when the processing of the module is started, and storing a third count value, the third count value being acquired from the counter by outputting a third capture trigger when the processing of the module is completed; and - View Dependent Claims (12, 13, 14)
-
Specification