Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #542773 > unrolled thread

I2C cable

Started byWinfield Hill <hill@rowland.harvard.edu>
First post2019-05-10 07:09 -0700
Last post2019-05-11 14:36 +0000
Articles 20 on this page of 47 — 15 participants

Back to article view | Back to sci.electronics.design


Contents

  I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-10 07:09 -0700
    Re:I2C cable Martin Rid <martin_riddle@verison.net> - 2019-05-10 10:25 -0400
      Re:I2C cable Martin Rid <martin_riddle@verison.net> - 2019-05-10 10:31 -0400
    Re: I2C cable "Tim Williams" <tiwill@seventransistorlabs.com> - 2019-05-10 10:16 -0500
      Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-10 09:02 -0700
        Re: I2C cable jrwalliker@gmail.com - 2019-05-10 10:13 -0700
          Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-10 10:50 -0700
            Re: I2C cable Steve Wilson <no@spam.com> - 2019-05-10 18:33 +0000
            Re: I2C cable upsidedown@downunder.com - 2019-05-10 23:21 +0300
              Re: I2C cable jrwalliker@gmail.com - 2019-05-10 14:22 -0700
                Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-10 15:00 -0700
                  Re: I2C cable Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-05-11 06:01 -0700
                    Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-11 07:04 -0700
                      Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-11 14:23 -0700
                        Re: I2C cable Rick C <gnuarm.deletethisbit@gmail.com> - 2019-05-11 15:02 -0700
                          Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-11 15:18 -0700
                            Re: I2C cable Rick C <gnuarm.deletethisbit@gmail.com> - 2019-05-11 15:43 -0700
                            Re: I2C cable upsidedown@downunder.com - 2019-05-12 10:34 +0300
                              Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-12 01:44 -0700
                              Re: I2C cable Simon S Aysdie <gwhite@ti.com> - 2019-05-14 11:29 -0700
                        Re: I2C cable Clifford Heath <no.spam@please.net> - 2019-05-12 11:19 +1000
                          Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-11 19:13 -0700
                            Re: I2C cable Clifford Heath <no.spam@please.net> - 2019-05-12 12:51 +1000
                            Re: I2C cable Rick C <gnuarm.deletethisbit@gmail.com> - 2019-05-11 20:14 -0700
                            Re: I2C cable Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-05-12 07:10 +0000
                              Re: I2C cable Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-05-12 07:16 +0000
                                Re: I2C cable Clifford Heath <no.spam@please.net> - 2019-05-12 19:38 +1000
                                  Re: I2C cable Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-05-12 12:10 +0000
                                    Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-12 06:20 -0700
                                      Re: I2C cable Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-05-12 14:05 +0000
                                        Re: I2C cable makolber@yahoo.com - 2019-05-13 10:20 -0700
                Re: I2C cable upsidedown@downunder.com - 2019-05-11 10:22 +0300
              Re: I2C cable "Tim Williams" <tiwill@seventransistorlabs.com> - 2019-05-10 17:22 -0500
                Re: I2C cable Rick C <gnuarm.deletethisbit@gmail.com> - 2019-05-10 15:32 -0700
                  Re: I2C cable "Tim Williams" <tiwill@seventransistorlabs.com> - 2019-05-11 02:11 -0500
                    Re: I2C cable Rick C <gnuarm.deletethisbit@gmail.com> - 2019-05-11 07:57 -0700
                Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-10 15:33 -0700
                  Re: I2C cable Rick C <gnuarm.deletethisbit@gmail.com> - 2019-05-10 17:10 -0700
      Re: I2C cable John S <Sophi.2@invalid.org> - 2019-05-10 17:03 -0500
    Re: I2C cable Jasen Betts <jasen@xnet.co.nz> - 2019-05-11 05:25 +0000
      Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-11 05:08 -0700
        Re: I2C cable Martin Riddle <martin_ridd@verizon.net> - 2019-05-11 13:55 -0400
          Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-12 06:11 -0700
            Re: I2C cable Rick C <gnuarm.deletethisbit@gmail.com> - 2019-05-12 08:28 -0700
              Re: I2C cable "Tim Williams" <tiwill@seventransistorlabs.com> - 2019-05-13 18:07 -0500
                Re: I2C cable Winfield Hill <hill@rowland.harvard.edu> - 2019-05-14 02:19 -0700
    Re: I2C cable Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-05-11 14:36 +0000

