First version of the MAX2871 shield library. Includes demo program with terminal for setting frequency on channel A.
Dependents: MAX2871-Synthesizer
Fork of MAX2871_Shield_MAXREFDES161 by
Diff: MAX2871.cpp
- Revision:
- 1:40b397b31d13
- Parent:
- 0:9f09f1b58389
- Child:
- 2:b47819dab536
--- a/MAX2871.cpp Mon Jul 31 18:40:54 2017 +0000 +++ b/MAX2871.cpp Mon Jul 31 23:57:09 2017 +0000 @@ -127,8 +127,8 @@ n = floor(pll_coefficient); pll_coefficient = pll_coefficient - n; - m = 2500; - frac = roundf(m*pll_coefficient); + m = 4000; + frac = floor(m*pll_coefficient); reg0.bits.frac = frac; reg0.bits.n = n;