STM32F3 and STM32F4 SPI Problems.

STM32F3 and STM32F4 SPI Problems.
STM32

When porting one of my projects from the F1 series to the F3 series, I ran into a problem: SPI frames were always 16 bits long, but I needed 8. Interestingly, the F1 series has a single DFF (Data frame format) bit for setting the SPI frame length: when it is cleared the frame is 8 bits, when set, 16. In the F3 series a 4-bit field was allocated for this, and the frame length can...

STM32F3 and STM32F4 GPIO.

STM32F3 and STM32F4 GPIO.
STM32

An article about configuring STM32 pins was published on this site earlier; it was dedicated to the F1 series microcontrollers, although the article didn't say so explicitly. This article covers the F3 and F4 series microcontrollers. Before configuring any MCU pin, you must enable the clock for the corresponding port!!! Each MCU pin can be configured in one of the states. In...