DA6503.005
14 December 2016
EEPROM WRITE PROCEDURE
This chapter gives instructions for writing data to
the EEPROM memory.
clock which is required in the EEPROM
programming.
The MAS6503 24 bit Analog-to-Digital Converter
(ADC) has a 256 bit (32 bytes) EEPROM memory.
8 bits (1 byte) has been reserved for storing internal
clock oscillator trimming data and other 8 bits (1
byte) for the programmable I2C device address.
The remaining 240 bits (30 bytes) are free for
storing sensor calibration data and other use.
EEPROM write is enabled by writing value 04HEX to
the EEPROM write enable register (E6/66HEX). The
default register value after power on is 00HEX
.
Next the data can be written to the EEPROM
memory one byte (8-bit) at a time. It is necessary to
have a delay of minimum 16ms after programming
each byte (8-bit). The success of each write can be
verified by reading back the data (8-bit) and
comparing it to the original byte (8-bit). Additionally
it is also possible to check the EEPROM status
register (EA/6AHEX) value after each read back. The
EEPROM status register value should be 00HEX
when the read EEPROM data byte is free of errors.
See figure 3 on previous page showing the
EEPROM write procedure.
Make sure in the beginning of the EEPROM write
procedure that the MAS6503 initial conditions are
met. Connecting VDD triggers power-on-reset
(POR) but to make sure the device is reset an
additional reset should be given using the XCLR pin
or writing any data on the reset register E0/60HEX via
the serial bus. The device reset will guarantee that
in the Test register (E1/61HEX) the ENDIV=0 and in
the Measurement control register 1 (E2/62HEX) the
DIV=0 are selected. These select 250 kHz system
After all data bytes are written the EEPROM
memory can be protected from write by writing
00HEX to the EEPROM write enable register
(E9/69HEX).
See table 1 showing the MAS6503 register and
EEPROM data addresses.
20 (34)