FX2LP, the example regarding controlling GPIO pins as IO port.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 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.

0 Likes
4 Replies
Anonymous
Not applicable

 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.

0 Likes
Anonymous
Not applicable

 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.

0 Likes
Anonymous
Not applicable

 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.

0 Likes
Anonymous
Not applicable

thanks , was useful for me

0 Likes