Atmel Dataflash
DarrenY
Posts: 61
Rather surprisingly, after a few forum searches I haven't been able to find anyone who has used Atmel Dataflash with the prop?
Anyone successfully done this and willing to share details?
I'm presuming I will need all 4 SPI lines into the prop, i.e. SI, SO, SCLK and CS
Anyone have any clever file'ish based storage solutions?
Anyone successfully done this and willing to share details?
I'm presuming I will need all 4 SPI lines into the prop, i.e. SI, SO, SCLK and CS
Anyone have any clever file'ish based storage solutions?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
So, are you saying that I could hook a Dataflash up the same way as I would an SD card, and use the same objects?
Depending on your setup, it is possible to use a SD card in a permanent installation: just don't expose the card in the enclosure.
For non-enclosure setups, you can still permanently install an SD card: layout the sd card so that there is some room between the edge of the board and where the card would come to, place a component which is taller than the socket and lay it out on the board so it would mechanically interfere with removing the card. Solder the socket, insert the card, then solder the "blocking" component in and the card cannot be removed. This alternate method can still be done using production assembly, you just need to omit placing the blocking part and have an after step of installing the card and hand soldering the blocking component.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Thanks for the idea.
Are MicroSd cards identical in operation to SD cards - in that respect I could actual SAVE board space
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
I use the dataflash to record data from a rocket flight. Doesn't take up too much board space, and you can SI and SO can share the same pins so you will never use both at the same time, so you really only need 3 pins.
I have attached a crop of the schematic I use, and heres a link to a photo of the bottom of my board. The DF is the IC to the bottom left of the prop. (Scuse the messy soldering!)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Alec
My our page
Do you use a bespoke object or do you use one from the object exchange?
Thankyou
I just made my own object.
Its not terribly versitile.
There are a few things to watch out for.
1) Outputs from each COg are OR'd together. I was initialising the pins in Cog 0, and writing to the DF in Cog x. This meant that those pins which were set to '1' in Cog 0 would stay as '1' even if another cog changed them (or tried to at least).
Heres how I got around it.
In cog 0, loaded a Cog (cog 1) to format, calc etc data in preparation for logging to DF.
In cog 1:
In Cog 1 logging loop:
Call the following function (in same cog)
Thats it.
Quite rudimentary but it works [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Alec
My our page