Pages: [1]   Go Down
Author Topic: counter function in Arduino  (Read 311 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi i am Zubair,newly joined this forum.
I have a question regarding Arduino  programming that is,Is there any counter register in Arduino?
I want to use it for counting pulses,there is that Pulse counter function that counts frequency not number of pulses?
I need number....
Please help me or forward me a program in which counting function or counting logic has been implemented?
Regards


Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 551
Posts: 46215
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Any variable can be used as a counter. Increment the value when the pulse occurs.
Logged

Pages: [1]   Go Up
Jump to: