Modifications

Sauter à la navigation Sauter à la recherche
1 878 octets ajoutés ,  26 août 2013 à 11:18
aucun résumé de modification
Ligne 10 : Ligne 10 :  
{{ADFImage|Arduino-Memoire-11.jpg}}
 
{{ADFImage|Arduino-Memoire-11.jpg}}
   −
The [http://en.wikipedia.org/wiki/Harvard_architecture Harvard architecture] (''wikipedia, anglais'') characterized by the the [http://en.wikipedia.org/wiki/Harvard_Mark_I Harvard Mark 1] used physically separate memory and data paths for program and memory.
+
The [http://en.wikipedia.org/wiki/Harvard_architecture Harvard architecture] (''wikipedia, anglais'') characterized by the the [http://en.wikipedia.org/wiki/Harvard_Mark_I Harvard Mark 1] used physically separate memory and data paths for program and memory.
    
{{ADFImage|Arduino-Memoire-12.jpg}}
 
{{ADFImage|Arduino-Memoire-12.jpg}}
Ligne 17 : Ligne 17 :     
Each architecture has its advantages: All else being equal, the Harvard model has the edge in performance. The Von Neumann model is more flexible.
 
Each architecture has its advantages: All else being equal, the Harvard model has the edge in performance. The Von Neumann model is more flexible.
 +
 +
== Modern Hybrids ==
 +
These days, most general purpose computers (PC's Mac's etc.) are hybrid designs that give you the best of both architectures. Deep within the CPU they operate on the Harvard model using separate caches for instructions and data to maximize performance. But the instruction and data caches are both loaded automatically from a common memory space. From a programming perspective, these computers appear to be pure Von Neumann machines with many gigabytes of virtual storage.
 +
 +
== Microcontrollers ==
 +
Microcontrollers such as the ones that power the Arduinos are designed for embedded applications. Unlike general purpose computers, an embedded processor typically has a well defined task that it must perform reliably and efficiently - and at minimal cost, Microcontroller designs tend to be rather spartan. They forego the luxuries of multi-layer caching and disk-based virtual memory systems and stick to what is essential to the task.
 +
 +
The Harvard model turns out to be a good match for embedded applications and the Atmega 328 used in the Arduino UNO use a relatively pure Harvard architecture. Programs are stored in Flash memory and data is stored in SRAM.
 +
 +
For the most part, the compiler and run-time systems take care of managing these for you, but when things start getting tight, it helps to be aware of how things work under the hood. And things start getting tight much quicker on these tiny machines!
 +
 +
== A completely different Scale ==
 +
The biggest difference between these microcontrollers and your general purpose computer is the sheer amount of memory available. The Arduino UNO has only 32K bytes of Flash memory and 2K bytes of SRAM. That is more than '''100,000 times LESS physical memory than a low-end PC!''' And that's not even counting the disk drive!
 +
 +
'''Working in this minimalist environment, you must use your resources wisely'''.
    
{{Arduino-Memoire-TRAILER}}
 
{{Arduino-Memoire-TRAILER}}
29 917

modifications

Menu de navigation