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 2 of 3 — ← Prev page 1 [2] 3  Next page →


#543023

FromClifford Heath <no.spam@please.net>
Date2019-05-12 11:19 +1000
Message-ID<GwKBE.13418$y65.5422@fx39.iad>
In reply to#542973
On 12/5/19 7:23 am, 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,

Not the D21, not on GPIO pins. Pullup/down but not drive strength/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.

Presumably the slew-rate limiting depends on the selected data rate, but 
the data sheet is pretty quiet on that.

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


#543035

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-11 19:13 -0700
Message-ID<qb7vgs02cif@drn.newsguy.com>
In reply to#543023
Clifford Heath wrote...
>
> Winfield Hill wrote:
>>
>> I miss-spoke, we're using an Atmel ARM SAM D21.
>
>> but datasheet says the I2C outputs have reduced
>> slew-rates.   Hmm, the IO spec says 20-50ns with
>> a 10 to 400pF load.  
>
> Presumably the slew-rate limiting depends on the
> selected data rate, but the data sheet is pretty
> quiet on that.

 Here's their spec, fall time, for 0.7 to 0.3 Vdd:

                  typ  max
 Standard/Fast     20  50 ns
 Fast Mode +       15  50
 High Speed Mode   10  40

 Yes, it changes with speed setting, but not much.
 Slowest mode, dV/dt = 0.4 3.3V / 20ns = 66 mV/ns.
 I = C dV/dt, with 75pF, that's i = 5mA, during
 a 50ns transition.  This is what can kill using
 twisted-pair wires in a short USB cable.  If we
 have 75pF crosstalk with a 200pF load, that's
 still a 28% Vdd interference signal, which is
 smack on the 30% trouble threshold.  Why only
 slow to a fast 50ns transition with a 10us bit
 interval?  That's only 0.5%.  That's why I made
 more changes and added extra stuff.

 


-- 
 Thanks,
    - Win

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


#543049

FromClifford Heath <no.spam@please.net>
Date2019-05-12 12:51 +1000
Message-ID<OSLBE.12677$A74.2125@fx12.iad>
In reply to#543035
On 12/5/19 12:13 pm, Winfield Hill wrote:
> Clifford Heath wrote...
>>
>> Winfield Hill wrote:
>>>
>>> I miss-spoke, we're using an Atmel ARM SAM D21.
>>
>>> but datasheet says the I2C outputs have reduced
>>> slew-rates.   Hmm, the IO spec says 20-50ns with
>>> a 10 to 400pF load.
>>
>> Presumably the slew-rate limiting depends on the
>> selected data rate, but the data sheet is pretty
>> quiet on that.
> 
>   Here's their spec, fall time, for 0.7 to 0.3 Vdd:
> 
>                    typ  max
>   Standard/Fast     20  50 ns
>   Fast Mode +       15  50
>   High Speed Mode   10  40
> 
>   Yes, it changes with speed setting, but not much.
>   Slowest mode, dV/dt = 0.4 3.3V / 20ns = 66 mV/ns.
>   I = C dV/dt, with 75pF, that's i = 5mA, during
>   a 50ns transition.  This is what can kill using
>   twisted-pair wires in a short USB cable.  If we
>   have 75pF crosstalk with a 200pF load, that's
>   still a 28% Vdd interference signal, which is
>   smack on the 30% trouble threshold.  Why only
>   slow to a fast 50ns transition with a 10us bit
>   interval?  That's only 0.5%.

Hmm, good numbers. I guess it was a cost justification. Slow slew would 
need a bigger capacitor, and/or paralleled strong and weak output 
devices - but they're probably just re-using some pin driver from 
elsewhere. I wonder if any variable-slew chip parallels output devices, 
using the weak ones to slew and (time delayed) the strong ones to 
drive/clamp the line.

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


