Skip to main content
Explorer
September 11, 2023
Solved

I2C master and slave same time

  • September 11, 2023
  • 2 replies
  • 1208 views

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

 

    This topic has been closed for replies.
    Best answer by Issamos

    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

    2 replies

    IssamosAnswer
    Graduate II
    September 11, 2023

    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

    HoiAuthor
    Explorer
    September 11, 2023

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