Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Program memory really confused

Status
Not open for further replies.

electronicsman

Full Member level 5
Joined
May 4, 2012
Messages
291
Helped
11
Reputation
22
Reaction score
12
Trophy points
1,298
Activity points
3,737
I will try to explain as clearly as possible. I am really confused with this. Take for example micro chip architecture which they say instruction is 24 bits wide. So on power on the controller will read from 0 memory address and whatever instruction is stored it will execute. The instruction stored at this location is 24 bits. Now my question is can the next address be 0x01? I want to know can my address increment by 1 like addresses 1,2,3 etc. But each address contains a 24 bit instruction. Is it possible? Because i am not able to understand the architecture of micro chip.
 

Hi,

yes, it can be 0x01.
Why do you bother?

Klaus
 

There is no reason you can't have a 256Kx24bit memory or a 768Kx8bit memory. In the first case you would have 256K addresses; in the second you would have 768K addresses. (The memories are the same size, though).
 

I want to know can my address increment by 1 like addresses 1,2,3 etc. But each address contains a 24 bit instruction. Is it possible? Because I am not able to understand the architecture of micro chip.
Should be read as "I never read the microchip documentation details, just want to ask"...

The below diagram shows how memory addresses are counted with 24 bit wide PIC24 and dsPIC.

PIC24 program memory.png

You see that the program memory address increment between instructions is 2 rather than 1. That's arbitrary to some extend, but is probably serving a purpose.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top