cancel
Showing results for 
Search instead for 
Did you mean: 

SPI - configure mode 0 (clck pol 0, phase 0) but the output is mode 2 (clck pol 1, phase 0) , with clock idle high

Andreas S.
Associate II

Hi all,

I have a STM32F091CC and am using SPI2 on PortB, Pin 13-15.

I configure polarity=0 and phase=0, but the trace in logic analyzer and

oszi shows that the clock is idle high.

I have already tried pullup, pulldown and nopull at CS pin, but with no

effect. Checked the register after SPI transfer as well, both bits are 0.

The same code works on a stm32f103RG. The transfer is done manually

by interrupt.

Has anyone an idea? Could this be a bug?

Thanks in advance, best regards,

Andreas

1 REPLY 1

Post a minimum but complete compilable code which exhibits the problem.

JW