#543056

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2019-05-11 20:14 -0700
Message-ID<fe1d6a3b-d7b8-4690-934b-5dbef70d9ad6@googlegroups.com>
In reply to#543035
On Saturday, May 11, 2019 at 10:14:01 PM UTC-4, Winfield Hill wrote:
> Clifford Heath wrote...
> >
> > Winfield Hill wrote:
> >>
> >> I miss-spoke, we're using an Atmel ARM SAM D21.
> >
> >> but datasheet says the I2C outputs have reduced
> >> slew-rates.   Hmm, the IO spec says 20-50ns with
> >> a 10 to 400pF load.  
> >
> > Presumably the slew-rate limiting depends on the
> > selected data rate, but the data sheet is pretty
> > quiet on that.
> 
>  Here's their spec, fall time, for 0.7 to 0.3 Vdd:
> 
>                   typ  max
>  Standard/Fast     20  50 ns
>  Fast Mode +       15  50
>  High Speed Mode   10  40
> 
>  Yes, it changes with speed setting, but not much.
>  Slowest mode, dV/dt = 0.4 3.3V / 20ns = 66 mV/ns.
>  I = C dV/dt, with 75pF, that's i = 5mA, during
>  a 50ns transition.  This is what can kill using
>  twisted-pair wires in a short USB cable.  If we
>  have 75pF crosstalk with a 200pF load, that's
>  still a 28% Vdd interference signal, which is
>  smack on the 30% trouble threshold.  Why only
>  slow to a fast 50ns transition with a 10us bit
>  interval?  That's only 0.5%.  That's why I made
>  more changes and added extra stuff.

I don't follow your crosstalk analysis.  You are assuming your load is purely capacitive.  But your load includes resistance as well.  That means you need to factor in the frequency aspect of your signal slew rate so the total effect of capacitance and resistance can be understood.  Or are you sure your resistive load is of no consequence?  With such slow edge rates I'm not sure that would be valid. 

I suppose a simulation would be easy enough. 

-- 

  Rick C.

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

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


#543076

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2019-05-12 07:10 +0000
Message-ID<qb8gu6$lpf$1@dont-email.me>
In reply to#543035
 On a sunny day (11 May 2019 19:13:48 -0700) it happened Winfield Hill
<hill@rowland.harvard.edu> wrote in <qb7vgs02cif@drn.newsguy.com>:

>Clifford Heath wrote...
>>
>> Winfield Hill wrote:
>>>
>>> I miss-spoke, we're using an Atmel ARM SAM D21.
>>
>>> but datasheet says the I2C outputs have reduced
>>> slew-rates.   Hmm, the IO spec says 20-50ns with
>>> a 10 to 400pF load.  
>>
>> Presumably the slew-rate limiting depends on the
>> selected data rate, but the data sheet is pretty
>> quiet on that.
>
> Here's their spec, fall time, for 0.7 to 0.3 Vdd:
>
>                  typ  max
> Standard/Fast     20  50 ns
> Fast Mode +       15  50
> High Speed Mode   10  40
>
> Yes, it changes with speed setting, but not much.
> Slowest mode, dV/dt = 0.4 3.3V / 20ns = 66 mV/ns.
> I = C dV/dt, with 75pF, that's i = 5mA, during
> a 50ns transition.  This is what can kill using
> twisted-pair wires in a short USB cable.  If we
> have 75pF crosstalk with a 200pF load, that's
> still a 28% Vdd interference signal, which is
> smack on the 30% trouble threshold.  Why only
> slow to a fast 50ns transition with a 10us bit
> interval?  That's only 0.5%.  That's why I made
> more changes and added extra stuff.

The rise - and falltime spec has little meaning, because the i2c system works differently.

Data is sampled by the clock.
As long as you wait long enough after each transition, data will be stable,
and toggling the clock during stable data a million times due to oscillations in the transient will still read that data in correctly.

I always do i2c in software.
Some years ago I had this chip with a hardware i2c interface (was it a PIC? do not remember, yes I think it was),
and a datasheet that sounded really funny to me.
So did it in software as always and it worked perfectly
Sure enough in the chip errata the i2c hardware interface was mentioned as erratic, and fixed.

So here a 'shot' from a 2 channel i2c driver:
 http://www.panteltje.com/pub/iiclib.c
