07-19-2006 09:58 AM
07-20-2006 07:51 PM
You will not be able to read the start/stop bit the same way as you read the data. Those bits along with the parity bit are handled at the hardware transceiver level and never make it to the driver. The driver only knows if the data is good or bad with the way you set it to do so (parity, etc).
RS-485 transcievers use edge triggering to detect the start bit and oversampling to align the framing of the bits. Around 10 samples are taken for each bit, so it is typically quite a bit more that a single sample at the midpoint of the bit.
I hope this helps, but let me know if you have any questions!