Page 1 of 3  [1] 2 3  Next page →


#542773 — I2C cable

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-10 07:09 -0700
SubjectI2C cable
Message-ID<qb40m902842@drn.newsguy.com>
We need a 1-meter length of 100kHz (or slower) 
I2C onnection.  It'd be nice to use a pre-made
cable: micro-USB, 4-wire RJ11, or RJ45 ethernet.
Some considerations: SCL and SDA crosstalk(?),
high ground capacitance.  Also need 3.3V, Gnd.

Micro-USB: SCL and SDA twisted together, bad?  
RJ11: flat, SCL and SDA on outside lines?
RJ45: SCL and SDA shielded from each other.


-- 
 Thanks,
    - Win

[toc] | [next] | [standalone]


#542775

FromMartin Rid <martin_riddle@verison.net>
Date2019-05-10 10:25 -0400
Message-ID<qb41l4$97i$1@dont-email.me>
In reply to#542773
Winfield Hill <hill@rowland.harvard.edu> Wrote in message:
> We need a 1-meter length of 100kHz (or slower) I2C onnection.  It'd be nice to use a pre-madecable: micro-USB, 4-wire RJ11, or RJ45 ethernet.Some considerations: SCL and SDA crosstalk(?),high ground capacitance.  Also need 3.3V, Gnd.Micro-USB: SCL and SDA twisted together, bad?  RJ11: flat, SCL and SDA on outside lines?RJ45: SCL and SDA shielded from each other.--  Thanks,    - Win


- 
400pf. Max @100khz . Cat5 should work.   There are bus extenders too.

Cheers


----Android NewsGroup Reader----
http://usenet.sinaapp.com/

[toc] | [prev] | [next] | [standalone]


#542776

FromMartin Rid <martin_riddle@verison.net>
Date2019-05-10 10:31 -0400
Message-ID<qb41vt$b6b$1@dont-email.me>
In reply to#542775
Martin Rid <martin_riddle@verison.net> Wrote in message:
> Winfield Hill <hill@rowland.harvard.edu> Wrote in message:> We need a 1-meter length of 100kHz (or slower) I2C onnection.  It'd be nice to use a pre-madecable: micro-USB, 4-wire RJ11, or RJ45 ethernet.Some considerations: SCL and SDA crosstalk(?),high ground capacitance.  Also need 3.3V, Gnd.Micro-USB: SCL and SDA twisted together, bad?  RJ11: flat, SCL and SDA on outside lines?RJ45: SCL and SDA shielded from each other.--  Thanks,    - Win- 400pf. Max @100khz . Cat5 should work.   There are bus extenders too.Cheers----Android NewsGroup Reader----http://usenet.sinaapp.com/

https://www.i2c-bus.org/specification/
-- 


----Android NewsGroup Reader----
http://usenet.sinaapp.com/

[toc] | [prev] | [next] | [standalone]


#542783

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2019-05-10 10:16 -0500
Message-ID<qb44ki$r6l$1@dont-email.me>
In reply to#542773
Just for lab use?  Or is this part of the flex or beehive question from 
earlier?

I'd be loathe to suggest anything not shielded at least in some rudimentary 
way.  There are lots of styles of flat or round multiconductor cable that 
would do, and then a regular header will do on the end, or modular 
connectors if you like those.

Incidentally, any idea if PVC (outgassing, plasticizers, chewing?) 
compatible with bees?  How about electric fields?

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Design
Website: https://www.seventransistorlabs.com/

"Winfield Hill" <hill@rowland.harvard.edu> wrote in message 
news:qb40m902842@drn.newsguy.com...
> We need a 1-meter length of 100kHz (or slower)
> I2C onnection.  It'd be nice to use a pre-made
> cable: micro-USB, 4-wire RJ11, or RJ45 ethernet.
> Some considerations: SCL and SDA crosstalk(?),
> high ground capacitance.  Also need 3.3V, Gnd.
>
> Micro-USB: SCL and SDA twisted together, bad?
> RJ11: flat, SCL and SDA on outside lines?
> RJ45: SCL and SDA shielded from each other.
>
>
> -- 
> Thanks,
>    - Win 

