Can Different Processors Share Memory in Embedded Systems?

AI Thread Summary
Embedded systems can integrate various processors like microcontrollers, DSPs, and microprocessors, each with their own memory elements. A typical setup involves a main bus connecting these processors to shared memory, with a microprocessor acting as the master controller that directs operations and manages data flow. Each unit executes code from its program memory and utilizes register files for data processing. While programming languages can vary, using assembly code is recommended for optimized performance, especially with DSPs. Overall, these systems can share memory while maintaining individual memory for each processor.
pairofstrings
Messages
411
Reaction score
7
What are the basic elements in embedded systems? Can I use any microcontrollers, DSPs, and microprocessors in one systems. If yes, how is memory element linked with microcontrollers, DSPs, and microprocessors? On whose memory elements, codes are written? Which language is preferred for the codes?
 
Engineering news on Phys.org
Basic elements could be processors, such as DSPs microprocessors, memories, ASICs of any kind, hardware accelerators etc.

There are several ways to connect them together, but an example could be you have a main bus with memories, one DSP and one microprocessor connected to the bus.
Then you let the microprocessor control everything (master host processor), this one sends commands to the DSP (slave co processor) to do some calculations on data stored in the memories, and DSP stores the results back in the memories.

There is an infinite number of ways you can build your system but the main thing is you need something to control the flow, a microprocessor for example, who gives instructions to other units and keep track of everything. Like where data and results are stored so that nothing important is overwritten by another unit.

All units, DSPs and microprocessors etc have a program memory from where its own code is executed, then there are memories and register files from where the units gets and stores the data which are processed.

The language could be any, in the end it all breakes down to assembly code which in turn breaks down to 0s and 1s in the program memory of the CPUs.

But if you need fast and optimized code like for a DSP the best thing is to write directly in assembler (if you have time :)) since a C-compiler of whatever may produce redundant code.
 
pairofstrings said:
"All units, DSPs and microprocessors etc have a program memory from where its own code is executed, then there are memories and register files from where the units gets and stores the data which are processed.

That means, if a system has a DSP, microprocessor, microcontrollers then all these possesses individual memory element and there is also memory element that belong to entire system as a whole. Is that what you mean?
 
Exactly, DSP, microprocessor, microcontrollers always has there own memories and in a system you can add extra memory for storing and shearing data.
 
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top