Saving numeric data to eeprom from array


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    970

    Default

    ' originally posted EEdata var byte [5] ' make space for mydata in eeprom
    EEdata Data 0 ' This is where the data is written to in eeprom, initial value is 0


    Cntr var byte ' counter to index the array

    ' write the data to the eeprom
    for Cntr = 0 to 4
    write EEdata+Cntr, mydata[cntr]
    next

    ' done
    Last edited by Jerson; - 11th December 2007 at 05:41. Reason: Correction

Similar Threads

  1. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 03:46
  2. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 03:21
  3. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 15:50
  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. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 29th November 2004, 00:56

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