Well, I checked the hardware and found nothing wrong with it. However, after carefully examining the Python code I noticed the following:
In the code I posted here, the call to the SPI initialization method is:
dev.spiMaster_Init(ft4222.SPIMaster.Mode.SINGLE,
ft4222.SPIMaster.Clock.DIV_512,
ft4222.SPI.Cpol.IDLE_HIGH,
ft4222.SPI.Cpha.CLK_LEADING,
ft4222.SPIMaster.SlaveSelect.SS0)
and in the example that is listed in
the library webpage, the SPI is initialized like this:
import ft4222
from ft4222.SPIMaster import Mode, Clock, SlaveSelect
from ft4222.SPI import Cpha, Cpol
...
# open 'device' with default description 'FT4222 A'
devA = ft4222.openByDescription('FT4222 A')
...
# init spi master
devA.spiMaster_Init(Mode.SINGLE,
Clock.DIV_128,
Cpol.IDLE_LOW,
Cpha.CLK_LEADING,
SlaveSelect.SS0)
Using the code in
the PyPI.ft4222 library webpage, the signals on the SPI lines are correct. Refer to the attached screenshot from the 'scope.
Clock frequency is 465.65 kHz and clock divider is set to 128, therefore the system clock for the FT4222 IC runs at 60 MHz.
Therefore, I consider the problem to be solved and I would ask the moderator to move that post to the software section, as there is nothing special about hardware in this.