CY7C65211 GPIOs do not work

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

cross mob
karac_3142546
Level 2
Level 2
First like given

Hi,

I cannot get the GPIOs working on my CY7C65211. What I have is:
-a working device configured as I2C + PC side software

-GPIO 11 appearing as "unused" in the Configuration Tool

-GPIO 11 alternatively configured as Driven 0/Driven1/Tristate - no change

-Briefly tried other GPIO ports too

My code line:

     cyret = CySetGpioValue(cyhandle, 11, 1);

always returns CY_ERROR_REQUEST_FAILED. 'cyhandle' is valid, e.g.

CySetI2Config() accepts it.

Is there some GPIO-specific initialisation I need to run?

Should GPIOs be usable when the device is in I2C mode?

Is there any example source code that drive GPIO?

I have thus far only tested on Linux with the latest CyUSB SDK (Feb. 6, 2016), Ubuntu 16.04.

thanks,

kalle

0 Likes
1 Solution

Hi,

When you set CPIOx to Drive high in serial configuration utility, the GPIOx will output HIGH afer reset.

View solution in original post

0 Likes
8 Replies