| Author |
Message |
predrage
Joined: 23 Jul 2005 Posts: 132 Helped: 5
|
28 Jan 2008 19:30 1-Wire cable length |
|
|
|
|
| Hi. I am doing some project with iButton and PIC. I would like to ask you what is maximum cable length between iButton and PIC and which type of cable should I use. I am a little afraid of EMI because a long cables should be connected directly to several pins of PIC. What is yours experiences?
|
|
| Back to top |
|
 |
Google AdSense

|
28 Jan 2008 19:30 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
FvM
Joined: 22 Jan 2008 Posts: 5161 Helped: 767 Location: Bochum, Germany
|
28 Jan 2008 19:48 Re: 1-Wire cable length |
|
|
|
|
Hello,
I think, unshielded twisted pair should be o.k. for most applications. E. g. Conica-Minolta uses it inside photocopier/printer to access toner id-chips, could be 1 m cable length for each chip, several connected in parallel at controller board.
I remember, the topic is also widely discussed in some Dallas application notes.
Regards,
Frank
|
|
| Back to top |
|
 |
predrage
Joined: 23 Jul 2005 Posts: 132 Helped: 5
|
28 Jan 2008 20:09 Re: 1-Wire cable length |
|
|
|
|
| FvM wrote: |
Hello,
I think, unshielded twisted pair should be o.k. for most applications. E. g. Conica-Minolta uses it inside photocopier/printer to access toner id-chips, could be 1 m cable length for each chip, several connected in parallel at controller board.
I remember, the topic is also widely discussed in some Dallas application notes.
Regards,
Frank |
Cable length that my application required is approximately 15m in noisy enviroment (mostly fluo lamps). Can you point me to that application note. I skimed through some today and didn't find anything useful.
|
|
| Back to top |
|
 |
FvM
Joined: 22 Jan 2008 Posts: 5161 Helped: 767 Location: Bochum, Germany
|
28 Jan 2008 20:26 Re: 1-Wire cable length |
|
|
|
|
Hello,
in AN244 "Advanced 1-Wire Network Driver" cable length up to 100 m is discussed. Noise immunity of 1-Wire-Protocol is said to be based on integrity checking and retranmission when necessary, see app159 "Ultra-Reliable 1-Wire Communication". To my opinion, If the fluorescent lamps aren't switched on and off permanently, you have a good chance of succesful transmission after one or two retries at maximum.
Regards,
Frank
|
|
| Back to top |
|
 |
predrage
Joined: 23 Jul 2005 Posts: 132 Helped: 5
|
29 Jan 2008 11:36 Re: 1-Wire cable length |
|
|
|
|
| FvM wrote: |
Hello,
in AN244 "Advanced 1-Wire Network Driver" cable length up to 100 m is discussed. Noise immunity of 1-Wire-Protocol is said to be based on integrity checking and retranmission when necessary, see app159 "Ultra-Reliable 1-Wire Communication". To my opinion, If the fluorescent lamps aren't switched on and off permanently, you have a good chance of succesful transmission after one or two retries at maximum.
Regards,
Frank |
I am reading iButton often is possible and I'm doing crc check. Thats not a problem. I am consider of eventual strange behaviour of PIC (reset, buging...)
|
|
| Back to top |
|
 |
FvM
Joined: 22 Jan 2008 Posts: 5161 Helped: 767 Location: Bochum, Germany
|
29 Jan 2008 13:07 Re: 1-Wire cable length |
|
|
|
|
Hello,
yes, the PIC interface should be mainly protected against voltage transients, that could probably damage it. Also high frequency interferences should be supressed. I think, that the "Advanced 1-Wire Network Driver" circuit is a good starting point. To suppress interferences, a common mode filter could be meaningful.
Regards,
Frank
|
|
| Back to top |
|
 |
zolciak
Joined: 29 Jan 2008 Posts: 1
|
29 Jan 2008 14:27 1-Wire cable length |
|
|
|
|
hello,
max 10m for ds18b20
|
|
| Back to top |
|
 |
FvM
Joined: 22 Jan 2008 Posts: 5161 Helped: 767 Location: Bochum, Germany
|
29 Jan 2008 15:44 Re: 1-Wire cable length |
|
|
|
|
| Quote: |
| max 10m for ds18b20 |
Where did you get this from - not from Maxim-Dallas, I think.
|
|
| Back to top |
|
 |