Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Other questions >> Other Wiring questions >> External Interupt pin's
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1218969004

Message started by Titus on 08/17/08 at 10:30:04

Title: External Interupt pin's
Post by Titus on 08/17/08 at 10:30:04
Just a quick question:
When I wire let's say pin 17 to an external interupt pin, and my code wait's for the E-I pin to turn high,
Can I just Write pin 17 High? Or will this cause a short circuit?

or put it this way:
Will wiring the 5V pin to a digital i/o(i in this case) cause a short circuit and damage wiring, if no resistors are in between there?

Titus

Title: Re: External Interupt pin's
Post by Vaccumdiode2 on 08/17/08 at 16:11:31
Titus,
              If you want to do it you would need a 10K resistor to Ground as a pull down resistor.   You alway need a load to put to pin into the default state your looking for.  The resistor will hold the interrupt pin in the low state until pin 17 is set high and the interrupt pin should go to the high state also.  
              Now I have never try this myself  but I'd bet dollars to donuts it should work.
               As always if someone thinks I'm off base please let me know.

               I hope this help ou out Titus, let me know if it works.

Rich
               

Title: Re: External Interupt pin's
Post by Vaccumdiode2 on 08/17/08 at 16:45:08
Titus,
         I had another thought on this.  if your calling a Function or subroutine in your interrupt.  so in your program instead of making an output pin high you could call your function or subroutine.  Note us old school guys like the term subroutine.  
          If you can do it in the program it would make it much simpler.

          Well, let me know what you think.


Title: Re: External Interupt pin's
Post by Titus on 08/17/08 at 18:59:11
well, the writing a pin high to trigger the interupt, was more an theoretic example:P

I just mean this actually:

5V------Pushbutton--------ExternalInteruptPin
Would that short circuit wiring, and damage it, or does wiring have a protection in this case?

Titus

P.S. try editing your post instead of posting another one, we don't want post count raisers:P

Title: Re: External Interupt pin's
Post by barragan on 08/18/08 at 00:45:15
It should work fine of you wire the switch accordingly: http://wiring.org.co/learning/examples/switch.html

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.