结束时刻t1停止定时器,设此时计数器值Value_t1 = TH0×256 + TL0,且从开始到结束期间定时器中断了n次,则总计数次数为:count = 65536×n + Value_t1 - Value_t0 = 65536×n + TH0 ×256 + TL0。