18.5.13 Main Clock Clock Frequency Measure n Control A
Attempting to write to this register without following the appropriate CCP unlock sequence will return a bus error.
Name: | MCLKCFMnCTRLA |
Offset: | 0x18 + n*0x10 [n=0..1] |
Reset: | 0x00 |
Property: | Configuration Change Protection |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
TYPE | CFMSRC[2:0] | MEN | |||||||
Access | R/W | R/W | R/W | R/W | R/W | ||||
Reset | 0 | 0 | 0 | 0 | 0 |
Bit 4 – TYPE Measurement Type
Controls whether the measurement will be done as a single (one-shot) measurement, or a continuous measurement.
Value | Name | Description |
---|---|---|
0x0 | ONESHOT | One-shot measurement |
0x1 | CONTINUOUS | Continuous measurement |
Bits 3:1 – CFMSRC[2:0] CFM Measure Clock Source
Selects the source for the clock to be measured by CFM.
Value | Name | Description |
---|---|---|
0x0 | CLK_MAIN | Main Clock |
0x1 | OSCHF | High frequency internal oscillator |
0x2 | OSC32K | 32.768 kHz internal oscillator |
0x3 | XOSCHF | High frequency external oscillator |
0x4 | XOSC32K | 32.768 kHz external oscillator |
0x5 | EVSYS | Event system channel input |
Other | - | Reserved |
Bit 0 – MEN Measurement Enable
Controls the frequency measurement process.
Value | Name | Description |
---|---|---|
0x0 | DISABLE | Frequency measurement disabled |
0x1 | ENABLE | Frequency measurement enabled |