I'm gladWiFive wrote:What is the correction?rudi ;-) wrote:
btw, there a small parameter idx mistake in the given pvParameter
but have figured it out
To get a question from you WiFive
Finally you know what not
here is the answer idx swap:
f_out = f_xtal * (sdm2 + 4) / (2 * (o_div + 2))
param0: enable
param1: (uint8_t) sdm2
param2: (uint8_t) o_div
param3: ?
param4: ?
examples:
rtc_plla_ena(1, 1, 1, 0, 0); // 33,3 MHz
rtc_plla_ena(1, 2, 1, 0, 0); // 40,3 MHz
rtc_plla_ena(1, 3, 1, 0, 0); // 47,2 MHz
rtc_plla_ena(1, 3, 0, 0, 0); // 70,2 MHz
rtc_plla_ena(1, 3, 1, 0, 0); // 47,2 MHz
rtc_plla_ena(1, 4, 2, 0, 0); // 40,3 MHz
rtc_plla_ena(1, 5, 1, 0, 0); // 60 MHz
bingo
rtc_plla_ena(1, 1, 0, 0, 0); // 50 MHz
rtc_plla_ena(1, 10, 0, 0, 0); // 140 MHz
rtc_plla_ena(1, 12, 0, 0, 0); // 156 MHz
rtc_plla_ena(1, 16, 0, 0, 0); // 156 MHz
rtc_plla_ena(1, 0, 1, 0, 0); // 26,7 MHz
rtc_plla_ena(1, 0, 2, 0, 0); // 20 MHz ( glass clear)
rtc_plla_ena(1, 0, 14, 0, 0); // 5 MHz Jitter
rtc_plla_ena(1, 1, 14, 0, 0); // 6.25 MHz Jitter
rtc_plla_ena(1, 6, 2, 0, 0); // 50 MHz
rtc_plla_ena(1, 0, 9000, 0, 0); // 8 MHz
rtc_plla_ena(1, 0, 900, 0, 0); // 8 MHz
rtc_plla_ena(1, 0, 254, 0, 0); // 2.57 MHz
rtc_plla_ena(1, 0, 255, 0, 0); // 2.5MHz
best wishes
rudi