Skip to main content
marco3
Associate II
October 5, 2016
Question

SPI Clock

  • October 5, 2016
  • 4 replies
  • 1011 views
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
    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    October 5, 2016
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    marco3
    marco3Author
    Associate II
    October 5, 2016
    Posted on October 05, 2016 at 21:06

    AHB, APB1 and APB2 are all 50MHz

    Tesla DeLorean
    Guru
    October 5, 2016
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Walid FTITI_O
    Visitor II
    October 6, 2016
    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-