2014-08-21 12:42 PM
Where can I get information on how to configure the AFC for optimal results?
There is likely a trade-off for longer/shorter preambles.What about the difference between AFC_SLICER_CORRECTION and AFC_2ND_IF_CORRECTION for example? #spirit12014-09-01 11:50 PM
Hello Martin,
the AFC algorithm allows to compensate, within certain limits, a relative frequency error between the transmitting device and the receiving one caused by, e.g., crystal inaccuracies.The AFC algorithm is operational in FSK, GFSK and MSK modes.Due to the demodulation algorithm employed, any frequency error results in a DC offset in the demodulated signal before slicing.The basic operating principle of the AFC is that the minimum and maximum signal frequencies are detected and a correction is calculated to remove the aforementioned offset.Such correction is either applied at the slicer level in the form of offset compensation (default mode) or, optionally, is used to adjust the second IF conversion stage frequency. The former mode allows a quick recovery of the frequency error but doesn’t prevent part of the received signal power to be cut by the channel filter; the latter mode adjusts the signal frequency before entering the channel filter thus avoiding power loss but requires a longer period to settle.The first mode is recommended for normal operation
.The AFC also provides the estimated frequency error through the AFC_CORR register. If the frequency error is known to be constant (e.g. communication always occurs between the same pair of devices), this value can directly be used to correct the programmed IF_OFFSET.In order to guarantee both fast lock and smooth tracking, the AFC has a fast and a slow mode. The AFC will start in fast mode as soon as a signal threshold is passed and will switch to the slow mode after a programmable period.The AFC is controlled by the following parameters: