2014-05-05 12:04 PM
Howdy,
On the STM32F103, if I configure PB15 as AF_PP, and SPI2 as CPHA=0, CPOL=0, then enable SPI transmit a few words, and then disable SPI2, would the output on PB15 stays at the last state (which is 0 because CPOL=0)? Or could the output state toggling between 1 and 0? I know the reference manual says ''If software configures a GPIO pin as Alternate Function Output, but peripheral is not activated, its output is not specified.''. But it's not cleared to me if the output could toggle between states or it would always stay at the last state before I disable SPI2?Andy #spi #gpio_af