Note the IIC_BUS_DELAY, it is defined in iiclib.h:
 #define IIC_BUS_DELAY  1

But you can make it as long as you want (in case of lots of cable capacitance),
as long as transient oscillations are gone by the time you toggle the next I/O.
That is why
 busdly(IIC_BUS_DELAY);
is called afer each I/O pin change.
In fact on a Linux multitasker usleep() can change a lot....
 man usleep

On embedded use a loop, example PIC 18F code, iicbus delay:

iicdly:                             ; iic bus delay
    movlw   D'225'
    movwf   iic_delay_cnt
iicdly_loop:
    decfsz  iic_delay_cnt
    bra    iicdly_loop
    return

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


#543077

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2019-05-12 07:16 +0000
Message-ID<qb8h9l$nd3$1@dont-email.me>
In reply to#543076
On a sunny day (Sun, 12 May 2019 07:10:51 GMT) it happened Jan Panteltje
<pNaOnStPeAlMtje@yahoo.com> wrote in <qb8gu6$lpf$1@dont-email.me>:

> On a sunny day (11 May 2019 19:13:48 -0700) it happened Winfield Hill
><hill@rowland.harvard.edu> wrote in <qb7vgs02cif@drn.newsguy.com>:
>
>>Clifford Heath wrote...
>>>
>>> Winfield Hill wrote:
>>>>
>>>> I miss-spoke, we're using an Atmel ARM SAM D21.
>>>
>>>> but datasheet says the I2C outputs have reduced
>>>> slew-rates.   Hmm, the IO spec says 20-50ns with
>>>> a 10 to 400pF load.  
>>>
>>> Presumably the slew-rate limiting depends on the
>>> selected data rate, but the data sheet is pretty
>>> quiet on that.
>>
>> Here's their spec, fall time, for 0.7 to 0.3 Vdd:
>>
>>                  typ  max
>> Standard/Fast     20  50 ns
>> Fast Mode +       15  50
>> High Speed Mode   10  40
>>
>> Yes, it changes with speed setting, but not much.
>> Slowest mode, dV/dt = 0.4 3.3V / 20ns = 66 mV/ns.
>> I = C dV/dt, with 75pF, that's i = 5mA, during
>> a 50ns transition.  This is what can kill using
>> twisted-pair wires in a short USB cable.  If we
>> have 75pF crosstalk with a 200pF load, that's
>> still a 28% Vdd interference signal, which is
>> smack on the 30% trouble threshold.  Why only
>> slow to a fast 50ns transition with a 10us bit
>> interval?  That's only 0.5%.  That's why I made
>> more changes and added extra stuff.
>
>The rise - and falltime spec has little meaning, because the i2c system works differently.
>
>Data is sampled by the clock.
>As long as you wait long enough after each transition, data will be stable,
>and toggling the clock during stable data a million times due to oscillations in the transient will still read that data in
>correctly.

Correction, maybe I spoke too soon, clock oscillations on edges may an have effect,
but it never seems to happen with capacitive loads or any loads I have tried.

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


#543084

