2 Replies Latest reply on Apr 15, 2018 4:45 PM by ToddD_41

    Non-Blocking I2C functionality on PSoC 6

    gerald.brennan_1832881

      I'm having a bit of trouble utilizing the Cy_SCB_I2C_MasterWrite function. I can't find much on it aside from looking through the source so I can't tell if it needs to be preceded by Cy_SCB_I2C_MasterSendStart like its blocking-counterpart or if it is a full encompassing functions. Just having trouble getting it to work.

       

      Are there any example of non-blocking I2C or any com parifs for the PSoC 6 out there that can be easily ported? I hadn't been able to find anything myself.

       

      Thanks

        • 1. Re: Non-Blocking I2C functionality on PSoC 6
          ShanmathiN_06

          Hi,

           

          You could refer to code example CE220818 I2C Master High Level (Navigate to PSoC creator-> Code example)

          Cy_SCB_I2C_MasterWrite() is used in this code example.

           

          Thanks,
          Shanmathi

          1 of 1 people found this helpful
          • 2. Re: Non-Blocking I2C functionality on PSoC 6
            ToddD_41

            The MasterWrite function is a high level function that takes care of sending the start and the address for you. No need to proceed with a SendStart.

             

            SendStart is a low level function. Generally those two should not be mixed.

             

            The PDL documentation has a in depth description of the different use cases, if you just click on the I2C tab in the PDL document it describes how the different API are used.

             

            Here is where the PDL lives on my machine.

            file:///C:/Program%20Files%20(x86)/Cypress/PDL/3.0.1/doc/pdl_api_reference_manual/html/group__group__scb__i2c.html

            1 of 1 people found this helpful