clearing eeproms


+ Reply to Thread
Results 1 to 11 of 11

Thread: clearing eeproms2966 days old

  1. #1
    Dave-S
    Guest Dave-S's Avatar

    0 Not allowed!

    Default clearing eeproms

    Does the HBusOut just do a single Write, I know you can add a number of byte to send but are they all sent as single writes. In the data sheets for eeproms it states you can send Page writes which are quicker, how are these sent using HBusOut? I have a 1024k eeprom and to clear it using HBusOut in a loop takes a long while.

    David

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,682
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default Re: clearing eeproms

    You can use the individual commands with Hbus like HbusNack, HbusAck so you can make your own command to do what ever you want.
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    ADLIN SYSTEMS
    Guest ADLIN SYSTEMS's Avatar

    0 Not allowed!

    Default Re: clearing eeproms

    I just put 128 "255" together 1 page and send them. Goes like a flash. You will see that it writes much faster.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Dave-S
    Guest Dave-S's Avatar

    0 Not allowed!

    Default Re: clearing eeproms

    Quote Originally Posted by ADLIN SYSTEMS View Post
    I just put 128 "255" together 1 page and send them. Goes like a flash. You will see that it writes much faster.
    Yes, but how do you send a Page write using HBUSOUT thats what I was asking?

    David

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    ADLIN SYSTEMS
    Guest ADLIN SYSTEMS's Avatar

    0 Not allowed!

    Default Re: clearing eeproms

    For K=0 To 65535 Step 128
    HBusOut MEMCONTROL,J,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
    next

    If you send more than the prescribed bytes it automatically assumes you are writing to page memory
    Last edited by ADLIN SYSTEMS; 13th December 2011 at 08:43.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Dave-S
    Guest Dave-S's Avatar

    0 Not allowed!

    Default Re: clearing eeproms

    Quote Originally Posted by ADLIN SYSTEMS View Post
    For K=0 To 65535 Step 128
    HBusOut MEMCONTROL,J,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,_
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
    next

    If you send more than the prescribed bytes it automatically assumes you are writing to page memory
    Thanks, yes that works ok, I had been adding a delay as given in the Manual and it was taking a long while to do it.

    David

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #7
    Dave-S
    Guest Dave-S's Avatar

    0 Not allowed!

    Default Re: clearing eeproms

    Hi Aldin,

    I have found this does not work correctly.

    With this code:-

    [CODE
    For x = 0 To 512000 Step 128
    HBusOut Control, x, [$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,_
    $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF]
    Next x[/CODE]


    Putting infomation at a given address and using this to clear it, when read back from that adress the information is still there. ie: address 5616.

    David

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #8
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,701
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    1.06 GB

    0 Not allowed!

    Default Re: clearing eeproms

    Dave. Out of curiosity, which eeprom are you writing to?
    A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #9
    Dave-S
    Guest Dave-S's Avatar

    0 Not allowed!

    Default Re: clearing eeproms

    Quote Originally Posted by bill9399 View Post
    Dave. Out of curiosity, which eeprom are you writing to?
    Ok solved it the x in the For loop needs to be a Dword, don't know why the complier did not bring up a warning.
    The eeprom is a Microchip 24FC1025 (1024k bit) in two blocks.

    Thanks David.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #10
    Prolific Poster bill9399's Avatar
    Join Date
    Aug 2004
    Posts
    1,701
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    1.06 GB

    0 Not allowed!

    Default Re: clearing eeproms

    Hi Dave, glad you sorted out the problem.

    Have a look at the atmel eeprom datasheet for AT24C1024B.
    Page 10/11 gives a clearer explanation of page write packet structure than the Mchip equivalent datasheet.

    Regards
    A wise man may listen and say nothing. A fool may listen and have nothing to say. Which one are you???

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #11
    Dave-S
    Guest Dave-S's Avatar

    0 Not allowed!

    Default Re: clearing eeproms

    Quote Originally Posted by bill9399 View Post
    Hi Dave, glad you sorted out the problem.

    Have a look at the atmel eeprom datasheet for AT24C1024B.
    Page 10/11 gives a clearer explanation of page write packet structure than the Mchip equivalent datasheet.

    Regards
    Thanks. Had a look at the Atmel and that looks better, it has a 256k page write and it looks as if you can access it all the memory without a block select which Microchip has. I assume this statement in the Atmel datasheet is what it means and the control bit (Po) is automatically undated by the address bit.

    "The seventh bit (P
    0) of the device address is a memory page address bit. This memory page
    address bit is the most significant bit of the data word address that follows"

    David

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. Serial EEproms
      By rcurl in forum PICKit Plus
      Replies: 4
      Last Post: 10th July 2019, 13:56
    2. [SOLVED !] Two different EEProms on same I2C bus
      By Broderic in forum Master Synchronous Serial Port (MSSP) module / 3-wire SPI / I2C / Master and Slave modes
      Replies: 5
      Last Post: 16th May 2016, 09:45
    3. Stop EEPROM clearing on Power up
      By Dave-S in forum Proton Plus Compiler v3
      Replies: 10
      Last Post: 17th November 2012, 18:11
    4. [SOLVED !] clearing rcreg buffer
      By lincoln in forum Proton Plus Compiler v3
      Replies: 3
      Last Post: 15th November 2006, 22:17
    5. Clearing variable at the first startup
      By joesaliba in forum Proton Plus Compiler v3
      Replies: 6
      Last Post: 17th April 2006, 01:45

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts