iC-MP
8-BIT HALL ANGLE ENCODER
WITH RATIOMETRIC OUTPUT
Rev B1, Page 14/22
D(51:0)
7:0
11:8
13:12
21:14
25:22
27:26
35:28
39:36
41:40
45:42
47:46
Parameter
OFFSET1(7:0)
MODE1(3:0)
ENERR1(1:0)
OFFSET2(7:0)
MODE2(3:0)
ENERR2(1:0)
OFFSET3(7:0)
MODE3(3:0)
ENERR3(1:0)
CRCID(3:0)
ZTEST(1:0)
Description
Offset of the first set
Mode of the first set,
see Table 5 and 6
Error mask of the first
set, see Table 8
Offset of the second set
Mode of the second set,
see Table 5 and 6
Error mask of the
second set, see Table 8
Offset of the third set
Mode of the third set,
see Table 5 and 6
Error mask of the third
set, see table 8
CRC ID
Zener zap diodes, for
iC-Haus test purposes
only
See ’TEST MODES’
ENERR
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.
ENERR1(1:0)
ENERR2(1:0)
ENERR3(1:0)
Code
00
01
10
11
Error
No Error
Loss of Magnet*
Excessive Frequency Alarm
Excessive Frequency Alarm or Loss of Magnet*
D(13:12)
D(27:26)
D(41:40)
*) see ’DESIGN REVIEW’
Table 8: Error masks
Calculating the position offset
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:
OFFSET = OFFSET1 xor OFFSET2 xor OFFSET3
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:
Actual Offset = OFFSET1 xor OFFSET2 xor OFFSET3
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:
New Offset = 256 - Actual Position + Actual Offset
51:48
TEST(3:0)
Table 4: Programming Datastream
MODE1(1:0)
MODE2(1:0)
MODE3(1:0)
Code
00
01
10
11
360°
270°
180°
90°
D(9:8)
D(23:22)
D(37:36)
Full Scale Angle
Table 5: Linear Analog Output - Mode Bit 1:0
MODE1(2)
MODE2(2)
MODE3(2)
Code
0
1
CW*
CCW*
D(10)
D(24)
D(38)
Rotation
*) CW = clockwise, CCW = counter-clockwise
Table 6: Mode Bit 2
MODE1(3)
MODE2(3)
MODE3(3)
Code
0
1
D(11)
D(25)
D(39)
Range
(0 % - 100 %) * VDD
(10 % - 90 %) * VDD
Table 7: Linear Analog Output - Mode Bit 3