View previous topic :: View next topic |
Author |
Message |
FrozenTime
Joined: 11 Oct 2015 Posts: 1 Location: Philippines
|
Interrupt 16F877A |
Posted: Sun Oct 11, 2015 6:53 am |
|
|
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
|
|
Posted: Sun Oct 11, 2015 10:43 am |
|
|
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: 19513
|
|
Posted: Sun Oct 11, 2015 11:01 pm |
|
|
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. |
|
|
|