High speed clock rate of I2C for FX2LP

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
frank
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

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
Pranava_YN
Moderator
Moderator
Moderator
100 likes received 500 replies posted 250 solutions authored

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