Main Content

On-board EEPROM Write

Write data to on-board Arduino EEPROM

Since R2024a

  • Arduino On-board EEPROM Write Block Icon

Simulink Support Package for Arduino Hardware / Common


Use the On-board EEPROM Write block to write nonvolatile data to the on–board Arduino® electrically erasable programmable read–only memory (EEPROM). Each memory position on the EEPROM can store one byte of data. The block compares the existing data on the Arduino on–board EEPROM and writes only if the data has changed.

This table lists the memory size and the accessibility address range of on–board EEPROM of these Arduino boards.

Arduino BoardSize of On–Board EEPROMAccessible Address Range
Arduino Mega 2560 and Mega ADK4096 bytes0 to 4095
Arduino Uno1024 bytes0 to 1023
Arduino Leonardo1024 bytes0 to 1023
Arduino Micro1024 bytes0 to 1023
Arduino Nano 3.01024 bytes0 to 1023



expand all

The block inputs a N-by-1 or 1-by-N matrix of data that is has written to the Arduino EEPROM.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32

The block inputs a positive non–zero value that allows a writing operation on the on–board Arduino EEPROM.

Data Types: Boolean


expand all

Enter the starting memory address of the on–board Arduino EEPROM from where the write operation must begin.


The total size of the input data type must not exceed the maximum number of addressable on–board Arduino EEPROM memory locations from the starting address specified in this parameter. For example, for the Arduino Uno board and uint8 input data type, the starting address of the EEPROM must not exceed 1021.

Version History

Introduced in R2024a