CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

External interrupt example problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
MiniMe



Joined: 17 Nov 2009
Posts: 50

View user's profile Send private message

External interrupt example problem
PostPosted: Sat Mar 20, 2010 5:30 pm     Reply with quote

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 !
Ttelmah



Joined: 11 Mar 2010
Posts: 19339

View user's profile Send private message

PostPosted: Sun Mar 21, 2010 3:25 am     Reply with quote

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
MiniMe



Joined: 17 Nov 2009
Posts: 50

View user's profile Send private message

PostPosted: Sun Mar 21, 2010 5:38 am     Reply with quote

Ttelmah, Thank You very much !


Seems like you have a answer for almost every question on this forum Very Happy.
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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group