I2C communication with PTN5150A

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C communication with PTN5150A

1,202 次查看
JonMason
Contributor I

Hi - I'm using PTN5150A in a USB peripheral. It's configured as a UFP. 
The only function I need is to detect what current is advertised by the host, so I can determine how much I can pull from the USB port.

I'm using I2C to communicate with the device. The relevant bit of the schematic is shown below. R306 and R399 are 10K. There are appropriate pull-ups on the I2C bus. Supply voltage looks fine.

All I need to do is read from register x01 and register x04. I understand that individual byte write/reads are required. I can read register x01 but register x04 always returns 0.

I do do dummy write to register x01, followed by a single byte read. x0B is returned (as expected)
I then do a dummy write to register x04, followed by a single byte read. x00 is returned. In fact all the other registers seem to return x00. 

I'm pretty familiar with I2C protocol, so I don't think I'm doing something stupid (but it's always possible of course!) Is there anything obvious to anyone else's eyes that I haven't considered?

JonMason_0-1649448148191.png

Many thanks.

0 项奖励
6 回复数

1,150 次查看
guoweisun
NXP TechSupport
NXP TechSupport

I see your test waveform which have glitch below picture green oval marked, can you eliminate this?

 

guoweisun_1-1649926516668.png

 

 

 

0 项奖励

1,117 次查看
JonMason
Contributor I

My understanding is: glitches on SDA after ACK are normal and don't matter because CLK is low. Do you think this chip has a special problem with glitches like this?

 

0 项奖励

1,108 次查看
guoweisun
NXP TechSupport
NXP TechSupport
You can try to eliminate this glitch for example decrease pull up resistor .
0 项奖励

1,171 次查看
guoweisun
NXP TechSupport
NXP TechSupport

Can you share with any test waveforms for IIC communication? any schematic?

0 项奖励

1,161 次查看
JonMason
Contributor I

Waveforms attached...

I'm not sure which bit of the schematic would be helpful. Here's a bit more context. The big chip is an FTDI 4222H which is acting as I2C master. R304 and R305 are pull-ups, 4.7k each. C309 is 100nF, close to the chip. All the other slave chips on the board work fine, so I'm pretty certain there's nothing wrong with reading & writing to I2C slaves.

 

JonMason_0-1649858917533.png

 

0 项奖励

1,171 次查看
JonMason
Contributor I

Anyone?

 

0 项奖励