internal eeprom problem


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2014
    Posts
    25

    Default internal eeprom problem

    Iam working with 16F876A.i want to store and read two different word in eeprom at different locations.
    For first word i used

    Write 0,numb.highbyte
    Write 1,numb.lowbyte

    What be for second word?
    Second word is Tempp

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,371

    Default Re: internal eeprom problem

    Hi,
    Next free location would be 2 so
    Code:
    WRITE 2, TempB.Highyte
    WRITE 3, TempB.LowByte
    Or you can use the WORD modifier and let PBP handle the high/low byte stuff (I don't know in what order it writes it so either you look into that or you use the WORD modifier when you READ the data as well)
    Code:
    WRITE 0, WORD Numb
    WRITE 2, WORD TempB
    Or....
    Code:
    WRITE 0, WORD Numb, WORD TempB
    /Henrik.

  3. #3
    Join Date
    Sep 2014
    Posts
    25

    Default Re: internal eeprom problem

    Tkanks Henrik.I got my work done.
    I had one more problem.iam making Thermistor based thermostat. My problem is my temperature does not go below 0 degree. Please help me out.

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,371

    Default Re: internal eeprom problem

    Then you need to travel to a location where it's colder than where you're currently situated....

    Seriously though, don't you have another thread where you're discussing that topic?

    As I said in that thread, BYTES and WORDS in PBP aren't signed so comparisons like If myValue < 0 won't work because myValue (if it's a BYTE or WORD) will always be considered to be either zero or larger than 0.

    Apart from that I'm not up to speed with what you're doing, how you're measuring the thermistor, what values you're getting for different temperature etc.

    /Henrik.

Similar Threads

  1. Problem in reading and writing internal eeprom
    By amodpathak in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st October 2014, 22:34
  2. Internal Eeprom/flash , what are you doing ?
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 21st October 2008, 08:51
  3. Internal eeprom - erase block
    By ruijc in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 13th February 2008, 12:11
  4. Code Problem - Strings/ LCD/ internal EEPROM
    By jorge in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 4th February 2008, 21:24
  5. internal eeprom in pic16F628
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th December 2005, 07:21

Posting Permissions

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