Measuring Frequency in Several Channels using DMA