Tutorial.EEPROMRead History

Hide minor edits - Show changes to markup

September 03, 2015, at 10:10 AM by Simone Maiocchi -
Deleted line 48:
  • EEPROM Get – Get values from EEPROM and prints as float on serial.
September 03, 2015, at 09:54 AM by Simone Maiocchi -
Changed line 46 from:
  • EEPROM Clear - Fills the content of the EEPROM memory with “0”
to:
  • EEPROM Clear - Fills the content of the EEPROM memory with “0”.
September 03, 2015, at 09:53 AM by Simone Maiocchi -
Changed lines 1-6 from:
to:
Changed lines 46-52 from:
to:
  • EEPROM Clear - Fills the content of the EEPROM memory with “0”
  • EEPROM Write – Stores values read from A0 into EEPROM.
  • EEPROM Crc – Calculates the CRC of EEPROM contents as if it was an array.
  • EEPROM Get – Get values from EEPROM and prints as float on serial.
  • EEPROM Iteration – Programming examples on how to go through the EEPROM memory locations.
  • EEPROM Put – Put values in EEPROM using variable semantics (differs from EEPROM.write() ).
  • EEPROM Get – Get values from EEPROM and prints as float on serial.
  • EEPROM Update – Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.
Added line 56:
August 18, 2015, at 03:16 PM by Simone Maiocchi -
Deleted line 46:
August 18, 2015, at 01:49 PM by Simone Maiocchi -
Changed lines 48-51 from:
 * EEPROM Update example – Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.

to:
  • EEPROM Update example – Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.


Last revision 2015/08/18 by SM

August 18, 2015, at 01:48 PM by Simone Maiocchi -
Changed lines 9-10 from:

The microcontroller on the Arduino and Genuino boards has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive).

to:

The microcontroller on the Arduino and Genuino boards have 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive).

August 18, 2015, at 01:48 PM by Simone Maiocchi -
Changed lines 1-11 from:
to:
Added lines 5-17:
Changed line 22 from:
to:
Added lines 25-28:

Schematics

image developed using Fritzing. For more circuit examples, see the Fritzing project page

Changed lines 37-42 from:
to:
Changed lines 41-42 from:
to:
 * EEPROM Update example – Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.

August 18, 2015, at 12:40 PM by Simone Maiocchi -
Changed lines 25-26 from:
to:
November 16, 2011, at 04:26 AM by Scott Fitzgerald -
Changed lines 25-26 from:
to:
September 28, 2010, at 01:21 PM by Tom Igoe -
Changed lines 25-26 from:
to:
September 28, 2010, at 01:20 PM by Tom Igoe -
Changed lines 25-58 from:
to:
September 23, 2010, at 10:45 PM by Christian Cerrito -
Changed lines 3-4 from:

EEPROM Read

to:

EEPROM Read

September 20, 2010, at 02:16 PM by Christian Cerrito -
Changed lines 5-6 from:

The microcontroller on the Arduino board has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the EEPROM.read() function, and how to print those values to the serial window.

to:

The microcontroller on the Arduino board has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive).

This example illustrates how to read the value of each byte EEPROM using the EEPROM.read() function, and how to print those values to the serial window.

September 20, 2010, at 02:12 PM by Christian Cerrito -
Added lines 66-67:
September 20, 2010, at 02:11 PM by Christian Cerrito -
Changed lines 5-6 from:

The microcontroller on the Arduino board has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the EEPROM.read() function, and how to print those values to the serial window.

to:

The microcontroller on the Arduino board has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the EEPROM.read() function, and how to print those values to the serial window.

Changed lines 14-15 from:

There is no circuit for this example, though your Arduino must be connected to your computer to enable serial communication.

to:

There is no circuit for this example.

Added lines 59-62:
September 20, 2010, at 02:05 PM by Christian Cerrito -
Changed lines 14-15 from:

There is no circuit for this example.

to:

There is no circuit for this example, though your Arduino must be connected to your computer to enable serial communication.

September 20, 2010, at 01:58 PM by Christian Cerrito -
Added lines 7-20:
September 20, 2010, at 01:58 PM by Christian Cerrito -
Changed lines 5-6 from:

The microcontroller on the Arduino board has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the EEPROM.read() function, and print those values to the computer via serial.

to:

The microcontroller on the Arduino board has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the EEPROM.read() function, and how to print those values to the serial window.

September 20, 2010, at 01:56 PM by Christian Cerrito -
Changed lines 5-6 from:

The microcontroller on the Arduino board has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to reads the value of each byte EEPROM using the EEPROM.read() function, and prints it to the computer via serial.

to:

The microcontroller on the Arduino board has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the EEPROM.read() function, and print those values to the computer via serial.

September 20, 2010, at 01:55 PM by Christian Cerrito -
Changed lines 5-6 from:

Reads the value of each byte of the EEPROM and prints it to the computer.

to:

The microcontroller on the Arduino board has 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to reads the value of each byte EEPROM using the EEPROM.read() function, and prints it to the computer via serial.

September 16, 2010, at 11:10 PM by Tom Igoe -
Changed line 9 from:

[@

to:
Changed lines 41-42 from:

@]

to:
May 22, 2008, at 04:33 AM by David A. Mellis -
Changed lines 41-47 from:

@]

to:
May 22, 2008, at 04:28 AM by David A. Mellis -
Added lines 1-41:

Examples > EEPROM Library

EEPROM Read

Reads the value of each byte of the EEPROM and prints it to the computer.

Code

#include <EEPROM.h>

// start reading from the first byte (address 0) of the EEPROM
int address = 0;
byte value;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  // read a byte from the current address of the EEPROM
  value = EEPROM.read(address);

  Serial.print(address);
  Serial.print("\t");
  Serial.print(value, DEC);
  Serial.println();

  // advance to the next address of the EEPROM
  address = address + 1;

  // there are only 512 bytes of EEPROM, from 0 to 511, so if we're
  // on address 512, wrap around to address 0
  if (address == 512)
    address = 0;

  delay(500);
}

Share