KMA199E All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 2 — 7 December 2011 16 of 32
NXP Semiconductors
KMA199E
Programmable angle sensor
A more detailed description of all registers, that can be accessed by the customer, is given
in Section 13.5
. Both default value and the complete command, which already includes
the address and write or read request respectively, is listed there.
13.3.1 Write access
In order to write data into the EEPROM, the internal charge pump must be enabled at first
by setting the bits EEP_CP_CLOCK_EN and EEP_WRITE_EN and waiting for t
cp
.
Afterwards the following procedure must be done:
Start condition: The master drives a rising edge after a LOW level
Command: The master sends a write command, that is the last bit is not set
Data: The master sends two data bytes
Stop condition: The master drives a rising edge after a LOW level
Figure 13
shows the write access of the digital interface. The signal OWI represents the
data on the bus, which is either caused by the master or by the slave. The signals master
output enable and slave output enable just symbolize if the master or the slave output is
enabled or disabled respectively.
Note: As already mentioned in Section 13.1, even the command mode has to be entered
using the write procedure. Without entering the command mode a digital communication
is not possible and the sensor would work in normal operation mode. After changing a
single address the time t
prog
must elapse before changing another address. Finally the
checksum has to be recalculated and written, after changing the EEPROM constants
(see Section 13.4
).
(1) Missing rising edges generate a time-out condition and the written data is ignored.
(2) If the master might not drive the bus, the bus is defined by the bus-pull.
Fig 13. OWI write access
001aag743
master
output
enable
slave
output
enable
START CMD7 CMD0 STOP
(1)
(2)
IDLEWDATA15 WDATA0
OWI
KMA199E All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 2 — 7 December 2011 17 of 32
NXP Semiconductors
KMA199E
Programmable angle sensor
13.3.2 Read access
In order to read data from the sensor, the following procedure must be done:
Start condition: The master drives a rising edge after a LOW level
Command: The master sends a read command, that is the last bit is set
Handover: The master sends a handover bit, that is a logic 0 and disables his output
after a three-quarter bit period
Takeover: The slave drives a LOW level after the falling edge for t
tko(slv)
Data: The slave sends two data bytes
Handover: The slave sends a handover bit, that is a logic 0 and disables his output
after a three-quarter bit period
Takeover: The master drives a LOW level after the falling edge for t
tko(mas)
Stop condition: The master drives a rising edge after a LOW level
Figure 14
shows the read access of the digital interface. The signal OWI represents the
data on the bus, which is either caused by the master or by the slave. The signals master
output enable and slave output enable just symbolize if the master or the slave output is
enabled or disabled respectively.
(1) Duration of LOW level for slave takeover t
tko(slv)
.
(2) There is an overlap in the output enables of master and slave, because both drive a LOW
level. However this ensures the independency from having a pull-up or pull-down on the bus.
In addition it improves the ElectroMagnetic Compatibility (EMC) robustness, because all levels
are actively driven.
(3) Duration of LOW level for master takeover t
tko(mas)
.
(4) If the master does not take the bus and a pull-up exists, the stop condition is generated by the
pull-up. Otherwise a time-out is generated if there is a pull-down and the slave waits for a rising
edge as start condition.
(5) If the master might not drive the bus, the bus is defined by the bus-pull.
Fig 14. OWI read access
001aag744
master
output
enable
slave
output
enable
START CMD7 CMD0 RDATA0
(1)
(2) (2) (4)
(5)
(3)
HANDSHAKE HANDSHAKERDATA15 IDLESTOP
OWI
KMA199E All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 2 — 7 December 2011 18 of 32
NXP Semiconductors
KMA199E
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. For this purpose a specific command sequence has to be sent (see Figure 15
).
Without entering the command mode, the sensor starts in normal operation mode.
However the signature can always be written by the master, if the sensor switches into
diagnostic mode.
During the command mode sequence, the analog output is enabled, hence the external
programming hardware has to overdrive the output with the current I
od
. If the command
mode is activated, the analog output will be disabled and the pin OUT/DIGINT works as a
digital interface.
13.4 Cyclic redundancy check
As already mentioned in Section 6, there is an 8-bit checksum of the EEPROM data. In
order to calculate this value, a CRC has to be generated with the MSB of the EEPROM
data word at first over all corresponding addresses in increasing order.
For calculating the checksum, all addresses from 0h to Fh have to be read out and
consulted. 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 the bits
EEP_CP_CLOCK_EN and EEP_WRITE_EN (see Table 16
) and waiting for t
cp
.
The generator polynomial for the calculation of the checksum is:
(3)
With a start value of FFh and the data bits are XOR at x
8
point.
Fig 15. OWI command mode procedure
001aag819
t
cmd(ent)
signaturecommand
STARTOWI
V
DD
94h 9Bh A4h STOP
Gx() x
8
x
2
x1+++=

KMA199E,115

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Motion & Position Sensors Board Mount Motion & Position Sensors ANGULAR SENSR SYSTEM
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet