PIC Basic I2C Help Please


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2011
    Posts
    2

    Default PIC Basic I2C Help Please

    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..

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: PIC Basic I2C Help Please

    How about you post your code so far, and maybe we can see the problem.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  3. #3
    Join Date
    Jun 2011
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: PIC Basic I2C Help Please

    Thanks, I have solved it. The problem was related to ending I2C.

  4. #4
    Andricc's Avatar
    Andricc Guest


    Did you find this post helpful? Yes | No

    Default Re: PIC Basic I2C Help Please

    Hello.
    Can You help me, show simple sample code for AD7148 via I2C? I can not read anyone register.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts