We want to monitor 35 inputs in 20 x direction and 15 in the direction of y We are thinking of being a conscience for each input, so that every time there is a change, we can take some action, but how do we interrupt each pin?
Or is there any other way to do this without interruption?
As I know Arduino can not do this but you can use an infinite loop and each You can choose the row you can store the old value for each input and compare it to the current value. It seems that an infinite loop in Arduino is very cheap if you are computing between signal changes then this method is somewhat more difficult.
Another way is to use only one interrupt line which will initiate the same voting allocation which will compare the old and existing values on the input. / P>
The idea of using different distinctions seems delicate to me, while processing in the middle, usually other interrupts are disabled so that you can lose input change signals during this time period. Have you estimated it in your hardware design?
Perhaps if you expand a bit about your needs then it will be easy to suggest solutions.
Comments
Post a Comment