cancel
Showing results for 
Search instead for 
Did you mean: 

SPI Clock

marco3
Associate II
Posted on October 05, 2016 at 19:34

I'm using SPI to get data from and ADC: I need fast acquisition so I'm using a STM32F4 board at 50MHz. Using a Logic software I noticed that the spi clock doesn't work at high frequency (50MHz), while it works at lower (16MHz). Why is that? I generate the code with CubeMX setting 50MHz in the Clock configuration tab. Did I miss something?

Thanks
4 REPLIES 4
Posted on October 05, 2016 at 20:16

And the AHB, APB1 and APB2 clocks are what?

I'm hard pressed to see you getting 16 MHz from a 50 MHz source, using integer dividers.

What are you looking at the signals with? Use a scope probe in 10x mode.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
marco3
Associate II
Posted on October 05, 2016 at 21:06

AHB, APB1 and APB2 are all 50MHz

Posted on October 05, 2016 at 22:22

Ok, you're not providing much detail to work with here...

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Walid FTITI_O
Senior II
Posted on October 06, 2016 at 12:24

Hi pirotta.marco, 

As Clive said , you are not providing many details about your application and issue. 

Try to add a code ( main function, system clock configuration , SPI configuration..)

Try to describe more the hardware you are using , the clock source, the connection you setup..

As much you provide details, as more you get help from forum.

-Hannibal-