EEPROM/DATA problem with 18F2523


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    4

    Angry EEPROM/DATA problem with 18F2523

    I'm using PBP 2.50A, MCS V3.0.0.5 and MPASM V5.14 and an 18F2523.

    Every time use DATA or EEPROM to write to a byte in an odd position (1,3,5, etc.), the next byte gets overwritten with $00. For example:

    EEPROM 1,[$01] results in...
    Address $01 = $01
    Address $02 = $00

    If I use EEPROM 2,[$01] then all is OK...
    Address $02 = $01
    Address $03 = (unchanged)

    I've read the other threads regarding the 18F fixes. But as far as I can tell, the 18F2523 still has a problem. Has anyone else seen this one or, even better, have a workaround? I've tried everything I can think of.

    Thanks!

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi,

    That's quite normal ...

    see here :

    http://www.picbasic.co.uk/forum/show...=18F452+EEPROM

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Mar 2008
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Thanks for that link Alain! I missed that thread.

    I was so sure that EEPROM only wrote a single byte at a time because of the "Only the least significant byte of numeric values are stored" line from the PBP manual. I never thought that PBP and the PIC itself would do things differently. Silly me.

    Time to hit the PIC18F reference manual to get all of the gory details...ugh.

    Thanks again,
    John

Similar Threads

  1. Problem with ASM IRQ using FSR0 on PIC18F252
    By mytekcontrols in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th March 2008, 20:48
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  4. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  5. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22: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