Commit 49447882 authored by Maciej Lipinski's avatar Maciej Lipinski

main pll bandwidths: 30Hz (default) and 5Hz, 10Hz (commented out), increased fractional bitsd

parent f3c60778
......@@ -31,7 +31,7 @@ WARNING: These parameters must be in sync with the generics of the HDL instantia
#define HPLL_N 14
/* Fractional bits in PI controller coefficients */
#define PI_FRACBITS 12
#define PI_FRACBITS 16
/* Max. allowed number of reference channels. Can be used to tweak memory usage. */
#define MAX_CHAN_REF BOARD_MAX_CHAN_REF /* Depends on wrc/wrs */
......
......@@ -31,8 +31,19 @@ void mpll_init(struct spll_main_state *s, int id_ref,
s->pi.anti_windup = 1;
s->pi.bias = 30000;
#if defined(CONFIG_WR_SWITCH)
s->pi.kp = 1100; // / 2;
s->pi.ki = 30; // / 2;
// /*bandwidth = 5Hz */
s->pi.kp = 2400; // / 2;
s->pi.ki = 8; // / 2;
// /*bandwidth = 10Hz */
// s->pi.kp = 7000; // / 2;
// s->pi.ki = 16; // / 2;
//
/*bandwidth = 30Hz */
// s->pi.kp = 1100; // / 2;
// s->pi.ki = 30; // / 2;
#elif defined(CONFIG_WR_NODE)
s->pi.kp = 1100; // / 2;
s->pi.ki = 30; // / 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment