High-speed bidirectional counter
Posted: 22 August 2016, 20:13 PM
I've been recording bats flying along the canal for a few years with multi-element electret mics I've built. The stereo audio makes its way through a quality preamp and USB sound module at 192kHz/16-bits to a Raspberry Pi 3 where it becomes a directory of files in a wav-like timestamped format.
The mics have been usable but not ideal for ultrasonics. Knowles produces a mic that interests me; it contains a 1-bit sigma-delta ADC that can be clocked to ~5MHz. http://www.knowles.com/eng/content/down ... LU4H-1.pdf
I'm thinking that I can avoid the analog domain altogether by integrating the 1-bit PDM stream to a 16-bit value and making that look like a soundcard stream to hand off to the RPi for processing.
I think that's easily done in CMOS TTL with a clocked bidirectional 16-bit counter, then latched and read in 16- or 8-bit parallel. Better, can one of the AVR timer/counters do the counting? The mic output is clock and data; the data line determines count direction on the fall of clock. Is that possible?
Hope everyone is well in this quiet group.
Tom
The mics have been usable but not ideal for ultrasonics. Knowles produces a mic that interests me; it contains a 1-bit sigma-delta ADC that can be clocked to ~5MHz. http://www.knowles.com/eng/content/down ... LU4H-1.pdf
I'm thinking that I can avoid the analog domain altogether by integrating the 1-bit PDM stream to a 16-bit value and making that look like a soundcard stream to hand off to the RPi for processing.
I think that's easily done in CMOS TTL with a clocked bidirectional 16-bit counter, then latched and read in 16- or 8-bit parallel. Better, can one of the AVR timer/counters do the counting? The mic output is clock and data; the data line determines count direction on the fall of clock. Is that possible?
Hope everyone is well in this quiet group.
Tom