10-12-2007 02:01 PM
10-12-2007 02:14 PM
10-12-2007 03:28 PM
Matthew,
Thanks for your help. I have not try the time-out event yet but creating empty event for the controls eliminated the problem with the event structure.
As for the number of Stop Bits with Even Parity issue, I'm still searching for a reason.
TT
10-16-2007 12:10 PM
10-16-2007 12:42 PM
Hi Can,
I am aware of the modbus requirements. The thing I observed is that the number of Stop Bits is irrelevant. As long as you have other serial parameters setup correctly, different number of Stop Bits doesn't matter. My thinking was that the UART will need to see Start Bit, Data Bits, and Stop Bit to recognize and decode a character. Whether 1, 1.5, or 2 Stop Bits, it is just the idle time before the next Start Bit of the next character frame. If the idle time is less than 3.5 character times, it is not the end of the message and communication is still normal. The purpose of Modbus requirement of 2 Stop Bits in No Parity mode is to make sure there is enough idle time between character frames; if necessary, the host master will have enough idle time to perform other function before processing the next character. Thanks.
TT
10-18-2007 11:43 AM