CMMC-8I-DB C-Max, CMMC-8I-DB Datasheet - Page 8

BOARD DEMO FOR CME8000

CMMC-8I-DB

Manufacturer Part Number
CMMC-8I-DB
Description
BOARD DEMO FOR CME8000
Manufacturer
C-Max
Type
Receiverr
Datasheet

Specifications of CMMC-8I-DB

Frequency
40kHz ~ 120kHz
For Use With/related Products
CME8000
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
561-1017
C-MAX
CRC-Calculation
The
http://en.wikipedia.org/wiki/CRC16
MF Layer (see General command structure). If you are using the RS485 protocol, both
addresses
For testing and evaluating reasons, the CMMC-8P-MF will also accept two 0x00 bytes as
CRC. For production environments however, we strongly recommend using valid CRC bytes.
Implementation
A standard implementation in C:
CMMC-8P-MF
Spec No.:
CRC
unsigned int CalcCrc16(unsigned char
unsigned char
{
}
Time Solutions
volatile unsigned char
volatile unsigned int
volatile int
char
pBuf = (char*)(Buffer);
for( i=0;i<Length;i++)
{
}
return
used
are
Revision
179.05
c = *pBuf++;
c = c << 8;
for( j=0;j<8;j++ )
{
}
*pBuf;
in
(Crc16);
also
the
if( (Crc16^c) & 0x8000 )
else
c = c << 1;
Length)
07.01.2008
for details). It is calculated for all bytes of the CMMC-8P-
CMMC-8P-MF
c;
Crc16 = ( Crc16<<1 ) ^ 0x1021;
Crc16 = Crc16 << 1;
State
included
C-MAX printed
07.02.2008
Crc16 = 0;
i,j;
in
is
based
the
Datasheet CMMC-8P-MF
English
*Buffer,
Version
on
CRC
a
CRC16
calculation.
8 of 22
Page
(see

Related parts for CMMC-8I-DB