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 support@ccsinfo.com

[OT] I2C buffer P82B96 changes the signal level

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



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

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

[OT] I2C buffer P82B96 changes the signal level
PostPosted: Sun Jan 20, 2008 7:34 pm     Reply with quote

Colleagues,

This question is not directly related to PICs, but it originates from a PIC system.

My I2C bus goes through a P82B96 buffer. But when the slave sends the ACK, the buffer increases the level of the signal, instead of just buffering it.

You’ll notice that the values for pull-ups on the slave side are somewhat high, and as a result, the slave device (PCA9536) can’t pull the SDA line all the way down. That certainly is a part of a problem. I expected P82B96 to either maintain/buffer this level or produce a logic level (either 0V or 3.3V). Instead, it increases this level, and I don’t understand why is it doing that?

Cheers,
- Nick

P.S. The bus speed is 100kHz.



_________________
Read the label, before opening a can of worms.


Last edited by kender on Sun Jan 20, 2008 9:49 pm; edited 1 time in total
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

470R?
PostPosted: Sun Jan 20, 2008 7:48 pm     Reply with quote

Why such strong pullups on the slave side? Recommended values? or part of an existing design?
It may be that the signal your seeing on the Master side during the ACK is just a repeat from the slave side. If this buffer actively determines the direction of the driving signal, it may be confused by the low level coming in from the slave side and not know which way to buffer, possibly.......
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

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

Re: 470R?
PostPosted: Sun Jan 20, 2008 8:02 pm     Reply with quote

bwhiten wrote:
Why such strong pullups on the slave side? Recommended values? or part of an existing design?

There will be 2m cable on the slave side the mail purpose of P82B96 is to drive this cable. During the experiment in which the waveforms were recorded, the whole bus was 10cm long; there was no cable. The waveform shows that the P82B96 can sink enough current to drive these strong pullups. The PCA9536 (slave) can't drive the SDA all the way down.

bwhiten wrote:
It may be that the signal your seeing on the Master side during the ACK is just a repeat from the slave side.

It should be a repeat. The question is - is is an analog repeat or a logic repeat? The datasheet says (ch.7) that P82B96 does a logic level detection:
P82B96 datasheet wrote:
The logic level of Rx is determined from the power supply voltage VCC of the chip. Logic LOW is below 42 % of VCC, and logic HIGH is above 58 % of VCC (with a typical switching threshold of half VCC).

If that's true, the ACK bit shoud be 0V on the Master side, because ACK produced by the PCA9536 is well below 42% of Vcc.
_________________
Read the label, before opening a can of worms.
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

PostPosted: Sun Jan 20, 2008 8:18 pm     Reply with quote

What frequency are you running the bus? The data sheet lists some degradation from the 400KHz standard. If you were to be running too fast possibly the master buffer has not turned off when the slave is trying to drive ACK.
Just hypothesizing a little but could the Master be transmitting something at the same time as the slave ACK bit? I'm having trouble understanding why the slave level of ACK is so weak with those strong pullups.
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

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

PostPosted: Sun Jan 20, 2008 9:22 pm     Reply with quote

bwhiten wrote:
What frequency are you running the bus?

I’m running the bus at conservative 100kHz.

bwhiten wrote:
Just hypothesizing a little but could the Master be transmitting something at the same time as the slave ACK bit?

Doubt it. Just in case, I wrote a code that sends only the address byte. That’s all it does. ACK bit has the voltage level.

bwhiten wrote:
I'm having trouble understanding why the slave level of ACK is so weak with those strong pullups.

ACK is active-low (0V – ACK, Vcc – NACK). Since the pullups are a bit too strong, the ACK bit doesn’t go all the way down to 0V. It’s still below 42% of Vcc, so the PCA9536 should view it as logic low and output 0V on the Master side. The pull-ups on the master side are weak, and I think PCA9536 is perfectly capable of driving them.
_________________
Read the label, before opening a can of worms.
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

PostPosted: Sun Jan 20, 2008 9:38 pm     Reply with quote

kender wrote:
ACK is active-low (0V – ACK, Vcc – NACK). Since the pullups are a bit too strong, the ACK bit doesn’t go all the way down to 0V.


So your thinking is that the master buffer stops driving the slave side just before the ACK bit timing. At that point the slave device is trying to hold the bus low for ACK by itself, but isn't able to and that's why the ACK signal is at about 0.4 volts? That may be as the waveform appears to show the master rising edge (pink) just before the slave rising edge (blue) during the ACK timing. But if you look both waveforms at the end of the ACK bit easily fall low again. This still looks as if the master side is in control and the slave side is fighting it. I know you said you wrote code to be sure this wasn't happening. Can you temporarily increase the size of the slave pullup to something more I2C like? This may give you another hint as to what is wrong. I do agree the buffer datasheet points to a logic transition not analog and the only thing I can think of that explains your waveforms is two competing signals.
Ttelmah
Guest







PostPosted: Mon Jan 21, 2008 6:04 am     Reply with quote

Try reading the data sheet!....
Page 2. Third paragraph down.
"A regular I2C low, applied to the Rx/Ry of a P8296B is propagated to Sx/Sy as a buffered low with a slightly higher voltage level".

The 82B96, just like a RS232 buffer, or a RS485 buffer, produces a completely distinct signalling level, which _must_ go to another similar buffer to be decoded 'back' to regular I2C.

I use these, with 12v signalling, over long runs, for which they are ideal, but they are _not_ designed as unity gain I2C current transceivers, accepting both I2C in, and producing I2C out.

Best Wishes
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Mon Jan 21, 2008 10:30 am     Reply with quote

The pull-ups on your slave side are a bit low value. You might consider using a bus accelerator to help square up your signals and pull the line low when needed. I've used an LTC1694-1 in several of my projects and it help the bus react faster. Just an idea.

Ronald
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