Principle of Operation

FREQM counts the number of periods of the measured clock (GCLK_FREQM_MSR) with respect to the reference clock (GCLK_FREQM_REF). The measurement is done for a period of REFNUM/fCLK_REF_MUX and stored in the Value register (VALUE.VALUE). REFNUM is the number of Reference clock cycles selected in the Configuration A register (CFGA.REFNUM).

The frequency of the measured clock, fCLK_MSR , is calculated by the formula:

fCLK_MSR=(VALUE + 1 + ErrorREFNUM + 1)fCLK_REF_MUX , where Error represents the error introduced by the synchronization mechanism. The error can be maximum two measured clock cycles.