Patent ID: 8887004
Filing Date: 2014-11-11
Classification: G06F

Abstract:
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.