Skip to main content
Associate
July 21, 2023
Question

can't decrease SPI baud rate

  • July 21, 2023
  • 3 replies
  • 2104 views

Hİ, i use energy meter ic name is atm90e26 which communicates over SPI and UART. I prefer SPI in my project. But there is a problem about baud rate. Max baudRate of energymeter is 160k bit. Minimum baudRate of stm32g491 is 664k bit at 170Mhz Clock frequency. When i decrease clock frequency, the baud rate of spi is also decreases but i dont want to decrease clock frequency of  stm32. Added photos about setup and datasheet. İs there any way to solve this problem?

    This topic has been closed for replies.

    3 replies

    OlivierR
    ST Employee
    July 21, 2023

    Hi,

    May be you can try to increase APB1 Prescaler divider in "Clock Configuration".

    Move from /1 to /8...

    Regards.

    yasinAuthor
    Associate
    July 24, 2023

    yes it is possible but this also decreases other peripherals frequency. I guess there is no choice except this. Thank you.

    waclawek.jan
    Super User
    July 24, 2023

    You can also try to use some of the USARTs in synchronous mode.

    JW