General Category > Discussion - Drivers

FT4222 more than 8 bit data frame / python drivers

(1/1)

LennonNM:
Hi, I'm trying to make an interface in python, first of all, if someone knows of a package (other than python-ft4222) or an alternative library to Libft4222 from FTDI (they already answered me that this library does not have the functionality I require), please tell me.

For the frame data, I require to communicate with a ADS1118 temperature sensor, which requires minimum 16 bit data frame, as told by FTDI reps, Libft4222 (therefore, also python-ft4222) only operates at 8 bit data frame, so I'm getting a "gap" in between each byte. Does someone know a workaround to get at least 16 continuous bits?

Thanks in advance.

FTDI Community:
Hello,

Although the FT4222H uses a data byte of 8 bits, most SPI peripherals can still use this so long as you keep CS asserted as they still see this as one transfer.

It looks like this particular device has some kind of timeout if the clock sits low for more than 28ms but beyond that was there any other reason why it could not accept multiple bytes so long as CS is kept asserted?

MPSSE (for example the FT232H) would have been another option but can only do SPI modes 0 and 2 and it looks like this ADC may need mode 1.

Best Regards, FTDI Community

LennonNM:
Thanks for the answer, it was indeed a timing issue, it works well now, no problems with the data frame.

Navigation

[0] Message Index

Go to full version