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

PSoC™ 5, 3 & 1 Forum Discussions

Anonymous
Not applicable

project:- Through i2c communication of pca9555pw to led control

   

process:-

   

drag the standard i2c Master(fixed function) 
setting of i2c block is 
                 mode :-master
                 Data rate :-100
                 implementation:- Fixed function

   

 setting of sda and scl pins are:-
                            bidirectional
                           open drain low

   

 

   

external pullup of sda and scl are 10k and 5v vcc apply.

   

in main ()

   


    i2c_Start();

   

 I2C_MasterWriteBuf( slaveAddress, data,2, I2C_MODE_COMPLETE_XFER )

   


problem:- occurs in master buf api master is not ready 

   

 

   

please give me solution as soon as possible.

0 Likes
9 Replies
Anonymous
Not applicable

Hi subhash

   

Kind of lean description you give us there.
Can you elaborate a bit more and attach the project?

   

All the Best
Frank

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

What is the slave address you used and what did you connect A0,A1, and A2 of pca9555pw to?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

A0 ,A1,A2 ARE gnd.

   

slave address is 0x20

0 Likes
HeLi_263931
Level 8
Level 8
100 likes received 50 likes received 25 likes received

Are you sure there is nothing else connected to the I2C pins? Check with the schematics of the kit, or with a scope that the signals are clean.

0 Likes
Anonymous
Not applicable

ya , everything connected fine.

0 Likes
HeLi_263931
Level 8
Level 8
100 likes received 50 likes received 25 likes received

Can you check with a scope or logic analyzer whether the transmitted data is what it should be?

0 Likes
Anonymous
Not applicable

thanks to every one my i2c work fine. 

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Fine! But what was the reason that initially your I2C did not work?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

after CyGlobalIntEnable interrupt enable my code well

0 Likes