Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

UART and MODBUS

Status
Not open for further replies.

tkvenki

New Member
Hi,

I have a question.

I'm using UART of my controller for MOdbus communication.
UART means it will have 1 start bit. 8 data bits. 1 partiy and 1 stop bit.

But THe protocol i implement is having different format.(Modbus).

Is what i'm doing is proper??

Please guide me.
 
tkvenki said:
Hi,

I have a question.

I'm using UART of my controller for MOdbus communication.
UART means it will have 1 start bit. 8 data bits. 1 partiy and 1 stop bit.

But THe protocol i implement is having different format.(Modbus).

Is what i'm doing is proper??

Please guide me.

See Modbus interface tutorial
Most UARTs can be set for the number of stop bits and parity type.
What processor are you using ?
Are you using MODBUS RTU or MODBUS ASCII ?
You told us what you have (1-8-1-1) but not what you need ?
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top