If you aren’t an FPGA user, don’t tune out yet, though ... the FPGA comes with preprogrammed functions and a matching Arduino API to use them. In particular, there are modules to do analog ...
Arduino supplies a Java class file to do the ... I reload the counter even though it would naturally roll over in case you want to fine tune it to a different frequency. As the counter runs ...