A Clock Frequency Detector for Improving Certainty of the Embedded System