2 Replies Latest reply on Apr 26, 2016 7:42 AM by zhang.tian-chao

    FX3 IO Configuration of GPIO53

    zhang.tian-chao

      Hi

         

      I need UART and GPIO53, So I configuration is:

         

      io_cfg.useUart = CyTrue;
      io_cfg.useI2C = CyTrue;
      io_cfg.useI2S = CyFalse;
      io_cfg.useSpi = CyFalse;

         

      io_cfg.isDQ32Bit = CyTrue;
      io_cfg.lppMode = CY_U3P_IO_MATRIX_LPP_DEFAULT;

         

      io_cfg.gpioSimpleEn[0] = 0;
      io_cfg.gpioSimpleEn[1] = 0x023C0000; /* GPIO 50,51,52,53,57 */
      io_cfg.gpioComplexEn[0] = 0;
      io_cfg.gpioComplexEn[1] = 0;
      status = CyU3PDeviceConfigureIOMatrix(&io_cfg);

         

      If I enable the GPIO53 at simple gpio, the CyU3PDeviceConfigureIOMatrix will fail.

         

      How can I set GPIO53 as IO mode? I just use UART RX/TX. UART RTS/CTS work as GPIO.