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.

SRAM in controller atmega32 from the AVR

Status
Not open for further replies.

bhoomi_shah2906

Member level 1
Joined
Oct 2, 2009
Messages
40
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,589
hey

i am using the controller atmega32 from the AVR. It has inbuilt 2k SRAM, but its not mention in the datasheet that how can we use it...

also i want to know that i can use it in the C language or i have to use the assembly language???

if anyone has used the internal SRAM of the AVR please help me...
 

Re: SRAM in atmega32

it is impossible for anyone to use a mcu without using its built-in sram.
 

well, the fact i that: there are some ol' AVR with no RAM at all!, you must battle only with registers and IO ports... so it's possible...

about the ram usage, check the datasheet, where it says INSTRUCTION SET, there you will find the instructions to 'Store' and 'load' data from RAM 'memory'

if you program in C (or plan to program in C) the usage of RAM is trasnparent...

mostly when you create a variable (unsigned char a;) you use a position on the RAM,
if you want to use 900 Bytes you can create an array... (unsigned char ar[900];) but keep in mind that you can't (and don't) use all the RAM for variables (say: unsigned char al[2048]... wrong!) because you need some stack pile for the C procedures... (the stack is also part of the RAM)...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top