2022-05-25 05:06 AM
Hello,
I am working on STM32H7 series controller, I have to continuously reading the data of dac through spi and vtg ,and send over an GUI application so every 50 microsecond I have read the values of 6 spi , so I have do the calculation in stm32 or I have to send the data to GUI and the calculation is done over on GUI which is preferred ?
2022-05-25 05:46 AM
Which one has the bandwidth to do it?
How much time is consumed by what you're currently doing?
2022-05-25 06:26 AM
All spi is working on 50MHZ clock, the 2 spi is configured for DAc and 4 spi is ADC compatiable which is used for reading the vtg and current of battery.
2022-05-25 06:59 AM
@MDeva.1 "the calculation is done"
What calculation?
It's your system, so it's your job to decide/determine where it makes most sense to do the calculation - according to your requirements & constraints.
Think about the pros & cons of each case; where are your bottlenecks; etc.
Maybe benchmark some tests.
We have no idea about your system, so can't possibly advise.
2022-05-25 07:20 AM
But how long does that take, and what percentage of the CPU utilization does that represent?
Does the amount of data sent to the GUI go up or down if you do the computation and calculations on the H7?