start/stop bit ????
electromanj
Posts: 270
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?
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$01%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.
Comments
Where L is -3 to -15V (1) and H is +3 to + 15V (0), in binary 10000000100
Any hex or 8 bit character would be LxxxxxxxxHH, where the x represents the individual 8 bits.
The output from an RS232 driver is inverted, the idle state is 1 (mark) and serial data is sent LSB first. So the output from an RS232 driver for a HEX 01 would be
I forgot to mention that I will be using a TTL to RS485 Converter. (SerialComm TTL-485-5P).