2 Replies Latest reply on Jun 11, 2013 12:49 AM by roman.filimonov

    CY7C68013 Gpif

    roman.filimonov

      Hello!

         

      I read documentation on CY768013 chapter 10 about GPIF, but can't understand how specific waveform chosen at the right moment. For instance, i have 4 waveform (read, write, fifo read, fifo write).When i call single read function, how it choose needed waveform. Can anyone explain me?

         
              
        • 1. Re: CY7C68013 Gpif
          rama.sai.krishna.vakkantula

          Hi,

             

          By default, the waveform that you design in the first tab is considered as "Single Read".

             

          Second tab is considered for " Single Write". Similary third one is for "FIFO Read" and 4th one is "FIFO Write". If you are following this you don't have to select any waveform specifcially.

             

          If you are performing "Single Read" then you need to perform a dummy read to register XGPIFSGLDATLX. This will automatically initiate the GPIF waveform for SIngle Read.

             

          g_data = XGPIFSGLDATLX;

             

          In case of FIFO Write,

             

          GPIFTRIG = FIFO_EpNum; will trigger thr corresponding GPIF FIFO Write waveform.

             

          But you can also use all tabs for different "FIFO Write" waveforms in case your application demands that. But then you need to select the waveform with the help of GPIFWFSELECT register.

             

          Please let me know if my explanation is not clear.

             

          Thanks,

             

          sai krishna.

          • 2. Re: CY7C68013 Gpif
            roman.filimonov

             Hi!

               

            Ok, it's all clear for me now, great thanks.