electromanj
11-07-2010, 02:18 AM
Hello all!
I have a question about start and stop bits in a serial protocal. Modbus RTU.
The "telegram" I need to send is....
HEX 01_03_3F_01_00_01_D9_DE
The info that I have states that each byte should be 11 bits. 1 start bit, 8 data bits, and two stop bits, no parity. From what I've read the rx line of the device I'm sending to is idle high, and I'm guessing that my start bit needs to be a 0 and the stop bits need to be a 1.
Does this look even close to correct or am I way off?
vfd.tx (%0$01%1_1_0$03%1_1_0$3F%1_1_0$01%1_1_0$00%1_1_0$0 1%1_1_0$D9%1_1_0$DE%1_1)
'b^h--bs s ^h--bs s ^h--bs s ^h--bs s ^h--bs s ^h--bs s ^h--bs s ^h--bs s
' b = binary indicator
'^ = start bit
' h = hex indicator
' -- = hex byte
' s = stop bitThanks in advance.
Thanks in advance.
I have a question about start and stop bits in a serial protocal. Modbus RTU.
The "telegram" I need to send is....
HEX 01_03_3F_01_00_01_D9_DE
The info that I have states that each byte should be 11 bits. 1 start bit, 8 data bits, and two stop bits, no parity. From what I've read the rx line of the device I'm sending to is idle high, and I'm guessing that my start bit needs to be a 0 and the stop bits need to be a 1.
Does this look even close to correct or am I way off?
vfd.tx (%0$01%1_1_0$03%1_1_0$3F%1_1_0$01%1_1_0$00%1_1_0$0 1%1_1_0$D9%1_1_0$DE%1_1)
'b^h--bs s ^h--bs s ^h--bs s ^h--bs s ^h--bs s ^h--bs s ^h--bs s ^h--bs s
' b = binary indicator
'^ = start bit
' h = hex indicator
' -- = hex byte
' s = stop bitThanks in advance.
Thanks in advance.