Framing Code
This
framing code takes in an input data stream and adds a frame bit at the beginning, of every frame, then outputs the data stream. It is currently set to frame data according to DS1 S193 framing format. However, by changing the following constants in the code, one can change the framing format used:
This program should be able to frame for all formats that involve frames of data with a frame bit followed by a constant number of data bits.