pu2clr / SI4735

SI473X Library for Arduino
MIT License
561 stars 166 forks source link

ATS 20+ PPM Correction #23

Open simplio opened 1 year ago

simplio commented 1 year ago

I noticed ATS 20+ has a frequency error of 1 khz on the 20m band which set to a correct frequency the BFO offset is +1.1khz. Is it possible to implement PPM correction in the sketch? Could it be set linear? I hope we get to see this implemented.

simplio commented 1 year ago

Property 0x3104. AM_MODE_AFC_SW_PULL_IN_RANGE Sets the SW AFC pull-in or tracking range. The value PULL_IN_RANGE is relative to the tuned frequency and is specified as 1/(PPM×10–6). For example to program a pull-in range of 115 ppm, PULL_IN_RANGE = 1/(115×10–6) = 8695. The command is complete when the CTS bit (and optional interrupt) is set. Available in: Si4734/35-C40 and later, Si4732, Si4742/43/44/45 Default: 0x21F7 (115 ppm)

Property 0x3105. AM_MODE_AFC_SW_LOCK_IN_RANGE Sets the SW AFC lock-in or capture range. The value LOCK_IN_RANGE is relative to the tuned frequency and is specified as 1/( PPM×10–6). For example to program a lock-in range of 85 ppm, LOCK_IN_RANGE = 1/(85×10–6) = 11765. The command is complete when the CTS bit (and optional interrupt) is set. Available in: Si4734/35-C40 and later, Si4732, Si4742/43/44/45 Default: 0x2DF5 (85 ppm)

I wouldn't know how to put that in the sketch.