Re: 8051 architecture question



Ian Bell wrote:
JBrewster wrote:
Now are Program Memory and Data Memory 2 separate memory spaces?
Completely separate. This it what is known as a Harvard architecture where
code and data spaces are kept quite separate. In the 8051 you can have up
to 64K of each.

Fully agree. Just want to add that one can map the mcu signals in a way that both code and external memory are the same. Many development kits do this by default to allow the user to "upload" code into the external data memory of which a certain part will appear as the code memory.
Coding wise this leads to a point where movc and movx will access the same memory location. However this breaks the Harvard paradigm (ofcourse).


just my 2c,
Matthias
--
Matthias Arndt <marndt@xxxxxxxxxxxxxx> <matthias.arndt@xxxxxxxxxxxxxxx>
PGP-Key: http://www.asmsoftware.de/marndt.pgp   ICQ: 40358321
>>> Jabber: simonsunnyboy@xxxxxxxxxxxxx <<<
.



Relevant Pages

  • Re: New ARM Cortex Microcontroller Product Family from STMicroelectronics
    ... "The disadvantage of a Harvard Architecture microcontroller is that because ... instruction and data memory do not share the same PHYSICAL bus, ... distinguish computers using separate memories. ...
    (comp.arch.embedded)
  • Re: New ARM Cortex Microcontroller Product Family from STMicroelectronics
    ... "The disadvantage of a Harvard Architecture microcontroller is that because ... instruction and data memory do not share the same PHYSICAL bus, ... distinguish computers using separate memories. ...
    (comp.arch.embedded)
  • Re: PIC vs ARM assembler (no flamewar please)
    ... code and data spaces that I can recall. ... Again no hint of separate code and data space. ... code and 3 data accesses per cycle - necessary to get good DSP ... I always thought of Harvard architecture as splitting address space not ...
    (comp.arch.embedded)
  • Re: void * vs. T *
    ... as well code or data in both parts of memory. ... In a Harvard Architecture code and data are separate address address spaces. ... The wiki correctly refers to separate pathways for code and data, you did not read it correctly. ...
    (comp.lang.c)
  • Re: Linux-VServer example results for sharing vs. separate mappings ...
    ... regarding the benefit of sharing over separate memory ... with 4GB of memory and a single 160GB SATA disk running ... the disk space used by one guests is roughly 148MB ... A container uses a software zone. ...
    (Linux-Kernel)