You might think setting the project build settings from "Debug"´ zo "Release". But for the world of PSoCs it is always faster to use generated signals (Timer/counter, LUTs,FFs) instead of directly bit-banging.
Thank you for your reply!
Yup, I changed to "Release" and the low-time has reduced a bit but the high-time is still 200ns.
Thank you for your suggestions, I will try to use internal hardware to see how it fares.
BTW, is there any tips on direct port access? I need to drive three pins for the bit-banging.
Have a look into "System Reference Guide" from Creator Help menu.
I will check it out. Thanks again. Merry Christmas!
The maximum frequency output you can get from depends on the VDD, the load capacitance and the gpio pin mode. Please check the image attached. Make sure that the GPIO is kept in " strong drive mode" . And I hope you are working at 5V VDD. I think adjusting these should solve your problem.
GPIOfreq.PNG 75.4 K
Can I know where did you get the screenshot?
I am running at 5V Vdd from USB and the GPIO is defaulted to fast mode.
I believe the slow toggle is caused by C.