iC-MP 8-BIT HALL ANGLE ENCODER
WITH RATIOMETRIC OUTPUT
Rev B1, Page 10/22
SERIAL OUTPUT (SLO)
T1
T2
T3
T4
T5
tout
MA
SLO
ACK START
D7
D1
D0
NERR CRC3
CRC0 STOP
Figure 6: Serial data timing
D0 to D7 make up the absolute position data with re- second device (slave 2) outputs the position latched at
spect to the programmed position offset (OFFSET1 xor T1 at pin SLO.
OFFSET2 xor OFFSET3).
The absolute position data (D0-D7) is binary coded.
The position data and the error bit (NERR) are CRC
The absolute position is latched by a low to high tran-
protected. The CRC polynomial is X4+X+1 = 0x13.
sition at MA (see T1).
CRC_ Value = CRCID;
CRC_ Poly = 0x13;
//CR C star t value,
//Parameter CRCID D (45: 42 )
//CR C Poly noma
After an acknowledge (T2) at SLO iC-MP requests pro-
cessing time until the start condition (T3) is sent. Pro-
cessing time must be provided in Slow Scanning Mode
during startup.
S
e
n
s
_
D
a
t
a
=
D
+
N
E
R
R
;
/
/
P
r
o
t
e
c
t
e
d
S
e
n
s
o
r
D
a
t
a
9
b
i
t
f
o
r
(
i
=
0
;
i
<
8
;
i
+
+
)
{
i
f
(
(
C
R
C
_
V
a
l
u
e
&
0
x
1
0
0
)
!
=
(
S
e
n
s
_
D
a
t
a
&
0
x
1
0
0
)
)
C
R
C
_
V
a
l
u
e
=
(
C
R
C
_
V
a
l
u
e
<
<
1
)
^
C
R
C
_
P
o
l
y
;
With rising edge T4 at the clock pin the most significant
bit (D7) is placed on the serial data line SLO. After T5
has elapsed the controller can stop clocking at MA and
the device is ready to latch a new position after a time-
out (tout). If the controller continues to clock in a daisy
chain in Fast Scanning Mode after T5 has elapsed, the
e
l
s
e
C
R
C
_
V
a
l
u
e
=
(
C
R
C
_
V
a
l
u
e
<
<
1
)
;
Se ns_Dat a = Sens_D ata << 1;
}
Figure 7: Example CRC calculation
F
a
s
t
S
c
a
n
n
i
n
g
M
o
d
e
P SM I
M A
t
o
u
t
S
L
O
A
C
K
S
T
A
R
T
D
7
C
R
C
0
S
T
O
P
Figure 8: Timing in Fast Scanning Mode
P S MI
M A
t
>
5
0
µ
s
S
l
o
w
S
c
a
n
n
i
n
g
M
o
d
e
t
o
u
t
S
L
O
A
C
K
S
T
A
R
T
D
7
C
R
C
0
S
T
O
P
t
£
t
O
N
(
)
2
Figure 9: Timing in Slow Scanning Mode