Go Down

Topic: Serial Data Flash Atmel AT45DB161 - How to use it?? (Read 1 time) previous topic - next topic

GianfrancoPa

Gianfranco

johnwasser

Looks like it uses SPI.

Wire it this way:
FLASH 1 SI <- Arduino MOSI (D11)
FLASH 2 SCK <- Arduino SCK (D13)
FLASH 3 RESET <- +3.3v
FLASH 4 CS <- Arduino data pin, typically D10
FLASH 5 WP <- Arduino 3.3v
FLASH 6 VCC <- Arduino 3.3v
FLASH 7 GND <-> Arduino GND
FLASH 8 SO -> Arduino MISO (D12)

Set the CS pin LOW to activate it.
Use SPI.transaction() to send commands and receive results.
Set the CS pin HIGH to end the command.

Flash
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

skyjumper

Atmel actually wrote a library to talk to this chip. It works very nicely. Check out the DataFlash library.

Go Up