SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By spiegelberg
#195066
Hi

MiniGen is a wonderful frequency generator. I used it in several projects with Arduino Unos and Arduino Micros.

Now I need more speed and A/D resolution and I have been trying in vain to run MiniGen with SAMD M0 processors.

I tried an Arduino M0, an Adafruit Feather, and a SAMD21G Mini. No success. There is no activity on the D10 line connected to FSYNC at all.

I am using the library provided by Sparkfun #include <SparkFun_MiniGen.h>

Yes, I included the SPI library: #include <SPI.h>.

Other SPI devices, like the micro SD card work fine with the SAM boards.

I could find nothing in the forum about this topic.

The hookup guide says: "the clock idles low (CPOL = 0), and data is latched on the rising edge (CPHA = 1). This corresponds to SPI Mode 2." Whereas in the hardware.cpp I see: "SPI.setDataMode(SPI_MODE2); // Clock idle high, data capture on falling edge"

But then, if that is not correct, why would it work on an Uno?

All the hookup guide says about compatibility is: "Note that the SparkFun Pro Micro, Arduino Nano, and other similar form-factor boards won’t work, as they don’t have the necessary SPI pins in the same location." But then, location of the pins is not the problem here, as I do not use it as a shield.

Can anybody help here?

Thanks

Andreas