PIC16F690 EEPROM not retaining data


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Nope.. DATA is performed at programming time only.
    Ah, that's what I thought, otherwise DATA would make no sense.
    There is another instruction to alter EEPROM value: it is READ and WRITE

  2. #2
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Smile Problem solved.

    Thank you for your help but this time I could solve the problem:

    I was using a routine that displays at the begining of the program the contents of the EEPROM at location 10 to 21 using an index var (hitnr).
    Then later in the program I was writing to EEPROM using the index var BUT i forgot to reset the index var to its initial value after using it at the begining of my program so I was thinking I was writing to location 10 while the index var was already at 12. So when restarting the pic, I was displaying values of locations 10 and 11, that were still at 0 so I thought EEPROM write failed somehow. I was at the wrong memory offset...
    Stupid error, I should get some sleep

    Have a nice day.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Stupid error, I should get some sleep
    ME TOO. I was close.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 02:46
  2. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  3. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  4. Internal EEPROM Read/write Addressing Errors with 18F PIC's
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 12th July 2005, 19:42
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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