Functional Description
MEN Mikro Elektronik GmbH
26
5.3
Registers
The M36N has a sequencer, which stores the data coming from the A/D converter in
a dual-ported RAM buffer. The measurement order can be determined by the user.
The buffer has a size of 16 data elements. A data element is comprised of a
measurement Data Register, an Address Register and a Configuration Register.
So each data element consists of 3 registers:
• A 16-bit measuring Data Register
• An 8-bit Address Register
• An 8-bit Configuration Register for the next data element
The registers for data element no. 0 can be found at addresses
0x00
(data),
0x21
(address) and
0x41
(configuration). Data element no. 1 uses
0x02
for data,
0x23
for address and
0x43
for configuration and so on up to element no. 15, which uses
0x1E
,
0x3F
and
0x5F
.
Data Register (
0x00
..
0x1E
) (read)
In the Data Register the converter data is stored. The user can read the values at any
time. A double-buffer mechanism guarantees homogeneity of the values.
Address Register (
0x20
,
0x22
..
0x3E
) (read/write)
The Address Register of a data set contains the number of the next data element. If,
for example, the Address Register of element no. 0 contains 1 and no. 1 contains 0,
only the first two data sets are used.
Configuration Register (
0x40
,
0x42
..
0x5E
) (read/write)
The configuration that is used for the next (!) measurement is stored in the
configuration byte of the data element. It contains the multiplexer channel number,
the gain factor and the measuring mode (unipolar or bipolar).
15..8
7..4
3..0
-
-
Address
15..8
7
6..4
3..0
-
MOD
GAIN
MUX
MOD
Measuring mode
0 = Unipolar
1 = Bipolar
GAIN
Gain factor
000 = 1
001 = 2
010 = 4
011 = 8
100 = 16
MUX
Multiplexer channels 0..15