first working bit detector state machine. Missing frame receiver state machine
first working receiver state machine with timeout