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.
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？
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.
It depends on your requirment. Do you want to drive a GPIO as a clock or simulate any communication protocal such I2C,SPI, etc?
I want to driver tow GPIOs to simulate CLK Line and MOSI Line in SPI protocal with high speed.
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
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 ?