Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumOther questionsOther Wiring questions › External Interupt pin's

Page Index Toggle Pages: 1
External Interupt pin's (Read 5642 times)
08/17/08 at 10:30:04

Titus   Offline
YaBB Moderator
Wiring Soccer Robot!
Amsterdam

Posts: 176
*****
 
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
 

Check www.TeamVossius.nl for our Autonomous soccer robots!
IP Logged
 
Reply #1 - 08/17/08 at 16:11:31

Vaccumdiode2   Offline
Full Member
chicago, IL USA

Posts: 120
***
 
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
           
 
IP Logged
 
Reply #2 - 08/17/08 at 16:45:08

Vaccumdiode2   Offline
Full Member
chicago, IL USA

Posts: 120
***
 
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.

 
IP Logged
 
Reply #3 - 08/17/08 at 18:59:11

Titus   Offline
YaBB Moderator
Wiring Soccer Robot!
Amsterdam

Posts: 176
*****
 
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
 

Check www.TeamVossius.nl for our Autonomous soccer robots!
IP Logged
 
Reply #4 - 08/18/08 at 00:45:15

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
It should work fine of you wire the switch accordingly: http://wiring.org.co/learning/examples/switch.html
 
IP Logged
 
Page Index Toggle Pages: 1