Values in EEPROM get erased on power cycle


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    Thanks Guys, I do have pull down resistors on PORTC and PORTD but overlooked the one for PORTB.2. I did install one and it did fix my problem. However I don't quite understand why this would cause the problem that I had since this switch was used only to tell the program when to write to EEPROM. By the way the Write 0, PORTC does work OK.

    Thanks Again for your help
    Roy

  2. #2


    Did you find this post helpful? Yes | No

    Default

    The input on portb.2 was left floating which means that it's not really ground nor is it vcc. A floating input can change it state be simpling touch it or even something around it. Think of it this way, if the input requires say 0.7V to register as a low and 1.2V to register as a high you now have a 500mV dead zone than can go either way, pull in one way and the problem is resolved because you now know where it will always be without any other for of influence like a switch.

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 15:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 04:17
  3. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 07:26
  4. Internal EEPROM Read/write Addressing Errors with 18F PIC's
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 12th July 2005, 20:42
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 20: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