Define a bit pattern to search for.
Read the bits the same way a UART reads bits.
Once you have a match then inject a bit that shouldn't be there.
Is this a student project? If so, are you allowed to submit code written by other people?
Define a bit pattern to search for.
Read the bits the same way a UART reads bits.
Once you have a match then inject a bit that shouldn't be there.
Is this a student project? If so, are you allowed to submit code written by other people?