Does anyone have a clever way of dealing with dataflash's odd page size? I'm finding myself trying to convert between (absolute byte address) and (page address + byte offset).
Is there an easy way to convert between the two other than something like:
x=(absolute address)PAGE_SIZE;
page=floor(x);
byte=mod((absolute address),PAGE_SIZE);
UGLY!!!! There has GOT to be a better way. My brain is mush right now and I just can't see it. I guess I could just never use (absolute address) anywhere and always work in terms of (page + offset) but that doesn't seem very clever either.
Any ideas from those out there that have used Atmel's DataFlash?