Shop OBEX P1 Docs P2 Docs Learn Events
Can the Scratchpad RAM be worn out meaning that you can only write to it so ma — Parallax Forums

Can the Scratchpad RAM be worn out meaning that you can only write to it so ma

sam_sam_samsam_sam_sam Posts: 2,286
edited 2010-04-28 12:33 in BASIC Stamp
If this question is in the wrong forum Please move it for me thanks

If so dose this mean 100,000 before you wear out

·I want to thank any one that can help

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·Now wanting to learn Spin· Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

·
·
·
·
Sam

Post Edited (sam_sam_sam) : 4/28/2010 12:23:23 PM GMT

Comments

  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-04-28 12:21
    This was changed

    Here is an example of what i want to do

    ' {$STAMP BS2px}
    ' {$PBASIC 2.5}
     
    value   VAR     Word
    Value1  VAR     value
    value2  VAR     Word
    value3  VAR     value2
     
    addr    VAR     Word                       ' EEPROM address
    test    VAR     Byte                       ' test byte read back
     
     
    Main:
    
    DO
    
      value  = $1010
      value2 = $2003
      PUT 0,Word value, Word value2             ' write value to SP location 0
                                                ' and value2 to SP locations 1 & 2
     
      value  = $FF                              ' modify variables
      value2 = $FFFF
     
      GET 0,Word value, Word value2             ' retrieve from Scratchpad
     
      DEBUG HEX4 ? value                        ' display
      DEBUG HEX4 ? value2
    
      PAUSE 2000
    
      value1 = $1111
      value3 = $222
    
      PUT 1,Word value, Word value2             ' write value to SP location 0
                                                '  and value2 to SP locations 1 & 2
     
     
      value1 = $FF                               ' modify variables
      value3 = $FFFF
     
      GET 1,Word value1, Word value3             ' retrieve from Scratchpad
     
      DEBUG HEX4 ? value1                        ' display
      DEBUG HEX4 ? value3
     
      LOOP
    
    


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·Now wanting to learn Spin· Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam

    Post Edited (sam_sam_sam) : 4/28/2010 12:32:10 PM GMT
  • allanlane5allanlane5 Posts: 3,815
    edited 2010-04-28 12:27
    I believe the "scratch-pad" RAM is Static Ram. Thus it does not suffer the 'wear-out' effect of eeprom. But it also doesn't hold its data when power cycles on and off.
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-04-28 12:33
    allanlane5

    Thank you for your reply

    But it also doesn't hold its data when power cycles on and off.

    That fine if it dose not hold data when the power is removed


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·Now wanting to learn Spin· Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam
Sign In or Register to comment.