Ece 447 lecture 6
Download
1 / 7

ECE 447: Lecture 6 - PowerPoint PPT Presentation


  • 101 Views
  • Uploaded on

ECE 447: Lecture 6. Program Sections. $0000. $1000. $1000-$103F 64 bytes I/O registers. $2000. $2000-$B5FF 37.5 kbytes. $B600-$B7FF 512 bytes EEPROM. $B600. $D000. $D000-$FFFF 12 kbytes ROM. $FFFF. Expanded bus mode. ECE 447: 68HC11E9 Memory Map. External RAM.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' ECE 447: Lecture 6' - zeph-hill


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Ece 447 lecture 6
ECE 447: Lecture 6

Program Sections


Ece 447 68hc11e9 memory map

$0000

$1000

$1000-$103F

64 bytes I/O registers

$2000

$2000-$B5FF

37.5 kbytes

$B600-$B7FF

512 bytes EEPROM

$B600

$D000

$D000-$FFFF

12 kbytes ROM

$FFFF

Expanded bus mode

ECE 447: 68HC11E9 Memory Map

External RAM

External RAM

recommended for use

recommended

for use

External RAM


Ece 447 linker memory x map

$0000-$01FF

512 bytes RAM

$0000

$1000

$1000-$103F

64 bytes I/O registers

$2000

Program area - text

External RAM

$6000

Data area – data

External RAM

$B600-$B7FF

512 bytes EEPROM

$B600

$D000

$FFFF

ECE 447: Linker memory.x map


Ece 447 memory x
ECE 447: memory.x

MEMORY

{

page0 (rwx) : ORIGIN = 0x0, LENGTH = 512

/* Board with 32K ROM. */

text (rx) : ORIGIN = 0x2000, LENGTH = 0x4000

data (rwx) : ORIGIN = 0x6000, LENGTH = 0x5600

eeprom (rwx) : ORIGIN = 0xB600, LENGTH = 0x0200

}

/* Setup the stack on the top of the data memory bank. */

PROVIDE (_stack = 0xB600 - 1);


Ece 447 what goes where

$0000-$01FF

512 bytes RAM

$0000

.page0

$1000

$1000-$103F

64 bytes I/O registers

$2000

.text

Program area - text

External RAM

.data

$6000

Data area – data

External RAM

$B600-$B7FF

512 bytes EEPROM

$B600

.eeprom

$D000

$FFFF

ECE 447: What goes where?


Ece 447 multiple files

.text1

.text1

Assembler

Source 1

.data1

.text2

.bss1

.data1

Linker

.data2

.text2

Assembler

.bss1

Source 2

.data2

.bss2

.bss2

Object

Source

Binary (Object)

Note: .bss section holds uninitialized reserved data (global variables)

It is sometimes just included in the .data section

ECE 447: Multiple files?


Ece 447 what about the stack

$1000

$2000

$6000

$B600

$D000

$FFFF

ECE 447: What about the stack?

MEMORY

{

page0 (rwx) : ORIGIN = 0x0, LENGTH = 512

/* Board with 32K ROM. */

text (rx) : ORIGIN = 0x2000, LENGTH = 0x4000

data (rwx) : ORIGIN = 0x6000, LENGTH = 0x5600

eeprom (rwx) : ORIGIN = 0xB600, LENGTH = 0x0200

}

/* Setup the stack on the top of the data memory bank. */

PROVIDE (_stack = 0xB600 - 1);

External RAM

.data

External RAM

stack

.eeprom


ad