You are here

GPIF II 32 bit, UART and GPIO | Cypress Semiconductor

GPIF II 32 bit, UART and GPIO

Summary: 1 Reply, Latest post by dreitz on 22 May 2012 03:04 PM PDT
Verified Answers: 1
Last post
Log in to post new comments.
BennyM's picture
User
1 post

Hello,

we want to use GPIF II in 32bit mode in combination with UART. Is it possible to use the I2S pins as GPIO? The table on page 33 in Rev K datasheet doesn't show that this is possible, if I look at the column "GPIF II - 32 (FX3) + UART + I2S".

If yes, is it furthermore possible to use UART RX and TX, but the RTS (GPIO 53) and CTS (GPIO 54) pins as GPIO?

Thanks in advance

 Benny

dreitz's picture
User
70 posts

Yes....both are possible.  "GPIF II - 32 (FX3) + UART + I2S" means that those devices are available, but you can override the GPIO lines.

Here's an example where I do a simple override of an  unused GPIF control signal.

/* Override GPIO 25 as this pin is associated with GPIF Control signal.

* The IO cannot be selected as GPIO by CyU3PDeviceConfigureIOMatrix call

* as it is part of the GPIF IOs. Override API call must be made with

* caution as this will change the functionality of the pin. If the IO

* line is used as part of GPIF and is connected to some external device,

* then the line will no longer behave as a GPIF IO.. Here CTL4 line is

* not used and so it is safe to override. */

apiRetStatus =

CyU3PDeviceGpioOverride (25, CyTrue);if (apiRetStatus != 0)/* Error Handling */

DebugPrint (4,

apiRetStatus);

SetErrorCode(ERROR_GPIO_OVERRIDE25);

CyFxAppErrorHandler(apiRetStatus);

}

 

 

"CyU3PDeviceGpioOverride failed, error code = %d\n",/* Configure GPIO 25 as output */

gpioConfig.

gpioConfig.

gpioConfig.

gpioConfig.

gpioConfig.

apiRetStatus =

 

{

 

outValue = CyFalse;driveLowEn = CyTrue;driveHighEn = CyTrue;inputEn = CyFalse;intrMode = CY_U3P_GPIO_NO_INTR;CyU3PGpioSetSimpleConfig(25, &gpioConfig);if (apiRetStatus != CY_U3P_SUCCESS)/* Error handling */

DebugPrint (4,

apiRetStatus);

SetErrorCode(ERROR_GPIO_CONFIG25);

CyFxAppErrorHandler(apiRetStatus);

}

"CyU3PGpioSetSimpleConfig failed, error code = %d\n",

 

{

 

Log in to post new comments.