HAL855
DATA SHEET
5.4. Number Formats
Binary number:
SHIFT
– The register range is from −1024 up to 1023.
– The register value is calculated by:
The most significant bit is given as first, the least sig-
nificant bit as last digit.
Shift
-------------
SHIFT =
× 1024
100%
Example: 101001 represents 41 decimal.
SLOPE
Signed binary number:
– The register range is from −8192 up to 8191.
The first digit represents the sign of the following
binary number (1 for negative, 0 for positive sign).
– The register value is calculated by:
Example: 0101001 represents +41 decimal
1101001 represents −41 decimal
SLOPE = Slope × 2048
TC and TCSQ
Two’s-complementary number:
– The TC register range is from −31 up to 31.
– The TCSQ register range is from 0 up to 31.
The first digit of positive numbers is “0”, the rest of the
number is a binary number. Negative numbers start
with “1”. In order to calculate the absolute value of the
number, calculate the complement of the remaining
digits and add “1”.
Note: The word length TC register is 7 bit. The 6 LSBs
represent a signed binary number. The MSB
has to be ignored.
Example: 0101001 represents +41 decimal
1010111 represents −41 decimal
MODE
– The register range is from 0 up to 16383 and con-
tains the settings for PERIOD, FORMAT, FILTER,
and RANGE:
5.5. Register Information
CURRENTSOURCE
– The register range is from 0 to 1023 and contains
the settings for LOW CURRENT, HIGH CURRENT,
and SLEW RATE:
MODE = PERIOD × 512 + FORMAT × 64 +
FILTER × 8 + RANGE
Please refer to the data sheet for the available
PERIOD, FORMAT, FILTER, and RANGE values.
CURRENTSOURCE = SLEW RATE × 256 +
LOW CURRENT × 8 + HIGH CURRENT
DIGITAL-READOUT
PARTNUMBER
– This register is read only.
– The register range is from 0 up to 4095.
– The register range is from 0 up to 2047.
OFFSET CORRECTION
– The register range is from 0 to 31
– The MSB is set to activate the offset correction.
38
Nov. 26, 2008; DSH000149_003EN
Micronas