Can Different Processors Share Memory in Embedded Systems?

Click For 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 'I thought it was only Amazon that sold unsafe junk'
I grabbed an under cabinet LED light today at a big box store. Nothing special. 18 inches in length and made to plug several lights together. Here is a pic of the power cord: The drawing on the box led me to believe that it would accept a standard IEC cord which surprised me. But it's a variation of it. I didn't try it, but I would assume you could plug a standard IEC cord into this and have a double male cord AKA suicide cord. And to boot, it's likely going to reverse the hot and...

Similar threads

Replies
8
Views
2K
Replies
4
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 18 ·
Replies
18
Views
2K
Replies
13
Views
6K
  • · Replies 133 ·
5
Replies
133
Views
10K
Replies
2
Views
613
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 29 ·
Replies
29
Views
3K
Replies
4
Views
3K