FromClifford Heath <no.spam@please.net>
Date2019-05-12 19:38 +1000
Message-ID<AQRBE.46022$8B4.29667@fx02.iad>
In reply to#543077
On 12/5/19 5:16 pm, Jan Panteltje wrote:
> On a sunny day (Sun, 12 May 2019 07:10:51 GMT) it happened Jan Panteltje
> <pNaOnStPeAlMtje@yahoo.com> wrote in <qb8gu6$lpf$1@dont-email.me>:
> 
>> On a sunny day (11 May 2019 19:13:48 -0700) it happened Winfield Hill
>> <hill@rowland.harvard.edu> wrote in <qb7vgs02cif@drn.newsguy.com>:
>>
>>> Clifford Heath wrote...
>>>>
>>>> Winfield Hill wrote:
>>>>>
>>>>> I miss-spoke, we're using an Atmel ARM SAM D21.
>>>>
>>>>> but datasheet says the I2C outputs have reduced
>>>>> slew-rates.   Hmm, the IO spec says 20-50ns with
>>>>> a 10 to 400pF load.
>>>>
>>>> Presumably the slew-rate limiting depends on the
>>>> selected data rate, but the data sheet is pretty
>>>> quiet on that.
>>>
>>> Here's their spec, fall time, for 0.7 to 0.3 Vdd:
>>>
>>>                   typ  max
>>> Standard/Fast     20  50 ns
>>> Fast Mode +       15  50
>>> High Speed Mode   10  40
>>>
>>> Yes, it changes with speed setting, but not much.
>>> Slowest mode, dV/dt = 0.4 3.3V / 20ns = 66 mV/ns.
>>> I = C dV/dt, with 75pF, that's i = 5mA, during
>>> a 50ns transition.  This is what can kill using
>>> twisted-pair wires in a short USB cable.  If we
>>> have 75pF crosstalk with a 200pF load, that's
>>> still a 28% Vdd interference signal, which is
>>> smack on the 30% trouble threshold.  Why only
>>> slow to a fast 50ns transition with a 10us bit
>>> interval?  That's only 0.5%.  That's why I made
>>> more changes and added extra stuff.
>>
>> The rise - and falltime spec has little meaning, because the i2c system works differently.
>>
>> Data is sampled by the clock.
>> As long as you wait long enough after each transition, data will be stable,
>> and toggling the clock during stable data a million times due to oscillations in the transient will still read that data in
>> correctly.
> 
> Correction, maybe I spoke too soon, clock oscillations on edges may an have effect,
> but it never seems to happen with capacitive loads or any loads I have tried.

Reflections from inductive and/or delay-line loads, i.e. not properly 
terminated?

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


#543089

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2019-05-12 12:10 +0000
Message-ID<qb92gl$dg7$1@dont-email.me>
In reply to#543084
On a sunny day (Sun, 12 May 2019 19:38:40 +1000) it happened Clifford Heath
<no.spam@please.net> wrote in <AQRBE.46022$8B4.29667@fx02.iad>:

>On 12/5/19 5:16 pm, Jan Panteltje wrote:
>> On a sunny day (Sun, 12 May 2019 07:10:51 GMT) it happened Jan Panteltje
>> <pNaOnStPeAlMtje@yahoo.com> wrote in <qb8gu6$lpf$1@dont-email.me>:
>> 
>>> On a sunny day (11 May 2019 19:13:48 -0700) it happened Winfield Hill
>>> <hill@rowland.harvard.edu> wrote in <qb7vgs02cif@drn.newsguy.com>:
>>>
>>>> Clifford Heath wrote...
>>>>>
>>>>> Winfield Hill wrote:
>>>>>>
>>>>>> I miss-spoke, we're using an Atmel ARM SAM D21.
>>>>>
>>>>>> but datasheet says the I2C outputs have reduced
>>>>>> slew-rates.   Hmm, the IO spec says 20-50ns with
>>>>>> a 10 to 400pF load.
>>>>>
>>>>> Presumably the slew-rate limiting depends on the
>>>>> selected data rate, but the data sheet is pretty
>>>>> quiet on that.
>>>>
>>>> Here's their spec, fall time, for 0.7 to 0.3 Vdd:
>>>>
>>>>                   typ  max
>>>> Standard/Fast     20  50 ns
>>>> Fast Mode +       15  50
>>>> High Speed Mode   10  40
>>>>
>>>> Yes, it changes with speed setting, but not much.
>>>> Slowest mode, dV/dt = 0.4 3.3V / 20ns = 66 mV/ns.
>>>> I = C dV/dt, with 75pF, that's i = 5mA, during
>>>> a 50ns transition.  This is what can kill using
>>>> twisted-pair wires in a short USB cable.  If we
>>>> have 75pF crosstalk with a 200pF load, that's
>>>> still a 28% Vdd interference signal, which is
>>>> smack on the 30% trouble threshold.  Why only
>>>> slow to a fast 50ns transition with a 10us bit
>>>> interval?  That's only 0.5%.  That's why I made
>>>> more changes and added extra stuff.
>>>
>>> The rise - and falltime spec has little meaning, because the i2c system works differently.
>>>
>>> Data is sampled by the clock.
>>> As long as you wait long enough after each transition, data will be stable,
>>> and toggling the clock during stable data a million times due to oscillations in the transient will still read that data in
>>> correctly.
>> 
>> Correction, maybe I spoke too soon, clock oscillations on edges may an have effect,
>> but it never seems to happen with capacitive loads or any loads I have tried.
>
>Reflections from inductive and/or delay-line loads, i.e. not properly 
>terminated?

