STM32F103RBT6 SPI slave mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-13 6:56 PM
Hi ST experts,
I'm using STM32F103RBT6, and for GPIO's Alternate functions, I want to use default, not remap.
Based on its datasheet, I understand that when its SPI2 interface works in SPI master mode, PB15 acts as data output MOSI and PB14 acts as data input MISO.
But my question is: When SPI2 is configured as SPI slave mode, which PIN acts as data output and which pin acts as data input?
Thx a lot.
BR,
Jon
Solved! Go to Solution.
- Labels:
-
SPI
-
STM32F1 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-13 7:28 PM
> When SPI2 is configured as SPI slave mode, which PIN acts as data output and which pin acts as data input?
In slave mode, PB14 (SPI2_MISO) is output and PB15 (SPI2_MOSI) is input.
MISO = master in, slave out
MOSI = master out, slave in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-13 7:28 PM
> When SPI2 is configured as SPI slave mode, which PIN acts as data output and which pin acts as data input?
In slave mode, PB14 (SPI2_MISO) is output and PB15 (SPI2_MOSI) is input.
MISO = master in, slave out
MOSI = master out, slave in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-13 11:18 PM
Hi Guru,
Thx a lot for your so quick response.
BR,
Jon
