PDA

View Full Version : SERIN2 that can recognise a frame error



timmers
- 23rd September 2008, 23:57
If a SERIN2 command is executed and the input pin is held low for any reason, then the PBP routine will not time out and hang, even if a time out is specified, until the pin returns high.

Under hardware use a frame error (FERR) would be flagged.

So could the SERIN or SERIN2 timeout if a framing error is detected?

- Please please please!

Tim.

mackrackit
- 24th September 2008, 01:05
So could the SERIN or SERIN2 timeout if a framing error is detected?
Yes, if the cause of the error is the wrong baud rate, parity or the first data bit.
If the cause is after that, then the SERIN/2 commands will happily receive the rest of the packet, so if the error is "mid stream" some sort of post error checking is needed.