Shop OBEX P1 Docs P2 Docs Learn Events
Question to Tracy Allen about Atmel Data flash — Parallax Forums

Question to Tracy Allen about Atmel Data flash

ArchiverArchiver Posts: 46,084
edited 2003-12-27 21:48 in General Discussion
3 to 5 volt conversion.

I use the AT45D0041 (0.5 Meg) unit, using your program example. It's
working great.

But ATMEL don't produce the D-version (5Volt) any longer. I have
tried to use the newer DB (3Volt) version, but I don't get any
response when I use a Motorola HC244 level converter.

How do you connect the newer Atmel Data flash to a BS2p?

Stein.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-12-24 18:04
    >3 to 5 volt conversion.
    >I use the AT45D0041 (0.5 Meg) unit, using your program example. It's
    >working great.
    >But ATMEL don't produce the D-version (5Volt) any longer. I have
    >tried to use the newer DB (3Volt) version, but I don't get any
    >response when I use a Motorola HC244 level converter.
    >How do you connect the newer Atmel Data flash to a BS2p?
    >Stein.


    Hi Stein,

    There is no need for level converters. Simply connect SI, SCK and
    CS\ on the AT45DB041 directly to stamp pins, and also connect SO to a
    Stamp pin (which can be the same as SI) via a 1k ohm resistor. The
    inputs to the chip are "5 volt tolerant", and the Stamp can input 0-3
    volts just fine. Be very sure though that you operate the chip from
    a 3 volt supply (2.7 to 3.6) on its Vdd pin 6. It is a fine geometry
    silicon that will be damaged by higher Vdd levels.

    -- regards,
    Tracy
    http://www.emesystems.com/BS2flash.htm
  • ArchiverArchiver Posts: 46,084
    edited 2003-12-25 01:25
    --- In basicstamps@yahoogroups.com, Tracy Allen <tracy@e...> wrote:
    > >3 to 5 volt conversion.
    > >I use the AT45D0041 (0.5 Meg) unit, using your program example.
    It's
    > >working great.
    > >But ATMEL don't produce the D-version (5Volt) any longer. I have
    > >tried to use the newer DB (3Volt) version, but I don't get any
    > >response when I use a Motorola HC244 level converter.
    > >How do you connect the newer Atmel Data flash to a BS2p?
    > >Stein.
    >
    >
    > Hi Stein,
    >
    > There is no need for level converters. Simply connect SI, SCK and
    > CS\ on the AT45DB041 directly to stamp pins, and also connect SO
    to a
    > Stamp pin (which can be the same as SI) via a 1k ohm resistor.
    The
    > inputs to the chip are "5 volt tolerant", and the Stamp can input
    0-3
    > volts just fine. Be very sure though that you operate the chip
    from
    > a 3 volt supply (2.7 to 3.6) on its Vdd pin 6. It is a fine
    geometry
    > silicon that will be damaged by higher Vdd levels.
    >
    > -- regards,
    > Tracy
    > http://www.emesystems.com/BS2flash.htm

    Without your program example, I could not got this far. I promise.

    eeeee.... so the SO (or Sout 0-3 volt output signal) from the Atmel
    data flash should have a 1K resistor before connected to the Stamp.
    Not like a pullup/down resistor or somthing?

    The 32meg Flash is still 5 volt tolerant on the input, but the 64
    and 128meg is not. How can the bigger Flash get connected to the TTL
    Stamp input?

    Is your program on "http://www.emesystems.com/BS2flash.htm" working
    on the bigger Flash circuits, or do I have to upgrade the program?

    Stein.
  • ArchiverArchiver Posts: 46,084
    edited 2003-12-26 19:36
    > so the SO (or Sout 0-3 volt output signal) from the Atmel
    >data flash should have a 1K resistor before connected to the Stamp.
    >Not like a pullup/down resistor or somthing?
    >The 32meg Flash is still 5 volt tolerant on the input, but the 64
    >and 128meg is not. How can the bigger Flash get connected to the TTL
    >Stamp input?
    >Is your program on "http://www.emesystems.com/BS2flash.htm" working
    >on the bigger Flash circuits, or do I have to upgrade the program?
    >Stein.

    Hi Stein,

    The AT45DBxxx does not need any pullup or pulldown resistors. The 1k
    resistor between the SO pin and the Stamp pin is there as a
    precaution, if due to programming error, both SO and the Stamp are
    outputs at the same time. SO and SI can share the same Stamp pin.

    The programs take minor changes in order to work with the larger
    chips and the AT45DCBxxx modules. Chips 1 megabyte and less have 264
    byte page size, while 2 megs and up have 528 byte pages.

    Command sequence (AT45DB081 and smaller) for byte address adrs on page ATpage:
    SHIFTOUT atsd,sck,MSBFIRST,[noparse][[/noparse]cmd\8,ATpage\15,adrs\9]
    ' + clocking bits
    Command sequence (AT45DB161 and larger) for byte address:
    SHIFTOUT atsd,sck,MSBFIRST,[noparse][[/noparse]cmd\8,ATpage\14,adrs\10]
    ' + clocking bits
    The clocking bits required are the same in both cases.


    -- best regards
    Tracy Allen
    electronically monitored ecosystems
    http://www.emesystems.com
    mailto:tracy@e...
  • ArchiverArchiver Posts: 46,084
    edited 2003-12-27 00:57
    Thanks again for the program update, one step closer....still.....

    I made a pcb-board and connected a few Atmel Data flashes. The Soic-
    packed AT45DB161B-RI (16megabyte) has still some difficulties. The
    Ready/Busy is low all the time. I can read and write the buffers, so
    the program and signal level should be correct.

    .....eeee..... but I can't read or write a page, only the buffers.
    The data sheet is confirming that it's possible to read and write
    the buffer when the busy is low.
    The AT45D041 Ready/busy, on the same board, goes high when it's done.

    Have you encountered this problem by any chance?
    Where could the problem be?
    I'm measuring the pcb-board all day long......is it me?

    Pin 1 is grounded
    Pin 4 is low from 5 volt, when I operate the CS signal from a 74145
    Pin 5 clock to Stamp port 8
    Pin 6 Sin to stamp port 9
    Pin 7 Sout to stamp port 10

    Pin 28 Vcc, has 3,1 Volt input
    Pin 24 WP, has 3,1 volt input
    Pin 25 Reset, has 3,1 volt input
    Pin 23 Ready/busy output is low, should be high.

    Stein.




    --- In basicstamps@yahoogroups.com, Tracy Allen <tracy@e...> wrote:
    >
    > > so the SO (or Sout 0-3 volt output signal) from the Atmel
    > >data flash should have a 1K resistor before connected to the
    Stamp.
    > >Not like a pullup/down resistor or somthing?
    > >The 32meg Flash is still 5 volt tolerant on the input, but the 64
    > >and 128meg is not. How can the bigger Flash get connected to the
    TTL
    > >Stamp input?
    > >Is your program on "http://www.emesystems.com/BS2flash.htm"
    working
    > >on the bigger Flash circuits, or do I have to upgrade the program?
    > >Stein.
    >
    > Hi Stein,
    >
    > The AT45DBxxx does not need any pullup or pulldown resistors. The
    1k
    > resistor between the SO pin and the Stamp pin is there as a
    > precaution, if due to programming error, both SO and the Stamp are
    > outputs at the same time. SO and SI can share the same Stamp pin.
    >
    > The programs take minor changes in order to work with the larger
    > chips and the AT45DCBxxx modules. Chips 1 megabyte and less have
    264
    > byte page size, while 2 megs and up have 528 byte pages.
    >
    > Command sequence (AT45DB081 and smaller) for byte address adrs on
    page ATpage:
    > SHIFTOUT atsd,sck,MSBFIRST,[noparse][[/noparse]cmd\8,ATpage\15,adrs\9]
    > ' + clocking bits
    > Command sequence (AT45DB161 and larger) for byte address:
    > SHIFTOUT atsd,sck,MSBFIRST,[noparse][[/noparse]cmd\8,ATpage\14,adrs\10]
    > ' + clocking bits
    > The clocking bits required are the same in both cases.
    >
    >
    > -- best regards
    > Tracy Allen
    > electronically monitored ecosystems
    > http://www.emesystems.com
    > mailto:tracy@e...
  • ArchiverArchiver Posts: 46,084
    edited 2003-12-27 08:02
    Hi Stein,

    I think you need a pullup resistor on the hardware ready/busy signal line.

    I gather that you have the 28 pin soic. In the article of mine
    on-line about the AT45DB041, I was using the 8-pin soic, which does
    not have a dedicated ready/busy line. Instead, SO line doubles as
    ready/busy, once a status command is issued. It does not need a
    pullup. You could also use that trick with the 28-pin version, if
    your Stamp pins get used up.

    I don't know why you can't write to the AT45 flash page. That should
    happen even if you can't read the ready/busy flag, unless there is
    some other program issue.

    -- Tracy



    >I made a pcb-board and connected a few Atmel Data flashes. The Soic-
    >packed AT45DB161B-RI (16megabyte) has still some difficulties. The
    >Ready/Busy is low all the time. I can read and write the buffers, so
    >the program and signal level should be correct.
    >
    >.....eeee..... but I can't read or write a page, only the buffers.
    >The data sheet is confirming that it's possible to read and write
    >the buffer when the busy is low.
    >The AT45D041 Ready/busy, on the same board, goes high when it's done.
    >
    >Have you encountered this problem by any chance?
    >Where could the problem be?
    >I'm measuring the pcb-board all day long......is it me?
    >
    >Pin 1 is grounded
    >Pin 4 is low from 5 volt, when I operate the CS signal from a 74145
    >Pin 5 clock to Stamp port 8
    >Pin 6 Sin to stamp port 9
    >Pin 7 Sout to stamp port 10
    >
    >Pin 28 Vcc, has 3,1 Volt input
    >Pin 24 WP, has 3,1 volt input
    >Pin 25 Reset, has 3,1 volt input
    >Pin 23 Ready/busy output is low, should be high.
    >
    >Stein.
  • ArchiverArchiver Posts: 46,084
    edited 2003-12-27 21:48
    The Atmel Data flash is finely working.

    As you pointed out, there must be a 1K pull-up resistor on the
    Ready/busy output to measure the output level.

    I read the data sheet several times, but I was not expecting to
    actually put this resistor in place if the Data flash should work
    properly, unless I should use the gate, or have it connected to the
    stamp. The extra confusion is that the smaller Atmel Data Flash, the
    AT45DB0041, did not need the resistor at all to work. No, the output
    went high, when he was ready, pull-up or not pull-up resistor.
    So…..against all my experience, this was the first time I
    encountered the need of a pull-up resistor on an output I did not
    even needed to use.

    Celebration to you Tracy.

    I need some sleep.

    Stein.





    --- In basicstamps@yahoogroups.com, Tracy Allen <tracy@e...> wrote:
    > Hi Stein,
    >
    > I think you need a pullup resistor on the hardware ready/busy
    signal line.
    >
    > I gather that you have the 28 pin soic. In the article of mine
    > on-line about the AT45DB041, I was using the 8-pin soic, which
    does
    > not have a dedicated ready/busy line. Instead, SO line doubles as
    > ready/busy, once a status command is issued. It does not need a
    > pullup. You could also use that trick with the 28-pin version,
    if
    > your Stamp pins get used up.
    >
    > I don't know why you can't write to the AT45 flash page. That
    should
    > happen even if you can't read the ready/busy flag, unless there is
    > some other program issue.
    >
    > -- Tracy
    >
    >
    >
    > >I made a pcb-board and connected a few Atmel Data flashes. The
    Soic-
    > >packed AT45DB161B-RI (16megabyte) has still some difficulties. The
    > >Ready/Busy is low all the time. I can read and write the buffers,
    so
    > >the program and signal level should be correct.
    > >
    > >.....eeee..... but I can't read or write a page, only the buffers.
    > >The data sheet is confirming that it's possible to read and write
    > >the buffer when the busy is low.
    > >The AT45D041 Ready/busy, on the same board, goes high when it's
    done.
    > >
    > >Have you encountered this problem by any chance?
    > >Where could the problem be?
    > >I'm measuring the pcb-board all day long......is it me?
    > >
    > >Pin 1 is grounded
    > >Pin 4 is low from 5 volt, when I operate the CS signal from a
    74145
    > >Pin 5 clock to Stamp port 8
    > >Pin 6 Sin to stamp port 9
    > >Pin 7 Sout to stamp port 10
    > >
    > >Pin 28 Vcc, has 3,1 Volt input
    > >Pin 24 WP, has 3,1 volt input
    > >Pin 25 Reset, has 3,1 volt input
    > >Pin 23 Ready/busy output is low, should be high.
    > >
    > >Stein.
Sign In or Register to comment.