For select 16-bit PIC® MCU and dsPIC® families, the reference clock output generator provides another option: a separate synchronous and programmable clock source to the REFO port pin.
The reference clock output generator receives inputs from both the Primary Oscillator and the currently selected system clock. This allows the user to select an output clock signal with a constant frequency, or an output clock that changes as the system clock changes during run time (e.g., on a change to or from a lower power mode).
A 16-step divider allows for the selection of a wide range of system clock sub-multiples. Reference clock changes due to system clock frequency changes occur in a glitch-less fashion.
This reference clock output is controlled by the REFOCON register.