experimental: secondary timer is used to count the number of adc samples