cancel
Showing results for 
Search instead for 
Did you mean: 

I2C master and slave same time

Hoi
Associate II

Can I use STM32F401RCT6 to be I2C master and slave at the same time?
1: For the Master, I use I2C1 -> pin PB6 and PB7, I will read data from the current sensor ICs.
2: For Slave, I use I2C3 -> pin PA8 and PC9, I will send and receive data from another STM32.

Does it work? Please give me advice.
Thanks everyone,

Hoi_0-1694422529454.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Issamos
Lead II

Hello @Hoi 

Each I2C works independently so you can use one of them as a master an the other one as a slave.

Best regards.

II

View solution in original post

2 REPLIES 2
Issamos
Lead II

Hello @Hoi 

Each I2C works independently so you can use one of them as a master an the other one as a slave.

Best regards.

II

Hoi
Associate II

Thank you for your quick help, I will apply it to my design