https://pic-microcontroller.com/wp-content/uploads/2015/03/60MHz-Frequency-Meter-Counter.jpg