SPI1 and I2C1

Post here first, or if you can't find a relevant section!
Post Reply
cptcredible
Posts: 13
Joined: Fri Apr 24, 2020 5:03 am

SPI1 and I2C1

Post by cptcredible »

Why are there two MOSI1 pins, two MISO1 pins, two SDA1 pins and two SCL1 pins ? how do these interact ? can you choose witch one to use ?
by fpiSTM » Fri Apr 24, 2020 12:24 pm
Well I guess you talk about the BluePill and the STM32F103C8.
The MCU contains several type of integrated peripherals (SPI, I2C, Timers, ...).
All those peripherals can be "mapped" on different pins.
For example the I2C1 SDA signal can be mapped to PB7 or PB9. This simply allows you to have some option for you wiring depending of your needs.

See Slode 6 of this presentation:
https://www.stmicroelectronics.com.cn/c ... e-GPIO.pdf
Go to full post
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: SPI1 and I2C1

Post by fpiSTM »

Well I guess you talk about the BluePill and the STM32F103C8.
The MCU contains several type of integrated peripherals (SPI, I2C, Timers, ...).
All those peripherals can be "mapped" on different pins.
For example the I2C1 SDA signal can be mapped to PB7 or PB9. This simply allows you to have some option for you wiring depending of your needs.

See Slode 6 of this presentation:
https://www.stmicroelectronics.com.cn/c ... e-GPIO.pdf
cptcredible
Posts: 13
Joined: Fri Apr 24, 2020 5:03 am

Re: SPI1 and I2C1

Post by cptcredible »

Thanks!
Post Reply

Return to “General discussion”