[toc] | [prev] | [next] | [standalone]


#542787

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-10 09:02 -0700
Message-ID<qb47b102k4p@drn.newsguy.com>
In reply to#542783
Tim Williams wrote...
>
> Just for lab use?  Or is this part of the flex
> or beehive question from earlier?

 This goes from the little PCB located on the
 outside of the beehive, mating to the flex.

> I'd be loathe to suggest anything not shielded
> at least in some rudimentary way.  There are
> lots of styles of flat or round multiconductor
> cable that would do, and then a regular header
> will do on the end, or modular connectors if
> you like those.

 Well, a nice thing about a CAT5 connector is,
 readily available in many lengths.  I'm adding
 a Harting RJ45 jack to the PCB now.

> Incidentally, any idea if PVC (outgassing,
> plasticizers, chewing?) compatible with bees?
> How about electric fields?

 Bees are robust, maybe, but hive operators stick
 to natural materials = wood.  Near the end of the
 season, the environment in the hive can get pretty
 nasty.  That's why I'm adding gas sensors. 
 But dunno what we'll find.  Maybe nothing.

https://www.dropbox.com/sh/w1xbcwovma602he/AADzRhQgieifJ9z1FoSscDrHa?dl=0


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#542799

Fromjrwalliker@gmail.com
Date2019-05-10 10:13 -0700
Message-ID<22140be9-3ae9-4913-9dfe-ad5635536836@googlegroups.com>
In reply to#542787
On Friday, 10 May 2019 17:03:04 UTC+1, Winfield Hill  wrote:

>  Well, a nice thing about a CAT5 connector is,
>  readily available in many lengths.  I'm adding
>  a Harting RJ45 jack to the PCB now.

RJ11 connectors work nicely for i2c in conjunction with the following
four-core flat cable: Farnell 130-2745
which has a pvc outer sheath and polypropylene insulated conductors.
I have used this combination in production with cable lengths of 7m.

For such lengths it is important to follow the more recent NXP
recommendations:
Power and ground in the middle, sda and sclk on the outside. In most
systems the largest source of interference is from the adjacent signal
transitions.
Power and ground decoupled to each other at each end of the cable.

Many devices can be daisy chained, but keep them in a continuous
line without branches to form a constant impedance transmission line.
Consider some gentle RC damping at the controller end to minimise
reflections.  Treating the bus as a transmission line really does 
have benefits.
More info later...
John
 
 

[toc] | [prev] | [next] | [standalone]


#542800

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-10 10:50 -0700
Message-ID<qb4dm102ssc@drn.newsguy.com>
In reply to#542799
jrwalliker@gmail.com wrote...
>
> On Friday, 10 May 2019, Winfield Hill wrote:
>
>>  Well, a nice thing about a CAT5 connector is,
>>  readily available in many lengths.  I'm adding
>>  a Harting RJ45 jack to the PCB now.
>
>RJ11 connectors work nicely for i2c in conjunction with the following
>four-core flat cable: Farnell 130-2745
>which has a pvc outer sheath and polypropylene insulated conductors.
>I have used this combination in production with cable lengths of 7m.
>
>For such lengths it is important to follow the more recent NXP
>recommendations:
>Power and ground in the middle, sda and sclk on the outside. In most
>systems the largest source of interference is from the adjacent signal
>transitions.
>Power and ground decoupled to each other at each end of the cable.
>
>Many devices can be daisy chained, but keep them in a continuous
>line without branches to form a constant impedance transmission line.
>Consider some gentle RC damping at the controller end to minimise
>reflections.  Treating the bus as a transmission line really does 
>have benefits.
>More info later...
>John

 OK, John, yes, crosstalk is the big concern.  And, hey,
 CAT5 is UTP, unshielded twisted-pair, not shielded.


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#542804

FromSteve Wilson <no@spam.com>
Date2019-05-10 18:33 +0000
Message-ID<XnsAA4B942A2E2BEidtokenpost@69.16.179.22>
In reply to#542800
Winfield Hill <hill@rowland.harvard.edu> wrote:

>  OK, John, yes, crosstalk is the big concern.  And, hey,
>  CAT5 is UTP, unshielded twisted-pair, not shielded.

