Configure 16 GPIOs of CY7C65215 as Input and Interrupt related query

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

cross mob
ssomani
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

Hi all,

We have following queries regarding CY7C65215:

Planning to use USB and GPIOs of the device.

1. Shall we able to configure 16 GPIOs out of 17 GPIOs as "INPUT" ?

2. If we are able to use 16 GPIOs as INPUT then How shall we get interrupt to USB when any GPIO is triggered ?

 

Thanks & Regards

Satish Somani

0 Likes
1 Solution
9 Replies
narolkarvarun
Moderator
Moderator
Moderator
5 likes given 100 solutions authored 250 replies posted

Hi satish

yes, you can configure 16 pins as "INPUT".
The USB serial configuration utility tool does not have the option to make GPIO an edge trigger or (interrupt).
you can poll the GPIO PINS using CyGetGpioValue() function to check the current state of the GPIO.

Thank you 

Varun Narolkar

0 Likes
ssomani
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

Hi Varun, 

Thanks for prompt reply.

I have more query:

1. At first power ON, Is any firmware installation required to CY7C65215 ?  If yes, How can we program that firmware.

2. Can we configure VDDD voltage levels , pins of CY7C65215  as GPIO, I2C and so on.....by USB interface through remote Host ? If yes, please let us know the procedure/steps..

 

Thanks & Regards

Satish Somani

 

 

 

0 Likes

Hi Satish,

CY7C65215 is the fixed Firmware part, but you can change the configuration using Cypress USB-serial configuration utility tool.

you can download USB-serial configuration tool from below link.

https://www.infineon.com/cms/en/design-support/tools/sdk/usb-controllers-sdk/usb-serial-software-dev...

You can Download USB-serial configuration user guide from given link.

https://www.infineon.com/dgdl/Infineon-USB-Serial_Configuration_Utility_User_Guide_1-Software-v01_00...

please check below link for CY7C65215 development kit.

https://www.infineon.com/cms/en/product/evaluation-boards/cyusbs236/

 

Thank You 

Varun Narolkar

 

0 Likes
ssomani
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

Thanks Varun.

If we assered active low signal to "wakeup" pin  of CY7C65215, then how will CY7C65215  issue remote
wakeup signal (Intterrupt to remote USB)  to the remote USB host ? 

 

With Regards

Satish Somani

 

0 Likes

Hi Satish,

As per  CY7C65215 datasheet, you can configure the polarity of the wakeup pin from USB serial configuration tool and host will enabling remote wakeup with set feature command.

Thank you 

Varun Narolkar

0 Likes

Hi Varun,

We will configure polarity of wakeup pin and also enable remote pin using set feature command..

But How remote USB device (My Laptop) know that wakeup pin  of CY7C65215 is triggered....?

As we have only four signal for USB interface D_P , D_N, VBUS and GND.

By any command/register , shall i know that my device CY7C65215  wakeup pin is triggered ?

 

Thanks 

Satish Somani

0 Likes

Hi Satish , 

Please check the below thread for your reference. 

https://community.infineon.com/t5/USB-low-full-high-speed/How-to-detect-USB-connection-and-disconnec...

Thank You 

Varun Narolkar

0 Likes

Hi Varun, 

As per below link, they used UART interface with addition Suspend pin to detect "assertion of Wakeup " pin.

We shall set wakeup pin by external mechanism but we shall use only four lines of USB to connect remote PC (My laptop). In taht case How shall i get interrrupt ? 

Is any USB driver setting/any resister to be read of the device?

 

0 Likes

Hi Satish ,

apologies for the delayed response.

Would you kindly confirm the Windows version you intend to test this functionality on?

You can test this functionality on Linux strait forward .

Thank  you 

Varun Narolkar

0 Likes