I2C data and clock behavior on CYW954907EVAL1F

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaFa_974161
Level 5
Level 5
100 sign-ins 50 replies posted 50 questions asked

Hello.

I'm using I2C on CYW954907EVAL1F as SMBUS

to comunicate with RRC2054: it is a smart battery.

 

The communication doesn't work.

 

I notice that I2C-DATA toggle when I2C-CLK has a falling edge:

does this lead to a misinterpretation at slave side ?

 

(E.g. can interpreted as I2C - START or I2C - STOP conditions ?)

 

Is there a way to configure the CYW954907EVAL1F microcontroller to force I2C-DATA to toggle when I2C-CLK is Low ?

0 Likes
2 Replies
Rakesh_BG
Moderator
Moderator
Moderator
50 solutions authored 100 replies posted 100 sign-ins

Hi @MaFa_974161 ,

I2C-DATA should toggle when I2C-CLK is Low by default. And you might not be able to change the data triggering method.

Are you reading or writing operation?

Are you communicating in which frequency?

Thanks,

Rakesh B G

0 Likes
MaFa_974161
Level 5
Level 5
100 sign-ins 50 replies posted 50 questions asked

I'm performing two operations:

 

the first is a write of 0x0D (Command Code for read "RelativeStateOfCharge") to a device wich address is 0x0B (0001 011 - Smart Battery).

 

The second is a two byte read (one word) to a device wich address is 0x0B (0001 011 - Smart Battery).

 

The two byte are the "RelativeStateOfCharge" word.

 

I' m working at 10kHz.

 

MaFa_974161_0-1652879116226.png

 

0 Likes