1 Reply Latest reply on Jul 27, 2020 6:07 AM by GaneshD_41

    I2C slave with 2slave address for CY8CKIT145-40XX

    YoIs_1298666

      Hello,

       

      This sample project is multi slave address.

      You can find the explanation of "Multiple address support" in "PSoC 4 Serial Communication Block (SCB) ".

      I have prepared an I2C slave with 2 slave addresses and You can test with the attached Bridge Panel Control script.

      The usage of the script of Bridge Panel Control is as follows.

       

       [Example of operation procedure]

          In case of Slave Address0(0x08)

       1. press enter on W 08 00 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 p

       2. press enter on W 08 01 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 p

       3. press enter on W 08 02 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 p

       4. press enter on W 08 03 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 p

       5. Now, the index is the last written 03, so if you press enter on

         R 08 x x x x x x x x x x x x x x x x x p, you can read

         R 08+ 03+ 70+ 71+ 72+ 73+ 74+ 75+ 76+ 77+ 78+ 79+ 80+ 81+ 82+ 83+ 84+ 85+ p

       6. Here, if you press enter on w 08 01 p, the index will be 01,

             so if you press enter on R 08 x x x x x x x x x x x x x x x x x p,

             it will become R 08+ 01+ 30+ 31+ 32+ 33+ 34+ 35+ 36+ 37+ 38+ 39+ 40+ 41+ 42+ 43+ 44+ 45+ p.

       Do the same for Slave Address 1(0x0a).

       

      Best regards,

      Yocchi