简体   繁体   English

Arduino定时器中断采样

[英]Arduino timer interrupt sampling

I'm using an Arduino Mini Pro and I'm using it to sample the data line of a C218D 433Mhz rf receiver. 我正在使用Arduino Mini Pro,并且正在使用它来采样C218D 433Mhz射频接收器的数据线。 When using timer interrupts, the Arduino seems to miss most of the samples. 使用计时器中断时,Arduino似乎会丢失大多数示例。 However when using delays instead, it seems to work perfectly fine! 但是,当使用延迟代替时,它似乎工作得很好! Problem is, is that I cannot use delays for my project and need to use the timer interrupts. 问题是,我无法为项目使用延迟,而需要使用计时器中断。 Is there some problem with Arduino interrupts? Arduino中断有问题吗?

The problem persists even when I'm using delays but have interrupts enabled, even if they aren't doing anything! 即使我使用延迟但启用了中断,即使他们没有执行任何操作,问题仍然存在!

认为我已解决问题,串行端口已打开并且干扰了我的中断

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM