tiwari.sachin
Full Member level 6
Hello Everyone.
Let me explain you what I am trying to do.
1. I have a master (LPC1788).
2. I have 6-8 Slave devices (LPC1768). All of them will have the same code. I2C address will not be defined Initially. Let me call these slave as S1, S2, S3, S4, S5 and S6
I have attached the image explaining the details on how I would want to configure/control the hardware flow.
Following is what I am trying to do.
On Very first power up
1. Master will interact with S1 and assign a I2C address to it. Conf bit will be initially 0 and once address is configured properly, the conf bit would become 1 and will turn on the switch thereby connecting the clock line to next device which is yet to be configured.
2. The part 1 process should continue and S2 should be configured now and so on till all slaves are configured with address.
Consider I give
S1 address as 0x01
S2 address as 0x02
S3 address as 0x03
S4 address as 0x04
S5 address as 0x05
S6 address as 0x06
Initially only master interacts only with S1 and hence can configure it. My doubt is how can I configure address to it and that too using I2C and it needs some slave address.
When the clock line is connected through switch1, I would have already assigned S1 with address 0x01 and S2 is still needs assigning of address then How would S2 respond.
Let me explain you what I am trying to do.
1. I have a master (LPC1788).
2. I have 6-8 Slave devices (LPC1768). All of them will have the same code. I2C address will not be defined Initially. Let me call these slave as S1, S2, S3, S4, S5 and S6
I have attached the image explaining the details on how I would want to configure/control the hardware flow.
Following is what I am trying to do.
On Very first power up
1. Master will interact with S1 and assign a I2C address to it. Conf bit will be initially 0 and once address is configured properly, the conf bit would become 1 and will turn on the switch thereby connecting the clock line to next device which is yet to be configured.
2. The part 1 process should continue and S2 should be configured now and so on till all slaves are configured with address.
Consider I give
S1 address as 0x01
S2 address as 0x02
S3 address as 0x03
S4 address as 0x04
S5 address as 0x05
S6 address as 0x06
Initially only master interacts only with S1 and hence can configure it. My doubt is how can I configure address to it and that too using I2C and it needs some slave address.
When the clock line is connected through switch1, I would have already assigned S1 with address 0x01 and S2 is still needs assigning of address then How would S2 respond.