DA6512.003
2 December, 2016
CONVERSION RESULT REGISTERS (EA…EBHEX
)
After measuring capacitance, temperature or supply
(most significant byte) is at EAHEX and LSB (least
voltage the 16-bit conversion result is stored into
two register addresses EAHEX and EBHEX. The MSB
significant byte) at EBHEX
.
EEPROM STATUS REGISTER (EC/6CHEX
)
The EEPROM status register (EC/6CHEX) indicates
if the stored EEPROM byte is corrupted. The
register is updated after each EEPROM data byte
read command. See table 9 below. The ERROR bit
tells whether a data error has been detected or not.
The DED bit tells whether two or more bit errors
have been detected. The EEPROM can correct
internally only single bit errors i.e. when ERROR=1
and DED=0. The read EEPROM data byte is
corrupted if ERROR=DED=1.
Table 9. MAS6512 EEPROM status register (EC/6CHEX). Only bits (7:6) are used.
Bit Number
Bit Name
Description
Value
Function
7
ERROR
EEPROM error
detection
EEPROM double
error detection
0
1
0
1
No errors
Error detected
No errors
6
DED
2 (or more) data errors
5-0
000000
-
TRIMMING CONTROL REGISTER (ED/6DHEX
)
The Trimming control register (ED/6DHEX) is used to
select between different trimming operating modes.
See table 10 showing the functions of the Trimming
control register.
oscillator (OSC) clock trim data is read from the
EEPROM memory. This mode is selected by writing
%10101010 (AAHEX
)
to the Trimming control
register. In this mode it is possible to run conversion
tests for different front-end trim register values
before suitable values are found and programmed
to the EEPROM.
After a power-up reset, master reset via XCLR or a
software reset via serial bus the Trimming control
register (ED/6DHEX) gets the value %00000000
(00HEX). This is the normal operating mode for a
trimmed MAS6512 device. In this mode the
capacitive front-end trim values to use (CS, CR and
Gain) are automatically read from the EEPROM
memory in the beginning of each conversion start.
There is also a trimming mode in which all trim data
including the internal oscillator trim data is taken
from the trim registers rather than from the
EEPROM. This mode is selected by writing
%11111111 (FFHEX
)
to the Trimming control
register.
When calibrating a sensor there is an operating
mode in which only the factory calibrated internal
Table 10. Trimming control Register (ED/6DHEX
)
Bit
Bit Name
Description
Value
Function
Number
7-0
REGEE<7:0> EEPROM control bits
00000000
All trim data from EEPROM
(normal operating mode)
Only OSC from EEPROM
All trim data from registers
All trim data from EEPROM
10101010
11111111
OTHER
15 (32)