Serial Communication Explained: UART, I2C & SPI
What would tell you whether you are looking at UART, I2C or SPI on an oscilloscope?
Use STM32 scope traces to tell three serial interfaces apart. Decode a UART frame, identify the sampling edge on SPI, then follow the address and acknowledgment when an I2C master talks to a TMP102 temperature sensor.