5 Replies Latest reply on Feb 14, 2016 11:09 PM by rash

    GPIF vs GPIO interrupt speed

    nia.fong_1534961

      Hi,

         

      Does anyone know if the GPIF interrupt handling (using a GPIO pin) is faster than just a simple GPIO interrupt?  I am trying to do a fast SPI read under 5 usec.  Using a simple GPIO interrupt, the callback and SPI read take about 9.8 usec.  On a scope, the SPI SSN line is triggered for about 3-4 usec so I'm assuming the time between the GPIO interrupt's negative edge and SSN positive edge is the callback/interrupt code.  I've already commented out a bunch of code in CyU3PSpiReceiveWords(), CyU3PSpiResetFifo(), CyU3PGpioInt_Handler() to reduce the time and am not sure what to do next.  Does anyone know if the GPIF interrupt handling may be faster?

         

      Thanks in advance for any advice.