2023-07-21 01:54 AM
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?
2023-07-21 05:01 AM - edited 2023-07-21 05:04 AM
Hi,
May be you can try to increase APB1 Prescaler divider in "Clock Configuration".
Move from /1 to /8...
Regards.
2023-07-23 10:52 PM
yes it is possible but this also decreases other peripherals frequency. I guess there is no choice except this. Thank you.
2023-07-24 12:08 AM
You can also try to use some of the USARTs in synchronous mode.
JW