electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

RS 485 and microcontroller


Post new topic  Reply to topic    EDAboard.com Forum Index -> Professional Hardware and Electronics Design -> RS 485 and microcontroller
Author Message
movie_freak



Joined: 20 Mar 2007
Posts: 81
Helped: 2


Post31 Oct 2009 6:47   

RS 485 and microcontroller


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
Back to top
bobcat1



Joined: 10 Jul 2002
Posts: 1118
Helped: 48


Post31 Oct 2009 14:57   

Re: RS 485 and microcontroller


HI

you need to configure you network in star configuration - 1 master and many slaves

You don't need full duplex communication if the slave is only going to answer when master allow him to do so

Protocol is need needed in star configuration

All the best

Bobi

The microcontroller specialist
Back to top
Google
AdSense
Google Adsense




Post31 Oct 2009 14:57   

Ads




Back to top
planet69



Joined: 27 Jul 2006
Posts: 44
Helped: 1


Post02 Nov 2009 2:06   

Re: RS 485 and microcontroller


you can't do a full duplex with RS485.
those chips only allows 'one-way' traffic...something like a walkie-talkie.
Back to top
movie_freak



Joined: 20 Mar 2007
Posts: 81
Helped: 2


Post13 Nov 2009 16:10   

Re: RS 485 and microcontroller


I was actually looking for some kind of an approach or a way of doing this.. Idea
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Professional Hardware and Electronics Design -> RS 485 and microcontroller
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Communication Problem:: RS-485 (MASTER) and RS-485(SLAVES) (11)
RS-485 connection with microcontroller (4)
circuit for RS-485 connection with microcontroller (5)
Rs-422 and 485 (8)
Pic And RS-485 (2)
RS 485 shielding and grunding (4)
rs 485 library and help!! (3)
Compatibilities between RS-485 and RS-422 (14)
RS-485 (1)
RS 485 (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS