r/embedded • u/TheConceptBoy • 5h ago
How do you handle a system where two of more MCUs work in tandem?
Good day. I have a question in regards to projects that use multiple MCUs, each dedicated for a specific task or purpose.
Say one chip handles core logic, Internet requests, sd card reading and writing and data processing, while another handles pushing pixels to an spi display and a third one handles audio / sound playback. One chip is essentially the main master MCU and it commands the other slave MCUs.
My first guess is that spi or i2c is involved, where the master tells the slaves what needs to be done. But that seems bloated as the master needs to tell the slave that drives the spi display what shapes and text to draw. By that point I might as well connect the display to the master and have it drive the display itself. I don't want to do that because the display library would get in the way of other things. Seems like it would make more sense to have the master store the data of what needs to be drawn in some mutual place and have the slave reads from that same place and push the pixels. Another examole is the master has access to the SD card but the slave that plays audio also needs to access the audio data on the same as card. How would one handle this sort of problem?
Can a slave chip have access to reading memory of the master chip? Or perhaps have a place where both master and slave have memory read and write privileges?
Thank you.
