iC-MP 8-BIT HALL ANGLE ENCODER
WITH RATIOMETRIC OUTPUT
Rev B1, Page 14/22
D(51:0)
7:0
Parameter
Description
ENERR
OFFSET1(7:0)
MODE1(3:0)
Offset of the first set
The parameter ENERR indicates two kind of errors. If
the magnetic field strength is at low a ’Loss of Mag-
net’ is generated. An ’Excessive Frequency Alarm’ is
generated when the revolution per minute is to high.
Parameter ENERR handles the various error types.
11:8
Mode of the first set,
see Table 5 and 6
13:12
ENERR1(1:0)
Error mask of the first
set, see Table 8
21:14
25:22
OFFSET2(7:0)
MODE2(3:0)
Offset of the second set
Mode of the second set,
see Table 5 and 6
ENERR1(1:0)
ENERR2(1:0)
ENERR3(1:0)
D(13:12)
D(27:26)
D(41:40)
27:26
ENERR2(1:0)
Error mask of the
second set, see Table 8
Code
00
Error
No Error
35:28
39:36
OFFSET3(7:0)
MODE3(3:0)
Offset of the third set
Mode of the third set,
see Table 5 and 6
01
Loss of Magnet*
41:40
ENERR3(1:0)
Error mask of the third
set, see table 8
10
Excessive Frequency Alarm
Excessive Frequency Alarm or Loss of Magnet*
11
45:42
47:46
CRCID(3:0)
ZTEST(1:0)
CRC ID
*) see ’DESIGN REVIEW’
Zener zap diodes, for
iC-Haus test purposes
only
Table 8: Error masks
51:48
TEST(3:0)
See ’TEST MODES’
Calculating the position offset
Table 4: Programming Datastream
Before iC-MP outputs the actual position via the serial
interface or the linear analog output (LAO), an offset is
added internally. This offset consists of the following
parameters:
MODE1(1:0)
D(9:8)
D(23:22)
D(37:36)
Full Scale Angle
360°
MODE2(1:0)
MODE3(1:0)
OFFSET = OFFSET1 xor OFFSET2 xor OFFSET3
Code
00
The offset is programmed in several stages (see Fig-
ure 16). It is important that the direction of rotation is
programmed prior to this (MODE Bit 2). To determine
the actual configured offset, all three offset parameters
must be read out. After these parameters have been
xored the actual offset is determined:
01
270°
10
180°
11
90°
Table 5: Linear Analog Output - Mode Bit 1:0
MODE1(2)
D(10)
D(24)
D(38)
Actual Offset = OFFSET1 xor OFFSET2 xor OFFSET3
MODE2(2)
MODE3(2)
To calculate the new offset the actual position at the
required offset is required. The formula used to calcu-
late this new offset is as follows:
Code
Rotation
0
1
CW*
CCW*
*) CW = clockwise, CCW = counter-clockwise
New Offset = 256 - Actual Position + Actual Offset
Table 6: Mode Bit 2
MODE1(3)
MODE2(3)
MODE3(3)
Code
D(11)
D(25)
D(39)
Range
0
(0 % - 100 %) * VDD
(10 % - 90 %) * VDD
1
Table 7: Linear Analog Output - Mode Bit 3