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.

atmega8,, program counter 12 bits...so how it will access full 8kb of memory flash...

Status
Not open for further replies.

beyondH

Member level 5
Joined
Oct 21, 2011
Messages
91
Helped
17
Reputation
34
Reaction score
15
Trophy points
1,288
Location
delhi
Activity points
1,960
hellow experts,,

I am starting with the AVRs, so it may be a very silly question..but i am stuck with it...
since i got to know that the program counter of atmega8 is of 12bits...and the flash memory is of 8KB , how can we access the remaining memory....

does the remaining memory is reserved for the bootloader section(modifiable via the fuse bits)...
kindly tell me the exact application section and the bootloader section memory division??
i am confused....
 

beyondH said:
since i got to know that the program counter of atmega8 is of 12bits...and the flash memory is of 8KB , how can we access the remaining memory....
Even though I don't use assembly, I remember that PC keeps 16-bit addresses:

The ATmega8 contains 8Kbytes On-chip In-System Reprogrammable Flash memory for program storage. Since all AVR instructions are 16-bits or 32-bits wide, the Flash is organized as 4K × 16 bits.
.......................
The ATmega8 Program Counter (PC) is 12 bits wide, thus addressing the 4K Program memory locations.
http://www.atmel.com/dyn/resources/prod_documents/doc2486.pdf
 

first of all thnx. for the reply sir,,
so,,
can i say like "in atmega8, using assembly i can go upto a maximum of 4096 number of instructions assuming every instruction takes 16 bits(here),."??
 


Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top