I2C slave with 2slave address for CY8CKIT145-40XX

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

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.

pastedImage_2.png

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

 pastedImage_0.png

 [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

 

 

0 Likes
1 Reply
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Yoshiharu Ishii-san,

Thank you very much for your contribution to Cypress Forums

Best regards

Ganesh

0 Likes