Need Help Plz. on chip Eeprom 16F84A


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2006
    Posts
    4

    Wink Need Help Plz. on chip Eeprom 16F84A

    Hi to all,

    I'm using a 16F84A for my proyect, and i need to save on the internal eeprom one variable, to recover when the power go off.

    look part of the code to save and read.
    ================================================== ==

    BO var byte
    conteo var byte
    conteo = 150

    save_eeprom:

    pause 50
    B0 = conteo
    write 5,B0
    pause 50

    gosub save_eeprom


    read_eeprom:

    Pause 10
    Read 5,B0
    pause 10

    gosub read_eeprom


    ===============================================
    Plz, telme what is my mistake, if i disconnect more the 3 minutes all my eeprom data is gone.

    Thanks for the time, and sorry for my bad English.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    mmmpfffbmrmr Maybe, i said maybe because you defined BO and call/use B0

    or it's just a copy/paste error?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    andreq's Avatar
    andreq Guest


    Did you find this post helpful? Yes | No

    Default

    you save over before reading ?

  4. #4
    Join Date
    Jan 2006
    Posts
    4


    Did you find this post helpful? Yes | No

    Talking

    Thanks, realy realy Thanks..

    fix my problem

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  3. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  4. 16F84A EEPROM Programming
    By Acetronics2 in forum Off Topic
    Replies: 7
    Last Post: - 8th March 2005, 17:40
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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