Peter wrote: >> I don't think they make sense for two or three inputs. Not sure where the >> threshold is. I guess the threshold depends also on the number of counts. > > No, it does not. Vertical counters can be expanded to more than 8 bits > easily. I'm not sure we understand each other here... What I meant was that the number of inputs from which on it makes sense to use vertical counters depends on the number of counts you want to count for each input. Let's say we have 8 inputs. That's maximum efficiency of the vertical counters, and also maximum effort for the horizontal counters, so it's the situation where typically vertical counters make most sense. And they do if you count to 3, or to 7. But what if you count to 255? I think (not sure though) that in this case, horizontal counters are better code-wise and the same memory-wise. Which means that the threshold (number of inputs) from which on it makes sense to use vertical counters depends on the number of counts -- or am I missing something? This has nothing to do with the fact that of course vertical counters can expanded easily (usually in byte steps, on normal PICs at least). Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist