6.2 Programmable Clock Divider
The module takes the clock input and divides it based on the value of the DIV bits.
The following configurations are available:
- Base FOSC value
- FOSC divided by 2
- FOSC divided by 4
- FOSC divided by 8
- FOSC divided by 16
- FOSC divided by 32
- FOSC divided by 64
- FOSC divided by 128
The clock divider values can be changed while the module is enabled.
However, to prevent glitches on the output, the DIV bits may be only changed when the module is disabled (EN = 0
).