Write problem


Closed Thread
Results 1 to 3 of 3

Thread: Write problem

  1. #1
    Join Date
    Jun 2007
    Location
    Ankara, Turkey
    Posts
    2

    Default Write problem

    while temp2 != temp
    write 5, temp
    pause 60
    read 5, temp2
    wend

    This is a part of my program. I am trying to store the hi-score in 16F84's eeprom. Sometimes program cannot exit from the loop. What problems cause this loop continues forever?

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


    Did you find this post helpful? Yes | No

    Default

    If you're using interrupt this may happen. Post your whole code.
    Steve

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

  3. #3
    Join Date
    Jun 2007
    Location
    Ankara, Turkey
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    I have just solve the problem. I connect a capacitor between 5V and GND of 7805. Then I can answer my own question )
    During write operation, 7805 cannot handle the voltage changes itself. So a write error occurs. A capacitor solves the problem.
    Attached Files Attached Files

Similar Threads

  1. write -read problem?
    By turkuaz in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th August 2009, 13:06
  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. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 06: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