SHIELDED CABLE (STP) vs UNSHIELDED CABLE (UTP)

Cat 5E cables are most commonly utilized with unshielded twisted pairs (UTP). 
However, environments with large motors, generators, and certain types of 
high-voltage lighting are major sources of Electromagnetic and Radio 
Frequency Interference (EMI/RFI). In these applications, shielded twisted 
pair (STP) cable will help protect data signals when connected properly

https://www.warehousecables.com/landing/cat5-shielded-cable.php

Many other examples on google

[toc] | [prev] | [next] | [standalone]


#542816

Fromupsidedown@downunder.com
Date2019-05-10 23:21 +0300
Message-ID<bsmbded0mhgetsajtjm98k93vn8n6suj3a@4ax.com>
In reply to#542800
On 10 May 2019 10:50:57 -0700, Winfield Hill
<hill@rowland.harvard.edu> wrote:

>jrwalliker@gmail.com wrote...
>>
>> On Friday, 10 May 2019, Winfield Hill wrote:
>>
>>>  Well, a nice thing about a CAT5 connector is,
>>>  readily available in many lengths.  I'm adding
>>>  a Harting RJ45 jack to the PCB now.
>>
>>RJ11 connectors work nicely for i2c in conjunction with the following
>>four-core flat cable: Farnell 130-2745
>>which has a pvc outer sheath and polypropylene insulated conductors.
>>I have used this combination in production with cable lengths of 7m.
>>
>>For such lengths it is important to follow the more recent NXP
>>recommendations:
>>Power and ground in the middle, sda and sclk on the outside. In most
>>systems the largest source of interference is from the adjacent signal
>>transitions.
>>Power and ground decoupled to each other at each end of the cable.
>>
>>Many devices can be daisy chained, but keep them in a continuous
>>line without branches to form a constant impedance transmission line.
>>Consider some gentle RC damping at the controller end to minimise
>>reflections.  Treating the bus as a transmission line really does 
>>have benefits.
>>More info later...
>>John
>
> OK, John, yes, crosstalk is the big concern.  And, hey,
> CAT5 is UTP, unshielded twisted-pair, not shielded.

Why do you need shielding ?

Put clock in one twisted pair, data in an other pair and Vdd/Gnd in
the third pair. 

If only two pairs available, use the non-active members of each pair
for Vdd resp. Gnd. Use heavy AC decoupling between these non-active
pair members.

After all, 100 kHz is a quite low frequency.

[toc] | [prev] | [next] | [standalone]


#542819

Fromjrwalliker@gmail.com
Date2019-05-10 14:22 -0700
Message-ID<5bad9b9f-be37-4f12-8549-09ad320c34f6@googlegroups.com>
In reply to#542816
On Friday, 10 May 2019 21:21:07 UTC+1, upsid...@downunder.com  wrote:

> After all, 100 kHz is a quite low frequency.

But the falling edges can be fast enough for transmission line
effects to be important when the cable is a few metres long.
Double clocking due to reflections makes a mess of i2c.

Using the lowest possible pullup resistors or using active pullup
that approximates to a constant current clamped at Vcc can help with
noise immunity in the high state.

John
  

[toc] | [prev] | [next] | [standalone]


#542821

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-10 15:00 -0700
Message-ID<qb4s9d0f9g@drn.newsguy.com>
In reply to#542819
jrwalliker@gmail.com wrote...
> 
> On Friday, 10 May 2019, upsid...@downunder.com  wrote:
>
>> After all, 100 kHz is a quite low frequency.
>
> But the falling edges can be fast enough for transmission line
> effects to be important when the cable is a few metres long.
> Double clocking due to reflections makes a mess of i2c.
>
> Using the lowest possible pullup resistors or using active
> pullup that approximates to a constant current clamped at
> Vcc can help with noise immunity in the high state.

 Right, John.  Fast falling edges are worrisome.  Even
 more-so, as I'm driving I2C with a fast STM processor. I
 regret my PCB doesn't have a place for source resistors,
 or anything (in this rev anyway).  I'm using 10k pullups
 on each end (5k net), and added a spot on the PCB for an
 additional pullup resistor for SCL.**  My flat P6C4 cable
 has SCL and SDA separated 80 mils, by power and ground.

 ** A newby on an EE forum claimed he got good results
 for 15m, with 10k for SDA, and 2k or somesuch, for SCL.
 


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#542899

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2019-05-11 06:01 -0700
Message-ID<77f6bf38-4ab2-4537-8a35-2f7aa5e623b0@googlegroups.com>
In reply to#542821
lørdag den 11. maj 2019 kl. 00.00.31 UTC+2 skrev Winfield Hill:
> jrwalliker@gmail.com wrote...
> > 
> > On Friday, 10 May 2019, upsid...@downunder.com  wrote:
> >
> >> After all, 100 kHz is a quite low frequency.
> >
> > But the falling edges can be fast enough for transmission line
> > effects to be important when the cable is a few metres long.
> > Double clocking due to reflections makes a mess of i2c.
> >
> > Using the lowest possible pullup resistors or using active
> > pullup that approximates to a constant current clamped at
> > Vcc can help with noise immunity in the high state.
> 
>  Right, John.  Fast falling edges are worrisome.  Even
>  more-so, as I'm driving I2C with a fast STM processor. I
>  regret my PCB doesn't have a place for source resistors,
>  or anything (in this rev anyway). 

the STM have programmable slewrate on the IOs

[toc] | [prev] | [next] | [standalone]


#542904

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-11 07:04 -0700
Message-ID<qb6kok012u@drn.newsguy.com>
In reply to#542899
Lasse Langwadt Christensen wrote...
>
> the STM have programmable slewrate on the IOs

 Aha!  I'll see if our programmer can activate that.


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#542973

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-11 14:23 -0700
Message-ID<qb7eg801ho2@drn.newsguy.com>
In reply to#542904
Winfield Hill wrote...
>
> Lasse Langwadt Christensen wrote...
>>
>> the STM have programmable slewrate on the IOs
>
> Aha!  I'll see if our programmer can activate that.

 I miss-spoke, we're using an Atmel ARM SAM D21.
 Not sure if they have programmable slew rate,
 but datasheet says the I2C outputs have reduced
 slew-rates.   Hmm, the IO spec says 20-50ns with
 a 10 to 400pF load.  Well, anyway, I've added a
 resistor (100-ohm) in series with the I2C lines.


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#542982

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2019-05-11 15:02 -0700
Message-ID<b0e42157-9e42-4729-a0c2-106262574a65@googlegroups.com>
In reply to#542973
On Saturday, May 11, 2019 at 5:23:35 PM UTC-4, Winfield Hill wrote:
> Winfield Hill wrote...
> >
> > Lasse Langwadt Christensen wrote...
> >>
> >> the STM have programmable slewrate on the IOs
> >
> > Aha!  I'll see if our programmer can activate that.
> 
>  I miss-spoke, we're using an Atmel ARM SAM D21.
>  Not sure if they have programmable slew rate,
>  but datasheet says the I2C outputs have reduced
>  slew-rates.   Hmm, the IO spec says 20-50ns with
>  a 10 to 400pF load.  Well, anyway, I've added a
>  resistor (100-ohm) in series with the I2C lines.

That seems excessive.  Even with a 20 ns rise time the round trip on a 1 meter cable is around half the rise time.  I think the magic number to ignore reflections is for the rise time to be 6 times the round trip delay.  The capacitance you can expect on this run would very likely put the rise time higher than this threshold so no further actions would be needed to prevent reflections.  

Do you think your rise time will be less than 60 ns? 

-- 

  Rick C.

  -- Get a 1,000 miles of free Supercharging
  -- Tesla referral code - https://ts.la/richard11209

[toc] | [prev] | [next] | [standalone]


#542988

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-11 15:18 -0700
Message-ID<qb7ho601ol2@drn.newsguy.com>
In reply to#542982
Rick C wrote...
>
> Winfield Hill wrote:
>> Winfield Hill wrote...
>>> Lasse Langwadt Christensen wrote...
>>>>
>>>> the STM have programmable slewrate on the IOs
>>>
>>> Aha!  I'll see if our programmer can activate that.
>>
>>  I miss-spoke, we're using an Atmel ARM SAM D21.
>>  Not sure if they have programmable slew rate,
>>  but datasheet says the I2C outputs have reduced
>>  slew-rates.   Hmm, the IO spec says 20-50ns with
>>  a 10 to 400pF load.  Well, anyway, I've added a
>>  resistor (100-ohm) in series with the I2C lines.
>
> That seems excessive.  Even with a 20 ns rise time
> the round trip on a 1 meter cable is around half
> the rise time.  I think the magic number to ignore
> reflections is for the rise time to be 6 times the
> round trip delay.  The capacitance you can expect
> on this run would very likely put the rise time
> higher than this threshold so no further actions
> would be needed to prevent reflections. 

 Yes, I agree, but my worry isn't so much about
 reflections, as about crosstalk.  If a fast SCL
 falltime induces an SDA signal, apparently this
 can cause trouble.  Fix with slow falltimes.

> Do you think your rise time will be less than
> 60 ns?

 Yes, according to the spec, without the resistor.
 Well, OK, I do have an 74HC4052 channel switch
 in series; it may be about 100 ohms at 3.3 volts.


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#542996

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2019-05-11 15:43 -0700
Message-ID<f8af83d2-9329-4a30-b662-ec158517a166@googlegroups.com>
In reply to#542988
On Saturday, May 11, 2019 at 6:19:01 PM UTC-4, Winfield Hill wrote:
> Rick C wrote...
> >
> > Winfield Hill wrote:
> >> Winfield Hill wrote...
> >>> Lasse Langwadt Christensen wrote...
> >>>>
> >>>> the STM have programmable slewrate on the IOs
> >>>
> >>> Aha!  I'll see if our programmer can activate that.
> >>
> >>  I miss-spoke, we're using an Atmel ARM SAM D21.
> >>  Not sure if they have programmable slew rate,
> >>  but datasheet says the I2C outputs have reduced
> >>  slew-rates.   Hmm, the IO spec says 20-50ns with
> >>  a 10 to 400pF load.  Well, anyway, I've added a
> >>  resistor (100-ohm) in series with the I2C lines.
> >
> > That seems excessive.  Even with a 20 ns rise time
> > the round trip on a 1 meter cable is around half
> > the rise time.  I think the magic number to ignore
> > reflections is for the rise time to be 6 times the
> > round trip delay.  The capacitance you can expect
> > on this run would very likely put the rise time
> > higher than this threshold so no further actions
> > would be needed to prevent reflections. 
> 
>  Yes, I agree, but my worry isn't so much about
>  reflections, as about crosstalk.  If a fast SCL
>  falltime induces an SDA signal, apparently this
>  can cause trouble.  Fix with slow falltimes.

20 ns is already an inordinately slow rise time.  I can assure you it will not create measurable crosstalk in a 1 meter cable.  Especially if you use twisted pair. 


> > Do you think your rise time will be less than
> > 60 ns?
> 
>  Yes, according to the spec, without the resistor.
>  Well, OK, I do have an 74HC4052 channel switch
>  in series; it may be about 100 ohms at 3.3 volts.

Sorry, I misread the numbers you posted.  Still, the 6:1 is a rule of thumb for ignoring any further consideration.  Your rise time will be slow enough that it is highly unlikely to result in significant reflections.  

-- 

  Rick C.

  -+ Get a 1,000 miles of free Supercharging
  -+ Tesla referral code - https://ts.la/richard11209

[toc] | [prev] | [next] | [standalone]


#543078

Fromupsidedown@downunder.com
Date2019-05-12 10:34 +0300
Message-ID<d5ifde921jlcdba61cr00o01qo2abhprfu@4ax.com>
In reply to#542988
On 11 May 2019 15:18:46 -0700, Winfield Hill
<hill@rowland.harvard.edu> wrote:

>Rick C wrote...
>>
>> Winfield Hill wrote:
>>> Winfield Hill wrote...
>>>> Lasse Langwadt Christensen wrote...
>>>>>
>>>>> the STM have programmable slewrate on the IOs
>>>>
>>>> Aha!  I'll see if our programmer can activate that.
>>>
>>>  I miss-spoke, we're using an Atmel ARM SAM D21.
>>>  Not sure if they have programmable slew rate,
>>>  but datasheet says the I2C outputs have reduced
>>>  slew-rates.   Hmm, the IO spec says 20-50ns with
>>>  a 10 to 400pF load.  Well, anyway, I've added a
>>>  resistor (100-ohm) in series with the I2C lines.