Unless those take round the world trips those will be sufficiently attenuated
after some short time.
How fast can bees fly? Why be in a hurry?
A fly is differrent those can be really fast ;-)

But seriously, just use cable with individually screened pairs, like I used audio cable,
if you want to cover a few meters.
For more use special drivers if unidirectional (no checking of SDA pulldown).
Else go optical.
Optical fiber does not take that much space, is 'trickety proof,
a PIC as i2c to optical interface, whatever.

With wasps it would be easy, you give those individual stripes for different messages,
and use a barcode scanner, training is needed.

Other ideas ? 
?
ants?


 

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


#543091

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-12 06:20 -0700
Message-ID<qb96i5010p2@drn.newsguy.com>
In reply to#543089
Jan Panteltje wrote...
>
>> Reflections from inductive and/or delay-line
>> loads, i.e. not properly terminated?
>
> Unless those take round the world trips those
> will be sufficiently attenuated after some short time.
> How fast can bees fly? Why be in a hurry?
> A fly is different those can be really fast ;-)
>
> But seriously, just use cable with individually
> screened pairs, like I used audio cable, if you
> want to cover a few meters.

 That's a thought, any with good pre-made connectors
 and four separate conductors (maybe two grounds)?

> For more use special drivers if unidirectional
> (no checking of SDA pulldown).  Else go optical.
> Optical fiber does not take that much space, is
> 'trickety proof, a PIC as i2c to optical interface,
> whatever.

 Yessir, can optical carry 3.3V power?

> With wasps it would be easy, you give those
> individual stripes for different messages,
> and use a barcode scanner, training is needed.
>
> Other ideas ? 
> ?
> ants?

 Check my other thread, has schematic:
 Five beehive sensor ICs (I2C and 1.8V max)

 And my new thread, 
 RJ45, RJ12, RJ14 cables straight-through or crossover?


-- 
 Thanks,
    - Win

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


#543092

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2019-05-12 14:05 +0000
Message-ID<qb997n$h7l$1@dont-email.me>
In reply to#543091
On a sunny day (12 May 2019 06:20:05 -0700) it happened Winfield Hill
<hill@rowland.harvard.edu> wrote in <qb96i5010p2@drn.newsguy.com>:

>> But seriously, just use cable with individually
>> screened pairs, like I used audio cable, if you
>> want to cover a few meters.
>
> That's a thought, any with good pre-made connectors
> and four separate conductors (maybe two grounds)?

I used DIN 180 degree audio connectors on a 8052 based box in ancient times,
still have that box :
 http://panteltje.com/pub/8052AH_BASIC_computer/8052AH_BASIC_computer_inside_img_1727.jpg
  remote connected PCF8591 ADC and PCF8574 IO/O expander..
  temperature sensor, light control, some other transmitter related stuff.

>> For more use special drivers if unidirectional
>> (no checking of SDA pulldown).  Else go optical.
>> Optical fiber does not take that much space, is
>> 'trickety proof, a PIC as i2c to optical interface,
>> whatever.
>
> Yessir, can optical carry 3.3V power?

How much power? 70 Watt has been done:
  http://optics.org/news/4/5/1

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


#543201

Frommakolber@yahoo.com
Date2019-05-13 10:20 -0700
Message-ID<7e506c60-8fe6-4150-b4aa-29baf65692af@googlegroups.com>
In reply to#543092
crosstalk from a DATA edge into the clock line can cause a false clock edge.

and therefore an incorrect read of the data.

m

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


#542878

Fromupsidedown@downunder.com
Date2019-05-11 10:22 +0300
Message-ID<dbtcde1u16d91qg3kekknj5v4pfbf5g8e0@4ax.com>
In reply to#542819
On Fri, 10 May 2019 14:22:38 -0700 (PDT), jrwalliker@gmail.com wrote:

>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.

The OP had only a 1 m long line, the two way CAT5 cable propagation
delay is about 0.01 us. While the fall time can be short, the rise
time with 400 pF stray capacitances is up to 1 us and according to the
I2C standard, the signal must remain stable for 4 us. No doubt, each
receiver must have some hysteresis (Schmitt trigger). In a missmatched
line, the reflected signal causes over/ndershot.

>
>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.

Use series termination on each node to tame the reflections.

>
>John
>  

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


#542828

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2019-05-10 17:22 -0500
Message-ID<qb4tid$kv4$1@dont-email.me>
In reply to#542816
<upsidedown@downunder.com> wrote in message 
news:bsmbded0mhgetsajtjm98k93vn8n6suj3a@4ax.com...
>> 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.

The signals themselves might not need shielding, but that ignores ambient 
noise.  We're considering a clock signal here, so we need to be wary of fast 
changes from external sources.

I2C is supposed to discard rapid changes -- interfaces are supposed to 
sample (at fairly high rate) and filter (to avoid noise), but, who knows. 
Not everyone follows the standard properly, y'know?

Twisted pair, used in unbalanced mode, still helps relative to doing nothing 
at all, but it isn't much on immunity.

Tim

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

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


#542830

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2019-05-10 15:32 -0700
Message-ID<0be3e775-67ce-4a39-891a-a2b9330fd7a5@googlegroups.com>
In reply to#542828
On Friday, May 10, 2019 at 6:22:09 PM UTC-4, Tim Williams wrote:
> <upsidedown@downunder.com> wrote in message 
> news:bsmbded0mhgetsajtjm98k93vn8n6suj3a@4ax.com...
> >> 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.
> 
> The signals themselves might not need shielding, but that ignores ambient 
> noise.  We're considering a clock signal here, so we need to be wary of fast 
> changes from external sources.
> 
> I2C is supposed to discard rapid changes -- interfaces are supposed to 
> sample (at fairly high rate) and filter (to avoid noise), but, who knows. 
> Not everyone follows the standard properly, y'know?

I thought I had read the standard once some time ago and don't recall that it is intended to be sampled like a UART.  Is that literally in the spec or does it say some amount of noise is to be rejected and not seen as a start condition or clock edge? 

-- 

  Rick C.

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

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


#542874

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2019-05-11 02:11 -0500
Message-ID<qb5shv$k70$1@dont-email.me>
In reply to#542830
"Rick C" <gnuarm.deletethisbit@gmail.com> wrote in message 
news:0be3e775-67ce-4a39-891a-a2b9330fd7a5@googlegroups.com...
>
> I thought I had read the standard once some time ago and don't recall that 
> it is intended to be sampled like a UART.  Is that literally in the spec 
> or does it say some amount of noise is to be rejected and not seen as a 
> start condition or clock edge?
>

It's been so long since I looked at the standard in that much detail.  But 
some kind of minor filtering is required.  A digital filter would be a 
typical implementation.

If you have, say, MCU peripherals that require fairly high clocks relative 
to the data rate (i.e., "400kHz"), say a 16x or higher prescaler, that's 
probably what's being done.

In a correct implementation, the "400kHz" isn't, it's just the average when 
everything is behaving as it should, activating and releasing SCK in a 
timely manner, and with pull-up, capacitance and rise time in spec.

Tim

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

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


