Fetching from program memory?

  • Thread starter vead
  • Start date
  • #1
92
0
Hello ,
I need help , rom memory is memory that store program. we can only read rom memory.

[/ATTACH]
look this diagram why does we connect both memory. I have read that when we start to read the program memory. we get data from program memory and store into instruction register. In my first diagram.

[/ATTACH]

how and where to use Instruction register ?
 

Attachments

  • PC2.png
    PC2.png
    114 KB · Views: 458
  • Untitled.jpg
    Untitled.jpg
    41.8 KB · Views: 350

Answers and Replies

  • #2
berkeman
Mentor
59,259
9,414
Hello ,
I need help , rom memory is memory that store program. we can only read rom memory.

[/ATTACH]
look this diagram why does we connect both memory. I have read that when we start to read the program memory. we get data from program memory and store into instruction register. In my first diagram.

[/ATTACH]

how and where to use Instruction register ?

You have different CE~ and OE~ signals for the EPROM and RAM memory chips. They are not both enabled at the same time. You would start with the program reading from ROM address 0x0000 or 0x0001 (depending on the processor architecture), and executing the instructions that you read from there. As the program progresses, it can use part of the RAM memory chip. You would typically have a "memory map" that defines what part of that 64KB ROM and what part of the 64KB RAM you access. You would not generally use all of either chip, since they generally share the same "memory map". Make sense?
 
  • Like
Likes WhatHitMe

Related Threads on Fetching from program memory?

Replies
5
Views
7K
Replies
6
Views
523
  • Last Post
2
Replies
26
Views
5K
Replies
6
Views
973
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
9
Views
3K
  • Last Post
Replies
14
Views
3K
Top