Hello,
I have a question about SPI:
We start our development with PicoCOM2 and want to change to PicoCOM4. With PicoCOM2 we have a successfull communication with the SPI-bus. Now I thougt we can use nearly the same registry parameters from PicoCOM2 SPI to PicoCOM4 SPI. But the commuication is fail. I tried different settings but without success.
Until now, we can find a description of PicoCOM_NSPI_eng.pdf on your server, but this PDF document descripe only PicoCOM1 and PicoCOM2. Is there any different to PicoCOM4?
Maybe you can help me, what parameter settings are wrong?
First the part of registry settings SPI PicoCOM2:
Code
- [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SPI0]
- "Index"=dword:00000000
- "Dll"="pc2_spi.Dll"
- "Prefix"="SPI"
- "Order"=dword:00000000
- "FriendlyName"="Software SPIDriver Driver"
- "ClockFreq"=dword:00009c40
- "SPIMode"=dword:00000000
- "PinMOSI"=dword:00000009
- "PinMISO"=dword:00000008
- "PinSCK"=dword:0000000a
- "PinCS"=dword:0000000b
- "Priority256"=dword:00000065
- "IClass"=hex(7):\
- 7b,41,33,32,39,34,32,42,37,2d,39,32,30,43,2d,34,38,36,62,2d,42,30,45,36,2d,\
- 39,32,41,37,30,32,41,39,39,42,33,35,7d,00,00
- [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\spi1cs0]
- "Prefix"="SPI"
- "Dll"="pc2_spi.dll"
- "FriendlyName"="SPIDriver Driver CS0(on SPI1)"
- "Index"=dword:00000000
- "Order"=dword:00000000
- "PollingMode"=dword:00000000
- "Timeout"=dword:000007d0
- "ClockDelay"=dword:00000000
- "ByteDelay"=dword:00000001
- "ClockFreq"=dword:003d0900
- "Mode"=dword:00000000
- "SPICS"=dword:00000000
- "SPIController"=dword:00000001
- "IClass"=hex(7):\
- 00,00
- [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SPIController1]
- "DmaBufferSize"=dword:00000400
- "CSDelay"=dword:00000000
- "LoopBackEnable"=dword:00000000
- "ModeFaultDetect"=dword:00000000
- "CSDecode"=dword:00000000
- "ControllerIndex"=dword:00000001
And here are the current SPI settings of PicoCOM4:
Code
- [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SPI1]
- "ByteDelay"=dword:00000001
- "ClockFreq"=dword:003d0900
- "Index"=dword:00000000
- "Priority256"=dword:00000067
- "Dll"="pc4_nspi"
- "FriendlyName"="Native SPI driver"
- "Prefix"="SPI"
- "Order"=dword:00000065
- "SPIMode"=dword:00000000
- "DriverMethod"=dword:00000001
- "PollingMode"=dword:00000000
- "Timeout"=dword:000007d0
- "ClockDelay"=dword:00000000
- "SPICS"=dword:00000000
- "Mode"=dword:00000000
- "SPIController"=dword:00000001
- "Debug"=dword:00000001
- [HKEY_LOCAL_MACHINE\Drivers\SPIController0]
- "IrqTriggerLevel"=dword:00000008
- "DmaBufferSize"=dword:00001000
- "CSDelay"=dword:00000000
- "LoopBackEnable"=dword:00000000
- "ModeFaultDetect"=dword:00000001
- "CSDecode"=dword:00000000
- "ControllerIndex"=dword:00000001