
KMA210
All information provided in this document is subject to legal disclaimers.
NXP B.V. 2011. All rights reserved.
Product data sheet
Rev. 1 — 30 June 2011
21 of 36
NXP Semiconductors
KMA210
Programmable angle sensor
13.3.3
Entering the command mode
After a power-on reset, the sensor provides a time slot t
cmd(ent)
for entering the command
mode. A specific command sequence has to be sent (see
Figure 17
). If command mode is
not entered, the sensor starts in the normal operation mode. However the signature can
be written by the master if the sensor switches to diagnostic mode.
During the command mode sequence, the analog output is enabled. The external
programming hardware has to overdrive the output with current I
od
. If command mode is
activated, the analog output is disabled and pin OUT/DATA operates as a digital interface.
13.4 Cyclic redundancy check
As already mentioned in
Section 7
, there is an 8-bit checksum for the non-volatile memory
data. To calculate this value, the CRC needs to be generated with the MSB of the memory
data word at first over all corresponding addresses in increasing order.
All addresses from 8h to Fh must be read out for calculating the checksum. The Least
Significant Byte (LSB) of address Fh which contains the previous checksum must be
overwritten with 0h before the calculation can be started.
Finally, the internal charge pump has to be enabled for programming by setting bits
CP_CLOCK_EN and WRITE_EN (see
Section 13.5.1
) and waiting for t
cp
.
The generator polynomial for the calculation of the checksum is:
(9)
With a start value of FFh and the data bits are XOR at the x
8
point.
Fig 17. OWI command mode procedure
008aaa263
t
cmd(ent)
signature
command
START
OWI
V
DD
94h
16h
F4h
STOP
G x
( )
x
8
x
2
x
1
+
+
+
=