Adtech iMASTER – A1 Series User Manual page 168

Table of Contents

Advertisement

A1-User's Manual
5) 16 bit CRC generation
The step of CRC generation is as follows:
1. All of 16-bit Parameter is 1.0xffff
2. The exclusive OR of 16-bit Parameter and 8-bit Parameter.
3. Shift right side 1bit 16-bit Parameter
4. If the result of step 3 is 1, exclusive OR 16-bit Parameter and 0xa001.
5. Execute 8 times step 3 and step 4.
6. Execute step 2∼6 until data completion.
7. Exchange the step 6 result of higher 8bit and lower 8bit.
Ex) the case of d01 output frequency reading.
Byte 1
Communication
Number
0x01
The sequence of addition Byte (01x01)
16-BIT PARAMETER
(Exclusive OR)
01
Shift 1
Shift 2
Polynomial
Shift 3
Shift 4
Polynomial
Shift 5
Shift 6
Polynomial
Shift 7
Shift 8
Polynomial
Byte 2
Byte 3
Command
Parameter
0x03
0x01
MSB
1111
1111
1111
0000
0001
1111
1111
1111
0111
1111
1111
0011
1111
1111
1010
0000
0000
1001
1111
1111
0100
1111
1111
0010
0111
1111
1010
0000
0000
1000
0111
1111
0100
0011
1111
0010
0001
1111
1010
0000
0000
1000
0001
1111
0100
0000
1111
0010
0000
0111
1010
0000
0000
1000
0000
0111
Byte 4
Byte 5
0x01
Flag
1111
1110
1111
1111
1
0001
1110
1111
1111
1
0001
1110
1111
1111
1
0001
1110
1111
1111
1
0001
1110
164
Byte 6
Parameter number
0x00
0x01

Advertisement

Table of Contents
loading

Table of Contents