Circuit description
Fig. 3 shows the circuit of the frequency counter including the power supply. The microcontroller used is AT89C2051, which features 2 kB of Flash, 128 bytes of RAM, 15 input/output (I/O) lines, two 16-bit timer/counters, a five-vector two-level interrupt architecture, a full-duplex serial port, a precision analogue comparator, an on-chip oscillator and clock circuitry.