- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all, is there any example for fx2lp to demonstrate how to control the gpio pins at cy3684 fx2lp development kit?
Currently, I don't know where to start, please kindly give me some tip or direction.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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.
Regards,
Vikas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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.
Regards,
Vikas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks , was useful for me