add debug uart output for frequency counter