JBUS protocol (continued)

Example of CRC computation

CRC register initialization

Shift 1

1111

1111

1111

1111

 

 

 

 

 

of 1st character

 

 

 

0000

0010

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1111

1111

1111

1101

 

 

 

 

 

 

 

 

 

 

Shift 1

0111

1111

1111

1110

1

Set flag to 1,

 

 

 

polynomial

 

1010

0000

0000

0001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1101

1111

1111

1111

 

Set flag to 1,

 

 

 

 

Shift 2

0110

1111

1111

1111

1

 

 

 

polynomial

 

1010

 

 

0001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1100

1111

1111

1110

 

 

 

 

 

 

 

 

 

 

Shift 3

0110

0111

1111

1111

0

Set flag to 0

 

 

 

 

Shift 4

0011

0011

1111

1111

1

 

 

 

 

 

 

 

 

 

 

101

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1001

0011

1111

1110

 

 

 

 

 

 

 

 

 

 

Shift 5

0100

1001

1111

1111

0

 

 

 

 

 

 

 

 

 

Shift 6

0010

0100

1111

1111

1

 

 

 

 

 

 

 

 

 

 

101

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1000

0100

1111

1110

 

 

 

 

 

 

 

 

 

 

Shift 7

0100

0010

0111

1111

0

 

 

 

 

 

 

 

 

 

Shift 8

0010

0001

0011

1111

1

 

 

 

 

 

 

 

 

 

 

101

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1000

0001

0011

1110

 

 

 

 

 

2nd character

 

 

 

0000

0111

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1000

0001

0011

1001

 

 

 

 

 

 

 

 

 

 

Shift 1

0100

0000

1001

1101

1

 

 

 

 

 

 

 

 

 

 

101

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1110

0000

1001

1101

 

 

 

 

 

 

 

 

 

 

Shift 2

0111

0000

0100

1110

1

 

 

 

 

 

 

 

 

 

 

101

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1101

0000

0100

1111

 

 

 

 

 

 

 

 

 

 

Shift 3

0110

1000

0010

0111

1

 

 

 

 

 

 

 

 

 

 

101

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1100

1000

0010

0110

 

 

 

 

 

 

 

 

 

 

Shift 4

0110

0100

0001

0011

0

 

 

 

 

 

 

 

 

 

Shift 5

0011

0010

0000

1001

1

 

 

 

 

 

 

 

 

 

 

101

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1001

0010

0000

1000

 

 

 

 

 

 

 

 

 

 

Shift 6

0100

1001

0000

0100

0

 

 

 

 

 

 

 

 

 

Shift 7

0010

0100

1000

0010

0

 

 

 

 

 

 

 

 

 

Shift 8

0001

0010

0100

0001

0

 

 

 

 

 

 

 

 

 

 

byte

byte

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6739389EN/FB - Page 15

Page 15
Image 15
APC 6000 user manual Example of CRC computation