[AVR club] What is 8Kb flash memory of Atmega8

Started by SHAFEEQUL ISLAM June 20, 2013
Can any one please help me regarding Atmega8 Flash size.I dont know that the size of flash 8Kb is the amount we can burn the *.hex file or it is memory size of variables that we have used in our code?For e.g if i burned a hex file of size 1 Kb,then it will occupy space of 1 Kb in flash?Secondly my code of 1 Kb have varibles of total size 100 bytes,then flash will be out with 100byte memory?
Tell me which case is true or if there is any other way of memory allocation,then do let me know about that ishall be highly obliged.I'm new to Atmega8.

[Non-text portions of this message have been removed]

These have Flash, EEPRom, and RAM; Flash usually is Program memory and static data of some kind, EEPRom usually is static data of some kind, your variables would go into RAM. Flash and EEProm have a limited number of erase/write cycles, but are non volatile, so a lookup table would fit well into those, or a calibration constant for a thermistor (just examples there) - An array index / counter or the like, you'd use RAM for. Hope that helps!

Mark

----- Original Message -----
> From: SHAFEEQUL ISLAM
> To: "a..."
> Cc:
> Sent: Thursday, June 20, 2013 1:58 PM
> Subject: [AVR club] What is 8Kb flash memory of Atmega8
>
> Can any one please help me regarding Atmega8 Flash size.I dont know that the
> size of flash 8Kb is the amount we can burn the *.hex file or it is memory size
> of variables that we have used in our code?For e.g if i burned a hex file of
> size 1 Kb,then it will occupy space of 1 Kb in flash?Secondly my code of 1 Kb
> have varibles of total size 100 bytes,then flash will be out with 100byte
> memory?
> Tell me which case is true or if there is any other way of memory
> allocation,then do let me know about that ishall be highly obliged.I'm new
> to Atmega8.
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
Respected Mark 
Thanks for for help.So you wanna say that program we burn to MCU not only resides in flash but also in EEPROM and RAM.Now for e.g if size of my .hex file exceeds the size of flash,then what will happen?Will it be partially burned or will not burn at all?If any one of the above happen how should we figure it out?
waiting for Reply
Shafeeq
________________________________
From: M W
To: "a..."
Sent: Thursday, June 20, 2013 3:01 PM
Subject: Re: [AVR club] What is 8Kb flash memory of Atmega8

 
These have Flash, EEPRom, and RAM; Flash usually is Program memory and static data of some kind, EEPRom usually is static data of some kind, your variables would go into RAM. Flash and EEProm have a limited number of erase/write cycles, but are non volatile, so a lookup table would fit well into those, or a calibration constant for a thermistor (just examples there) - An array index / counter or the like, you'd use RAM for. Hope that helps!

  Mark

----- Original Message -----
> From: SHAFEEQUL ISLAM
> To: "a..."
> Cc:
> Sent: Thursday, June 20, 2013 1:58 PM
> Subject: [AVR club] What is 8Kb flash memory of Atmega8
>
> Can any one please help me regarding Atmega8 Flash size.I dont know that the
> size of flash 8Kb is the amount we can burn the  *.hex file or it is memory size
> of variables that we have used in our code?For e.g if i burned a hex file of
> size 1 Kb,then it will occupy space of 1 Kb in flash?Secondly my code of 1 Kb
> have varibles of total size 100 bytes,then flash will be out with 100byte
> memory?
> Tell me which case is true or if there is any other way of memory
> allocation,then do let me know about that ishall be highly obliged.I'm new
> to Atmega8.
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
8 Kb flash means it is flash memory capacity = 8192 bytes ( in mega8, 16 bit memory structure so in the mega8, 4096 X 16 bit flash memory). EEPROM and SRAM having separate space, so if you want to store additional 100 byte, you can use SRAM or EEPROM, flash area will not occupy this additional 100 byte memory.

Kishor Soni
--------
On Fri, 6/21/13, SHAFEEQUL ISLAM wrote:

Subject: [AVR club] What is 8Kb flash memory of Atmega8
To: "a..."
Date: Friday, June 21, 2013, 2:28 AM
















 









Can any one please help me regarding Atmega8 Flash
size.I dont know that the size of flash 8Kb is the amount we
can burn the  *.hex file or it is memory size of variables
that we have used in our code?For e.g if i burned a hex file
of size 1 Kb,then it will occupy space of 1 Kb in
flash?Secondly my code of 1 Kb have varibles of total size
100 bytes,then flash will be out with 100byte memory?

Tell me which case is true or if there is any other way of
memory allocation,then do let me know about that ishall be
highly obliged.I'm new to Atmega8.



[Non-text portions of this message have been removed]