18.5.2 Main Clock Control B
Attempting to write to this register without following the appropriate CCP unlock sequence will return a bus error.
| Name: | MCLKCTRLB |
| Offset: | 0x01 |
| Reset: | 0x00 |
| Property: | Configuration Change Protection |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| PDIV[3:0] | PEN | ||||||||
| Access | R/W | R/W | R/W | R/W | R/W | ||||
| Reset | 0 | 0 | 0 | 0 | 0 | ||||
Bits 4:1 – PDIV[3:0] Prescaler Division
This bit field controls the division ratio of the Main Clock (CLK_MAIN) prescaler
when the Prescaler (PEN) bit is ‘1’.
Note: Configuration of the input
frequency (CLK_MAIN) and prescaler settings must not exceed the allowed maximum
frequency of the peripheral clock (CLK_PER) or CPU clock (CLK_CPU). Refer to the
Electrical Characteristics section for further information.
| Value | Name | Description |
|---|---|---|
| 0x0 | DIV2 | Divide by 2 |
| 0x1 | DIV4 | Divide by 4 |
| 0x2 | DIV8 | Divide by 8 |
| 0x3 | DIV16 | Divide by 16 |
| 0x4 | DIV32 | Divide by 32 |
| 0x5 | DIV64 | Divide by 64 |
| 0x8 | DIV6 | Divide by 6 |
| 0x9 | DIV10 | Divide by 10 |
| 0xA | DIV12 | Divide by 12 |
| 0xB | DIV24 | Divide by 24 |
| 0xC | DIV48 | Divide by 48 |
| Other | - | Reserved |
Bit 0 – PEN Prescaler Enable
This bit controls whether the Main Clock (CLK_MAIN) prescaler is enabled or not.
| Value | Description |
|---|---|
| 0 | The CLK_MAIN prescaler is disabled |
| 1 | The CLK_MAIN prescaler is enabled, and the division ratio is controlled by the Prescaler Division (PDIV) bit field |
