Pages: [1]   Go Down
Author Topic: Serial Data Flash Atmel AT45DB161 - How to use it??  (Read 1843 times)
0 Members and 1 Guest are viewing this topic.
Palermo
Offline Offline
God Member
*****
Karma: 3
Posts: 766
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have this Atmel memory of 16Mbit: http://docs-europe.electrocomponents.com/webdocs/0dc4/0900766b80dc4809.pdf

Somebody can help me to use it??

Thank's all!!!
Logged

Gianfranco

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8945
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

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

Smithfield, Rhode Island
Offline Offline
God Member
*****
Karma: 3
Posts: 843
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: