I am trying to get the clock out of pin 23 (PORTC7) of the ATxMEGA128C3 but some parameters are not working. The clock is well generated by the code below but when going to x2 or x4, it stops.
The current initialization is like this:
PORTC_PIN7CTRL |= 0x07;
PORTCFG_VPCTRLA = 0x10;
PORTCFG_VPCTRLB = 0x32;
PORTCFG_CLKEVOUT = 0b00000001;
But the clock multiplier on CLKOUTSEL (01 or 10) is not taken into account and disables the output.
Someone would have an idea or an example to share with me to solve this problem ?