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 register 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 register, 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 register, 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 register when the processor receives a complete notice from the module;
calculating a processing time by adding a first value to a second value, wherein the first value is equal to the second count value minus the first count value, and the second value is equal to the third count value minus the second count value;
comparing the processing time with the predetermined interval; and
determining that the periodic processing error has occurred when the processing time is greater than or equal to the predetermined interval.
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
16 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 register 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 register, 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 register, 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 register when the processor receives a complete notice from the module; calculating a processing time by adding a first value to a second value, wherein the first value is equal to the second count value minus the first count value, and the second value is equal to the third count value minus the second count value; comparing the processing time with the predetermined interval; and determining that the periodic processing error has occurred when the processing time is greater than or equal to the predetermined interval. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A periodic error detection circuit, comprising:
-
a peripheral module outputting periodic triggers with a 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 register, the counter performing an up-count operation with free-run, the register 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, wherein the determination circuit is configured to; calculate a processing time by adding a first value to a second value, wherein the first value is equal to the second count value minus the first count value, and the second value is equal to the third count value minus the second count value; compare the processing time with the predetermined interval; based on the comparison, determine that the periodic processing error has occurred when the processing time is greater than or equal to the predetermined interval. - View Dependent Claims (9, 10, 11)
-
-
12. 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 executing a periodic error detection program to determine an occurrence of a periodic processing error; a module, execution of processing of the module being controlled by the processor; a capture timer including a counter and a register, the counter performing an up-count operation with free-run, the register 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, wherein the processor is configured to; read the first count value, the second count value, and the third count value from the register upon receiving a completion notice from the module; calculate a processing time by adding a first value to a second value, wherein the first value is equal to the second count value minus the first count value, and the second value is equal to the third count value minus the second count value; compare the processing time with the predetermined interval; and based on the comparison, determine that the periodic processing error has occurred when the processing time is greater than or equal to the predetermined interval. - View Dependent Claims (13, 14, 15, 16)
-
Specification