I have an 8MHz external crystal oscillator to use, and need to generate 32MHz for the main clock to drive the CPU and buses.
Since 8MHz cannot be directly fed to the DPLL96M as it can receive 2MHz at the most,
I've fed the 8MHz XOSC to Generic Clock Generator 1 which divides it by 4 to generate 2MHz.
Now I need to feed this 2MHz as source to the DPLL96M.
From datasheet, the reference clock for the DPLL96M can be selected using the DPMMCTRLB register -> REFCLK[1:0] bits.
However, it only has the following options:
I guess I should select 0x02, but how can I specify that get the reference from Generic Clock Generator #1, and not from 0, 2, 3 or 4?