CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

RS485 vs LIN

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
vijay s



Joined: 20 Oct 2007
Posts: 17
Location: coimbatore,india

View user's profile Send private message Send e-mail Yahoo Messenger

RS485 vs LIN
PostPosted: Fri Nov 28, 2008 12:31 am     Reply with quote

hello friends
what is the difference between RS485 and LIN..both using UART and the function also looks similliar... can anybody clear this doubt
_________________
with regards
vijay s
Ttelmah
Guest







PostPosted: Fri Nov 28, 2008 3:35 am     Reply with quote

'RS485', is a _signalling standard only_. In itself, it defines nothing about 'what' is sent, just the voltages and drives used to send/receive the data. This is like RS232, which is also just a signalling standard, but is cmonly 'misused' to refer to simple async comms. Hence the CCS code, has a '#USE RS232' instruction, yet the PICs can't actually generate 'RS232'...
Yu can then have different 'protocols', _using_ RS485 signalling. So (for example), Profibus.
RS485, uses differential signalling, and is quite a robust signalling standard. Easily handling links over many hundreds of feet.
Depending on the protocols chosen, RS485, can support multi-master operation. By 'default', most links using RS485, use simple async operation, but with two more wires, you can of course use RS485, for fully sync data transmission.
LIN bus, is a complete 'bus specification', including both signalling standards, _and_ the data fomats involved. LIN, uses 12v signalling, but only single wire. The former 'improves' the reliability in noisy environments, while the latter is less good in this regard. Reception, is done on the assumption that the slave will synchronise itself to the transferred data, potentially removing the need for a crystal at the slave device. It is harder to generate LIN, using the standard UART. The actual data sent,is 'easy', but you need to add a 13bit 'sync' header in front of the transmitted data to provide the clock information. Reception is also harder, since again the PIC can receive the main data, but the 13bit header really needs external hardware, and to work properly a PLL, to synchronise the PICs clock to this frequency. However if only talking to 'off the shelf' slave devices, this doesn't have to be handled by the PIC, and the transmission end can be done by a simple delay loop.
LIN, is a 'synchronised' bus, as opposed to a 'synchronous' bus. Timing is sent once at the start of each communication.

Best Wishes
vijay s



Joined: 20 Oct 2007
Posts: 17
Location: coimbatore,india

View user's profile Send private message Send e-mail Yahoo Messenger

LIN doubts
PostPosted: Mon Dec 01, 2008 8:04 am     Reply with quote

hey
What is diagnostic message in LIN ? Is NAD mandatory for unconditional frame or the master can request any slaves with PID ?
reply please
_________________
with regards
vijay s
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group