1 Reply Latest reply on Sep 19, 2018 9:36 PM by SrinathS_16

    IFCONFIG fx2lp register

    gean_3054931

      Hello,

      I am using fx2lp in slavefifo configuration (IFCONFIG=0x03) with 8 bit data bus( WORDWIDE=0).but i am not able use FD[8:15]/PD[0:7] Pins as GPIO.

      I tried with LEB blinking.If fx2lp in ports mode,led connected to PD5 is blinking.

      if fx2lp in slavefifo configuration,led connected to PD5 is not blinking.why this is hapeening?is there any other register settings in order to use PD5 as GPIO?please let me know.

       

       

      regards,

      geetha.

        • 1. Re: IFCONFIG fx2lp register
          SrinathS_16

          Hello Geetha,

           

          The WORDWIDE bit of all the FIFOs must be set to 0. This can be done by setting the bit 0 of EPxFIFOCFG registers to 0. Upon reset, the WORDWIDE bits of all the Endpoint FIFOs are set to 1. This has to be overridden in the code. Include the below statements in the TD_Init() function block.

           

          SYNCDELAY;

          EP2FIFOCFG &= 0xFE;

           

          SYNCDELAY;

          EP4FIFOCFG &= 0xFE;

           

          SYNCDELAY;

          EP6FIFOCFG &= 0xFE;

           

          SYNCDELAY;

          EP8FIFOCFG &= 0xFE;

           

          Best regards,

          Srinath S

          1 of 1 people found this helpful