PDA

View Full Version : PIC Basic I2C Help Please



fermat
- 19th June 2011, 11:47
I am trying to read capacitance over AD7148 with PIC18F4550. I try to read any register from AD7148 but I always get $FF. What can be possible reasons for it?

Can anyone help me by writing a sample code specific to AD7148 just to read any register data.

Thanks..

cncmachineguy
- 19th June 2011, 13:40
How about you post your code so far, and maybe we can see the problem.

fermat
- 19th June 2011, 14:22
Thanks, I have solved it. The problem was related to ending I2C.

Andricc
- 20th June 2011, 11:45
Hello.
Can You help me, show simple sample code for AD7148 via I2C? I can not read anyone register.