- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Pranava