I am unable to control the rate of SPI on ChipworkX with .NET Micro 4.1.
Here is my code:
var config = new SPI.Configuration(ChipworkX.Pin.PA5, false, 1, 1, true, true, 100, SPI.SPI_module.SPI2);
spi = new SPI(config);
spi.Write(data); // data is a byte array with some data
I have tried 10kHz, 50kHz, and 100kHz and captured the SPI clock at 2MHz using a data acquisition card. I always see the same clock rate (400kHz?). Am I understanding this correctly?