I expect the example program Digital_Spi_Spy.py to work correctly on the Digital Discovery module without modification. It does not.
To fix the device enumeration error the following had to be changed:
dwf.FDwfDeviceOpen(c_int(-1), byref(hdwf))
# device configuration of index 3 (4th) for Analog Discovery has 16kS digital-in buffer
#dwf.FDwfDeviceConfigOpen(c_int(-1), c_int(3), byref(hdwf))
With this change the script runs and properly transmits data. However when connecting the DIO-2 (MOSI) to DIO-3 (MISO) pins, I expect the device to capture exactly what it transmits. The script always returns bit count of zero and no data.
Please tell me what additional modifications are required to get SPI loopback working.
Question
JeffKlaas
I expect the example program Digital_Spi_Spy.py to work correctly on the Digital Discovery module without modification. It does not.
To fix the device enumeration error the following had to be changed:
dwf.FDwfDeviceOpen(c_int(-1), byref(hdwf))
# device configuration of index 3 (4th) for Analog Discovery has 16kS digital-in buffer
#dwf.FDwfDeviceConfigOpen(c_int(-1), c_int(3), byref(hdwf))
With this change the script runs and properly transmits data. However when connecting the DIO-2 (MOSI) to DIO-3 (MISO) pins, I expect the device to capture exactly what it transmits. The script always returns bit count of zero and no data.
Please tell me what additional modifications are required to get SPI loopback working.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.