#542917

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2019-05-11 07:57 -0700
Message-ID<0c8b88c4-2151-4a75-8d9d-371c382c16a9@googlegroups.com>
In reply to#542874
On Saturday, May 11, 2019 at 3:10:59 AM UTC-4, Tim Williams wrote:
> "Rick C" <gnuarm.deletethisbit@gmail.com> wrote in message 
> news:0be3e775-67ce-4a39-891a-a2b9330fd7a5@googlegroups.com...
> >
> > I thought I had read the standard once some time ago and don't recall that 
> > it is intended to be sampled like a UART.  Is that literally in the spec 
> > or does it say some amount of noise is to be rejected and not seen as a 
> > start condition or clock edge?
> >
> 
> It's been so long since I looked at the standard in that much detail.  But 
> some kind of minor filtering is required.  A digital filter would be a 
> typical implementation.
> 
> If you have, say, MCU peripherals that require fairly high clocks relative 
> to the data rate (i.e., "400kHz"), say a 16x or higher prescaler, that's 
> probably what's being done.
> 
> In a correct implementation, the "400kHz" isn't, it's just the average when 
> everything is behaving as it should, activating and releasing SCK in a 
> timely manner, and with pull-up, capacitance and rise time in spec.

Yeah, I didn't think the standard had any such filtering specified.  Originally the I2C spec was for connecting devices on a single PCB, so no filtering should be required.  The signals need to be given the standard integrity attention you would give any of the other clock and data signals running around the board.  This sensitivity to noise is why you need to take more care in distributing the signals to other boards or more so, other chassis.  You can add whatever type of filtering you wish to your own implementations, but don't expect other devices to have the same degree of noise immunity.  

-- 

  Rick C.

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

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


#542831

FromWinfield Hill <hill@rowland.harvard.edu>
Date2019-05-10 15:33 -0700
Message-ID<qb4u7j0hmt@drn.newsguy.com>
In reply to#542828
Tim Williams wrote...
>
> The signals themselves might not need shielding,
> but that ignores ambient noise.  We're considering
> a clock signal here, so we need to be wary of fast 
> changes from external sources.

 Agreed, but I only have 24 to 36-inches of cable,
 and beehives are in electrically-quiet places.

 Also, it's OK if we occasionally get a bad data
 transmission.  We'll see how it works out.


-- 
 Thanks,
    - Win

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


#542837

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2019-05-10 17:10 -0700
Message-ID<7eb10a2c-90f9-40b5-8396-83eb19f801ab@googlegroups.com>
In reply to#542831
On Friday, May 10, 2019 at 6:33:46 PM UTC-4, Winfield Hill wrote:
> Tim Williams wrote...
> >
> > The signals themselves might not need shielding,
> > but that ignores ambient noise.  We're considering
> > a clock signal here, so we need to be wary of fast 
> > changes from external sources.
> 
>  Agreed, but I only have 24 to 36-inches of cable,
>  and beehives are in electrically-quiet places.
> 
>  Also, it's OK if we occasionally get a bad data
>  transmission.  We'll see how it works out.

Uh, be careful what you wish for.  If you are using proper I2C it has a hang condition which the Intel SMBus doesn't since it includes a time out.  I don't use I2C or SMBus so I can't say how significant this is, but Intel added the timeout for a reason.  I assume your hives are relatively remote.  How much impact will it have if you have to go to them once a month to reboot everything to unhang the I2C bus? 

-- 

  Rick C.

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

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


#542822

FromJohn S <Sophi.2@invalid.org>
Date2019-05-10 17:03 -0500
Message-ID<qb4sdh$tif$1@dont-email.me>
In reply to#542783
On 5/10/2019 10:16 AM, Tim Williams wrote:
> 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.

Do you mean loath by any chance? Just being a bit pedantic.

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


#542866

FromJasen Betts <jasen@xnet.co.nz>
Date2019-05-11 05:25 +0000
Message-ID<qb5mbq$5t8$1@gonzo.revmaps.no-ip.org>
In reply to#542773
On 2019-05-10, Winfield Hill <hill@rowland.harvard.edu> wrote:
> 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.

do you need UV resistant? weatherproof?

> Micro-USB: SCL and SDA twisted together, bad?  

yes bad, maybe put SDA on white as SCL on red 
and +3 on green

> RJ11: flat, SCL and SDA on outside lines?

 or SDA-0-scl-3.3

or RJ12 0-SDA-0-3.3-SCL-0

> RJ45: SCL and SDA shielded from each other.

meh.


-- 
  When I tried casting out nines I made a hash of it.

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


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

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


csiph-web