Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 16 位定时器计算在 atmega32 中延迟 'n' 秒之间发生的脉冲数并存储和显示它。`
TCNT1 = 0x0000; TCCR1A = 0X00; TCCR1B = 0X01; _delay_ms(150); TCCR1B = 0X00; int K = TCNT1;
上面的代码对脉冲计数是否正确?