Clock speed stm32f429i example package
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-07 8: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.
- Labels:
-
SPI
-
STM32Cube MCU Packages
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-08 8: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.
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-08 2: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-08 2:35 AM
The master supplies the only clock and the transmit/receive is symmetrical, but can occur on different clock edges.​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-08 8: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.
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-08 9:36 AM
Imen,
Thank you very much.
its very clear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-08 9:37 AM
Thank you clive1 :)
