write_program_eeprom 18f2420


Closed Thread
Results 1 to 3 of 3
  1. #1
    Blob's Avatar
    Blob Guest

    Default write_program_eeprom 18f2420

    Hello,

    Since 18f242 is getting more and more expensive we are changing to the 2420...

    I just copied my code but it seems that the 2420 uses the eeprom functions in a different way.

    if it gets a write command, normally the data that was written on that adress should be deleted automatically and the new data should be written on that adress.

    in the 242 i first had to delete the data before writing.

    But helas,

    the function read_program_eeprom(adress) works fine
    but when i try write_program_eeprom(adress, data); nothing is written to the adress...

    is there some one out here who knows about this problem?

    Thanks in advance

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


    Did you find this post helpful? Yes | No

    Default

    Bonjour!
    Are you sure you're using Melabs PICBASIC compiler?
    Steve

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

  3. #3
    Blob's Avatar
    Blob Guest


    Did you find this post helpful? Yes | No

    Default

    Hello,
    No i use MPLAB IDE v7.10

    best regards

Similar Threads

  1. Tiny Bootloader 18F2420
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 31st March 2010, 17:32
  2. 18F2420, instant interrupts, and TMR0
    By dhickman in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th March 2009, 18:33
  3. How to use the 18F2420
    By BigWumpus in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th July 2006, 08:20
  4. PEEKCODE in the 18f2420
    By Dick M in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st July 2005, 16:34

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