movie_freak
Member level 5
- Joined
- Mar 20, 2007
- Messages
- 89
- Helped
- 2
- Reputation
- 4
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,943
Hi,
I want to interface RS 485 with a microcontroller, its ok with the hardware part, I am going to use a ISO3088 isolated 485 chip from TI. I'll connect one of my uart to its input from the controller which would be master...... now from its output i want to connect some slaves. I know that max slaves possible = 32 and would also depend on the communication cable length. I want help regarding the software side logic.
My requirement is Full duplex but it should be able to send data from master whenever needed and slave will only reply when master queries them.
I am thinking to implement in this way:
I'll make packets with header and payload(data). The header would contain information about the data like slave address, checksum, whether it is data to be accepted or it is a query command
I wanna know is this way of doing it is correct? or there is any better way?
Many Thanks,
Regards,
Surya
I want to interface RS 485 with a microcontroller, its ok with the hardware part, I am going to use a ISO3088 isolated 485 chip from TI. I'll connect one of my uart to its input from the controller which would be master...... now from its output i want to connect some slaves. I know that max slaves possible = 32 and would also depend on the communication cable length. I want help regarding the software side logic.
My requirement is Full duplex but it should be able to send data from master whenever needed and slave will only reply when master queries them.
I am thinking to implement in this way:
I'll make packets with header and payload(data). The header would contain information about the data like slave address, checksum, whether it is data to be accepted or it is a query command
I wanna know is this way of doing it is correct? or there is any better way?
Many Thanks,
Regards,
Surya