Reading data at 10 Khz rate

Okay,

So for the sake of the exercise then :slight_smile:

Can I ask why have you commented out the block at the start of case PRE_0: ? Without it surely if you start out of sync there's no way it can recover, so it could read the entire stream without ever discovering a valid preamble therefore will never find you any data.

Geoff