Hi guys I should not start this new thread but problem is differentIn my previous post i asked about reading data at 10 khz and with everybody help(especially Mr. Graynomad hats off to you!) we are able to solve itBut in the code we are using state machine to check the header("CAAC1F") but if i put any serial print inside those state it does not respond it keep on stuck on first state and also when we put some special character the behavior of the port changes(some time the port transmits and some times it does not arbitrarily )

Could it be that the time taken to do these additional steps takes you out of sync with your data stream? Perhaps some status LEDs would give you some debugging information without detracting too much from the speed of your routine? The only issue of course is at that speed you're not going to see too much, but you might turn it on and off as you successfully interpret each preamble string?

Geoff

"There is no problem so bad you can't make it worse" - retired astronaut Chris Hadfield