cancel
Showing results for 
Search instead for 
Did you mean: 

. .

ahiggins9
Associate II
Posted on December 17, 2012 at 09:35

#i2c
7 REPLIES 7
Posted on December 17, 2012 at 12:29

To answer this particular question (Vout, low), why don't you resort to the documentation, namely Table 41 in STM32F2xx datasheet (I have rev5)?

JW

PS. Please stop using digit ''1'' in place of capital letter ''I''.
ahiggins9
Associate II
Posted on December 17, 2012 at 12:48

Hi,

That table refers to the static steady-state condition of the pin...whereas the bus is a dynamic thing with rise and fall times dependent, in part, on the resistor. So this is why I am asking for peoples experiences from watching the bus at the bottom of it's dynamic cycle - will it drop below 0.54V for the required period of time?

Regards,

Andrew Neil
Evangelist
Posted on December 17, 2012 at 20:29

How about using a proper I2C level translator...?

''I just started working in a place that doesn't even have a decent logic analyzer''

 

Don't they even have oscilloscopes?

Again: it's

I

2C (upper-case letter '

I

') - not 12C.
ahiggins9
Associate II
Posted on December 18, 2012 at 10:47

zzdz2
Associate II
Posted on December 18, 2012 at 11:46

Output impedance is in the order of hundreds ohms, capacitance on SDA may be a few tens pF.  It shouldn't introduce long delay when compared to SCL rate.

I would say it should work.

Posted on December 18, 2012 at 12:39

More precisely, given the max. 0.4V  in Table 41 is given at 8mA, the output transistor's Rds,on is roughly around 50Ohm. That's at least one order of magnitude less than a typical I2C pullup (which among other things should ensure also that those 8mA are not violated, btw.).

Now we of course have no idea of what are the parasitic capacitances of the real-world incarnation of OP's circuit, nor what are his requirements as per the I2C speed, so whether this is sufficient or not is left at his discretion. Similarly with judgement whether this solution will provide enough noise margin for his application.

JW

zzdz2
Associate II
Posted on December 18, 2012 at 13:08

They don't even have working scope, probably can't measure the capacitance.

We need to estimate it somehow. 

STM32 says: i/o pin capacitance 5pF, let's say sensor capacitance 10pF, PCB/trace capacitance another 10pF -> 25pF total.

50ohm+25pF, voltage should be quite stable after several nanoseconds, right?