A twisted pair typically has an impedance of 100-120 ohs and since the
transmitter has some output impedance, a smaller resistor should be
sufficient to match to the line impedance.

A 100 ohm resistor in the transmitter line will also reduce the low
state noise margin. If the current through the open drain pull-up
resistot(s) is more than 4 mA, this will reduce the low state noise
margin by 400 mV, so if a conventional TTL receiver is used, this will
kill the noise margin completely. Using 47 ohm series resistor and
limiting the drain resistor current to 2 mA and the loss of noise
margin would be only 100 mV.
 
>>
>> That seems excessive.  Even with a 20 ns rise time
>> the round trip on a 1 meter cable is around half
>> the rise time.  I think the magic number to ignore
>> reflections is for the rise time to be 6 times the
>> round trip delay.  The capacitance you can expect
>> on this run would very likely put the rise time
>> higher than this threshold so no further actions
>> would be needed to prevent reflections. 
>
> Yes, I agree, but my worry isn't so much about
> reflections, as about crosstalk.  If a fast SCL
> falltime induces an SDA signal, apparently this
> can cause trouble.  Fix with slow falltimes.

I do not understand this crosstalk objections if CAT5/6 cables are
used, with one pair for SCL and other pair for SDA. After all in
100/1000BasetT Ethernet, the whole symbol time is 10 or 8 ns (not just
rise/fall time) and these cables are specified for up to 100 m.

Of course, i you have split pairs, such as running SDA and SCL in the
same twisted pair, there are going to be problems.

>
>> Do you think your rise time will be less than
>> 60 ns?
>
> Yes, according to the spec, without the resistor.
> Well, OK, I do have an 74HC4052 channel switch
> in series; it may be about 100 ohms at 3.3 volts.

[toc] | [prev] | [next] | [standalone]


#543081

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-12 01:44 -0700
Message-ID<qb8mcg0b13@drn.newsguy.com>
In reply to#543078
upsidedown@downunder.com wrote...
>
> Winfield Hill wrote:
>> Rick C wrote...
>>> Winfield Hill wrote:
>>>> Winfield Hill wrote...
>>>>> Lasse Langwadt Christensen wrote...
>>>>>>
>>>>>> the STM have programmable slewrate on the IOs
>>>>>
>>>>> Aha!  I'll see if our programmer can activate that.
>>>>
>>>>  I miss-spoke, we're using an Atmel ARM SAM D21.
>>>>  Not sure if they have programmable slew rate,
>>>>  but datasheet says the I2C outputs have reduced
>>>>  slew-rates.   Hmm, the IO spec says 20-50ns with
>>>>  a 10 to 400pF load.  Well, anyway, I've added a
>>>>  resistor (100-ohm) in series with the I2C lines.
>
> A twisted pair typically has an impedance of 100-120
> ohms and since the transmitter has some output
> impedance, a smaller resistor should be sufficient
> to match to the line impedance.

 Thanks for your calculations, thoughts and comments.

 I had to decide against CAT5 and twisted pair.  I'm
 not trying to match impedances at my slow speeds, the
 100-ohms is to slow falltime against 200pF of load.

> [snip] If the current through the open drain pull-up
> resistor(s) is more than 4 mA, this will reduce the
> low state noise margin by 400 mV ...

 The pullup resistors are 10k to 3.3V and 10k to 1.8V,
 or about 0.5mA.  So with 100 ohms that's 50mV, and
 adding my analog switch, that's 100mV.  [Actually,
 the switch may be enough resistance, scope meas on
 Monday may show I can skip the 100-ohms.]

> ... so if a conventional TTL receiver is used ...

 The drivers and receivers are all proper I2C, with
 (lousy) thresholds spec'd at 0.3 to 0.7 Vdd.  For
 3.3V that's 1.0V, for 1.8-volt devices, it's 540mV.

