DA6502.008
29 November 2012
REGISTER AND EEPROM DATA ADDRESSES
MAS6502 includes a 32 bytes (256 bits) EEPROM
data memory. The first EEPROM byte at address
40HEX is reserved for internal clock oscillator
frequency trimming. The remaining 31 bytes (248
bits) in memory addresses 41HEX …5FHEX are free
for storing sensor calibration and other data.
MAS6502 also contains ten 8-bit registers.
Addressing the reset register triggers device reset.
See table 1 for register and EEPROM data
addresses.
Table 1. Register and EEPROM data addresses
A0
A7
A6
A5
A4
A3
A2
A1
HEX
(X=0)
Description
Note
X
0
0
0
0
0
0
0
00
EEPROM; erase internal clock oscillator
trimming, reserved!
E
X
X
0
1
0
0
A4
0
A3
0
A2
0
A1
0
A0
0
01…1F
40
EEPROM; erase data at address [A4:A0]
EEPROM; read or write internal clock
oscillator trimming, reserved!
EEPROM; read or write data at address
[A4:A0]
Reset register; contains no data, write
any dummy data for a reset
Test and trim control register
Oscillator frequency control register
Data input register for EEPROM
Control register for EEPROM
Write and erase enable for EEPROM
Status register for EEPROM
MSB conversion result
E
E
X
X
1
0
1
A4
1
A3
0
A2
0
A1
0
A0
0
41…5F
30
E
R
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
1
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
1
0
0
1
1
0
0
1
1
1
0
1
0
1
0
1
0
1
37
38
39
3A
3B
3C
3D
3E
3F
R
R
R
R
R
R
R
R
R
LSB conversion result
ADC control register
X = Don’t care, E = EEPROM, R= Register
There is no need for internal oscillator trimming
since this is done during wafer level testing.
EEPROM data input register (39HEX) is automatically
used in all EEPROM data transfers. There is no
need to address this register manually except when
doing a “block write” when data must be written to
the input register before giving the block write
command. EEPROM control register (3AHEX) is for
special EEPROM functions like block erase, block
write and test modes.
EEPROM addresses 01HEX …1FHEX are used for
erasing the data at the addressed bytes whereas
EEPROM addresses 41HEX …5FHEX are for
read/write of addressed bytes. In case of writing the
data the EEPROM address or block when
necessary is erased automatically before writing
new data on it. There should be at least a 16ms
delay after each EEPROM write since EEPROM
programming can take up to 16ms. For EEPROM
erase this delay should be at least 8ms.
The EEPROM write and erase enable register
(3BHEX) is used to protect the calibration memory
against accidental write/erase. After reset (power on
reset, XCLR) this register is set to %00000000
(00HEX) and the EEPROM memory erase/write is
disabled. The EEPROM erase/write is enabled only
when this register value is set to %01010101
(55HEX). EEPROM status register (3CHEX) is used for
EEPROM error correction status.
Reset register (30HEX) does not contain any data.
Any dummy data written to this register forces a
reset. A reset initializes all control registers
(addresses 37HEX…3FHEX) to a zero value.
Test and trim control register (37HEX) is for testing
and trimming purposes.
The oscillator frequency control register (38HEX) is
used only during internal clock oscillator trimming.
During trimming this register value is iterated to find
desired oscillator frequency. When the correct value
is found it can be written to the EEPROM internal
clock oscillator trimming register (40HEX). In normal
operation the trimming value is automatically read
from the EEPROM memory during startup. Note:
The MSB and LSB conversion result registers
(3DHEX and 3EHEX) contain the last 16-bit A/D
conversion result. The ADC control register (3FHEX
)
is used for configuring and starting A/D
conversions. See chapter ADC Control Register for
details.
7 (20)