Skip to main content
Visitor II
May 27, 2020
Question

Stm8s003f3 Pin as SPI MOSI and use MISO as GPIO

  • May 27, 2020
  • 1 reply
  • 671 views

1. I am using Stm8s003f3.In it a slave SPI device is connected, which only inputs data, it dont output any data so MOSI is only used.

2. My question is can I use remianing MISO pin as GPIO? since MOSI is used after configuring SPI, will it automatcially configure MISO also?

Or i can use it as independent GPIO?

    This topic has been closed for replies.

    1 reply

    Visitor II
    June 11, 2020

    You would need to configure the SPI in "simplex" mode. See 20.3.4 on page 268 in RM0016.