Stm8s003f3 Pin as SPI MOSI and use MISO as GPIO

Thread Starter

Vindhyachal Takniki

Joined Nov 3, 2014
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?


Joined Oct 2, 2009
Yes, you can use the MISO as GPIO.
You have to select the Alternate Function for each pin that you wish to use for SPI.