1 Reply Latest reply on Oct 21, 2015 5:46 AM by user_1377889

    Is there any example that use i2c master with multi i2c slave devices?

    cgh21_1497191

      In my system, there are two i2c slave, and I've looked into the example of the CY5672 source code, the i2c source code seems does not simple enough for newbie like me. How to add another i2c slave into the exsiting source code?

         

      I think it is a very normal use case that i2c master operate several i2c slave.

        • 1. Re: Is there any example that use i2c master with multi i2c slave devices?
          user_1377889

          You are here in the PRoC BLE forum, but you should be in PSoC5 forum. Probably not all helpers may read your question.

             

          The I2C source code is nothing you normally have to deal with, what you need to use are the APIs which are documented in the component's datasheet which is always a mouse click away. To access a second slave you just have to know its address. When sending an I2C_MasterSendStart(you) have to provide that address as the first parameter. Anything else will be handled by the generated software. This is how to deal with multiple slaves.

             

           

             

          Bob