I'm looking to replace the external clock crystal on a microcontroller with an adjustable LC tank.
Has anyone ever done this?
I'm considering this as a method of fine-tuning the speedometer on a Pontiac Fiero (produced 1984-1988).
Here is the general architecture of the speedometer:
A rotating magnet is rotated by a gear on the differential of the car.
The rotating magnet induces a sine wave voltage in the coil of the vehicle speed sensor (VSS).
The sine wave of variable frequency and amplitude is amplified and squared off.
At this point there is a nominally 4000 pulses per mile digital signal.
A microcontroller counts clock cycles between edges of the 4000 PPM signal.
Based on the number of clock cycles between edges, the microcontroller can determine the speed of the vehicle, and then command the meter driver to point the needle in the right direction.
The microcontroller has an external crystal, typically in the 4 MHz range (not all Fieros are the same).
When people want to re-calibrate the speedometer, ex. after a tire size change, then they over or underclock the microcontroller by installing a different crystal. This works, but the adjustment is discrete.
So I was wondering if a tank could replace a crystal. The idea is that the calibration could be done with a trimmer, which would be more flexible.
I would be looking for 1 or 2 percent frequency drift over a temperature range of suppose, -20°C to +60°C.
I don't know which component should be the adjustable one; the capacitor or the inductor?
Am I out of my mind?