1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

AT89C51RD2: 64k or 62k flash?

Discussion in 'Embedded' started by aleksa, May 31, 2009.

  1. aleksa

    aleksa Guest

    AT89C51RD2 has 64k flash + 2k ROM.

    Can I use all 64k with:
    1. FLIP
    2. API
    or do FLASH and ROM overlap?

    My MCU hasn't arrived yet, so I can't check this.

    aleksa, May 31, 2009
    1. Advertisements

  2. Surely this information would be in the AT89C51RD2 datasheat ?

    Anton Erasmus
    Anton Erasmus, May 31, 2009
    1. Advertisements

  3. Ahem ... how exactly does not having the MCU in hand keep you from
    studying the data sheet?
    Hans-Bernhard Bröker, May 31, 2009
  4. A scorpion has six legs. A spider has eight legs. Or is it vice versa? I
    have to know that.

    Vladimir Vassilevsky
    DSP and Mixed Signal Design Consultant
    Vladimir Vassilevsky, May 31, 2009
  5. aleksa

    aleksa Guest

    Maybe google should add a standard check box to a message:
    - Yes, I've read the docs.

    followed by several radio buttons:
    - but I want to be sure.
    - but the info isn't there.
    - but the info isn't clear.
    - but I don't understand it completly.
    - the question I have isn't addressed directly.
    etc, etc..

    Then, several options would be in order:
    - I expect a short, direct answer.
    - I expect a wrong or misleading answer.
    - I expect a question: "Why do you ask?"
    - I expect a question: "Have you read the FAQ?"
    - I expect a question: "Have you googled?"
    - I expect an OT answer, followed by a long discussion.

    I've forgot the "It-is / it-is-not homework."

    Of course, I could have asked a better question,
    that would give a hint that I did download, print
    and read the docs, every page, several times,
    including (but not limited to) other MCUs alike.

    And, I should have pointed out the source of my problem.

    And that is ENBOOT.

    To access the API functions, one must set this bit,
    thus mapping the boot ROM to 0F800h.

    Now, since ROM is mapped to F800 and not FLASH,
    the first thing that pops to my mind is:
    since ROM and FLASH share the same address, will
    the APIs be able to access the F800-FFFF of the FLASH?

    Maybe, maybe not, it is not clearly documented.
    If not, its not so bad, only 2k lost.

    After seting ENBOOT, I can LCALL to F8xx and access the ROM.
    I can (guessing) even read the ROM with MOVC.

    Since they share the same address, the doc should
    have stated that the APIs access the FLASH trough
    a different address mechanism, if so.

    Hmm.. I like my first question better.
    aleksa, May 31, 2009
  6. Google has nothing to do with that. Setting aside that you appear to be
    one more victim of their policy obscuring the difference between Google
    Groups and actual USENET, those check boxes belong into your brain, not
    on some web pages, be they Google's or any others.
    Strike "could", insert "should", and add some emphasis.
    .... wherein "API" is supposed to be the programming interface of the
    boot loader, presumably.
    That's really strictly for the documentation of that boot loader to answer.
    Hmm... I don't.
    Hans-Bernhard Bröker, May 31, 2009
  7. aleksa

    TTman Guest

    You can use all 64k flash with flip. I do on the ED2 part....
    Boot loader is invoked with special hardware setup conditions on power up. A
    tad nasty/tricky to implement to say the least.....
    TTman, May 31, 2009
  8. aleksa

    CBFalconer Guest

    The datasheets are the white paper material used to cover the
    bleeding sawn in twain chips. Sometimes it encourages healing, and
    the chips can resume their previous position in the world. At
    other times it simply has to be closed up, and used to convey the
    bleeding corpses to the cemetary or crematorium.

    The "lying on top of each other" is purely for breeding. You have
    to saw at the right times.

    Any questions?
    CBFalconer, Jun 3, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.