- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, everyone.
I am using FX3 . Now i need use 2 GPIO pins to simulate the serial bus , one pin is clock out and the other is data out .
I set the GPIO as siample GPIO, and set the output value through their registers. In my test, the simulative max clock frequency is 1.03MHz.
So What is the max clock frequency that the GPIO can simulate? I need the clock faster.
Otherwise, Can the complex GPIO perform faster and simulate synchronous clock and data? I cant use other LPP ports.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could get a max GPIO toggle frequecny of SYSCLK/8 with a complex GPIO.
This question has been resolved long before. Please refer to the link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could get a max GPIO toggle frequecny of SYSCLK/8 with a complex GPIO.
This question has been resolved long before. Please refer to the link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply. But I can't open the page whith the link you supplied.
It shows "unauthorized". Can you check if it is invalid?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To toggle a pin at max speed does not give you any control because all the CPU is used up.
The power of PSoCs shows when you use a piece of hardware ie. a PWM component that only needs the CPU when you want to change period or duty cycle of the signal.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, bob ,
Thanks a lot .
This means that I can only use GPIO as a high speed clock, no way to use GPIO as a data line that is synchronized with the this clock. Is it right ?bob.marlowe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on your requirment. Do you want to drive a GPIO as a clock or simulate any communication protocal such I2C,SPI, etc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,yyaca
I want to driver tow GPIOs to simulate CLK Line and MOSI Line in SPI protocal with high speed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have already built an example in which FX3 drives GPIOs to simulate SPI protocol. You can refer to that.
C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbspigpiomode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have refered it . It use GPIOs as Simple. I tested CLK, it is only 125KHz, that was too slow for my requirement.
I need the one GPIO simulate CLK up to 5MHz and one GPIO simulate MOSI.
Is there have any other way to implement ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could try to rewrite the example code to write register directly. This could increase the frequency.
Refer to
Increasing Frequency of Bit-Banged GPIO Clock in EZ-USB® FX3™ - KBA90267