04-18-2008 06:05 PM
04-21-2008 06:33 AM
04-21-2008 07:21 AM
04-21-2008 08:15 AM
Based on some other threads I've happened to skim, I *think* the reason you only could get samples in groups of 4 at a time has to do using DMA for data transfer. It wants to transfer data in 32-bit chunks to optimize usage of the 32-bit data bus. Your particular board only captures 8 bits at a time on the port that's capable of change detection. So the data doesn't get transferred until you have 4 digital changes. There's a chance that using interrupt mode may also work. The possible advantage is that with interrupt mode, you can still hope to buffer *all* changes. With hw-timed single point, it's harder to be sure.
The way I've figured out which bit changed to cause a sample to be taken is to hold onto the previous sample and compare for differences. The main problem with this method is figuring out which bit changed to cause the very first sample.
-Kevin P.
04-21-2008 10:37 AM