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 CCS Technical Support

Interrupt 16F877A

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



Joined: 11 Oct 2015
Posts: 1
Location: Philippines

View user's profile Send private message Send e-mail

Interrupt 16F877A
PostPosted: Sun Oct 11, 2015 6:53 am     Reply with quote

Hi!

I'm just new here and I'm not really good on C language programming. Can you help me with this one? I'm currently working on a 7 segment counter program and i'm not really good at this..

Do you have any idea on how i can program the interrupt switch B0 if Port_B0 is pressed once the program pause and when PORT_B0 is pressed again the program resumes?
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Sun Oct 11, 2015 10:43 am     Reply with quote

Read the Forum guidelines.

Show us what you've tried.
Show us your schematic.
Tell us what you what your problem(s) is/are.

Someone here will then help you..

Mike

PS Sorry to be a spoil-sport.
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Sun Oct 11, 2015 11:01 pm     Reply with quote

As a comment, spend some time reading the forum.

You will find lots of threads about keyboards, including ones where people want to use interrupts, Generally interrupts are _not_ suitable for handling a button, without some external hardware to debounce the signal. Things like buttons, do not give a nice simple on/off signal. When you push a button or release a button, the contact will typically make and break several times. With an interrupt this means it'll trigger several times.....

So you need to start by looking at your hardware, and possibly adding external debounce circuitry. Then the solution to your question is here on the forum.
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