- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi subhash
Kind of lean description you give us there.
Can you elaborate a bit more and attach the project?
All the Best
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the slave address you used and what did you connect A0,A1, and A2 of pca9555pw to?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A0 ,A1,A2 ARE gnd.
slave address is 0x20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ya , everything connected fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you check with a scope or logic analyzer whether the transmitted data is what it should be?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks to every one my i2c work fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fine! But what was the reason that initially your I2C did not work?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
after CyGlobalIntEnable interrupt enable my code well