Page 1 of 1

Memory declarations?

Posted: Wed Jul 07, 2010 3:28 pm
by sad1024
What is the purpose of memory declarations?

Posted: Wed Jul 07, 2010 3:37 pm
by frank
To name a block of memory and be able to refer to it by name rather than manually mapping out the memory and using addresses. Less errors and if you need to adjust the size at a later time you do not need to recalculate all the addresses, the assembler will do it for you.

Memory address down-counter

Posted: Tue Jun 25, 2013 6:48 pm
by mweavers
My question is about the down-counter address offset used to effectively 'shift' samples through a memory buffer:

The way I understand it, there is an address offset in the background which gets added to all read and write operations to SRAM, and automatically decrements for each sample cycle.

Would I be correct in saying that when this down-counter reaches zero, it's next decrement wraps it around to 32767?

I.E. All mem-declared buffers are 'moving' through the physical address space?

Posted: Wed Jun 26, 2013 9:24 am
by frank
Correct, the counter wraps around so all the buffers are moving through the address space.