DA6512.003
2 December, 2016
EEPROM WRITE PROCEDURE
This chapter gives instructions for writing data to the
EEPROM memory.
This selects 200 kHz clock which is required in the
EEPROM programming.
The MAS6512 16 bit Capacitance-to-Digital
Converter (CDC) 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. There are also 24 bits (3 bytes) for
trimming the capacitive sensor front-end. The
remaining 216 bits (27 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 (E9/69HEX). 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 (EC/6CHEX) 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 MAS6512 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
SOSC=0 is selected in the test register (E1/61HEX).
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 MAS6512 register and
EEPROM data addresses.
17 (32)