UART and Modbus....

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use atmega16 and its UART for communication with other device....
Now, I have one sensor which has output configuration as below:
Digital Output : Serial (9600 baud UART)
Electrical Interface: RS485 / RS232
Protocols Supported : Modbus
Start, Stop bits: 1,1

My question is if I configure UART of atmega16 to same specification as above, can I communicate with same function like I mean same register for uart to check there is byte and read it?

I am little confused!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Protocols Supported : Modbus
Your answer lies in the above statement. Do you know what it is? If not start Googling.

Does you M16 board have RS485?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
Quote:
Protocols Supported : Modbus
Your answer lies in the above statement. Do you know what it is? If not start Googling.

Does you M16 board have RS485?

Ya, I have googled about the Modbus protocol, but my question intended to those who might have tried or implemented the modbus protocol on avr controller... :wink:
No, my board doesn't have rs485..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
my board doesn't have rs485..
So that's the first thing you need to do. Then do a search here for Modbus as it has been implemented on AVRs and the question comes up regularly. 291 matches come up.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly