最后还是使用硬件定时器完成debounce

中断延时,我试了,不能用delay的方式,sleep的方式,可能中断里头也不允许做.

所以,定时器成为最好的延时方式.

 

中断要sw debounce , 请使用硬件定时器来做. 想必做起来也不复杂.

posted on 2009-11-27 16:42  knkn  阅读(396)  评论(0)    收藏  举报

导航