SPI interface to AT45DB161
2008-09-08 by Moataz Hussein
Hello, I am building a data logging system to record temperaure readings and store them on a flash. I am using ATmega 16 and AT45DB161D memory. I have some points which are not clear though I studied the ATDB161 datasheet. Please correct me. How can I write for example 10 bytes of data to the memory? then store another 10 bytes after the first 10 bytes? I will give command to write page through buffer and send the first 10 bytes, which will be stored in page 1 for example. How to do the next step? How can I read the 20 bytes which are prevoiusly stored? I will send a command to read the page the contain the stored data, checking the SPIF when set read the first byte and so on.. I Have to check SPIF after each byte to be sure that it is sent or recieved? Thanks, Moataz [Non-text portions of this message have been removed]