Download Cy3684 DVK from the link http://www.cypress.com/?rID=14321.
You can find example projects in the path "C:\Cypress\USB\CY3684_EZ-USB_FX2LP_DVK\1.1\Firmware".
For toggling any GPIO you have configure the particular GPIO as O/P by setting bit of OEx to 1.(x=A,C,,E...B,D only in port mode).
If you want to drive 0/1 on the O/P pin set 0/1 of corresponding bit in the register IOx.
Hi, thank you,
yeah, I already have the dvk and I know there are many firmware example,
but I wonder which sample is suitable for my requirement (controlling GPIO).
could you tell me how to choose the firmware example?
You can use any example project for this.
The example LEDCycle does the same thing but it is in assembly language.
The best one for you is to use vend_ax example.Modify the program and program the EEPROM.In the TD_init() function configure the particular pin as O?p by using OEx and in the DR_VendorCmnd() use your program to toggle the GPIO using IOx.Refer the application note http://www.cypress.com/?rID=34485.
thanks , was useful for me