Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re:Atmel Data Flash

2005-11-01 by Astria Nur Irfansyah

I forgot about the details, what i remembered with using this chip is
that we couldn;t manage to write directly (or was that read?). I mean,
we had to always use the buffer. But anyway this was already enough to
do all the things we need.

This dataflash is highly recommended :D (cheap and easy to use,
especially using C libraries available from Atmel AVR butterfly
libraries)

Regards
irfan.

On 11/1/05, Larrie Carr <larrie@telus.net> wrote:
>
> Most SPI EEPROM's need the write enable to be set, which is another command
> that must be shifted into the part before sending the WRITE command.  The
> enable may also be cleared on CS going high during the two commands.
>
> Otherwise, nothing will happen.  Check the datasheet.
>
> Larrie.
>
> >   Date: Sat, 29 Oct 2005 00:14:42 -0700
> >   From: "Larry Barello" <yahoo@barello.net>
> > Subject: Atmel Data Flash
> >
> > I am trying to mate an AT45DB041B (4mb data flash) with an ATMEGA32.  The
> > interface seems straightforward: SPI mode 0 (CPOL = CPHA = 0), but if I
> > follow the proscribed "DataFlashReady" algorithm the chip only returns
> > "not
> > ready (e.g. 0x4E).
> >
> > I.e.:
> >
> > Void WaitDataFlash(void)
> > {
> > FLASH_CS(TRUE);
> > SPI_Write(0x57); // SR read command
> > While(!(SPI_Read() & 0x80))
> > ;
> > FLASH_CS(FALSE);
> > }
> >
> > Has anyone experience with this chip and give any sage advice?  I have
> > tied
> > /reset and /wp to VCC.  /CS is controlled by a port bit and the rest of
> > the
> > SPI crew are attached to their respective pins.
> >
> > Have I misinterpreted what SPI mode 0 is?  I previously wrote routines for
> > some Atmel EEPROM chips and it worked pretty much first time.  The Data
> > flash routines are even simpler, but, of course, they don't work :(
> >
> > -----------
> > Larry Barello
> > www.barello.net
> >
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.