cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

frank
New Contributor II

Have any chance to set the clock rate to 10MHZ for FX2LP?

Use GPIF or any other method ?

Or how can operate the IO in high speed toggle For FX2LP

 

0 Likes
1 Solution
PranavaYN
Moderator
Moderator

Hi,

FX2LP GPIO can be manually toggled at a maximum frequency of 4MHz when CPU is running at 48MHz. How to do it? 

>> You can repeatedly toggle bit corresponding to respective GPIO in "IOx" register. As a register write in FX2LP takes 12 clock cycle and CPU is running at 48MHz, so at max you can toggle GPIO at 250ns interval.

We have bitbanging implementation of SPI (https://www.cypress.com/file/125791/download#:~:text=Both%20FX2LP%20UARTs%20have%20a,UART0%20as%20an....) not I2C but you can definitely not do it at 10MHz using this approach.

We do not have I2C sample implementation using GPIF. 

Best regards,
Pranava

View solution in original post

0 Likes
10 Replies