You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plaes
changed the title
Possible simplication (or error) of sx127x frequency to pll step calculation
Possible simplication (or error) of sx127x/sx126x frequency to pll step calculation
Sep 6, 2024
When staring at the sx127x method of calculation PLL step from frequency, I spotted that resulting value for
steps_fraq
will always be 0:SWL2001/lbm_lib/smtc_modem_core/radio_drivers/sx127x_driver/src/sx127x.c
Lines 1839 to 1841 in 0ad056a
Proof:
This would also allow simplifying the return expression to
And after some tests we can drop off the second term which is 0 ending up with just
steps_int << SX127X_PLL_STEP_SHIFT_AMOUNT
Update: Same simplification can be applied in the sx126x driver as well:
SWL2001/lbm_lib/smtc_modem_core/radio_drivers/sx126x_driver/src/sx126x.c
Lines 1257 to 1265 in 0ad056a
The text was updated successfully, but these errors were encountered: