- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all ,
I have a custom psoc5lp board ,
I want to implement an I2C SLAVE to I2C MASTER bridge ,
So the psoc is just a short between those 2 i2c interfaces .
I want a pc connected to the i2c slave to control the i2c slave devices
and not the PSOC.
as shown in my attached picture :
I have seen one implementation of a short (its not so easy because i2c communication works both ways ).
but this kind of implementation is not good for me because in some cases in my design the psoc need to take
control and not pass the i2c traffic .
so What are my options ?
record the pc i2c master commands and mirror them to the i2c master component ?
Maybe something else ?
Thanks Lampel.
Solved! Go to Solution.
- Labels:
-
PSOC5 LP MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You might be interested on this post.
If you have an internal I2C Master that takes control sometimes, you can add a digital mux on the SDA and SCL lines to mux between your internal I2C Master and the I2C passthrough component. Then, use a control register to mux between them.
Attached you find a project with this concept.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You might be interested on this post.
If you have an internal I2C Master that takes control sometimes, you can add a digital mux on the SDA and SCL lines to mux between your internal I2C Master and the I2C passthrough component. Then, use a control register to mux between them.
Attached you find a project with this concept.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
This design seems very close to what I am looking for ,
but just let me understand ,
in your design you have two I2C slaves and one I2C MASTER.
but I have one I2C SLAVE and one I2C MASTER .
the selectmux bit is choosing between a short from i2c MASTER to downstream_I2C
or a short between 2c MASTER to upstream_I2C is this correct ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You don't need the two I2C Slaves (UpStream_I2C and DownStream_I2C). That's only for testing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much
I can confirm it is a working solution !