LTC2400 SPI interface


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Most of us here use this to compile
    http://store.melabs.com/prod/pbp.html
    I am not familiar with oshonsoft compiler. I did not notice that you were using that earlier.

    Basically you will have three pins on something like this.

    DATA
    CLOCK (SCK)
    LATCH or Chip Select
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    May 2010
    Location
    SINGAPORE
    Posts
    14


    Did you find this post helpful? Yes | No

    Thumbs up Thanks for your kind reply

    Quote Originally Posted by mackrackit View Post
    Most of us here use this to compile
    http://store.melabs.com/prod/pbp.html
    I am not familiar with oshonsoft compiler. I did not notice that you were using that earlier.

    Basically you will have three pins on something like this.

    DATA
    CLOCK (SCK)
    LATCH or Chip Select
    i now understood the use of "sck" that it is used to control the serial clk (pin) of the adc,but in the oshonsoft i cant find any command to do that.it simply got spicson and spicsoff to control the "cs" pin of the adc and no more to control the spi clk.please give me a good idea to do my project.As i mentioned above
    my project is to communicate the LTC2400 to a pic 16f690 and to display on a 16*2 lcd.The lcd portion working good.THANKS FOR NOW AND THANKS A LOT FOR YOUR FURTHER SUGGESTIONS.
    IF YOU BORN POOR ITS NOT BECAUSE OF YOU BUT IF YOU DIE POOR ITS BECAUSE OF YOU.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I would give the PBP demo a try if I were you
    http://melabs.com/pbpdemo.htm
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    May 2010
    Location
    SINGAPORE
    Posts
    14


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by mackrackit View Post
    I would give the PBP demo a try if I were you
    http://melabs.com/pbpdemo.htm
    thanks for the compiler,but when i bought the pic kit 2 it comes with that compiler.ill try to utilize that.how to handle the timing feature on the adc-LTC2400,do you have any idea?if have then please give me a sample code to get the data from the adc in picbasic.i connected the ltc2400 in 3 wire communication mode.thanks a lot for spending your valuable time with me.
    IF YOU BORN POOR ITS NOT BECAUSE OF YOU BUT IF YOU DIE POOR ITS BECAUSE OF YOU.

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    The ****IN command in PBP will handle the timing for you when the correct MODE is selected.

    The best I can do at the moment because I have not used the ADC you have is to have you look at the sample I linked you to and compare that to the data sheet of your ADC.

    But I have to ask... Why use the external when the 690 has an ADC built in?
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    May 2010
    Location
    SINGAPORE
    Posts
    14


    Did you find this post helpful? Yes | No

    Thumbs up thanks for your reply

    Quote Originally Posted by mackrackit View Post
    The ****IN command in PBP will handle the timing for you when the correct MODE is selected.

    The best I can do at the moment because I have not used the ADC you have is to have you look at the sample I linked you to and compare that to the data sheet of your ADC.

    But I have to ask... Why use the external when the 690 has an ADC built in?
    i have already tried the internal adc but for now my project is to read (4-20mA)0-5v from a pressure transduser(0-100bar) and then conver it into pressure units .so i need more accuracy and i want to use 24 bit adc.thanks for your support.
    IF YOU BORN POOR ITS NOT BECAUSE OF YOU BUT IF YOU DIE POOR ITS BECAUSE OF YOU.

  7. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default

    Hi,
    I'm sure you have your reason but can you explain why you need 24bits?

    I mean, 100bar across 24bits gives you a resolution of 0.000006bar. Does a transducer capable of measuring 100bar really resolve to that kind of precision?

    If you already have your 4-20mA converted to 0-5V (and not 1-5V) you'd get ~0.1bar resolution with the built in 10bit ADC. You could do some oversampling to "emulate" a 12bit ADC giving you ~0.025bar resolution.

    Just some ideas.

    /Henrik.

Members who have read this thread : 1

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