- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to interface color sensor TCS34725 with cypress kit to get the R,G,B values in our firmware.
The communication is I2C. We are using the configurable pins FN0,FN1 as SDA and SDL. I am using I2C_M digital communication block for it. But we are not able to see any waveform on SDA and SCL lines.
So, kindly help us resolving this issue.
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you put pullup resistors to the sda and scl pins?
Are the FN0 and FN1 configured for pull low drive mode?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes i am using pull up resistors of value 10K each on these lines.
Here is some details from the Datasheet:
SDA_Pin
Selects which pin of the I2C_Port, the SDA data signal will be present. There is no need to select the
proper drive mode for this pin; PSoC Designer will do this automatically.
SCL_Pin
Selects which pin of the I2C_Port, the SCL Clock signal will be present. There is no need to select the
proper drive mode for this pin; PSoC designer will do this automatically.
So, i don't think we need to configure FN0 and FN1 as low drive mode. But i have tried it by configuring it to low drive mode also but still it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Out of my wits. For a test, I would use a "normal" pin to check.
Otherwise I would create a support case (Top of this page "Design Support"-> Create a Support Case)
Bob
PS: Forgot to call I2C_Start() ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, Did not forget.
Is there any other way through which i can get the values from my color sensor in firmware? Any other port pins?
Any suggestion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I already gave you the latest suggestion: create a support case.
Bob