If you use 4-wrie RS-485 you can do full-duplex. With 2-wire RS485 transceivers you have to use half-duplex because you can only have one transmitter at a time. Half-duplex can be done with RS-232, but it is harder and usually not worth the effort.Like in i2c communication multiple slave devices can be connected to i2c bus, can UART do the same ?
I don't think multiple slaves can be contacted to UART bus. because it will be difficult to identify each slave in uart communication.
RS233
Ignore the start and stop bits. They are not included in the parity checkUART fram with even parity, 8 bits, 1 start and 1 stop bits
0 0001001 1 1
Number of 1s in data bits is 2 even number, no error in sequence
0 0101001 1 1
Number of 1s in data bits is 3 odd number, error in sequence
Do both of my examples define parity ?
Edit : typo corrected
I missed the part of ignoring the start and stop bits. I just did so automatically out of practice. But it is an important part of the algorithm.Ignore the start and stop bits. They are not included in the parity check
8-bit data + even parity
00010011 + 1 = correct parity
01010011 + 0 = correct parity
01010011 + 1 = parity error
There are various means of identifying different slaves.Would you @MrChips please visit the old post #18 and #20.
How do you communicate with different slaves on the same bus?
Can multiple slaves be connected in same bus with rs232 interface also ?
You have mentioned modbus that means you have deep knowledge of it so I want to ask you some questions which can clear my confusion.I have done this in Modbus, the first word contains the slave address/number.
It is found on google that VFD is used to control the speed of the AC motor.Yes. I use these devices for communicating with VFD's that have Modbus control.
There is quite a lot of information on line dealing with Modbus.