Max Headroom
Throughout the project, I've been worried about bad DPLL lock, which is possible due to the strong harmonics associated with square wave drive. One way to reduce the number of bad lock scenarios is to reduce the operating range of the DPLL, but this has consequences that I didn't anticipate. Touch the antenna and the LC resonant frequency is instantly and dramatically reduced, but it takes finite time for the drive frequency to catch up, and during that slew other resonant frequencies may be stimulated and locked to. Limiting the upper or lower range doesn't help, and might actually exacerbate things. Starting the DPLL at the nominal frequency is a good first step though.
Anyway, now that these scenarios have hopefully been laid to rest via the new hardware / software watchdog, I though it was time to take a fresh look at the lock range. I decided to remove the lower range limit altogether, and after some testing this appears to be both a simplification of the logic and a good move. The maximum frequency limit being so close to the smaller inductor resonance has bothered me too, someone could attach a very short antenna and be operating even nearer to the limit. So I added some headroom here. The granularity of this adjustment is by octaves, and adding another one doesn't seem to change the operation. So this appears to be a good move as well. In summary: YAY!