>> Yes, I agree, but my worry isn't so much about
>> reflections, as about crosstalk.  If a fast SCL
>> falltime induces an SDA signal, apparently this
>> can cause trouble.  Fix with slow falltimes.
>
> I do not understand this crosstalk objections if
> CAT5/6 cables are used ...

 Sorry, I've been forced away from CAT5, and have
 selected flat six-wire cables on RJ12.  But, yes,
 on opposite sides and separated by ground wires,
 there likely won't be any crosstalk.  I'll make
 scope meas on Monday.  If I leave a spot for 100
 ohms on the PCB, it may be best to be 0 ohms.


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#543385

FromSimon S Aysdie <gwhite@ti.com>
Date2019-05-14 11:29 -0700
Message-ID<73402f05-6e84-4014-b0da-f113dd57d384@googlegroups.com>
In reply to#543078
On Sunday, May 12, 2019 at 12:34:23 AM UTC-7, upsid...@downunder.com wrote:
> On 11 May 2019 15:18:46 -0700, Winfield Hill
> <hill@rowland.harvard.edu> wrote:
> 
> >Rick C wrote...
> >>
> >> Winfield Hill wrote:
> >>> Winfield Hill wrote...
> >>>> Lasse Langwadt Christensen wrote...
> >>>>>
> >>>>> the STM have programmable slewrate on the IOs
> >>>>
> >>>> Aha!  I'll see if our programmer can activate that.
> >>>
> >>>  I miss-spoke, we're using an Atmel ARM SAM D21.
> >>>  Not sure if they have programmable slew rate,
> >>>  but datasheet says the I2C outputs have reduced
> >>>  slew-rates.   Hmm, the IO spec says 20-50ns with
> >>>  a 10 to 400pF load.  Well, anyway, I've added a
> >>>  resistor (100-ohm) in series with the I2C lines.
> 
> A twisted pair typically has an impedance of 100-120 ohs and since the
> transmitter has some output impedance, a smaller resistor should be
> sufficient to match to the line impedance.

The I2C transmitter has, in a sense, an output impedance, but it is a time dependent one. It is Low-Z when at logic low and Hi-Z when at logic high. That is (for any common I2C scheme), it is impossible to "match" I2C TXers and RXers to some fixed line impedance. (The line won't be properly terminated anyway. Slow slew can save I2C at the obvious cost of data transmission speed.

I2C signal integrity is like saying "Jumbo Shrimp." There are things that can be done, but it is (from the get-go) a crap system from the perspective of signal integrity.

> A 100 ohm resistor in the transmitter line will also reduce the low
> state noise margin. If the current through the open drain pull-up
> resistot(s) is more than 4 mA, this will reduce the low state noise
> margin by 400 mV, so if a conventional TTL receiver is used, this will
> kill the noise margin completely. Using 47 ohm series resistor and
> limiting the drain resistor current to 2 mA and the loss of noise
> margin would be only 100 mV.
>  
> >>
> >> That seems excessive.  Even with a 20 ns rise time
> >> the round trip on a 1 meter cable is around half
> >> the rise time.  I think the magic number to ignore
> >> reflections is for the rise time to be 6 times the
> >> round trip delay.  The capacitance you can expect
> >> on this run would very likely put the rise time
> >> higher than this threshold so no further actions
> >> would be needed to prevent reflections. 
> >
> > Yes, I agree, but my worry isn't so much about
> > reflections, as about crosstalk.  If a fast SCL
> > falltime induces an SDA signal, apparently this
> > can cause trouble.  Fix with slow falltimes.
> 
> I do not understand this crosstalk objections if CAT5/6 cables are
> used, with one pair for SCL and other pair for SDA. After all in
> 100/1000BasetT Ethernet, the whole symbol time is 10 or 8 ns (not just
> rise/fall time) and these cables are specified for up to 100 m.
> 
> Of course, i you have split pairs, such as running SDA and SCL in the
> same twisted pair, there are going to be problems.
> 
> >
> >> Do you think your rise time will be less than
> >> 60 ns?
> >
> > Yes, according to the spec, without the resistor.
> > Well, OK, I do have an 74HC4052 channel switch
> > in series; it may be about 100 ohms at 3.3 volts.

[toc] | [prev] | [next] | [standalone]


Page 1 of 3  [1] 2 3  Next page →

Back to top | Article view | sci.electronics.design


csiph-web