Need help writing/reading from 16F819 internal EEPROM.


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2007
    Location
    Mississauga, Ontario, Canada
    Posts
    29

    Default Need help writing/reading from 16F819 internal EEPROM.

    Hi Gang...

    EIther I'm doing something wrong or the 819 is playing tricks on me.
    I've been trying to write a value of a certain variable into the internal EEPROM with the WRITE command (Microcode & PBP2.50b), such as

    WRITE 5, FireRateCounter

    and I think it actually works because the software appears to be reading from that location and use the value in parts of the software. However, it seems that when I recycle the power to the chip, whatever was in that EEPROM location seems to have disappeared.
    Is this possible? What am I doing wrong?

    thanks

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    We will not know till we see the revelant portions of your code. Power on code especially.

  3. #3
    Join Date
    Aug 2007
    Location
    Mississauga, Ontario, Canada
    Posts
    29


    Did you find this post helpful? Yes | No

    Default

    Jerson...

    while I was copying the code into the reply window, something caught my attention and I went back and modified the software. Now the darn thing is working... I can't believe I didn't catch it sooner.
    Thanks for the reply though.

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, 15:46
  2. Internal eeprom - erase block
    By ruijc in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 13th February 2008, 12:11
  3. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 07:26
  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, 20:42
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 20:59

Members who have read this thread : 1

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

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