analogdevicesinc / ad936x-filter-wizard

MATLAB-based FIR filter design
Other
51 stars 40 forks source link

Fcutoff can be set beyond chip capability #26

Open tfcollins opened 7 years ago

tfcollins commented 7 years ago

If you manually select a Fcutoff this will recalculate caldiv and can choose an unusable setting. For example putting in 2000 will produce 108.4468 (caldiv==1 PLL==983040000), and the chip is limited to 39.2 on the LPF. We just need to add this check, rfbw calculation already checks this.

This kinda breaks the design flow of manually selecting Fcutoff, but we support it at the moment.

rgetz commented 7 years ago

Actually - it's caldiv that sets things - if it can do it, it's likely the chip works fine.

tfcollins commented 7 years ago

Yes the chip will work fine, its just our model of the analog filters is off.

rgetz commented 7 years ago

All I'm saying is the chip is not limited to 39.2 on the low pass filter. The filter structure is limited only by caldiv.

-Robin