KMA199,115 NXP Semiconductors, KMA199,115 Datasheet - Page 22

IC SENSOR PROG ANGLE SOT880

KMA199,115

Manufacturer Part Number
KMA199,115
Description
IC SENSOR PROG ANGLE SOT880
Manufacturer
NXP Semiconductors
Datasheet

Specifications of KMA199,115

Operational Type
Programmable Angle Sensor
Operating Supply Voltage
5 V
Supply Current
5 mA to 10 mA
Package / Case
SOT-880
Mounting Style
Through Hole
Supply Voltage (min)
4.5 V
Supply Voltage (max)
5.5 V
Maximum Output Current
20 mA
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
KMA199,115
Manufacturer:
NXP/恩智浦
Quantity:
20 000
NXP Semiconductors
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
KMA199_1
Product data sheet
#include <stdio.h.>
// calc_crc accepts unsigned 16-bit data in data
int calc_crc(int crc, unsigned int data)
{
}
int main(void)
{
}
const int gpoly = 0x107; // generator polynomial
int i;
for (i = 15; i >= 0; i--)
{
}
return crc;
int crc, crc_res, i;
// 8 LSB are CRC field filled with 0
unsigned int data_seq[] = {0x1111, 0x2222, 0x3333, 0x4444,
// calculate checksum over all data
crc = 0xFF;
printf(“Address\tValue\n”);
for (i = 0; i <= 15; i++)
crc_res = crc;
printf(“\nChecksum\n0x%02X\n”, crc_res);
// check procedure for above data sequence
crc = 0xFF;
for (i = 0; i <= 14; i++)
// last word gets crc inserted
crc = calc_crc(crc, data_seq[i] | crc_res);
printf(“\nCheck procedure for data sequence: must be 0x00 is 0x%02X.\n”,crc);
return 1;
13.4.1 Software example in C
crc <<= 1;
crc |= (int) ((data & (1u<<i))>>i);
// XOR of with generator polynomial when MSB(9) = HIGH
if (crc & 0x100) crc ^= gpoly;
{
printf(“0x%1X\t0x%04X\n”, i, data_seq[i]);
crc = calc_crc(crc, data_seq[i]);
}
crc = calc_crc(crc, data_seq[i]);
The checksum of this data sequence is 6Fh.
All information provided in this document is subject to legal disclaimers.
//index variable
//shift left
0x5555, 0x6666, 0x7777, 0x8888,
0x9999, 0xAAAA, 0xBBBB, 0xCCCC,
0xDDDD, 0xEEEE, 0xFFFF, 0x4200};
// start value of crc register
// crc_res = 0x6F
Rev. 01 — 26 April 2010
Programmable angle sensor
© NXP B.V. 2010. All rights reserved.
KMA199
22 of 36

Related parts for KMA199,115