Skip to content

adafruit/Saleae_PDMAnalyzer

 
 

Repository files navigation

Saleae PDM Analyzer

This analyzer is useful for PDM streams. It counts the number of 1s present on the data line for a given clock's rising edges. In PDM terms, that means it only does the first channel. It doesn't handle stereo currently.

It does its best to start with the clock signal. However, it may be shifted against the samples you receive in your code. Changing the bits per sample configuration sample to 1 can make it easy to read individual bits instead of the ones count for a set of bits.

Using

Compiling on Windows

Use the Visual Studio project to compile.

Compiling on Mac OSX/Linux

python build_analyzer.py

Including in Saleae Logic

Set the search path for plugins to the release directory within your clone of this repo.

To find the setting:

  1. Open the Options drop down in the top right.
  2. Select Preferences
  3. Select the Developer tab.
  4. The analyzer path is first in the pane.

Now, reload Logic and select PDM from the Analyzer drop down.

Please see the Sample Analyzer for detailed build instructions.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 65.4%
  • Python 34.6%