Falling edge

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
foppa
Posts: 45
Joined: Sat Dec 20, 2008 1:55 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

Falling edge

Post by foppa »

How do you do to get flowcode read falling edge on button release .
Would only have a signal / pulse when I release the button
Foppa :shock:

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Falling edge

Post by medelec35 »

As a suggestion:
You could use select interrupt from Int using an interrupt component macro. Then select interrupt from falling edge form the component properties.
But you must have the button connected to +ve and the int pin, with a pull down resistor. At least I believe that will work?
Martin

foppa
Posts: 45
Joined: Sat Dec 20, 2008 1:55 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Falling edge

Post by foppa »

Can you make an example of that.
A small program that shows the solution
8)

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Falling edge

Post by medelec35 »

Try This. I have not tested, so can't confirm will work.
Switch and resistor is connected to B0. This is common with quiet a few target devices.
intB0.jpg
intB0.jpg (152.57 KiB) Viewed 3401 times
Attachments
INT B0 Example.fcf
(4.5 KiB) Downloaded 240 times
Martin

Post Reply