FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Pages: [1] 2 3 ... 10
 1 
 on: July 27, 2021, 09:41:43 AM 
Started by HI_type - Last Post by HI_type
Hello

Hope this is the right place to ask.

Problem: Using LibFT260 (form here: https://ftdichip.com/products/ft260q/) we can successfully read from our slave device, but at an effective speed lower than the clock speed would allow. The issue is pauses in between frames:

X -> Byte + ACK
_ -> Clock held low by FT260 (Pause)

XX_X_X_X_X....

See attached images. The slave device is not clock stretching as it has a weak driver and it is clearly visible by the low level of the clock when that happens. The duration of the pause at 2Mbit clock is shorter than at 400kbit.

The pauses occur during read and write.

Questions:
- Is the FT260 capable of communicating without these pauses?
- If so, how, and can it be done with the dll provided in LibFT260?

Our software Engineer has provided c++ pseudo code to illustrate what he is doing:

##############################################################
FT260_HANDLE FFT260Handle;
FT260_STATUS status;
...
uint32 kbps = 400;
int dwBytesToWrite = 7;
uint8 writeBuffer[dwBytesToWrite] = (0x01, 0x81, 0x80, 0x00, 0x00, 0xA0, 0x15);
DWORD dwBytesToRead = 14;
uint8 deviceAddress = 0x60;
uint8 readBuffer[dwBytesToRead];
DWORD dwBytesReturned;
...
    status = FT260_I2CMaster_Init(FFT260Handle, kbps);
    if (status== FT260_OK)
    {
       status= FT260_I2CMaster_Write(FFT260Handle, deviceAddress,
          FT260_I2C_START, writeBuffer, dwBytesToWrite, dwBytesWritten);
       if (status== FT260_OK)
       {
           status= FT260_I2CMaster_Read(FFT260Handle, deviceAddress,
              FT260_I2C_START_AND_STOP, readBuffer, dwBytesToRead, dwBytesReturned);     
       }
...   
    }
##############################################################

 2 
 on: July 26, 2021, 03:49:07 PM 
Started by Milad - Last Post by FTDI Community
Hello,

Thank you for your question.

Unfortunately we do not have any specific examples for the NXPS32K148, but if you intend on implementing your solution with a low power MCU I would suggest looking at the following application notes which concern building an EVE library. The first application note covers how the low level transfers are structured between and MCU (in this example a PIC) and the EVE IC. The second covers how to create an EVE Library to interface to the MCU. And finally the last one covers some EVE examples for PIC MCUs, :
FT81X Simple PIC Example
FT81X Creating a Simple Library For PIC MCU
FT81X Simple PIC Library Examples

These application notes cover how to configure a display, but please take note of the specific display settings your module utilises.

The principals described in these Applications Notes can be used to implement solutions for a wide variety of MCUs, and give a better understating of how EVE functions on a low level.

We are currently finalising another application note based upon BRT_AN_014 above which expands this to a variety of other MCU platforms, I would advise utilising this library for porting to the NXPS32K148. I have uploaded the draft versions of this application note to WeTansfer (we are currently migrating our FTP site), please see the following link:
https://we.tl/t-75ILJqCMMc

As for HMI creation with these libraries you can use the EVE Screen Editor (ESE) to lay out static screens and create Display Lists but this does not create code for the logic of moving between screens. EVE Asset Builder (EAB) is also available to convert any graphics assets (fonts, images, etc) your require into an EVE readable format. These can be found at the following:
https://brtchip.com/eve-toolchains/

Best Regards,
FTDI Community

 3 
 on: July 26, 2021, 01:32:56 PM 
Started by Milad - Last Post by Milad
Hello all ,

I recently bought this LCD: https://riverdi.com/product/rvt70aqffwc00/

I'm trying to use it with an NXPS32K148 board, I would like to get the display works, firstly. Is there is any library/driver example in C code to get start with? or, Does anybody have some tested code in C that would explain how to setup the display?

Thank you in advance,
best regards
Milad

 4 
 on: July 23, 2021, 04:39:24 PM 
Started by rudolf - Last Post by FTDI Community
Hello,

SPI Mode 1 is not supported with the MPSSE engine.

Please consider FT4222H which supports all SPI modes.

Best Regards,
FTDI Community

 5 
 on: July 23, 2021, 12:21:45 PM 
Started by rudolf - Last Post by rudolf
Thank you,

I am using SPI mode 1. CLK is 5 MHz for data transfer, and i measured 1 clk cycle.
1 CLK = 166ns
50% CLK = 83ns
25% CLK = 41ns.

The reason behind adding delay is to design results shows that MOSI line is shifted 25% with the CLK. so i need 41ns delay in that line.

 6 
 on: July 23, 2021, 11:05:30 AM 
Started by rudolf - Last Post by FTDI Community
Hello,

This is not possible. Is there a reason why you need it?
You should use the instructions (e.g. clock data on x edge) so that you change data on the edge which is not the valid one and in this case would normally not be an issue.   

Which SPI mode does your SPI peripheral use? Note that MPSSE only supports mode 0 and 2.
Mode 1 or 3 is not supported.

You can also try enabling 3-phase clocking.
This will give 3 phases so data is valid on both edges.

See AN_108 Command Processor For MPSSE and MCU Host Bus Emulation Modes for more details.

AN_411_FTx232H MPSSE I2C Master Example in Csharp shows an illustration of 3-phase in section 6.2.2.

Best Regards,
FTDI Community

 7 
 on: July 23, 2021, 09:44:43 AM 
Started by rudolf - Last Post by rudolf
Thank you for replying!!!

I want to send commands to slave using FT2232H, in which i have to add approx. 50ns delay between CLK and MOSI line. so the slave will understand data correctly.

 8 
 on: July 22, 2021, 05:44:16 PM 
Started by rudolf - Last Post by cioma
I don't think this timing is controllable as this is just a propagation delay between the edge of the clock signal and the change in the data signal synchronized by that clock.
And I don't think you need to control it in your design either.
What SPI device are you trying to communicate with?

 9 
 on: July 22, 2021, 06:14:30 AM 
Started by rudolf - Last Post by rudolf
Hello,

Is it possible to add delay in Mosi line for FT2232H?

I referred user guide of FT2232H in which i found that MPSSE mode has default CLK to MOSI delay operation is 1nS to 7.15nS. but how to control it? I also attached MPSSE timing diagram.

If there is another way to add delay between CLK and MOSI line, pls suggest.

Thanks in advance.

 10 
 on: July 21, 2021, 12:29:47 PM 
Started by Josiah - Last Post by j.pflaum
Hello Josiah,

I might have the same problem and cannot resolve it.
Did you find a solution and may you share it, please?

Thank you and best regards,
Johannes

Pages: [1] 2 3 ... 10