QT60326-ASG QUANTUM ATMEL, QT60326-ASG Datasheet - Page 29

no-image

QT60326-ASG

Manufacturer Part Number
QT60326-ASG
Description
TOUCH SENSOR 32 CHAN, SMD, 60326
Manufacturer
QUANTUM ATMEL
Datasheet

Specifications of QT60326-ASG

Supply Current
25mA
Supply Voltage Range
4.75V To 5.25V
Sensor Case Style
TQFP
No. Of Pins
44
Operating Temperature Range
-40°C To +105°C
Operating Temperature Max
105°C
Operating Temperature
RoHS Compliant
Interface Type
UART, SPI
Rohs Compliant
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
QT60326-ASG
Manufacturer:
Rohm
Quantity:
4 982
7 Appendix
7.1 8-Bit CRC Software C Algorithm
// 8 bits crc calculation. Initial crc entry value must be 0.
// polynomial = X8 + X5 + X4 + 1
// data is an 8 bit number;
// repeat this function for each data block byte, folding the result
//
unsigned char eight_bit_crc(unsigned char crc, unsigned char data)
{ unsigned char index;
return crc;
}
7.2 16-Bit CRC Software C Algorithm
// 16 bits crc calculation. Initial crc entry value must be 0.
// The message is not augmented with 'zero' bits.
// polynomial = X16 + X12 + X5 + 1
// data is an 8 bit number, unsigned
// crc is a 16 bit number, unsigned
// repeat this function for each data block byte, folding the result
//
unsigned long sixteen_bit_crc(unsigned long crc, unsigned char data)
{ unsigned char index; // shift counter
}
A CRC calculator for Windows is available free of charge from Quantum Research.
lQ
unsigned char fb;
index = 8;
do
{ fb = (crc ^ data) & 0x01;
} while(--index);
crc ^= (unsigned long)(data) << 8;
index = 8;
do
{ if(crc & 0x8000)
} while(--index);
return crc;
back into the call parameter crc
back into the call parameter crc
data >>= 1;
crc >>= 1;
if(fb)
{ crc ^= 0x8c;
}
{ crc= (crc << 1) ^ 0x1021;
}
else
{ crc= crc << 1;
}
// shift counter
// intermediate test bit
// initialize the shift counter
// loop 8 times
// loop 8 times
crc is an unsigned 8 bit number
29
QT60486-AS R8.01/0105

Related parts for QT60326-ASG