strange problems with 18F2520 and 18F2525


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Location
    USA
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    All interupts are disabled, as always. I poll the interupt flag to look for a rising
    edge on the interupt ports. This program is not any different from other
    programs I have written, in regards to the WRITE command and the interupt
    flag polling. I am baffled. I even tried an older 18F2520 chip that I had laying
    around and the same thing is happening... a chip that didn't have this problem
    before!

    I use the EEPROM command to write initial contents to the EEPROM and there is
    no problem there. But writing to it during runtime does not work. I think
    something is happening with the compile, but nothing has changed on the
    computer that I use, so I can't imagine what the problem is. I have been using
    PBP for over 5 years and consider myself pretty good at writing programs, but
    this has me completely stumped!

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


    Did you find this post helpful? Yes | No

    Default

    This have to be a silicon batch problem. See the tons of errata on the Microchip website. But some use them and works a treat... it's certainely not even a PBP related problem.

    Hum humn.. i saw almost the same question/comments on some competitor product.. and they mostely comes up with the same conclusion.

    The Darrel suggestion could be a real great workaround... but i just hope it will never ends up in an endless loop... wich is... a real pain in the ...

    I'll try those i have here to see if i'm better lucky.
    Steve

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

  3. #3
    Join Date
    Jul 2006
    Location
    USA
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    OK, now I'm feeling kind of stupid... the flash program configuration also affects
    the EEPROM, not just the program memory. Configuring the target device to
    Enable Flash Programming allows the program to write to the program memory
    AND the EEPROM. I thought it was only for the program memory. It says right
    in the data sheet that EECON1.2 enables or disables writing to the Flash memory
    or the EEPROM.

    So, 1 problem solved and 1 to go.

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