EasyManua.ls Logo

Pilot Communications SPM93 - Calculating the CRC-16 Error Check Field

Pilot Communications SPM93
79 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
36
9.3.4 Preset Multiple Registers (Function code 10H)
This command packet allows the Master to program the SPM93 setup parameters.
Preset Registers Format
(Master→DFPM93)
Response Format
(DFPM93→Master)
Unit ID/ Slave address
1 byte
Unit ID/ Slave address
1 byte
10 H (Function Code)
1 byte
10 H (Function Code)
1 byte
Start register address
2 bytes
Start register address
2 bytes
Register num.
2 bytes
Register num.
2 bytes
Byte num.
(2 * register num.)
1 byte
CRC check code
2 bytes
First register data
2 bytes
Second register data
2 bytes
...
CRC check code
2 bytes
Note: SPM93 presume all registers are continuous from the first one.
9.4. Calculating the CRC-16 Error Check Field
This section describes the procedure for obtaining the CRC-16 error check field. A
packet can be considered as a continuous, serial stream of binary data (ones and
zeros). The 16-bit checksum is obtained by multiplying the serial data stream by 216
(10000000000000000) and then dividing it by the generator polynomial

Related product manuals