WRITE isn't working anymore ... HELP !


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289

    Default WRITE isn't working anymore ... HELP !

    I'm working on a project with an 18F252.
    Last week or so, the programm was able to write to the EEPROM.

    f.e.:
    PWM_LCD CON 10

    GIE=0:WRITE PWM_LCD,1:GIE=1


    But since a few days, it doens't work anymore.

    Now I've checked all configuration-bits, but there is no problem, because writing to the eeprom couldn't be inhibited by configuration...

    Is there any know (hardware or software) possibility to make this ?

    I've used several PICs, and all have the same problem...

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Have you code protected the chip?

    Hi there ,

    Have you code protected the chip by witing $00 in the 5L config registor ? I don't know exactly why but a fully code protected chip fails to write into the EEPROMs. According to the manual there shouldn't be any problems protecting the data memory also. Might be its the table write or read issues of the Pbasic library loaded into the top of the program memory that causes this anomolly. Just leave the boot block (the first 512 bytes) unprotected (see the config bits register 5 in the PIC 18Fxx2 manual) and your problem should be solved.

    Let us know if it worked.

    Regards

    Sougata

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    Nearby...

    I have to turn off the codeprotection for the bootblock...
    unbeliveble !

Similar Threads

  1. READ WRITE not working consistantly on 12f675
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th September 2009, 16:15
  2. WRITE: One more PBP 2.60 Surprise ...
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 26th August 2009, 09:10
  3. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  4. Storing Strings using the Write command
    By BobP in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st November 2005, 11:31
  5. WRITE not working
    By servo260 in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 29th December 2004, 02:02

Members who have read this thread : 1

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