Author |
Message |
Topic: problem in using i2c |
Fuat360
Replies: 24
Views: 44723
|
Forum: General CCS C Discussion Posted: Sun Jul 05, 2020 10:24 am Subject: problem in using i2c |
Could you be a little more specific? What does the output of the i2c bus scanner say? How are you verifying the result of your i2c_read()?
What is your circuit? Do you have the right pull up resist ... |
Topic: problem in using i2c |
Fuat360
Replies: 24
Views: 44723
|
Forum: General CCS C Discussion Posted: Sun Jul 05, 2020 10:05 am Subject: problem in using i2c |
and have you changed the I2C rate as I have already said twice....
The chip is _not_ rated to run at 400KHz.
I did what you said but it didn't work. |
Topic: problem in using i2c |
Fuat360
Replies: 24
Views: 44723
|
Forum: General CCS C Discussion Posted: Sun Jul 05, 2020 9:52 am Subject: problem in using i2c |
To add to that, we use the scanner because it is a known working program that we can use to ensure that at least the hardware design and assembly is in a working state. In embedded development there a ... |
Topic: problem in using i2c |
Fuat360
Replies: 24
Views: 44723
|
Forum: General CCS C Discussion Posted: Sun Jul 05, 2020 9:50 am Subject: problem in using i2c |
Looking at the datasheet the command for reading temperature appears to be 0x00 rather than 0x02 like you have.
Note that it's not necessary to use 16-bit data when the sensor only returns 8 bits unl ... |
Topic: problem in using i2c |
Fuat360
Replies: 24
Views: 44723
|
Forum: General CCS C Discussion Posted: Sun Jul 05, 2020 9:43 am Subject: problem in using i2c |
You posted while I was typing.
The I2C scanner is a simple program in the code library. Take your chip
header, add the code from this. Add a serial port, and it will report the
address where the I2 ... |
Topic: problem in using i2c |
Fuat360
Replies: 24
Views: 44723
|
Forum: General CCS C Discussion Posted: Sun Jul 05, 2020 9:33 am Subject: problem in using i2c |
PROTEUS is busted !! Please read the PIC101 'sticky' at the top of the forum.
I've yet to see ONE Proteus schematic that will actually work in the real World, using real parts.
Now when you get ... |
Topic: problem in using i2c |
Fuat360
Replies: 24
Views: 44723
|
Forum: General CCS C Discussion Posted: Sun Jul 05, 2020 7:36 am Subject: problem in using i2c |
Hello
I am trying to use i2c to take the temperature measurement from four TC74 sensors. My CCS program doesn't show any errors but when i use the hex file in Proteus the transmitted data from the se ... |
|