NSS the output ignores the settings, and according to the waveform, the outputs are in the hiz state, because you can see the leads that are not damped by pressing to the ground. (STM32F303)
NSS the output ignores the settings, and according to the waveform, the outputs are in the hiz state, because you can see the leads that are not damped by pressing to the ground.
(STM32F303)
// Bit 4 FRF: Frame format
// 0: SPI Motorola mode
// 1 SPI TI mode
// SPI2->CR2 |= 1<<4;
// Bit 3 NSSP : NSS pulse management
// This bit is used in master mode only. it allow the SPI to generate an NSS pulse between two
// consecutive data when doing continuous transfers. In the case of a single data transfer, it
// forces the NSS pin high level after the transfer.
// It has no meaning if CPHA = ’1’, or FRF = ’1’.
// 0: No NSS pulse
// 1: NSS pulse generated
// Note: 1. This bit must be written only when the SPI is disabled (SPE=0).
// 2. This bit is not used in I2S mode and SPI TI mode.
SPI2->CR2 |= 1<<3;
// Bit 2 SSOE: SS output enable
// 0: SS output is disabled in master mode and the SPI interface can work in multimaster
// configuration
// 1: SS output is enabled in master mode and when the SPI interface is enabled. The SPI
// interface cannot work in a multimaster environment.
// Note: This bit is not used in I 2 S mode and SPI TI mode.
SPI2->CR2 |= 1<<2;