|
From: | Rolf Ebert |
Subject: | Re: [avr-gcc-list] AVR DataFlash |
Date: | Fri, 17 Feb 2006 23:08:16 +0100 |
User-agent: | Opera M2/8.51 (Win32, build 7712) |
I've been gathering some information on AVR butterfly's dataflash (AT45DB041B). It looks like there are several read and write commands: main memory page read/write, buffer read/write, etc. Has anyone tried to use these commands before? Are there any examples available online? How can I write a C code to read from the buffers? Or write data to the main memory? One more question: Can I determine how expensive dataflash read/write operations? Thank you for your help!
Get the data sheet from Atmel and then have a look at the Butterfly's sample code itself, mainly dataflash.h. Essentially you have to first write your data into one of the RAM buffers and then you can copy the buffer to a given page. Reading is the other way round, you first copy a page into the RAM buffer and then you can read from the buffer. The sample Butterfly code does a continuous stream reading without using the RAM buffer.
Sorry, my code isn't C, but Ada. Rolf
[Prev in Thread] | Current Thread | [Next in Thread] |