Counting Switches

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
Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times

Counting Switches

Post by Docara »

Hi,

What would be the 'best' way to count multiple pulses from switches that would occur at indeterminate times.

I'm guessing interrupts but how would you say 5, 10, 20 whatever switches

Thanks

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Counting Switches

Post by Benj »

Hello,

If you look on the page linked below there is an example named Counting multiple pulses using IOC, I believe this is the kind of thing you're looking for.

http://www.matrixtsl.com/wikiv7/index.p ... Interrupts

Post Reply