2020-10-07 08:36 AM
Dear ST Hello,
could you tell me please the real clock value set in this example,
\STM32Cube\Repository\STM32Cube_FW_F4_V1.25.1\Projects\STM32F429I-Discovery\Examples\SPI\SPI_FullDuplex_ComDMA
The clock frequency between master and slave must be equal, does the frequency communication is imposed by the master since they have to be the same?
Thank you in advance,
S.Tarik,
Solved! Go to Solution.
2020-10-08 08:21 AM
It depends on the DSP used.
You can configure the baude rate of CR register (calculate APB1/baud rate configured, APB2/baud rate).
In fact, the prescaler define the SPI BUS clock.
2020-10-07 11:04 AM
Hello @NSemrHomeInit ,
The clock is imposed by the master.
What do you mean by real clock w the baudrate is configured in SPIx_CR1 register ?
Imen
2020-10-08 02:18 AM
Hello Imen,
I am trying an SPI communication between the two boards, DSP and STM32F.
Do i have to configure the clock of the DSP the same as the SMT32F?
I have two microcontroller, both are clock configured, but in the end, the master clock will be considered as a clock for the spi bus.
2020-10-08 02:35 AM
The master supplies the only clock and the transmit/receive is symmetrical, but can occur on different clock edges.
2020-10-08 08:21 AM
It depends on the DSP used.
You can configure the baude rate of CR register (calculate APB1/baud rate configured, APB2/baud rate).
In fact, the prescaler define the SPI BUS clock.
2020-10-08 09:36 AM
Imen,
Thank you very much.
its very clear.
2020-10-08 09:37 AM
Thank you clive1 :)