We are currently working on a device with 2 SPI controlled analog outputs.
We configured one device to use the PicoMOD Pin 126(dez), which should be configured with the value 75(dez), as the CsPin.
But it seems like the registry value is ignored by the system, and the default CsPin (Pin 1) is used instead.
Our registry settings for reference:
Device1:
Prefix = SPI
Index = 1
DLL = nspi.dll
Order = 101
FriendlyName = Native SPI driver
CsPin = 75
Device2:
Prefic = SPI
Index = 2
DLL = nspi.dll
Order = 102
FriendlyName = Native SPI driver
Please note that we already removed device2 from the registry, for further testing on device1.
The nspi driver version is 3.1
The used class is NativeSPI.dll (V2.00) for c#.
The initialisation of the SPI is done by the software:
nspi = new NspiPort("SPI1:", NspiPort.NspiAccess.WRITE);
nspi.ClockFreq = 250000;
nspi.SpiMode = 0;
nspi.Method = NspiPort.DriverMethod.POLLING;
Could you tell us, if there is some error in the registry setting for the SPI device?
Or are there only specific I/Os that can be used as CsPin?