Question

21) When CALL is executed using ATmega 328, how many locations of the stack are used?

21) When CALL is executed using ATmega 328, how many locations of the stack are used?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer is as follows :

The Stack is mainly used for storing temporary data, for storing local variables and for storing return addresses after interrupts and subroutine calls. The Stack is implemented as growing from higher to lower memory locations.

In ATmega328 the higher memory location of stack pointer is 0x5E

and lower memory location is 0x5D.

Some of I/O address is also there i.e. from 0x00 to 0x3F but memory location is 0x3E to 0x3D.

So total in there 4 memory locations of the stack are used in ATmega328.

if there is any query please ask in comments....

Add a comment
Know the answer?
Add Answer to:
21) When CALL is executed using ATmega 328, how many locations of the stack are used?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT