This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

using external interrupt

Hi
I am using ultra sonic sensors to detect any obstacle and i have connected their response to extenal interrupt0 of 8051. The problem is the sensors are very sensitive they trigger the interrupt even if there is an object very far.
I want that external interrupt should trigger if it gets contineous pulse from sensors for 1 second. (I think it is called debounce operation). Is their any way i can do this.
Thanks for your help

Parents
  • Yes you are right my input is normally just noise(on off on off i mean it is falsely triggered) but when an object really comes in the way then they trigger for some time(off for some time(active low). I want to feed that input to external interrupt pin that stays active for some time.
    so i want to program controller in such a way that if it sees an input active for some time at external interrupt then it should perform desired action. hope you understand me.

Reply
  • Yes you are right my input is normally just noise(on off on off i mean it is falsely triggered) but when an object really comes in the way then they trigger for some time(off for some time(active low). I want to feed that input to external interrupt pin that stays active for some time.
    so i want to program controller in such a way that if it sees an input active for some time at external interrupt then it should perform desired action. hope you understand me.

Children