C code for W8DIZ's <http://www.kitsandparts.com/freqctr2.php> frequency counter board.