Exercise 1

Referring to the above trace, the bits are 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1.  Remember, the last (33rd) pulse is the stop bit at the beginning of the trailer.

Next, check that the Custom Code (first 8 bits) and Custom Code (second 8 bits) are complementary and reverse the order of the 8 bits and convert to hex:
Custom Code = 0, 1, 0, 0, 0, 1, 0, 1  =  1, 0, 1, 0, 0, 0, 1, 0 = A2
Custom Code = 1, 0, 1, 1, 1, 0, 1, 0

Next, check that the Data Code (third 8 bits) and Data Code (fourth 8 bits) are complementary and reverse the order of the 8 bits and convert to hex:
Data Code     = 0, 1, 1, 0, 1, 0, 0, 0  =  0, 0, 0, 1, 0, 1, 1, 0 = 16 = Stop (from the table A216 is Stop)
Data Code     = 1, 0, 0, 1, 0, 1, 1, 1