View previous topic :: View next topic |
Author |
Message |
MiniMe
Joined: 17 Nov 2009 Posts: 50
|
External interrupt example problem |
Posted: Sat Mar 20, 2010 5:30 pm |
|
|
Hi,
I'm using a raw CCS example EX_WAKEUP (external interrupt + sleep).
Someway I'm missing a results as I can not see #int_ext code execution.
What could be the things I did wrong ?
I have not tried it on real hardware so I will post an image about wires in Proteus 7.6.
Thank you ! |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19382
|
|
Posted: Sun Mar 21, 2010 3:25 am |
|
|
Pin B0, needs to have a resistor directly connected to it, to 5v, pulling it high (say 10KR), and the button, connecting from this to ground. When the button is made, the pin goes low, and when released, the pin goes high. Currently, the pin is just left floating, when the buttoon is not pressed.....
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
MiniMe
Joined: 17 Nov 2009 Posts: 50
|
|
Posted: Sun Mar 21, 2010 5:38 am |
|
|
Ttelmah, Thank You very much !
Seems like you have a answer for almost every question on this forum .
You saved very big amount of my time and made things so much easier, again Thank You.
I have added a picture about working wires.
R1 resistor is a pullup resistor. |
|
![](templates/subSilver/images/spacer.gif) |
|