Shop OBEX P1 Docs P2 Docs Learn Events
DC switching times — Parallax Forums

DC switching times

ArchiverArchiver Posts: 46,084
edited 2003-08-03 15:22 in General Discussion
Let's say I would like to monitor an input pin, #2 and determine if it's on or
off. If it's off, I would like to count the number of microseconds it's off and
store that value to an array variable. If it's on, I would like to do the same
thing but store the result to the next variable in the array. Next time it's
state changes, I need to do the same thing but select the next variable in the
array to store it's time. I would like to continue this process for about 1
second. It the BS2 stamp capable of doing this or do I need a faster one?

Thanks for your help.

Leroy
Sign In or Register to comment.