SB70LC: counting external events with digital IO
Posted: Sat Oct 23, 2010 2:10 pm
I'm interested in using the SB70LC for, among other things, pulse counting. Certain devices provide a digital pulse (transition from logic high to low and back to high) denoting a unit of measure. For example, some flowmeters do this.
To count these events it will be necessary to sample an I/O line on a repetitive, priority basis.
The pulse events are expected to be no less than 1ms wide and occur at no greater than 200hz max. This means that we must sample an I/O line every 500us to catch a pulse (without any other interface).
Is the SB70LC capable of reliably sampling one of its I/O lines at this rate or is it better to use an i2c decade counter to provide some buffering?
Would be ideal to use a 32 bit i2c counter, but all I can find are dedicated to timekeeping applications.
To count these events it will be necessary to sample an I/O line on a repetitive, priority basis.
The pulse events are expected to be no less than 1ms wide and occur at no greater than 200hz max. This means that we must sample an I/O line every 500us to catch a pulse (without any other interface).
Is the SB70LC capable of reliably sampling one of its I/O lines at this rate or is it better to use an i2c decade counter to provide some buffering?
Would be ideal to use a 32 bit i2c counter, but all I can find are dedicated to timekeeping applications.