Field-programmable analog array (FPAA) based four-state adaptive oscillator for analog frequency analysis.