CY7C65211 GPIOs doesn't work

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

cross mob
Anonymous
Not applicable

I bought CY8CKIT-049-42XX  to use it's USB to serial bridge (CY7C65211). I need the chip to communicate with SPI device and the SPI API works as expected.

   

I'm struggling to drive the GPIOs of the chip/board! I tried everything: tried all GPIO numbers, tried to use SCB0 and SCB1 and always the function CySetGpioValue returns error code 6 (CY_ERROR_REQUEST_FAILED).

   

How the GPIOs should be used? Please give me working example!?

   

Thanks!

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

To start:
Use the "USB-Serial Configuration Utility" for set  your pin to out 0 or 1 (see attachment)
Then you can use  CySetGpioValue (...)  for this contact
 

View solution in original post

0 Likes
4 Replies
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

To start:
Use the "USB-Serial Configuration Utility" for set  your pin to out 0 or 1 (see attachment)
Then you can use  CySetGpioValue (...)  for this contact
 

0 Likes
Anonymous
Not applicable

You mean that by the Configuration Utility I set the default state of the pin and then I can change it by the API - is this correct?

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Yes, it seems to change the port configuration (input or output) only in  Configuration Utility
Otherwise you will get an error CY_ERROR_REQUEST_FAILED - I just checked it.
Unfortunately my example is on LabVIEW.

0 Likes
Anonymous
Not applicable

Now it works. Thanks a lot and please update your documentation and/or software!